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