diff options
author | Sam James <sam@gentoo.org> | 2022-09-26 02:46:09 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-26 02:46:09 +0100 |
commit | 679bec0e2c20c8acc540503db3bc6e9b156dc2c0 (patch) | |
tree | 3c1cb79d191d46a10713fdf7bd39f18a04d9eca2 /dev-games | |
parent | dev-python/path: Remove obsolete blockers (diff) | |
download | gentoo-679bec0e2c20c8acc540503db3bc6e9b156dc2c0.tar.gz gentoo-679bec0e2c20c8acc540503db3bc6e9b156dc2c0.tar.bz2 gentoo-679bec0e2c20c8acc540503db3bc6e9b156dc2c0.zip |
dev-games/KXL: add 1.1.7_p17 (switch to Debian patches)
Indeed, most of our patches game from Debian (albeit without references ;))
so this is far simpler.
Dates back a long time!
```
+*KXL-1.1.7-r1 (13 May 2007)
+
+ 13 May 2007; Tupone Alfredo <tupone@gentoo.org>
+ +files/KXL-1.1.7-amd64.patch, +KXL-1.1.7-r1.ebuild:
+ Fixing bug #148332 by Pacho Ramos
+ Patch are from debian. It regards 64bit, sound and autorepeat
```
Bug: https://bugs.gentoo.org/148332
Closes: https://bugs.gentoo.org/870415
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/KXL/KXL-1.1.7_p17.ebuild | 48 | ||||
-rw-r--r-- | dev-games/KXL/Manifest | 1 | ||||
-rw-r--r-- | dev-games/KXL/files/KXL-1.1.7-implicit-function-declarations.patch | 19 |
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-games/KXL/KXL-1.1.7_p17.ebuild b/dev-games/KXL/KXL-1.1.7_p17.ebuild new file mode 100644 index 000000000000..33e072b293c6 --- /dev/null +++ b/dev-games/KXL/KXL-1.1.7_p17.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_PV=$(ver_cut 1-3) +DESCRIPTION="Development Library for making games for X" +HOMEPAGE="http://kxl.orz.hm/" +# http://kxl.hn.org/download/${P}.tar.gz +SRC_URI="mirror://debian/pool/main/k/kxl/kxl_${MY_PV}.orig.tar.gz -> ${PN}-${MY_PV}.tar.gz" +SRC_URI+=" mirror://debian/pool/main/k/kxl/kxl_${MY_PV}-$(ver_cut 5).debian.tar.xz" +S="${WORKDIR}"/${PN}-${MY_PV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="x11-libs/libX11" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-${MY_PV}-as-needed.patch + "${FILESDIR}"/${PN}-${MY_PV}-ldflags.patch + "${FILESDIR}"/${PN}-${MY_PV}-implicit-function-declarations.patch +) + +src_prepare() { + drop_debian_patch() { + rm "${WORKDIR}"/debian/patches/$1 || die + sed -i -e "/^${1}/d" "${WORKDIR}"/debian/patches/series || die + } + + drop_debian_patch 000_soname_xlibs.diff + + eapply $(awk '{print $1}' "${WORKDIR}"/debian/patches/series | sed -e "s:^:${WORKDIR}/debian/patches/:") + + default + + eautoreconf +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} diff --git a/dev-games/KXL/Manifest b/dev-games/KXL/Manifest index c7348333e321..45f968e799ca 100644 --- a/dev-games/KXL/Manifest +++ b/dev-games/KXL/Manifest @@ -1 +1,2 @@ DIST KXL-1.1.7.tar.gz 192070 BLAKE2B 7f5256afaffe94cd5f6551d8f53b43e2d9512cf94dfaebb123205b55d83d4645e226bbed62bf5f0da909104d4e33d1da60c7e08c0ee527087a4793c79c117df2 SHA512 f3a9051b0e8916745725a2809097df07c59f8811f336574def7e479c992175d0bd49661817f9da35d122d291aff0bde5d4c27e5b17a3f09878e71b2c7a709adb +DIST kxl_1.1.7-17.debian.tar.xz 178364 BLAKE2B 067f73a23b3bfd3c2fbdeb6c032d56444a3db68190a1a23cbe88f39767cea4ad1f16c641d24d12cccd6f3c480134105e85384d2f34b9bc0f4487d71faa975fc2 SHA512 ac2b8e919dcf3e1449df393aad9daf282b9954da6c2f43ff4cbb7bc073fd9ad660413ea09ea8cac480593fd2ea63ec2d176b338fa8f8a24b128636d5e3376495 diff --git a/dev-games/KXL/files/KXL-1.1.7-implicit-function-declarations.patch b/dev-games/KXL/files/KXL-1.1.7-implicit-function-declarations.patch new file mode 100644 index 000000000000..ac1d0e530a4c --- /dev/null +++ b/dev-games/KXL/files/KXL-1.1.7-implicit-function-declarations.patch @@ -0,0 +1,19 @@ +--- a/src/KXLjoystick.c ++++ b/src/KXLjoystick.c +@@ -1,5 +1,6 @@ + #include <stdio.h> + #include <sys/ioctl.h> ++#include <unistd.h> + #include <fcntl.h> + #include "KXL.h" + +--- a/src/KXLsound.c ++++ b/src/KXLsound.c +@@ -7,6 +7,7 @@ + #include <sys/ioctl.h> + #include <sys/time.h> + #include <sys/soundcard.h> ++#include <unistd.h> + #include "KXL.h" + + #define MIN(a, b) (((a) < (b)) ? (a) : (b)) |