diff options
Diffstat (limited to 'media-sound/schismtracker/schismtracker-20180810-r1.ebuild')
-rw-r--r-- | media-sound/schismtracker/schismtracker-20180810-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/media-sound/schismtracker/schismtracker-20180810-r1.ebuild b/media-sound/schismtracker/schismtracker-20180810-r1.ebuild new file mode 100644 index 000000000000..5c18d760c9f3 --- /dev/null +++ b/media-sound/schismtracker/schismtracker-20180810-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools desktop xdg-utils + +DESCRIPTION="Free implementation of Impulse Tracker, a tool used to create high quality music" +HOMEPAGE="http://schismtracker.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2 public-domain" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + media-libs/alsa-lib + >=media-libs/libsdl-1.2[X] + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXv +" +DEPEND="${RDEPEND} + virtual/os-headers + x11-base/xorg-proto +" + +src_prepare() { + default + eautoreconf + + sed -e "/^Categories/ s/Audio/AudioVideo;Audio/" -i sys/fd.org/schism.desktop || die + + # workaround for temporary files (missing directory). Fixes: + # sh ./scripts/build-font.sh . font/default-lower.fnt font/default-upper-alt.fnt font/default-upper-itf.fnt font/half-width.fnt >auto/default-font.c + # /bin/sh: auto/default-font.c: No such file or directory + mkdir auto + + # sys-devel/binutils[multitarget] provides ${CHOST}-windres + # wine provides /usr/bin/windres + # and schismtracker fails to use it properly: + # sys/win32/schismres.rc:2:20: fatal error: winver.h: No such file or directory + [[ ${CHOST} = *mingw32* ]] || export WINDRES= ac_cv_prog_WINDRES= ac_cv_prog_ac_ct_WINDRES= +} + +src_install() { + default + + domenu sys/fd.org/*.desktop + doicon icons/schism{,-itf}-icon-128.png +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} |