diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-strategy/warzone2100 | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-strategy/warzone2100')
-rw-r--r-- | games-strategy/warzone2100/Manifest | 2 | ||||
-rw-r--r-- | games-strategy/warzone2100/files/warzone2100-3.1.2-openGL.patch | 11 | ||||
-rw-r--r-- | games-strategy/warzone2100/files/warzone2100-3.1.2-pkgconf.patch | 14 | ||||
-rw-r--r-- | games-strategy/warzone2100/metadata.xml | 17 | ||||
-rw-r--r-- | games-strategy/warzone2100/warzone2100-3.1.2.ebuild | 108 |
5 files changed, 152 insertions, 0 deletions
diff --git a/games-strategy/warzone2100/Manifest b/games-strategy/warzone2100/Manifest new file mode 100644 index 000000000000..ebee4ebec7e0 --- /dev/null +++ b/games-strategy/warzone2100/Manifest @@ -0,0 +1,2 @@ +DIST warzone2100-3.1.2.tar.xz 86232636 SHA256 e33b0c89b981acda4ca2b473e105510caaecd0a0c6648ae22262f4b561566f1b SHA512 55046ebb661ccc948b426dd07b116173bce70221a94c55fbe0897b3ad2137e22af6163476a72c4f1a7e00eed3a04f53eb1f2243d64491b48467c67928992ae87 WHIRLPOOL 0d2cc9a09e1118a9afad6fae88682a93fc0622df22f30cedb097cff670329b1a820d04df65538585e92bc0017e3790b1026bf228ad77a8fbb69c423f85d7eb64 +DIST warzone2100-videos-2.2.wz 571937134 SHA256 142ae905be288cca33357a49f42b884c190e828fc0b1b1773ded5dff774f41a3 SHA512 ca1a1af51296afdaca137114821508c5783f077090e665eae0f6df895855f57c43f84434706309e819417f5f35d1c649bd14e96dc9fbbb1252d30a4f9a223cf6 WHIRLPOOL 167e39a896081d75415810cdaa9c00ce3fa4062db1ef2b4f6f164beb9c1a1d3fd34cd474880521b75e4580f4496b246586d9270219e1cfe8e7740d1f7af35ebe diff --git a/games-strategy/warzone2100/files/warzone2100-3.1.2-openGL.patch b/games-strategy/warzone2100/files/warzone2100-3.1.2-openGL.patch new file mode 100644 index 000000000000..568510eb7265 --- /dev/null +++ b/games-strategy/warzone2100/files/warzone2100-3.1.2-openGL.patch @@ -0,0 +1,11 @@ +--- lib/ivis_opengl/screen.cpp.old 2014-10-29 13:45:01.516359163 +0100 ++++ lib/ivis_opengl/screen.cpp 2014-10-29 13:45:42.743968030 +0100 +@@ -261,7 +261,7 @@ + __glewUseProgram = __glewUseProgramObjectARB; + __glewGetShaderiv = __glewGetObjectParameterivARB; + __glewLinkProgram = __glewLinkProgramARB; +- __glewShaderSource = __glewShaderSourceARB; ++ __glewShaderSource = (PFNGLSHADERSOURCEPROC)__glewShaderSourceARB; + __glewUniform1f = __glewUniform1fARB; + __glewUniform1i = __glewUniform1iARB; + __glewUniform4fv = __glewUniform4fvARB; diff --git a/games-strategy/warzone2100/files/warzone2100-3.1.2-pkgconf.patch b/games-strategy/warzone2100/files/warzone2100-3.1.2-pkgconf.patch new file mode 100644 index 000000000000..0149ea776528 --- /dev/null +++ b/games-strategy/warzone2100/files/warzone2100-3.1.2-pkgconf.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/show_bug.cgi?id=428494 + +should be obsolete with >=dev-util/pkgconf-0.8.4 + +--- warzone2100-3.1.0/configure.ac ++++ warzone2100-3.1.0/configure.ac +@@ -89,7 +89,6 @@ + + # Check for pkg-config + PKG_PROG_PKG_CONFIG +-AC_PROG_VERSION_CHECK([pkg-config], [0.9]) + + AC_MSG_CHECKING([for backend]) + AC_ARG_WITH([backend], diff --git a/games-strategy/warzone2100/metadata.xml b/games-strategy/warzone2100/metadata.xml new file mode 100644 index 000000000000..3de7437cdf1e --- /dev/null +++ b/games-strategy/warzone2100/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="qt4">Use qt-gui/qt-opengl for backend rendering instead of sdl</flag> + </use> + <longdescription> + Warzone 2100 offers campaign, multi-player, and single-player + skirmish modes. An extensive tech tree with over 400 different + technologies, combined with the unit design system, allows for + a wide variety of possible units and tactics. + </longdescription> + <upstream> + <remote-id type="sourceforge">warzone2100</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/warzone2100/warzone2100-3.1.2.ebuild b/games-strategy/warzone2100/warzone2100-3.1.2.ebuild new file mode 100644 index 000000000000..b39602836c03 --- /dev/null +++ b/games-strategy/warzone2100/warzone2100-3.1.2.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools toolchain-funcs eutils versionator gnome2-utils 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.xz + videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )" + +LICENSE="GPL-2 CC-BY-SA-3.0 public-domain" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +# upstream requested debug support +IUSE="debug nls qt4 videos" + +# TODO: unbundle miniupnpc and quesoglc +RDEPEND=">=dev-games/physfs-2[zip] + dev-libs/fribidi + media-libs/fontconfig + media-libs/freetype:2 + media-libs/glew + 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 + dev-qt/qtcore:4 + dev-qt/qtscript:4 + nls? ( virtual/libintl ) + qt4? ( + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + ) + !qt4? ( media-libs/libsdl[opengl,video] )" +DEPEND="${RDEPEND} + app-arch/zip + virtual/pkgconfig + nls? ( sys-devel/gettext )" +RDEPEND="${RDEPEND} + media-fonts/dejavu" + +src_prepare() { + sed -i \ + -e 's/#top_builddir/top_builddir/' \ + po/Makevars || die + + epatch "${FILESDIR}"/${P}-pkgconf.patch \ + "${FILESDIR}"/${P}-openGL.patch + + eautoreconf +} + +src_configure() { + egamesconf \ + --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 qt4 "qt" "sdl") +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + rm -f "${D}"/usr/share/doc/${PF}/COPYING* + if use videos ; then + insinto "${GAMES_DATADIR}"/${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" + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |