1 |
commit: 06f5559b11960228af952b8cb94c927bab7c2c84 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 1 19:04:18 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 1 19:04:18 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06f5559b |
7 |
|
8 |
games-board/xboard: 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 |
games-board/xboard/xboard-4.8.0-r1.ebuild | 90 +++++++++++++++++++++++++++++++ |
17 |
1 file changed, 90 insertions(+) |
18 |
|
19 |
diff --git a/games-board/xboard/xboard-4.8.0-r1.ebuild b/games-board/xboard/xboard-4.8.0-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 0000000..71998b6 |
22 |
--- /dev/null |
23 |
+++ b/games-board/xboard/xboard-4.8.0-r1.ebuild |
24 |
@@ -0,0 +1,90 @@ |
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 autotools eutils fdo-mime gnome2-utils |
31 |
+ |
32 |
+DESCRIPTION="GUI for gnuchess and for internet chess servers" |
33 |
+HOMEPAGE="https://www.gnu.org/software/xboard/" |
34 |
+SRC_URI="mirror://gnu/xboard/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-3" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
39 |
+IUSE="Xaw3d +default-font gtk nls zippy" |
40 |
+RESTRICT="test" #124112 |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ dev-libs/glib:2 |
44 |
+ gnome-base/librsvg:2 |
45 |
+ virtual/libintl |
46 |
+ x11-libs/cairo[X] |
47 |
+ x11-libs/libXpm |
48 |
+ default-font? ( |
49 |
+ media-fonts/font-adobe-100dpi[nls?] |
50 |
+ media-fonts/font-misc-misc[nls?] |
51 |
+ ) |
52 |
+ !gtk? ( |
53 |
+ x11-libs/libX11 |
54 |
+ x11-libs/libXt |
55 |
+ x11-libs/libXmu |
56 |
+ Xaw3d? ( x11-libs/libXaw3d ) |
57 |
+ !Xaw3d? ( x11-libs/libXaw ) |
58 |
+ ) |
59 |
+ gtk? ( x11-libs/gtk+:2 )" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ x11-proto/xproto |
62 |
+ virtual/pkgconfig |
63 |
+ nls? ( sys-devel/gettext )" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${P}-gettext.patch |
67 |
+ "${FILESDIR}"/${P}-gnuchess-default.patch |
68 |
+) |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ eautoreconf |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ econf \ |
77 |
+ --disable-update-mimedb \ |
78 |
+ --datadir=/usr/share \ |
79 |
+ $(use_enable nls) \ |
80 |
+ $(use_enable zippy) \ |
81 |
+ --disable-update-mimedb \ |
82 |
+ $(use_with gtk) \ |
83 |
+ $(use_with Xaw3d) \ |
84 |
+ $(usex gtk "--without-Xaw" "$(use_with !Xaw3d Xaw)") \ |
85 |
+ --with-gamedatadir="/usr/share/games/${PN}" |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ emake DESTDIR="${D}" install |
90 |
+ dodoc AUTHORS COPYRIGHT ChangeLog FAQ.html NEWS README TODO ics-parsing.txt |
91 |
+ use zippy && dodoc zippy.README |
92 |
+} |
93 |
+ |
94 |
+pkg_preinst() { |
95 |
+ gnome2_icon_savelist |
96 |
+} |
97 |
+ |
98 |
+pkg_postinst() { |
99 |
+ fdo-mime_mime_database_update |
100 |
+ fdo-mime_desktop_database_update |
101 |
+ gnome2_icon_cache_update |
102 |
+ elog "No chess engines are emerged by default! If you want a chess engine" |
103 |
+ elog "to play with, you can emerge gnuchess or crafty." |
104 |
+ elog "Read xboard FAQ for information." |
105 |
+ if ! use default-font ; then |
106 |
+ ewarn "Read the xboard(6) man page for specifying the font for xboard to use." |
107 |
+ fi |
108 |
+} |
109 |
+ |
110 |
+pkg_postrm() { |
111 |
+ fdo-mime_mime_database_update |
112 |
+ fdo-mime_desktop_database_update |
113 |
+ gnome2_icon_cache_update |
114 |
+} |