]> Frank Brehm's Git Trees - portage.git/commitdiff
gepatchte Version 2.3.9 von games-strategy/warzone2100 dazu
authorFrank Brehm <frank@brehm-online.com>
Thu, 21 Jun 2012 08:17:13 +0000 (10:17 +0200)
committerFrank Brehm <frank@brehm-online.com>
Thu, 21 Jun 2012 08:17:13 +0000 (10:17 +0200)
games-strategy/warzone2100/Manifest [new file with mode: 0644]
games-strategy/warzone2100/metadata.xml [new file with mode: 0644]
games-strategy/warzone2100/warzone2100-2.3.9-r1.ebuild [new file with mode: 0644]

diff --git a/games-strategy/warzone2100/Manifest b/games-strategy/warzone2100/Manifest
new file mode 100644 (file)
index 0000000..08aec41
--- /dev/null
@@ -0,0 +1,4 @@
+DIST warzone2100-2.3.9.tar.gz 62509972 RMD160 b6fb55ea1c86377018c03fa194f7547f5318e2df SHA1 919ba254291a9ce336ff915285a3e86cd644c81e SHA256 9e843bb752c9c4798b8e6ea0edfb625f9aa2f2ba8cbfe42e31ab1c6aa9267adb
+DIST warzone2100-videos-2.2.wz 571937134 RMD160 7350fa47b0dc0db631ad22763039e29bf420a847 SHA1 7ade8edd200afee3e4a675d1a5b739b32e574916 SHA256 142ae905be288cca33357a49f42b884c190e828fc0b1b1773ded5dff774f41a3
+EBUILD warzone2100-2.3.9-r1.ebuild 1985 RMD160 002f7f432c51e65840217060146b3c84597cacbf SHA1 c221cc4d7be8094227f833944280b9afb9aba05f SHA256 1ddab86916318efa76c751b0fbaf7996f8e62e8b4c48b756c7f0f48a28836717
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-strategy/warzone2100/metadata.xml b/games-strategy/warzone2100/metadata.xml
new file mode 100644 (file)
index 0000000..d3c2cc9
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-strategy/warzone2100/warzone2100-2.3.9-r1.ebuild b/games-strategy/warzone2100/warzone2100-2.3.9-r1.ebuild
new file mode 100644 (file)
index 0000000..1be7d65
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/warzone2100/warzone2100-2.3.9.ebuild,v 1.5 2012/05/04 04:51:08 jdhore Exp $
+
+EAPI=2
+inherit autotools versionator games
+
+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.gz
+       videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )"
+
+LICENSE="GPL-2 CCPL-Attribution-ShareAlike-3.0 public-domain"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+# upstream requested debug support
+IUSE="debug nls videos"
+
+RDEPEND="dev-db/sqlite:3
+       >=dev-games/physfs-2[zip]
+       dev-libs/popt
+       media-libs/libogg
+       media-libs/libpng
+       media-libs/libsdl[opengl,video]
+       media-libs/libtheora
+       media-libs/libvorbis
+       media-libs/openal
+       media-libs/sdl-net
+       media-libs/quesoglc
+       virtual/glu
+       virtual/opengl
+       nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+       sys-devel/bison
+       app-arch/zip
+       virtual/pkgconfig
+       nls? ( sys-devel/gettext )"
+RDEPEND="${RDEPEND}
+       media-fonts/dejavu"
+
+src_prepare() {
+       eautoreconf
+}
+
+src_configure() {
+       mv ${S}/po/Makevars ${S}/po/Makevars.origin
+       sed -e 's/^[    ]*#[    ]*top_builddir.*/top_builddir = ../' ${S}/po/Makevars.origin >${S}/po/Makevars
+       egamesconf \
+               --disable-motif \
+               --disable-dependency-tracking \
+               --docdir=/usr/share/doc/${PF} \
+               --localedir=/usr/share/locale \
+               --with-distributor="Gentoo ${PF}" \
+               --with-icondir=/usr/share/pixmaps \
+               --with-applicationdir=/usr/share/applications \
+               $(use_enable debug debug relaxed) \
+               $(use_enable nls)
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die
+       rm -f "${D}"/usr/share/doc/${PF}/COPYING*
+       if use videos ; then
+               insinto "${GAMES_DATADIR}"/${PN}
+               newins "${DISTDIR}"/${VIDEOS_P} sequences.wz || die
+       fi
+       doman doc/warzone2100.6
+       prepgamesdirs
+}