1 |
commit: 14775221f19895ef468fe17dbb4ccafa4e38b9ca |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 23:19:01 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 23:20:05 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14775221 |
7 |
|
8 |
games-rpg/manaplus: Bumped live ebuild to EAPI-6. |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
games-rpg/manaplus/manaplus-9999.ebuild | 88 +++++++++++++++++++-------------- |
14 |
1 file changed, 52 insertions(+), 36 deletions(-) |
15 |
|
16 |
diff --git a/games-rpg/manaplus/manaplus-9999.ebuild b/games-rpg/manaplus/manaplus-9999.ebuild |
17 |
index a34b274..7440ab2 100644 |
18 |
--- a/games-rpg/manaplus/manaplus-9999.ebuild |
19 |
+++ b/games-rpg/manaplus/manaplus-9999.ebuild |
20 |
@@ -2,30 +2,29 @@ |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Id$ |
23 |
|
24 |
-EAPI=5 |
25 |
-inherit autotools git-r3 games |
26 |
+EAPI=6 |
27 |
+[[ ${PV} == 9999 ]] && inherit autotools git-r3 |
28 |
|
29 |
DESCRIPTION="OpenSource 2D MMORPG client for Evol Online and The Mana World" |
30 |
HOMEPAGE="http://manaplus.evolonline.org" |
31 |
-EGIT_REPO_URI="https://github.com/ManaPlus/ManaPlus.git" |
32 |
+if [[ ${PV} == 9999 ]] ; then |
33 |
+ EGIT_REPO_URI="https://github.com/ManaPlus/ManaPlus.git" |
34 |
+else |
35 |
+ SRC_URI="http://download.evolonline.org/manaplus/download/${PV}/${P}.tar.xz" |
36 |
+ KEYWORDS="~amd64 ~x86" |
37 |
+fi |
38 |
|
39 |
LICENSE="GPL-2+" |
40 |
SLOT="0" |
41 |
-IUSE="mumble nls opengl pugixml test" |
42 |
+IUSE="mumble nls opengl pugixml +sdl2 test" |
43 |
|
44 |
RDEPEND=" |
45 |
>=dev-games/physfs-1.0.0 |
46 |
media-fonts/dejavu |
47 |
- media-fonts/wqy-microhei |
48 |
media-fonts/liberation-fonts |
49 |
media-fonts/mplus-outline-fonts |
50 |
+ media-fonts/wqy-microhei |
51 |
media-libs/libpng:0= |
52 |
- media-libs/libsdl2[X,opengl?,video] |
53 |
- media-libs/sdl2-gfx |
54 |
- media-libs/sdl2-image[png] |
55 |
- media-libs/sdl2-mixer[vorbis] |
56 |
- media-libs/sdl2-net |
57 |
- media-libs/sdl2-ttf |
58 |
net-misc/curl |
59 |
sys-libs/zlib |
60 |
x11-apps/xmessage |
61 |
@@ -35,49 +34,66 @@ RDEPEND=" |
62 |
nls? ( virtual/libintl ) |
63 |
opengl? ( virtual/opengl ) |
64 |
pugixml? ( dev-libs/pugixml ) |
65 |
- !pugixml? ( dev-libs/libxml2 )" |
66 |
+ !pugixml? ( dev-libs/libxml2 ) |
67 |
+ sdl2? ( |
68 |
+ media-libs/libsdl2[X,opengl?,video] |
69 |
+ media-libs/sdl2-gfx |
70 |
+ media-libs/sdl2-image[png] |
71 |
+ media-libs/sdl2-mixer[vorbis] |
72 |
+ media-libs/sdl2-net |
73 |
+ media-libs/sdl2-ttf |
74 |
+ ) |
75 |
+ !sdl2? ( |
76 |
+ media-libs/libsdl[X,opengl?,video] |
77 |
+ media-libs/sdl-gfx |
78 |
+ media-libs/sdl-image[png] |
79 |
+ media-libs/sdl-mixer[vorbis] |
80 |
+ media-libs/sdl-net |
81 |
+ media-libs/sdl-ttf |
82 |
+ )" |
83 |
DEPEND="${RDEPEND} |
84 |
virtual/pkgconfig |
85 |
nls? ( sys-devel/gettext )" |
86 |
|
87 |
-src_unpack() { |
88 |
- git-r3_src_unpack |
89 |
-} |
90 |
- |
91 |
src_prepare() { |
92 |
- eautoreconf |
93 |
+ default |
94 |
+ if [[ ${PV} == 9999 ]] ; then |
95 |
+ eautoreconf |
96 |
+ fi |
97 |
} |
98 |
|
99 |
src_configure() { |
100 |
CONFIG_SHELL=/bin/bash \ |
101 |
- egamesconf \ |
102 |
- --with-sdl2 \ |
103 |
- --without-internalsdlgfx \ |
104 |
+ econf \ |
105 |
--localedir=/usr/share/locale \ |
106 |
- --prefix="/usr" \ |
107 |
- --bindir="${GAMES_BINDIR}" \ |
108 |
+ --without-internalsdlgfx \ |
109 |
$(use_with mumble) \ |
110 |
$(use_enable nls) \ |
111 |
$(use_with opengl) \ |
112 |
--enable-libxml=$(usex pugixml pugixml libxml) \ |
113 |
+ $(use_with sdl2) \ |
114 |
$(use_enable test unittests) |
115 |
} |
116 |
|
117 |
src_install() { |
118 |
default |
119 |
- dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-bold.ttf |
120 |
- dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans.ttf |
121 |
- dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusansmono-bold.ttf |
122 |
- dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusansmono.ttf |
123 |
- dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavuserifcondensed-bold.ttf |
124 |
- dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavuserifcondensed.ttf |
125 |
- dosym /usr/share/fonts/liberation-fonts/LiberationMono-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsansmono-bold.ttf |
126 |
- dosym /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsansmono.ttf |
127 |
- dosym /usr/share/fonts/liberation-fonts/LiberationSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsans-bold.ttf |
128 |
- dosym /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsans.ttf |
129 |
- dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/mplus-1p-bold.ttf |
130 |
- dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/mplus-1p-regular.ttf |
131 |
- dosym /usr/share/fonts/wqy-microhei/wqy-microhei.ttc "${GAMES_DATADIR}"/${PN}/data/fonts/wqy-microhei.ttf |
132 |
|
133 |
- prepgamesdirs |
134 |
+ local destpath="/usr/share/${PN}" |
135 |
+ dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${destpath}"/data/fonts/dejavusans-bold.ttf |
136 |
+ dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${destpath}"/data/fonts/dejavusans.ttf |
137 |
+ dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${destpath}"/data/fonts/dejavusansmono-bold.ttf |
138 |
+ dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${destpath}"/data/fonts/dejavusansmono.ttf |
139 |
+ dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf "${destpath}"/data/fonts/dejavuserifcondensed-bold.ttf |
140 |
+ dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf "${destpath}"/data/fonts/dejavuserifcondensed.ttf |
141 |
+ dosym /usr/share/fonts/liberation-fonts/LiberationMono-Bold.ttf "${destpath}"/data/fonts/liberationsansmono-bold.ttf |
142 |
+ dosym /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf "${destpath}"/data/fonts/liberationsansmono.ttf |
143 |
+ dosym /usr/share/fonts/liberation-fonts/LiberationSans-Bold.ttf "${destpath}"/data/fonts/liberationsans-bold.ttf |
144 |
+ dosym /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf "${destpath}"/data/fonts/liberationsans.ttf |
145 |
+ dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-bold.ttf "${destpath}"/data/fonts/mplus-1p-bold.ttf |
146 |
+ dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-regular.ttf "${destpath}"/data/fonts/mplus-1p-regular.ttf |
147 |
+ dosym /usr/share/fonts/wqy-microhei/wqy-microhei.ttc "${destpath}"/data/fonts/wqy-microhei.ttf |
148 |
+} |
149 |
+ |
150 |
+src_test() { |
151 |
+ make check |
152 |
} |