1 |
commit: 3046156a2fb06292c3c7380d4332592c2f79ac18 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 10 20:50:41 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 11 08:07:14 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3046156a |
7 |
|
8 |
games-strategy/freeorion: Sync live with 0.4.8_p20190501 changes |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
games-strategy/freeorion/freeorion-9999.ebuild | 70 ++++++++++++-------------- |
14 |
1 file changed, 32 insertions(+), 38 deletions(-) |
15 |
|
16 |
diff --git a/games-strategy/freeorion/freeorion-9999.ebuild b/games-strategy/freeorion/freeorion-9999.ebuild |
17 |
index 578e570e2ff..2c29c8b5c26 100644 |
18 |
--- a/games-strategy/freeorion/freeorion-9999.ebuild |
19 |
+++ b/games-strategy/freeorion/freeorion-9999.ebuild |
20 |
@@ -7,43 +7,51 @@ PYTHON_COMPAT=( python2_7 ) |
21 |
inherit cmake-utils python-single-r1 xdg |
22 |
|
23 |
DESCRIPTION="A free turn-based space empire and galactic conquest game" |
24 |
-HOMEPAGE="http://www.freeorion.org" |
25 |
+HOMEPAGE="https://www.freeorion.org" |
26 |
|
27 |
if [[ ${PV} == 9999 ]]; then |
28 |
inherit git-r3 |
29 |
EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" |
30 |
else |
31 |
- MY_PV="${PV/_/-}" |
32 |
- SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
33 |
KEYWORDS="~amd64" |
34 |
- S="${WORKDIR}/${PN}-${MY_PV}" |
35 |
+ if [[ ${PV} = *_p* ]]; then |
36 |
+ COMMIT="2a49c05796f1c92b96ce9b2aeaf0124fc8be7a77" |
37 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
38 |
+ S="${WORKDIR}/${PN}-${COMMIT}" |
39 |
+ else |
40 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" |
41 |
+ S="${WORKDIR}/${PN}-${PV/_/-}" |
42 |
+ fi |
43 |
fi |
44 |
|
45 |
LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0" |
46 |
SLOT="0" |
47 |
-IUSE="" |
48 |
+IUSE="dedicated" |
49 |
|
50 |
-RDEPEND=" |
51 |
- >=dev-libs/boost-1.56:=[python,threads,${PYTHON_USEDEP}] |
52 |
- media-libs/freealut |
53 |
- media-libs/freetype |
54 |
- media-libs/glew:= |
55 |
- media-libs/libsdl2 |
56 |
- >=media-libs/libogg-1.1.3 |
57 |
- media-libs/libpng:0 |
58 |
- media-libs/libsdl2[X,opengl,video] |
59 |
- >=media-libs/libvorbis-1.1.2 |
60 |
- media-libs/openal |
61 |
- sci-physics/bullet |
62 |
- sys-libs/zlib |
63 |
- virtual/opengl |
64 |
- !dev-games/gigi" |
65 |
- # Use bundled gigi as of freeorion-0.4.3 |
66 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
67 |
|
68 |
-DEPEND="${RDEPEND}" |
69 |
BDEPEND=" |
70 |
+ virtual/pkgconfig |
71 |
+" |
72 |
+RDEPEND=" |
73 |
+ >=dev-libs/boost-1.58:=[python,threads,${PYTHON_USEDEP}] |
74 |
+ !dedicated? ( |
75 |
+ media-libs/freealut |
76 |
+ >=media-libs/freetype-2.5.5 |
77 |
+ media-libs/glew:= |
78 |
+ >=media-libs/libogg-1.1.3 |
79 |
+ media-libs/libpng:0= |
80 |
+ media-libs/libsdl2[X,opengl,video] |
81 |
+ >=media-libs/libvorbis-1.1.2 |
82 |
+ media-libs/openal |
83 |
+ sci-physics/bullet |
84 |
+ virtual/opengl |
85 |
+ ) |
86 |
+ sys-libs/zlib |
87 |
+" |
88 |
+DEPEND="${RDEPEND} |
89 |
${PYTHON_DEPS} |
90 |
- virtual/pkgconfig" |
91 |
+" |
92 |
|
93 |
pkg_setup() { |
94 |
# build system is using FindPythonLibs.cmake which needs python:2 |
95 |
@@ -60,28 +68,14 @@ src_configure() { |
96 |
local mycmakeargs=( |
97 |
-DCMAKE_BUILD_TYPE=Release |
98 |
-DCMAKE_SKIP_RPATH=ON |
99 |
+ -DBUILD_HEADLESS="$(usex dedicated)" |
100 |
) |
101 |
|
102 |
- #append-cppflags -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL |
103 |
- |
104 |
cmake-utils_src_configure |
105 |
} |
106 |
|
107 |
src_install() { |
108 |
cmake-utils_src_install |
109 |
- dodoc ChangeLog.md |
110 |
|
111 |
newenvd "${FILESDIR}/${PN}.envd" 99${PN} |
112 |
} |
113 |
- |
114 |
-pkg_preinst() { |
115 |
- xdg_pkg_preinst |
116 |
-} |
117 |
- |
118 |
-pkg_postinst() { |
119 |
- xdg_pkg_postinst |
120 |
-} |
121 |
- |
122 |
-pkg_postrm() { |
123 |
- xdg_pkg_postrm |
124 |
-} |