summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@google.com>2020-09-03 22:17:18 +0100
committerJames Le Cuirot <chewi@gentoo.org>2020-09-10 23:06:30 +0100
commitf8b267e11eb17e00f6c9ac273a4ad3efd702b724 (patch)
treee9e49d217c8de70da92bcde2e193ac106d80fac3 /games-board
parentdev-python/fsspec: Bump to 0.8.2 (diff)
downloadgentoo-f8b267e11eb17e00f6c9ac273a4ad3efd702b724.tar.gz
gentoo-f8b267e11eb17e00f6c9ac273a4ad3efd702b724.tar.bz2
gentoo-f8b267e11eb17e00f6c9ac273a4ad3efd702b724.zip
games-board/sjeng: apply debian patches
Install missing files Closes: https://bugs.gentoo.org/707270 Package-Manager: Portage-3.0.4, Repoman-2.3.23 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Closes: https://github.com/gentoo/gentoo/pull/17407 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-board')
-rw-r--r--games-board/sjeng/Manifest1
-rw-r--r--games-board/sjeng/sjeng-11.2-r2.ebuild18
-rw-r--r--games-board/sjeng/sjeng-11.2_p8_p1.ebuild45
3 files changed, 46 insertions, 18 deletions
diff --git a/games-board/sjeng/Manifest b/games-board/sjeng/Manifest
index 58e4f3114c5c..a2b9a964747e 100644
--- a/games-board/sjeng/Manifest
+++ b/games-board/sjeng/Manifest
@@ -1 +1,2 @@
DIST Sjeng-Free-11.2.tar.gz 174019 BLAKE2B c50f312ce4f569b17cf7f240fe27e9d6d27e83e260c7549ba13ee612a357700b1642c2b274637af3e0e0f45c35e46f088cdcd5dce6bb62591ef600b97d8c6d6b SHA512 cda3409d732ac1b07e83ccc0d3063d24497651097c633500dfca66fbb3021532053082ac57a5e23909dd1016a2bae07f166e56b82c4ce834749a101c9ee444b8
+DIST sjeng_11.2-8.1.diff.gz 13341 BLAKE2B 187cb85e504511504ee9ed8bc2c6d6c19815e3e267099f1e98ea8964145e81074e2dd6b298dba76e91e2824dec1b4c6ac3d43b24f1ab970362c3bf07da87541d SHA512 2d470e0bee12a5f06808653ab3607301622d8e4f802295c04853b973c553074850c1fed278fe4696a652773af71dcac461d428d7f776d5a967256c4f39c627c9
diff --git a/games-board/sjeng/sjeng-11.2-r2.ebuild b/games-board/sjeng/sjeng-11.2-r2.ebuild
deleted file mode 100644
index 9cf968e7d406..000000000000
--- a/games-board/sjeng/sjeng-11.2-r2.ebuild
+++ /dev/null
@@ -1,18 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DESCRIPTION="Console based chess interface"
-HOMEPAGE="http://sjeng.sourceforge.net/"
-SRC_URI="mirror://sourceforge/sjeng/Sjeng-Free-${PV}.tar.gz"
-
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~x86"
-SLOT="0"
-IUSE=""
-
-RDEPEND="sys-libs/gdbm:0="
-DEPEND=${RDEPEND}
-
-S="${WORKDIR}/Sjeng-Free-${PV}"
diff --git a/games-board/sjeng/sjeng-11.2_p8_p1.ebuild b/games-board/sjeng/sjeng-11.2_p8_p1.ebuild
new file mode 100644
index 000000000000..19dd36910973
--- /dev/null
+++ b/games-board/sjeng/sjeng-11.2_p8_p1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit prefix
+
+MY_PV=$(ver_cut 1-2)
+# 11.2_p8_p1 -> 11.2-8.1
+MY_DEB_PV="${MY_PV}-$(ver_cut 4).$(ver_cut 6)"
+
+DESCRIPTION="Console based chess interface"
+HOMEPAGE="http://sjeng.sourceforge.net/"
+SRC_URI="
+ mirror://sourceforge/sjeng/Sjeng-Free-${MY_PV}.tar.gz
+ http://deb.debian.org/debian/pool/main/s/sjeng/sjeng_${MY_DEB_PV}.diff.gz
+"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE=""
+
+RDEPEND="sys-libs/gdbm:0="
+DEPEND="${RDEPEND}"
+BDEPEND="dev-util/quilt"
+
+S="${WORKDIR}/Sjeng-Free-${MY_PV}"
+
+src_prepare() {
+ default
+
+ eapply "${WORKDIR}/sjeng_${MY_DEB_PV}.diff"
+ QUILT_PATCHES="debian/patches" QUILT_SERIES="debian/patches/series" quilt push -a || die
+ hprefixify book.c rcfile.c
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ doins sjeng.rc
+ insinto /usr/share/games/sjeng
+ doins books/*.opn || die
+}