1 |
commit: eec9a7e13f21c2ce79d60d0b08bc2077e6a653aa |
2 |
Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 26 22:07:53 2021 +0000 |
4 |
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 26 22:08:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eec9a7e1 |
7 |
|
8 |
games-strategy/wesnoth: 1.16.0 version bump. |
9 |
|
10 |
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org> |
11 |
|
12 |
games-strategy/wesnoth/Manifest | 1 + |
13 |
games-strategy/wesnoth/wesnoth-1.16.0.ebuild | 106 +++++++++++++++++++++++++++ |
14 |
2 files changed, 107 insertions(+) |
15 |
|
16 |
diff --git a/games-strategy/wesnoth/Manifest b/games-strategy/wesnoth/Manifest |
17 |
index cb67db84b79..088b5bb879d 100644 |
18 |
--- a/games-strategy/wesnoth/Manifest |
19 |
+++ b/games-strategy/wesnoth/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST wesnoth-1.14.14.tar.gz 502931191 BLAKE2B 25bbead74d74bbce9c47b5ac9339fd5b4d996cb9f80137f0b1d9a600c71c82b732ed66937419a4dd59995311685960630415daf3fd3f51e8cf891f29a16ec024 SHA512 3924aa26b59445568472a10c5fe0e1ddf87eb0a878faf2bcc52d4618f5743dfeda103d1f4025f4a129628e6a25f4c16407e968d594769a0751ada2c9a733e2e4 |
22 |
DIST wesnoth-1.15.15.tar.gz 512968280 BLAKE2B 2b5c979244fb168e674d120a5eeef3905560992a7ca50735ef30918144ad7b21a9d57bef8cf19d564e02226955fb1c6922b27151fef36825a9b06cbe3d9e40ee SHA512 7f59ac11223e6ca93f926ca978638828e366ea2fd75530b317656e5edd8b0f042f86beb57fd17b8cc9b2d3d093d60580cd3449e1c3bf53b8ee37f656df7198a2 |
23 |
+DIST wesnoth-1.16.0.tar.gz 515780018 BLAKE2B 1a9d6aa9b294b9919d3b51528928f43d786f30fda739f0af2e62ebbb210b8f071945fe6130c00e2055d3726ae7eabf63b57fd2f1d5d8981a4cd0feedbfbffbfb SHA512 6d999a99e140916ef2070c524898ef69c7b45b3240f208aa380e81a1d1822a02c05a7fc9c5049a05a230e5126d8ff8723e16b6a62ba532b81c031f78ad8c85fe |
24 |
|
25 |
diff --git a/games-strategy/wesnoth/wesnoth-1.16.0.ebuild b/games-strategy/wesnoth/wesnoth-1.16.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..c9a69554f39 |
28 |
--- /dev/null |
29 |
+++ b/games-strategy/wesnoth/wesnoth-1.16.0.ebuild |
30 |
@@ -0,0 +1,106 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit cmake flag-o-matic toolchain-funcs xdg |
37 |
+ |
38 |
+DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game" |
39 |
+HOMEPAGE="http://www.wesnoth.org |
40 |
+ https://github.com/wesnoth/wesnoth" |
41 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+# uneven minor versions are development versions |
46 |
+if [[ $(( $(ver_cut 2) % 2 )) == 0 ]] ; then |
47 |
+ KEYWORDS="~amd64 ~x86" |
48 |
+fi |
49 |
+IUSE="dbus dedicated doc nls server" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ acct-group/wesnoth |
53 |
+ acct-user/wesnoth |
54 |
+ >=dev-libs/boost-1.50:=[nls,threads(+),icu] |
55 |
+ >=media-libs/libsdl2-2.0.4:0[joystick,video,X] |
56 |
+ !dedicated? ( |
57 |
+ dev-libs/glib:2 |
58 |
+ dev-libs/openssl:0= |
59 |
+ >=media-libs/fontconfig-2.4.1 |
60 |
+ >=media-libs/sdl2-image-2.0.0[jpeg,png] |
61 |
+ >=media-libs/sdl2-mixer-2.0.0[vorbis] |
62 |
+ media-libs/libvorbis |
63 |
+ >=x11-libs/pango-1.22.0 |
64 |
+ >=x11-libs/cairo-1.10.0 |
65 |
+ sys-libs/readline:0= |
66 |
+ dbus? ( sys-apps/dbus ) |
67 |
+ )" |
68 |
+DEPEND="${RDEPEND} |
69 |
+ x11-libs/libX11 |
70 |
+" |
71 |
+BDEPEND=" |
72 |
+ sys-devel/gettext |
73 |
+ virtual/pkgconfig |
74 |
+" |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ cmake_src_prepare |
78 |
+ |
79 |
+ sed 's@ coroutine@@' -i CMakeLists.txt || die |
80 |
+ sed '/Boost::coroutine/d' -i src/CMakeLists.txt || die |
81 |
+ if ! use doc ; then |
82 |
+ sed -i \ |
83 |
+ -e '/manual/d' \ |
84 |
+ doc/CMakeLists.txt || die |
85 |
+ fi |
86 |
+ |
87 |
+ # respect LINGUAS (bug #483316) |
88 |
+ if [[ ${LINGUAS+set} ]] ; then |
89 |
+ local lang langs=() |
90 |
+ for lang in $(cat po/LINGUAS) ; do |
91 |
+ has ${lang} ${LINGUAS} && langs+=( ${lang} ) |
92 |
+ done |
93 |
+ echo "${langs[@]}" > po/LINGUAS || die |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ filter-flags -ftracer -fomit-frame-pointer |
99 |
+ if [[ $(gcc-major-version) -eq 3 ]] ; then |
100 |
+ filter-flags -fstack-protector |
101 |
+ append-flags -fno-stack-protector |
102 |
+ fi |
103 |
+ |
104 |
+ if use dedicated || use server ; then |
105 |
+ mycmakeargs=( |
106 |
+ -DENABLE_CAMPAIGN_SERVER="ON" |
107 |
+ -DENABLE_SERVER="ON" |
108 |
+ -DSERVER_UID="${PN}" |
109 |
+ -DSERVER_GID="${PN}" |
110 |
+ -DFIFO_DIR="/run/wesnothd" |
111 |
+ ) |
112 |
+ else |
113 |
+ mycmakeargs=( |
114 |
+ -DENABLE_CAMPAIGN_SERVER="OFF" |
115 |
+ -DENABLE_SERVER="OFF" |
116 |
+ ) |
117 |
+ fi |
118 |
+ mycmakeargs+=( |
119 |
+ -Wno-dev |
120 |
+ -DENABLE_GAME="$(usex !dedicated)" |
121 |
+ -DENABLE_DESKTOP_ENTRY="$(usex !dedicated)" |
122 |
+ -DENABLE_NLS="$(usex nls)" |
123 |
+ -DENABLE_NOTIFICATIONS="$(usex dbus)" |
124 |
+ -DENABLE_STRICT_COMPILATION="OFF" |
125 |
+ ) |
126 |
+ cmake_src_configure |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ local DOCS=( README.md changelog.md ) |
131 |
+ cmake_src_install |
132 |
+ if use dedicated || use server; then |
133 |
+ rmdir "${ED}/run/wesnothd" || die |
134 |
+ newinitd "${FILESDIR}"/wesnothd.rc-r1 wesnothd |
135 |
+ fi |
136 |
+} |