1 |
commit: 2794d58b0276698a3aca3c66799dc384b15b34b9 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 14 20:58:39 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 14 23:06:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2794d58b |
7 |
|
8 |
games-board/xboard: Switch from gnome2-utils to xdg, EAPI-7 bump |
9 |
|
10 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
games-board/xboard/xboard-4.9.1.ebuild | 50 ++++++++++++++++------------------ |
14 |
1 file changed, 23 insertions(+), 27 deletions(-) |
15 |
|
16 |
diff --git a/games-board/xboard/xboard-4.9.1.ebuild b/games-board/xboard/xboard-4.9.1.ebuild |
17 |
index 71e1a4bd842..a2e47ab0472 100644 |
18 |
--- a/games-board/xboard/xboard-4.9.1.ebuild |
19 |
+++ b/games-board/xboard/xboard-4.9.1.ebuild |
20 |
@@ -1,9 +1,9 @@ |
21 |
-# Copyright 1999-2018 Gentoo Authors |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=6 |
26 |
+EAPI=7 |
27 |
|
28 |
-inherit autotools gnome2-utils xdg-utils |
29 |
+inherit autotools xdg |
30 |
|
31 |
DESCRIPTION="GUI for gnuchess and for internet chess servers" |
32 |
HOMEPAGE="https://www.gnu.org/software/xboard/" |
33 |
@@ -15,7 +15,12 @@ KEYWORDS="~amd64 ~ppc64 ~x86" |
34 |
IUSE="+default-font gtk nls Xaw3d zippy" |
35 |
RESTRICT="test" #124112 |
36 |
|
37 |
-RDEPEND=" |
38 |
+BDEPEND=" |
39 |
+ virtual/pkgconfig |
40 |
+ x11-base/xorg-proto |
41 |
+ nls? ( sys-devel/gettext ) |
42 |
+" |
43 |
+DEPEND=" |
44 |
dev-libs/glib:2 |
45 |
gnome-base/librsvg:2 |
46 |
virtual/libintl |
47 |
@@ -33,10 +38,7 @@ RDEPEND=" |
48 |
!Xaw3d? ( x11-libs/libXaw ) |
49 |
) |
50 |
gtk? ( x11-libs/gtk+:2 )" |
51 |
-DEPEND="${RDEPEND} |
52 |
- virtual/pkgconfig |
53 |
- x11-base/xorg-proto |
54 |
- nls? ( sys-devel/gettext )" |
55 |
+RDEPEND="${DEPEND}" |
56 |
|
57 |
PATCHES=( |
58 |
"${FILESDIR}"/${PN}-4.8.0-gettext.patch |
59 |
@@ -51,16 +53,18 @@ src_prepare() { |
60 |
} |
61 |
|
62 |
src_configure() { |
63 |
- econf \ |
64 |
- --disable-update-mimedb \ |
65 |
- --datadir="${EPREFIX}"/usr/share \ |
66 |
- $(use_enable nls) \ |
67 |
- $(use_enable zippy) \ |
68 |
- --disable-update-mimedb \ |
69 |
- $(use_with gtk) \ |
70 |
- $(use_with Xaw3d) \ |
71 |
- $(usex gtk "--without-Xaw" "$(use_with !Xaw3d Xaw)") \ |
72 |
- --with-gamedatadir="${EPREFIX}/usr/share/games/${PN}" |
73 |
+ local myeconfargs=( |
74 |
+ --disable-update-mimedb |
75 |
+ --datadir="${EPREFIX}"/usr/share |
76 |
+ $(use_enable nls) |
77 |
+ $(use_enable zippy) |
78 |
+ --disable-update-mimedb |
79 |
+ $(use_with gtk) |
80 |
+ $(use_with Xaw3d) |
81 |
+ $(usex gtk "--without-Xaw" $(use_with !Xaw3d Xaw)) |
82 |
+ --with-gamedatadir="${EPREFIX}"/usr/share/games/${PN} |
83 |
+ ) |
84 |
+ econf "${myeconfargs[@]}" |
85 |
} |
86 |
|
87 |
src_install() { |
88 |
@@ -69,9 +73,7 @@ src_install() { |
89 |
} |
90 |
|
91 |
pkg_postinst() { |
92 |
- xdg_mimeinfo_database_update |
93 |
- xdg_desktop_database_update |
94 |
- gnome2_icon_cache_update |
95 |
+ xdg_pkg_postinst |
96 |
elog "No chess engines are emerged by default! If you want a chess engine" |
97 |
elog "to play with, you can emerge gnuchess or crafty." |
98 |
elog "Read xboard FAQ for information." |
99 |
@@ -79,9 +81,3 @@ pkg_postinst() { |
100 |
ewarn "Read the xboard(6) man page for specifying the font for xboard to use." |
101 |
fi |
102 |
} |
103 |
- |
104 |
-pkg_postrm() { |
105 |
- xdg_mimeinfo_database_update |
106 |
- xdg_desktop_database_update |
107 |
- gnome2_icon_cache_update |
108 |
-} |