Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/sjeng/
Date: Thu, 10 Sep 2020 22:06:52
Message-Id: 1599775590.f8b267e11eb17e00f6c9ac273a4ad3efd702b724.chewi@gentoo
1 commit: f8b267e11eb17e00f6c9ac273a4ad3efd702b724
2 Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
3 AuthorDate: Thu Sep 3 21:17:18 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 10 22:06:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8b267e1
7
8 games-board/sjeng: apply debian patches
9
10 Install missing files
11
12 Closes: https://bugs.gentoo.org/707270
13 Package-Manager: Portage-3.0.4, Repoman-2.3.23
14 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
15 Closes: https://github.com/gentoo/gentoo/pull/17407
16 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
17
18 games-board/sjeng/Manifest | 1 +
19 games-board/sjeng/sjeng-11.2-r2.ebuild | 18 -------------
20 games-board/sjeng/sjeng-11.2_p8_p1.ebuild | 45 +++++++++++++++++++++++++++++++
21 3 files changed, 46 insertions(+), 18 deletions(-)
22
23 diff --git a/games-board/sjeng/Manifest b/games-board/sjeng/Manifest
24 index 58e4f3114c5..a2b9a964747 100644
25 --- a/games-board/sjeng/Manifest
26 +++ b/games-board/sjeng/Manifest
27 @@ -1 +1,2 @@
28 DIST Sjeng-Free-11.2.tar.gz 174019 BLAKE2B c50f312ce4f569b17cf7f240fe27e9d6d27e83e260c7549ba13ee612a357700b1642c2b274637af3e0e0f45c35e46f088cdcd5dce6bb62591ef600b97d8c6d6b SHA512 cda3409d732ac1b07e83ccc0d3063d24497651097c633500dfca66fbb3021532053082ac57a5e23909dd1016a2bae07f166e56b82c4ce834749a101c9ee444b8
29 +DIST sjeng_11.2-8.1.diff.gz 13341 BLAKE2B 187cb85e504511504ee9ed8bc2c6d6c19815e3e267099f1e98ea8964145e81074e2dd6b298dba76e91e2824dec1b4c6ac3d43b24f1ab970362c3bf07da87541d SHA512 2d470e0bee12a5f06808653ab3607301622d8e4f802295c04853b973c553074850c1fed278fe4696a652773af71dcac461d428d7f776d5a967256c4f39c627c9
30
31 diff --git a/games-board/sjeng/sjeng-11.2-r2.ebuild b/games-board/sjeng/sjeng-11.2-r2.ebuild
32 deleted file mode 100644
33 index 9cf968e7d40..00000000000
34 --- a/games-board/sjeng/sjeng-11.2-r2.ebuild
35 +++ /dev/null
36 @@ -1,18 +0,0 @@
37 -# Copyright 1999-2018 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=6
41 -
42 -DESCRIPTION="Console based chess interface"
43 -HOMEPAGE="http://sjeng.sourceforge.net/"
44 -SRC_URI="mirror://sourceforge/sjeng/Sjeng-Free-${PV}.tar.gz"
45 -
46 -LICENSE="GPL-2"
47 -KEYWORDS="~amd64 ~x86"
48 -SLOT="0"
49 -IUSE=""
50 -
51 -RDEPEND="sys-libs/gdbm:0="
52 -DEPEND=${RDEPEND}
53 -
54 -S="${WORKDIR}/Sjeng-Free-${PV}"
55
56 diff --git a/games-board/sjeng/sjeng-11.2_p8_p1.ebuild b/games-board/sjeng/sjeng-11.2_p8_p1.ebuild
57 new file mode 100644
58 index 00000000000..19dd3691097
59 --- /dev/null
60 +++ b/games-board/sjeng/sjeng-11.2_p8_p1.ebuild
61 @@ -0,0 +1,45 @@
62 +# Copyright 1999-2020 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=7
66 +
67 +inherit prefix
68 +
69 +MY_PV=$(ver_cut 1-2)
70 +# 11.2_p8_p1 -> 11.2-8.1
71 +MY_DEB_PV="${MY_PV}-$(ver_cut 4).$(ver_cut 6)"
72 +
73 +DESCRIPTION="Console based chess interface"
74 +HOMEPAGE="http://sjeng.sourceforge.net/"
75 +SRC_URI="
76 + mirror://sourceforge/sjeng/Sjeng-Free-${MY_PV}.tar.gz
77 + http://deb.debian.org/debian/pool/main/s/sjeng/sjeng_${MY_DEB_PV}.diff.gz
78 +"
79 +
80 +LICENSE="GPL-2"
81 +KEYWORDS="~amd64 ~x86"
82 +SLOT="0"
83 +IUSE=""
84 +
85 +RDEPEND="sys-libs/gdbm:0="
86 +DEPEND="${RDEPEND}"
87 +BDEPEND="dev-util/quilt"
88 +
89 +S="${WORKDIR}/Sjeng-Free-${MY_PV}"
90 +
91 +src_prepare() {
92 + default
93 +
94 + eapply "${WORKDIR}/sjeng_${MY_DEB_PV}.diff"
95 + QUILT_PATCHES="debian/patches" QUILT_SERIES="debian/patches/series" quilt push -a || die
96 + hprefixify book.c rcfile.c
97 +}
98 +
99 +src_install() {
100 + default
101 +
102 + insinto /etc
103 + doins sjeng.rc
104 + insinto /usr/share/games/sjeng
105 + doins books/*.opn || die
106 +}