From f8b267e11eb17e00f6c9ac273a4ad3efd702b724 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Thu, 3 Sep 2020 22:17:18 +0100 Subject: [PATCH] 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 Closes: https://github.com/gentoo/gentoo/pull/17407 Signed-off-by: James Le Cuirot --- games-board/sjeng/Manifest | 1 + games-board/sjeng/sjeng-11.2-r2.ebuild | 18 --------- games-board/sjeng/sjeng-11.2_p8_p1.ebuild | 45 +++++++++++++++++++++++ 3 files changed, 46 insertions(+), 18 deletions(-) delete mode 100644 games-board/sjeng/sjeng-11.2-r2.ebuild create mode 100644 games-board/sjeng/sjeng-11.2_p8_p1.ebuild diff --git a/games-board/sjeng/Manifest b/games-board/sjeng/Manifest index 58e4f3114c5c8..a2b9a964747ee 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 9cf968e7d406d..0000000000000 --- 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 0000000000000..19dd369109737 --- /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 +}