summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-04-26 11:44:01 +0200
committerLars Wendler <polynomial-c@gentoo.org>2017-04-26 11:44:46 +0200
commit8e9e7ac59a77f1f9516b3d7b2c8859fa660f37bb (patch)
treed2386b9fa3681f31195537941163f29900f49d1e /games-strategy
parentdev-python/setuptools: version bump to 35.0.1 (diff)
downloadgentoo-8e9e7ac59a77f1f9516b3d7b2c8859fa660f37bb.tar.gz
gentoo-8e9e7ac59a77f1f9516b3d7b2c8859fa660f37bb.tar.bz2
gentoo-8e9e7ac59a77f1f9516b3d7b2c8859fa660f37bb.zip
games-strategy/warzone2100: Bump to version 3.2.3
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/warzone2100/Manifest2
-rw-r--r--games-strategy/warzone2100/warzone2100-3.2.3.ebuild118
2 files changed, 120 insertions, 0 deletions
diff --git a/games-strategy/warzone2100/Manifest b/games-strategy/warzone2100/Manifest
index e7a62d968df1..a787b42e0e47 100644
--- a/games-strategy/warzone2100/Manifest
+++ b/games-strategy/warzone2100/Manifest
@@ -3,4 +3,6 @@ DIST warzone2100-3.2.1-openssl110.patch 1460 SHA256 bef16d511d8bb752b82e0e1debe6
DIST warzone2100-3.2.1-openssl110_v2.patch 2984 SHA256 639b5be0316bd187f804dc708d1fbcfbcae510b09b3d5af5fa2a8f8ef8b84d6f SHA512 557cfc27a6ac26302c4064d8b8d3ce0c94167c1ea758d6bf574d9a4e8d1c7e002ab93e0e34b5a85cb386313d871de1d77a3a7fd74d35aae057fe1155f510096b WHIRLPOOL 1aea245db0990f7f2ab675713869d657bd8e491e40f6651f0da9f5ca0a55fd5a76ddae62dfa73a6a37368efad6d3162fc712e955a1a091ecc1afe43fbb2aa891
DIST warzone2100-3.2.1.tar.xz 80759620 SHA256 0f66b76c50c598abcc895134bd49aab5dd46dcf8135645f2505e93077402a6d9 SHA512 51338f83cc57bdbd825fd53e776d51192e19d9f4a6f2481ba7f22cc5936203f1a593755771dff844b4186fae85c31eea00489cd573d64288570c2b39db575e23 WHIRLPOOL a93e0f2529e6ddc7a39267e0438ab696aa70d268306cbc3dbb5e950f1f4b51e5487760fd24ece1d7feb510d04522a64d9bd76738a1b9f24cda6c5a1c062f6072
DIST warzone2100-3.2.2.tar.xz 81296832 SHA256 af5a8dfe9e9df3505ef2543e4e62afb1f61a4ee4cc903f8ff7785f3c79779d18 SHA512 65fdca926c4d3e0708ba79df99e205ec826ffcd935b8263d28d43c6e4cd0726c8c554e64a295a227e24d0e59abb61073bdd8a7e5993f48e2eeb8cf1c289cf4ab WHIRLPOOL ce01306cbc5185a6876ce1c5563e8e3d35c196adcab2c8a2db8b32e7f2d46845f858fd4a00e420a111cae8abe56a58cdb8d8d1fcb43b83ae3edb8a7712cfbd88
+DIST warzone2100-3.2.3-qt_compile_fix.patch 680 SHA256 59529cb62e5985ed9934fdf3621a98ecf2b3b54d4bd7d0793b5317156934712f SHA512 766698c25c02b4254424efdafb8aa7b37360c3c05d3cd2d6c7f9127cbdd6a25840f98e8e3aadd5d6af494b4632584e564214c1f20c0bd74eb637da305552e067 WHIRLPOOL 6a556afbb9151b9ede55d00e92ab168539ff5f1f7f87f88f69817f46ba4cfb59e961f39504c21abae90009c39c3398b26c0e9fb5c2cb2c082d9254bb7bae04d7
+DIST warzone2100-3.2.3.tar.xz 81314060 SHA256 fcab9e860203e7dacda6ee60384da490a9d44aeafc07aa31ff25f9c548be7582 SHA512 4b1bc0a0bb50a8b4726a2762a922ee233b92f9835e38bbab80c159a9cb301df7434a73ba5acfb17404031467c02a9b3480d6a0d44906d70896311b3468141746 WHIRLPOOL 65d49d855c9efb35113ac181101849f3ba5dacb0ed9ed8e187fdf79a9f01ac41802377ae941232555fdfbd2f4ed9ff29e77a4d61019595e0cee1d36f04c37bf5
DIST warzone2100-videos-2.2.wz 571937134 SHA256 142ae905be288cca33357a49f42b884c190e828fc0b1b1773ded5dff774f41a3 SHA512 ca1a1af51296afdaca137114821508c5783f077090e665eae0f6df895855f57c43f84434706309e819417f5f35d1c649bd14e96dc9fbbb1252d30a4f9a223cf6 WHIRLPOOL 167e39a896081d75415810cdaa9c00ce3fa4062db1ef2b4f6f164beb9c1a1d3fd34cd474880521b75e4580f4496b246586d9270219e1cfe8e7740d1f7af35ebe
diff --git a/games-strategy/warzone2100/warzone2100-3.2.3.ebuild b/games-strategy/warzone2100/warzone2100-3.2.3.ebuild
new file mode 100644
index 000000000000..6a0d565062fd
--- /dev/null
+++ b/games-strategy/warzone2100/warzone2100-3.2.3.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools toolchain-funcs eutils versionator gnome2-utils
+
+MY_PV=$(get_version_component_range -2)
+VIDEOS_PV=2.2
+VIDEOS_P=${PN}-videos-${VIDEOS_PV}.wz
+DESCRIPTION="3D real-time strategy game"
+HOMEPAGE="http://wz2100.net/"
+SRC_URI="mirror://sourceforge/warzone2100/${P}.tar.xz
+ videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )"
+
+SRC_URI+=" https://github.com/Warzone2100/warzone2100/commit/ef37bca38289f4f79c6533acd93ed326858a3f68.patch -> ${PN}-3.2.3-qt_compile_fix.patch"
+
+LICENSE="GPL-2+ CC-BY-SA-3.0 public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+# upstream requested debug support
+IUSE="debug nls sdl videos"
+
+# TODO: unbundle miniupnpc and quesoglc
+# quesoglc-0.7.2 is buggy: http://developer.wz2100.net/ticket/2828
+CDEPEND="
+ >=dev-games/physfs-2[zip]
+ dev-libs/openssl:0=
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtscript:5
+ dev-qt/qtwidgets:5
+ media-libs/freetype:2
+ media-libs/glew:=
+ media-libs/harfbuzz
+ media-libs/libogg
+ media-libs/libpng:0
+ media-libs/libtheora
+ media-libs/libvorbis
+ media-libs/openal
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXrandr
+ nls? ( virtual/libintl )
+ !sdl? (
+ dev-qt/qtopengl:5
+ dev-qt/qtx11extras:5
+ )
+ sdl? ( media-libs/libsdl2[opengl,video,X] )
+"
+DEPEND="
+ ${CDEPEND}
+ app-arch/zip
+ dev-libs/fribidi
+ media-libs/fontconfig
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+RDEPEND="
+ ${CDEPEND}
+ media-fonts/dejavu
+"
+
+src_prepare() {
+ default
+
+ # https://developer.wz2100.net/ticket/4580
+ eapply "${DISTDIR}/${P}-qt_compile_fix.patch"
+
+ sed -i -e 's/#top_builddir/top_builddir/' po/Makevars || die
+ sed '/appdata\.xml/d' -i icons/Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ myeconfargs=(
+ --docdir=/usr/share/doc/${PF}
+ --localedir=/usr/share/locale
+ --with-distributor="Gentoo ${PF}"
+ --with-icondir=/usr/share/icons/hicolor/128x128/apps
+ --with-applicationdir=/usr/share/applications
+ $(use_enable debug debug relaxed)
+ $(use_enable nls)
+ --with-backend=$(usex sdl "sdl" "qt")
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ default
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING*
+ if use videos ; then
+ insinto /usr/share/${PN}
+ newins "${DISTDIR}"/${VIDEOS_P} sequences.wz
+ fi
+ doman doc/warzone2100.6
+ dodoc doc/quickstartguide.pdf
+
+ elog "If you are using opensource drivers you should consider installing: "
+ elog " media-libs/libtxc_dxtn"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}