Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/
Date: Fri, 01 Jun 2018 14:11:08
Message-Id: 1527862255.038dbf3ffee6eb901497068b7fc47d32df5ffaae.polynomial-c@gentoo
1 commit: 038dbf3ffee6eb901497068b7fc47d32df5ffaae
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 1 14:01:24 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 1 14:10:55 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=038dbf3f
7
8 games-strategy/wesnoth: Bump to version 1.14.2
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 games-strategy/wesnoth/Manifest | 1 +
13 games-strategy/wesnoth/wesnoth-1.14.2.ebuild | 114 +++++++++++++++++++++++++++
14 2 files changed, 115 insertions(+)
15
16 diff --git a/games-strategy/wesnoth/Manifest b/games-strategy/wesnoth/Manifest
17 index 64a3d351e79..2a8b2573b38 100644
18 --- a/games-strategy/wesnoth/Manifest
19 +++ b/games-strategy/wesnoth/Manifest
20 @@ -1,2 +1,3 @@
21 DIST wesnoth-1.12.6.tar.bz2 387869758 BLAKE2B 53328f8ebbaaabb266064fea57c0d28779183ba1b77ae8522c4dbb01c4a9ad9068d76307b48cec6576648132bf34f9a45efdb93ad36e03d035ed06e84711c9b6 SHA512 12ca3b5de8fd385b05cc8e76604f7aed68127a7542599d6e97cce793e10636e00bd65dcb088701e20ccc7191f41b1d67a00b291f885df880fac00d13d6fbde7a
22 DIST wesnoth-1.14.1.tar.gz 481355736 BLAKE2B 2cc41a36706919bbc505a9a6726ea9b0fbfd5bfde677da937fdde2645587f4407fb6ed2f7271efaf1763f9ab69a57d153130291d5dc0a79862e554963dd37079 SHA512 0372eb9479d3d24dc4bf692a83fe310d5b4493989f18f0a23070ee19a4bee2672efd38babe1579b08a321e3acba1ede5823376619c8a90102f968e53cc6e3f02
23 +DIST wesnoth-1.14.2.tar.gz 489041516 BLAKE2B f38f3596edd97096e39ee1e87e13a3d0402d0f9f0f67f25ce1e4a28123abc62ca7b2410c8420a4091d505bf64219cdf92c1cfed562ae2f3705c37685d7c2c20e SHA512 010dcdeaf03d3855192d2480facbfce134459b71acb06515196968dd66b5e1fc40bd75eeeb8b7dd7fc30c9b43af004784d9907893c4b1d61e57436457afc30bb
24
25 diff --git a/games-strategy/wesnoth/wesnoth-1.14.2.ebuild b/games-strategy/wesnoth/wesnoth-1.14.2.ebuild
26 new file mode 100644
27 index 00000000000..5a1f6c5af2e
28 --- /dev/null
29 +++ b/games-strategy/wesnoth/wesnoth-1.14.2.ebuild
30 @@ -0,0 +1,114 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit cmake-utils user
36 +
37 +DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
38 +HOMEPAGE="http://www.wesnoth.org
39 + https://github.com/wesnoth/wesnoth"
40 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86 ~x86-fbsd"
45 +IUSE="dbus dedicated doc fribidi libressl nls openmp server"
46 +
47 +RDEPEND="
48 + >=dev-libs/boost-1.50:=[nls,threads,icu]
49 + >=media-libs/libsdl2-2.0.4:0[joystick,video,X]
50 + !dedicated? (
51 + dev-libs/glib:2
52 + !libressl? ( dev-libs/openssl:0= )
53 + libressl? ( dev-libs/libressl:0= )
54 + >=media-libs/fontconfig-2.4.1
55 + >=media-libs/sdl2-image-2.0.0[jpeg,png]
56 + >=media-libs/sdl2-mixer-2.0.0[vorbis]
57 + >=media-libs/sdl2-ttf-2.0.12
58 + media-libs/libvorbis
59 + >=x11-libs/pango-1.22.0
60 + >=x11-libs/cairo-1.10.0
61 + sys-libs/readline:0
62 + dbus? ( sys-apps/dbus )
63 + fribidi? ( dev-libs/fribidi )
64 + )"
65 +DEPEND="${RDEPEND}
66 + sys-devel/gettext
67 + virtual/pkgconfig
68 + x11-libs/libX11
69 +"
70 +
71 +pkg_setup() {
72 + if use openmp; then
73 + tc-has-openmp || die "Please switch to an openmp compatible compiler"
74 + fi
75 +
76 + enewgroup ${PN}
77 + enewuser ${PN} -1 /bin/bash -1 ${PN}
78 +}
79 +
80 +src_prepare() {
81 + cmake-utils_src_prepare
82 +
83 + if ! use doc ; then
84 + sed -i \
85 + -e '/manual/d' \
86 + doc/CMakeLists.txt || die
87 + fi
88 +
89 + # respect LINGUAS (bug #483316)
90 + if [[ ${LINGUAS+set} ]] ; then
91 + local langs
92 + for lang in $(cat po/LINGUAS)
93 + do
94 + has $lang $LINGUAS && langs+="$lang "
95 + done
96 + echo "$langs" > po/LINGUAS || die
97 + fi
98 +}
99 +
100 +src_configure() {
101 + filter-flags -ftracer -fomit-frame-pointer
102 + if [[ $(gcc-major-version) -eq 3 ]] ; then
103 + filter-flags -fstack-protector
104 + append-flags -fno-stack-protector
105 + fi
106 +
107 + # Work around eclass
108 + append-flags -UNDEBUG
109 +
110 + if use dedicated || use server ; then
111 + mycmakeargs=(
112 + -DENABLE_CAMPAIGN_SERVER="ON"
113 + -DENABLE_SERVER="ON"
114 + -DSERVER_UID="${PN}"
115 + -DSERVER_GID="${PN}"
116 + -DFIFO_DIR="/run/wesnothd"
117 + )
118 + else
119 + mycmakeargs=(
120 + -DENABLE_CAMPAIGN_SERVER="OFF"
121 + -DENABLE_SERVER="OFF"
122 + )
123 + fi
124 + mycmakeargs+=(
125 + -Wno-dev
126 + -DENABLE_GAME="$(usex !dedicated)"
127 + -DENABLE_DESKTOP_ENTRY="$(usex !dedicated)"
128 + -DENABLE_NLS="$(usex nls)"
129 + -DENABLE_NOTIFICATIONS="$(usex dbus)"
130 + -DENABLE_FRIBIDI="$(usex fribidi)"
131 + -DENABLE_OMP="$(usex openmp)"
132 + -DENABLE_STRICT_COMPILATION="OFF"
133 + -DCMAKE_INSTALL_PREFIX="/usr"
134 + )
135 + cmake-utils_src_configure
136 +}
137 +
138 +src_install() {
139 + DOCS="README.md changelog.md players_changelog.md" cmake-utils_src_install
140 + if use dedicated || use server; then
141 + rmdir "${ED%/}/run/wesnothd" || die
142 + newinitd "${FILESDIR}"/wesnothd.rc-r1 wesnothd
143 + fi
144 +}