diff options
Diffstat (limited to 'media-sound/schismtracker')
-rw-r--r-- | media-sound/schismtracker/Manifest | 3 | ||||
-rw-r--r-- | media-sound/schismtracker/files/schismtracker-20221201-bashism.patch | 29 | ||||
-rw-r--r-- | media-sound/schismtracker/schismtracker-20221201.ebuild | 54 |
3 files changed, 86 insertions, 0 deletions
diff --git a/media-sound/schismtracker/Manifest b/media-sound/schismtracker/Manifest index 4cd1f1be4e77..2bbf789753c7 100644 --- a/media-sound/schismtracker/Manifest +++ b/media-sound/schismtracker/Manifest @@ -1,5 +1,8 @@ +AUX schismtracker-20221201-bashism.patch 1102 BLAKE2B 69d03032f77f6c60076f35ba3632c642f5bf5ab717adf08cb8039bcab6edcb5c38360a7874e92f1161df67f4f599e6adffc68e30a57b623f11418425c9b7ad5b SHA512 67e267856f0f11db23a3ef291ec8e6630047958d3dfce1034ecbb72fe21c6ac27802398acc4c863bacd16097624ea8883a98bfb17eb6a3d57167a7eb054843f4 DIST schismtracker-20220905.tar.gz 1278816 BLAKE2B 6f461732c99a01c8f4a17afbac61b9b52686cd6c0e58c99f75337b4e33e187b5465f9adf5422ec3a455e9448f1beac845080816001af02cf2afa5740b9f384a7 SHA512 2429e6a3ed6004a0d327ddb8ae7c379fbed4e4d2e2fe87be225fb85c990327fa3008115f9dbdcf08b3691c50411bf5aad04e97264a2f9ef6c05c7cfdc6231bda DIST schismtracker-20221020.tar.gz 1276386 BLAKE2B d498eba07d05729640eb78de3253a47aad9f09594ea4b45195a4f829b581ca293cef5f12ddcb8bdf7c9b2f01ff9b3e00c5e7c54a23a179d3af23567c233a96f5 SHA512 1653800b0967926c8edab96636fcad547d94f20b6bc06f27780c75d48d7944983ba36013c62bfc9c0f6fcf33e3e8f9fb4c70fff19fd2a56c672ecfc1ba2f2cd7 +DIST schismtracker-20221201.source.tar.gz 1633099 BLAKE2B 6f376323002f85031140be7d54b1ab8bd830f8654e90c07596c9a45ce2ce76dfda51f124ff01247c1a371269b2924470faab06d7692a76ced694fdf05937f384 SHA512 062dc54b541709be0a5c8b0c5edadc9710106154c15b2a40847998db33aaba7d07740cdd32da94f56725e66834221bc5470f9a111eb41a06fbfbd70fdc920113 EBUILD schismtracker-20220905.ebuild 1305 BLAKE2B defbd3cca41714e6a2f75392a07c0ef44765ae146e28887f628dd7ab3caebb4b21a502eb8693ddadcfa7904f6b60b695a6bb766b2aaaa281050d0b2b649fdda1 SHA512 b37529e6702b49fd6a4ea7a1332ff4fc898ccf71c4ff1b33e7c2b1153409c8da91bde1489b82fad2d873a9454041ef2c7cd09ce44a69deff5704c3016d1d145a EBUILD schismtracker-20221020.ebuild 1305 BLAKE2B defbd3cca41714e6a2f75392a07c0ef44765ae146e28887f628dd7ab3caebb4b21a502eb8693ddadcfa7904f6b60b695a6bb766b2aaaa281050d0b2b649fdda1 SHA512 b37529e6702b49fd6a4ea7a1332ff4fc898ccf71c4ff1b33e7c2b1153409c8da91bde1489b82fad2d873a9454041ef2c7cd09ce44a69deff5704c3016d1d145a +EBUILD schismtracker-20221201.ebuild 1458 BLAKE2B 7bf2e8f990816b4f5d68c79c3eafba00802f5689f0385591c545bd8058f1d9e3e031b0b4bf1a072da43381021c2350ca80dece6289cebd9fd724ecf85dcb58bb SHA512 3455d5adafc1c318e0a4ba4a427200b61236735b4b2725c9ce76dec67fe212ee512729242aa18301cd86b2b645d79949f11e2aeef46de61d0a9ca62f33ee7299 MISC metadata.xml 356 BLAKE2B d0dafca63357e3b8b2fd8658b79f4f3e62202273f63dd59fbe1cdd7255a66ac2199854ee1adc870cb5b82ae18c294e65a5504163347920480e851a914dcc1fb6 SHA512 5c0f821a6f33b5a06ea18319e989c38714d2cc06bd2049b4e52fef62fdfe93b2e1a2e2c97c4776ebcd9cc10ecd3039b1f805faf5acc63cd20d60d3b4d05d4e3d diff --git a/media-sound/schismtracker/files/schismtracker-20221201-bashism.patch b/media-sound/schismtracker/files/schismtracker-20221201-bashism.patch new file mode 100644 index 000000000000..64cad709efe0 --- /dev/null +++ b/media-sound/schismtracker/files/schismtracker-20221201-bashism.patch @@ -0,0 +1,29 @@ +https://github.com/schismtracker/schismtracker/pull/340 + +From 5f2f594b6a4055318fa31d3c0cd6ecc8dc3666f7 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 2 Dec 2022 01:39:06 +0000 +Subject: [PATCH] Fix bashism in configure.ac sdl2-config check +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +configure scripts need to be runnable with a POSIX-compliant /bin/sh. + +On many (but not all!) systems, /bin/sh is provided by Bash, so errors +like this aren't spotted. Notably Debian defaults to /bin/sh provided +by dash which doesn't tolerate such bashisms as '=='. + +This retains compatibility with bash. +--- a/configure.ac ++++ b/configure.ac +@@ -63,7 +63,7 @@ AC_C_BIGENDIAN + dnl Check for SDL libs + AC_CHECK_TOOL([SDL_CONFIG], [sdl2-config]) + AC_SUBST(SDL_CONFIG) +-if test "x$SDL_CONFIG" == "x"; then ++if test "x$SDL_CONFIG" = "x"; then + AC_MSG_ERROR([*** sdl2-config not found.]) + fi + AS_VERSION_COMPARE([$($SDL_CONFIG --version)], [2.0.5], [AC_MSG_ERROR([*** SDL version >= 2.0.5 not found.])]) + diff --git a/media-sound/schismtracker/schismtracker-20221201.ebuild b/media-sound/schismtracker/schismtracker-20221201.ebuild new file mode 100644 index 000000000000..980ebc3426fa --- /dev/null +++ b/media-sound/schismtracker/schismtracker-20221201.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop xdg + +DESCRIPTION="Free implementation of Impulse Tracker, a tool used to create high quality music" +HOMEPAGE="http://schismtracker.org/" +SRC_URI="https://github.com/schismtracker/schismtracker/releases/download/${PV}/${P}.source.tar.gz" +S="${WORKDIR}" + +LICENSE="GPL-2 LGPL-2 public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=media-libs/libsdl2-2.0.5[X] + x11-libs/libX11 + x11-libs/libXv +" +DEPEND="${RDEPEND} + virtual/os-headers + x11-base/xorg-proto +" + +PATCHES=( + "${FILESDIR}"/${PN}-20221201-bashism.patch +) + +src_prepare() { + default + + # Can drop this once bashism patch unnecessary + eautoreconf + + # 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 || die + + # 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 +} |