summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-08-09 20:44:51 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-08-09 20:44:51 +0000
commitc65fa702e3c99762e286b92cbff928abf1ce3596 (patch)
treeaad90f9ebe8e68144287652bcf5127ac88857920
parentVersion bump (diff)
downloadgentoo-2-c65fa702e3c99762e286b92cbff928abf1ce3596.tar.gz
gentoo-2-c65fa702e3c99762e286b92cbff928abf1ce3596.tar.bz2
gentoo-2-c65fa702e3c99762e286b92cbff928abf1ce3596.zip
initial commit
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
-rw-r--r--games-strategy/dunelegacy/ChangeLog10
-rw-r--r--games-strategy/dunelegacy/Manifest5
-rw-r--r--games-strategy/dunelegacy/dunelegacy-0.96.2.ebuild50
-rw-r--r--games-strategy/dunelegacy/files/dunelegacy-0.96.2-build.patch78
-rw-r--r--games-strategy/dunelegacy/metadata.xml26
5 files changed, 169 insertions, 0 deletions
diff --git a/games-strategy/dunelegacy/ChangeLog b/games-strategy/dunelegacy/ChangeLog
new file mode 100644
index 000000000000..bd1d956c9fd1
--- /dev/null
+++ b/games-strategy/dunelegacy/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-strategy/dunelegacy
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dunelegacy/ChangeLog,v 1.1 2012/08/09 20:44:51 hasufell Exp $
+
+*dunelegacy-0.96.2 (09 Aug 2012)
+
+ 09 Aug 2012; Julian Ospald <hasufell@gentoo.org> +dunelegacy-0.96.2.ebuild,
+ +files/dunelegacy-0.96.2-build.patch, +metadata.xml:
+ initial commit
+
diff --git a/games-strategy/dunelegacy/Manifest b/games-strategy/dunelegacy/Manifest
new file mode 100644
index 000000000000..426335c42fc4
--- /dev/null
+++ b/games-strategy/dunelegacy/Manifest
@@ -0,0 +1,5 @@
+AUX dunelegacy-0.96.2-build.patch 2107 SHA256 ada1b355fadef7e63097966b1672f8184d3914175087a17f29ad00e8d3042c76 SHA512 1c0f14e1117c18d3019fe16fd2ae7ec9bac9d13c5db176f4227a145da8007f9ac613ab7e93269e45bc08a1ac6f56fd8894283b766fd2732ac83ad53a75d865de WHIRLPOOL b0a8fa37d984a96be767dfb8d232c013cee3ed28e329499daa7cf1236b998acb4464e1129f99a16981aee731743da794f8509151968f43b2372f696aa8c79006
+DIST dunelegacy-0.96.2-src.tar.bz2 1437524 SHA256 bdf27bdaa001f37db52ab4747bd563b48334db5df6e6e8314de85a0340649173 SHA512 49af1d74ea02c051b1c03393d1dc796eb1a81b402fa8a74643c308986a88ef25fe13dafded595f4144c8a83bf8fd51ad13c85c5c926fa13c436ecb08d6d9d7c1 WHIRLPOOL 47ca519e9de003c373a88fea22b198921f2ffebfaa4b068963fe68c3e06bf2370dfbf553e13f910a8c1cd084d16b5abc6369b93397220e377dcf840f544c835d
+EBUILD dunelegacy-0.96.2.ebuild 928 SHA256 a01ffd5e03a5acfb9f7c0c538ea52a68f2dcb5d39706331da1f76b7000e0798f SHA512 286319a938b6cb99b1688d6c5ee2afaa592f603a32a06bbba6b24b9d53b566925cd7530cd26a1dd763d254870c2bbd65c5eb0baa27ffcaa64c0ecbfd6a711aff WHIRLPOOL df1037425ceefdabeb8de4292dd536e6353a94e9b3faf5b5d2680f95fcc24f6c996d001dd3d5ce66113f81b65fdbce7180dd5b3b08d31cc4634533e540148a33
+MISC ChangeLog 311 SHA256 ded47ed6acd92baa082a567938f9dbb86adc871566bbe5c932b4a02445f9fb7b SHA512 f0cc0ff695a2b92fa11281366e32a9d06c2ec5ae3f2e9696625c2517c006c49da2b0cc22e8b40aaac70caa67e50a225b24f72a2d8cf7064850806f4a38078fb6 WHIRLPOOL 1eaf4cd39025b282eaaa62082800cd525f7792262f93bb8dc38f98bd8c9a9cd4abc12da17b2aac9560de85918b4d5c21042927901f6c88788c45465ba87c7eee
+MISC metadata.xml 1055 SHA256 4d31122e40133370f53dc4e1a7a3f2fea09e4afaaee1ffb8f44018f4976bc197 SHA512 cfa5777e71eed1527363d363d6c69cb35626448daa8c9bcd162cf3cbf5567386270080a98ab09a2001b36e9164023bc6063e06a94d6f51d692ce5e5f405d1380 WHIRLPOOL dbd1534f2f9053e251dc83be084d5cf9f79f0b4d5511d82b548f0c366c82d0f387735497b778118a0f87c15c1261db610f9d553c94025fe6f6b10e9bc11724d4
diff --git a/games-strategy/dunelegacy/dunelegacy-0.96.2.ebuild b/games-strategy/dunelegacy/dunelegacy-0.96.2.ebuild
new file mode 100644
index 000000000000..8ead99cc81ef
--- /dev/null
+++ b/games-strategy/dunelegacy/dunelegacy-0.96.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dunelegacy/dunelegacy-0.96.2.ebuild,v 1.1 2012/08/09 20:44:51 hasufell Exp $
+
+EAPI=4
+inherit autotools eutils gnome2-utils games
+
+DESCRIPTION="Updated clone of Westood Studios' Dune2"
+HOMEPAGE="http://dunelegacy.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# exits on start without libsdl[alsa]
+RDEPEND="media-libs/libsdl[X,alsa,audio,video]
+ media-libs/sdl-mixer[midi,mp3,vorbis]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ eautoreconf
+}
+
+src_install() {
+ default
+
+ doicon -s scalable ${PN}.svg
+ doicon -s 48 ${PN}.png
+ make_desktop_entry ${PN} "Dune Legacy"
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-strategy/dunelegacy/files/dunelegacy-0.96.2-build.patch b/games-strategy/dunelegacy/files/dunelegacy-0.96.2-build.patch
new file mode 100644
index 000000000000..5d37d79d3f01
--- /dev/null
+++ b/games-strategy/dunelegacy/files/dunelegacy-0.96.2-build.patch
@@ -0,0 +1,78 @@
+Author: hasufell <hasufell@gentoo.org>
+Date: Thu Aug 9 18:57:40 2012 +0200
+
+ respect flags
+ use pkg-config
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -16,37 +16,11 @@
+
+ AC_SUBST(dunelegacydatadir)
+
+-dnl Some flags for gcc
+-CXXFLAGS="-O3 -mno-fused-madd -pipe -pedantic -Wall -Wextra -Wno-unused-parameter"
+-dnl Additional flags: -Wconversion -Wno-sign-conversion
+-
+-case "$target_cpu" in
+-i*86) CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse";;
+-esac
+-
+-AC_ARG_ENABLE([debug],
+- [AS_HELP_STRING([--enable-debug],
+- [compile with debug information @<:@default=disabled@:>@])],
+- [],
+- [])
+-
+-if test "$enable_debug" = "yes" ; then
+- CXXFLAGS="$CXXFLAGS -g"
+-fi
+-
+ dnl Check for SDL library
+ SDL_VERSION=1.2.0
+-AM_PATH_SDL($SDL_VERSION, : , AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
+-CFLAGS="$CFLAGS $SDL_CFLAGS"
+-CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
+-LIBS="$LIBS $SDL_LIBS"
+-
+-dnl Check for SDL_mixer library.
+-AC_CHECK_LIB(SDL_mixer,
+- Mix_OpenAudio,
+- LIBS="$LIBS -lSDL_mixer",
+- AC_MSG_ERROR([*** SDL_mixer library not found!])
+-)
++PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0 SDL_mixer])
++AM_CFLAGS="$SDL_CFLAGS"
++AM_CXXFLAGS="$SDL_CFLAGS"
+
+ dnl enet defines
+ AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)])
+@@ -71,4 +45,9 @@
+ dunelegacydatadir='.'
+ fi
+
++AC_SUBST([AM_CFLAGS])
++AC_SUBST([AM_CXXFLAGS])
++AC_SUBST([SDL_CFLAGS])
++AC_SUBST([SDL_LIBS])
++
+ AC_OUTPUT(Makefile src/Makefile tests/Makefile)
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -194,4 +194,6 @@ dunelegacy_SOURCES = AStarSearch.cpp\
+ units/Trooper.cpp\
+ $(NULL)
+
++dunelegacy_LDADD = @SDL_LIBS@
++
+ AM_CPPFLAGS = -DDUNELEGACY_DATADIR='"$(dunelegacydatadir)"' -I$(top_srcdir)/include
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -54,5 +54,6 @@
+
+
+
+-runtests_CXXFLAGS = $(CPPUNIT_CFLAGS) -DTESTSRC=\"$(srcdir)\" -I$(top_srcdir)/include
++runtests_CXXFLAGS = $(CPPUNIT_CFLAGS) -DTESTSRC=\"$(srcdir)\" -I$(top_srcdir)/include @SDL_CFLAGS@
++runtests_LDADD = @SDL_LIBS@
+ runtests_LDFLAGS = $(CPPUNIT_LIBS) -lcppunit
diff --git a/games-strategy/dunelegacy/metadata.xml b/games-strategy/dunelegacy/metadata.xml
new file mode 100644
index 000000000000..8b6132525f37
--- /dev/null
+++ b/games-strategy/dunelegacy/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>http://sourceforge.net/apps/mediawiki/dunelegacy/index.php?title=Development/Reporting_Bugs</bugs-to>
+ </upstream>
+ <longdescription lang="en">
+ Dune Legacy is an effort by a handful of developers to revitalize
+ the first-ever real-time strategy game. The original game was the
+ basis for the hugely successful Command and Conquer series, and the
+ gameplay has been replicated an extended to a wide variety of
+ storylines and series.
+
+ Lead one of three interplanetary houses, Atreides, Harkonnen or
+ Ordos, in an attempt to harvest the largest amount of spice from
+ the sand dunes. Exchange your spice stockpiles for credits through
+ refinement and build an army capable of thwarting attempts of the
+ other houses to stop your harvesting!
+ </longdescription>
+</pkgmetadata>
+