1 |
commit: befc01d6639e191db151b7ebc49b17c674786696 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 29 11:02:51 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 11:26:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=befc01d6 |
7 |
|
8 |
games-emulation/lxdream: Stop using games.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-emulation/lxdream/lxdream-0.9.1-r3.ebuild | 64 +++++++++++++++++++++++++ |
13 |
1 file changed, 64 insertions(+) |
14 |
|
15 |
diff --git a/games-emulation/lxdream/lxdream-0.9.1-r3.ebuild b/games-emulation/lxdream/lxdream-0.9.1-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..b7f1520cfa3 |
18 |
--- /dev/null |
19 |
+++ b/games-emulation/lxdream/lxdream-0.9.1-r3.ebuild |
20 |
@@ -0,0 +1,64 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit autotools flag-o-matic |
26 |
+ |
27 |
+DESCRIPTION="An emulator for the Sega Dreamcast system" |
28 |
+HOMEPAGE="http://www.lxdream.org/" |
29 |
+SRC_URI="http://www.lxdream.org/count.php?file=${P}.tar.gz -> ${P}.tar.gz" |
30 |
+ |
31 |
+LICENSE="GPL-2" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~x86" |
34 |
+# lirc configure option is not recogniced |
35 |
+IUSE="debug profile pulseaudio sdl" #lirc |
36 |
+ |
37 |
+RDEPEND=" |
38 |
+ app-misc/lirc |
39 |
+ |
40 |
+ media-libs/alsa-lib |
41 |
+ media-libs/libpng:0= |
42 |
+ pulseaudio? ( media-sound/pulseaudio ) |
43 |
+ sdl? ( media-libs/libsdl[sound] ) |
44 |
+ virtual/opengl |
45 |
+ x11-libs/gtk+:2 |
46 |
+" |
47 |
+DEPEND="${RDEPEND} |
48 |
+ virtual/pkgconfig |
49 |
+ sys-devel/gettext |
50 |
+ virtual/os-headers |
51 |
+ !!gnustep-base/gnustep-gui" #377635 |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ eapply "${FILESDIR}/${PN}-0.9.1-glib-single-include.patch" |
57 |
+ |
58 |
+ # Make .desktop file pass desktop-file-validate |
59 |
+ sed -i \ |
60 |
+ -e '/Encoding/d' \ |
61 |
+ -e '/FilePattern/d' \ |
62 |
+ -e '/Categories/s|$|;|' \ |
63 |
+ ${PN}.desktop || die |
64 |
+ # Do not override user-specified CFLAGS |
65 |
+ sed -i \ |
66 |
+ -e s/'CFLAGS=\"-g -fexceptions\"'/'CFLAGS=\"${CFLAGS} -g -fexceptions\"'/ \ |
67 |
+ -e '/CCOPT/d' \ |
68 |
+ -e '/OBJCOPT/d' \ |
69 |
+ configure || die |
70 |
+ append-libs -lX11 -lm |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ # lirc configure option is not recognized |
75 |
+ # $(use_with lirc) \ |
76 |
+ econf \ |
77 |
+ --datadir="/usr/share" \ |
78 |
+ $(use_enable debug trace) \ |
79 |
+ $(use_enable debug watch) \ |
80 |
+ $(use_enable profile profiled) \ |
81 |
+ $(use_with pulseaudio pulse) \ |
82 |
+ $(use_with sdl) \ |
83 |
+ --without-esd |
84 |
+} |