Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/pasang-emas/
Date: Fri, 05 Aug 2016 00:23:19
Message-Id: 1470356562.2d48e29f876a48d8f821a3d1cda0009ef4966b8e.wizardedit@gentoo
1 commit: 2d48e29f876a48d8f821a3d1cda0009ef4966b8e
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 4 18:35:02 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 00:22:42 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d48e29f
7
8 games-board/pasang-emas: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 .../pasang-emas/pasang-emas-3.1.0-r1.ebuild | 70 ++++++++++++++++++++++
17 1 file changed, 70 insertions(+)
18
19 diff --git a/games-board/pasang-emas/pasang-emas-3.1.0-r1.ebuild b/games-board/pasang-emas/pasang-emas-3.1.0-r1.ebuild
20 new file mode 100644
21 index 0000000..1347235
22 --- /dev/null
23 +++ b/games-board/pasang-emas/pasang-emas-3.1.0-r1.ebuild
24 @@ -0,0 +1,70 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit eutils gnome2-utils
31 +
32 +DESCRIPTION="A traditional game of Brunei"
33 +HOMEPAGE="http://pasang-emas.sourceforge.net/"
34 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
35 + extras? ( mirror://sourceforge/${PN}/pasang-emas-themes-1.0.tar.bz2
36 + mirror://sourceforge/${PN}/pet-marble.tar.bz2
37 + mirror://sourceforge/${PN}/pet-fragrance.tar.bz2 )"
38 +
39 +LICENSE="GPL-3"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="extras nls"
43 +
44 +RDEPEND="app-text/gnome-doc-utils
45 + >=x11-libs/gtk+-2.18.2:2
46 + virtual/libintl"
47 +DEPEND="${RDEPEND}
48 + app-text/rarian
49 + nls? ( sys-devel/gettext )"
50 +
51 +PATCHES=(
52 + "${FILESDIR}"/${P}-build.patch
53 +)
54 +
55 +src_prepare() {
56 + default
57 + sed -i \
58 + -e '/Encoding/d' \
59 + -e '/Icon/s:\.png::' \
60 + data/pasang-emas.desktop.in || die
61 + gnome2_omf_fix
62 +}
63 +
64 +src_configure() {
65 + econf \
66 + --localedir=/usr/share/locale \
67 + --with-omf-dir=/usr/share/omf \
68 + --with-help-dir=/usr/share/gnome/help \
69 + $(use_enable nls)
70 +}
71 +
72 +src_install() {
73 + default
74 + if use extras; then
75 + insinto /usr/share/${PN}/themes
76 + doins -r \
77 + "${WORKDIR}"/marble \
78 + "${WORKDIR}"/pasang-emas-themes-1.0/{conteng,kaca} \
79 + "${WORKDIR}"/fragrance
80 + fi
81 + use nls || rm -rf "${D}"usr/share/locale
82 +}
83 +
84 +pkg_preinst() {
85 + gnome2_scrollkeeper_savelist
86 +}
87 +
88 +pkg_postinst() {
89 + gnome2_scrollkeeper_update
90 +}
91 +
92 +pkg_postrm() {
93 + gnome2_scrollkeeper_update
94 +}