summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-09-30 12:13:05 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-09-30 12:13:05 +0000
commit2af1a7da673f4798c3eaffd676243244d2b016b0 (patch)
tree73375cbc69b3c799cd9848a6b9d65697965ea93e /games-strategy
parentVersion bump, thanks to Slepnoga. Drop old (diff)
downloadgentoo-2-2af1a7da673f4798c3eaffd676243244d2b016b0.tar.gz
gentoo-2-2af1a7da673f4798c3eaffd676243244d2b016b0.tar.bz2
gentoo-2-2af1a7da673f4798c3eaffd676243244d2b016b0.zip
initial import wrt #388441 based on Samuel Bauers ebuilds
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/liquidwar6/ChangeLog12
-rw-r--r--games-strategy/liquidwar6/Manifest8
-rw-r--r--games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-ldconfig.patch18
-rw-r--r--games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-libpng-1.6.patch43
-rw-r--r--games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-paths.patch56
-rw-r--r--games-strategy/liquidwar6/liquidwar6-0.0.13_beta.ebuild100
-rw-r--r--games-strategy/liquidwar6/metadata.xml35
7 files changed, 272 insertions, 0 deletions
diff --git a/games-strategy/liquidwar6/ChangeLog b/games-strategy/liquidwar6/ChangeLog
new file mode 100644
index 000000000000..b8d4c5ef4b3c
--- /dev/null
+++ b/games-strategy/liquidwar6/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for games-strategy/liquidwar6
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar6/ChangeLog,v 1.1 2013/09/30 12:13:05 hasufell Exp $
+
+*liquidwar6-0.0.13_beta (30 Sep 2013)
+
+ 30 Sep 2013; Julian Ospald <hasufell@gentoo.org>
+ +liquidwar6-0.0.13_beta.ebuild, +files/liquidwar6-0.0.13_beta-ldconfig.patch,
+ +files/liquidwar6-0.0.13_beta-libpng-1.6.patch,
+ +files/liquidwar6-0.0.13_beta-paths.patch, +metadata.xml:
+ initial import wrt #388441 based on Samuel Bauers ebuilds
+
diff --git a/games-strategy/liquidwar6/Manifest b/games-strategy/liquidwar6/Manifest
new file mode 100644
index 000000000000..d242f9d46cf6
--- /dev/null
+++ b/games-strategy/liquidwar6/Manifest
@@ -0,0 +1,8 @@
+AUX liquidwar6-0.0.13_beta-ldconfig.patch 793 SHA256 8661d7a682d191bc56f417abc5ac7e1473db79c883ad0dcea0552dc572615164 SHA512 39bf164d7f3d6f4df8d656b4a93d3fe6d36234520ebe6ae71af827a71e14beb08b5043810b9967995ae69fa65b1b932bb6a8b36e4dbc22b1c1163fb7f60cc9ca WHIRLPOOL 575b4751d99042c321c5c4f6bef21b463854fd1163eabc72f3b8b0a3324fd33e8da13ee194826e3fc78b4ec278e9265779dd88dbc2080d05329d11d22034efa0
+AUX liquidwar6-0.0.13_beta-libpng-1.6.patch 3063 SHA256 3374fd86098a05e2b8ca80e5a5790bdd31627aacb02d17e630adf4a5bce98fc8 SHA512 880734bc20f9d276369f1f889ce4d6dc7bafadac3b6ba4e47af83b299bda33c2bebb5b1bf8a38f3ca2fc474d7a059110d6fce8a0dbefe2fa38c9a85c7060abd5 WHIRLPOOL a1d1c95c6081b2fbfb1692ef05860a7c842942ad892ce186b95bd4c6064537a4d3d4598420f0a2825f9a0bab0d57e7062051ca1e7e6edb4bc61849010c9ee75f
+AUX liquidwar6-0.0.13_beta-paths.patch 1667 SHA256 07333310c21d2b765c20672b20e59f3ccb11b2d8a7f6099aea9e7d916ed858ef SHA512 d6c488c565da6f8a158748d8223a59af3e0211b682b493291c96e04266b316db8cf4f7b58362a5430279159bd3d584372ebdbd596241d68fde28f8d6fc841198 WHIRLPOOL 49114eec4954487653c4191a52e7283bf6658a224f17c6db05617a6a8ddbc615f4a9d074a601e12248234aed65e45764798901d05ca819f84d9b1320f4a0fdfc
+DIST liquidwar6-0.0.13beta.tar.gz 25544158 SHA256 a27332c451460617e2833aaeaf81ed153a7270f87b1c322814c049b43e3f4eca SHA512 505067665fc48d5044f887a7a95a449569bb8c112f9ac975623d22ede8692afa6fc949b15395175a39395161616fedb0b429d737aa4d115e3b392d3e2b51eff6 WHIRLPOOL 341a4544a215a11322bbb478ace8a6844882340b1c8a3c0a0d6ab43b03766897e29a2d00dce14dd9a1f32b39a3178052526bb934789a4848170aa60264c769b6
+DIST liquidwar6-extra-maps-0.0.13beta.tar.gz 16066532 SHA256 f6bab8b5746f02f50ef2800a94a86eedb6e9cbf919d60921e62a1f965511d2dd SHA512 0f3b742e498c3f2e8354fb53f057d0fed0af3b1edfef41a7688ce7871c229908b2c1ca2f06556a803e7ecb491a6592282ed6291a1b271263a9dc3e634d481fa2 WHIRLPOOL dd7b655dde9066a2d16072140f132e34d58d3fc444cd2f31355af5e335a84d95805f879dae2fc6f8c7624a409de7e31be4c3bd80695e5a1aa70f4cf9cfb87b02
+EBUILD liquidwar6-0.0.13_beta.ebuild 2258 SHA256 47e305bde076e318ef6887c4c6abf662686262c59fae999fa9d0072a8fd21791 SHA512 1dd8176eca1dc6d311a20350ebf32260036505df4b4d4fb4175f7052ca9d7f5969cc4be9dafa3ddec001a5dd8790ce719313fe16e4c2d4075b365b1f4ec077ca WHIRLPOOL 9641e2c59ff90f29b8b8cbb2052f1e99100f2e34a3320fa7539ac224081c52b1aaf3480bd979088ed577c46fbd2e3b983a49e68ddeccb7647e0be67f73c8c11d
+MISC ChangeLog 467 SHA256 e0a9d6b9998a1732cf968106d79e5e041f6739abde2eba18fc4cd02443574ea1 SHA512 b0200130e56d92f7ad5b027a98b5df3251eaba43d6750f8a454944f45337d61803cc810e3ffc437460d23d721ab70b24a4fe799cf62630abac1607e4b5ad8a7b WHIRLPOOL 9e36f79d7f7fa56fdabcde2442450a0361f3a0e0cf084e0b15f5eb7a84abc1c99daab441c3de8c308925df1898afb0a2e82c1ca29c57ae6b13bef9e343a18d7e
+MISC metadata.xml 1465 SHA256 0b2dc9272dfd3c15aaf879883b55143c4ed9e1f7ba481c335723b90990244091 SHA512 8fd104166a6b9e14de633396ec74e0bb4b21f61f80bc6e543f50239926cbaddf25a454a431af9f8eb50dbd0949ed69e932ead22c1b54eb250493ad78a042fa09 WHIRLPOOL aa339f49ec1d5f91401a3e4cdb196e6e080d3ffb42b0471314bb8f3c8069560ce3e78cd45629d3a79c71fc0088e0a8e11f32ad1a9c3084e70e82dd0fad57be86
diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-ldconfig.patch b/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-ldconfig.patch
new file mode 100644
index 000000000000..a9cbff467097
--- /dev/null
+++ b/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-ldconfig.patch
@@ -0,0 +1,18 @@
+commit b69515e24f9ea066a7e393fa7b364e0701a8f58c
+Author: hasufell <hasufell@gentoo.org>
+Date: Mon Sep 30 00:11:04 2013 +0200
+
+ don't run ldconfig
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index da78107..a0961b8 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -55,7 +55,6 @@ EXTRA_DIST = scriptpo.c indent.sh scriptpo-update.sh stamp.sh clean.sh dtou.sh u
+ SUBDIRS = lib
+
+ install-exec-local:
+- if which id && which ldconfig && test `id -u` -eq 0 && test "$(prefix)" != "/usr"; then ldconfig; fi # Run ldconfig automatically if we're root
+ if test -x $(DESTDIR)$(bindir)/liquidwar6; then mv $(DESTDIR)$(bindir)/liquidwar6 $(DESTDIR)$(bindir)/@PACKAGE_TARNAME@-@PACKAGE_VERSION@; ln -s @PACKAGE_TARNAME@-@PACKAGE_VERSION@ $(DESTDIR)$(bindir)/liquidwar6; fi
+
+ uninstall-local:
diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-libpng-1.6.patch b/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-libpng-1.6.patch
new file mode 100644
index 000000000000..e5dec5d87610
--- /dev/null
+++ b/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-libpng-1.6.patch
@@ -0,0 +1,43 @@
+commit 0246d8e24c49e2ed12c183f0cde08d2e16b4c299
+Author: hasufell <hasufell@gentoo.org>
+Date: Mon Sep 30 00:10:54 2013 +0200
+
+ allow building with libpng-1.6
+
+diff --git a/configure.ac b/configure.ac
+index 2a8cba9..334b96e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -47,7 +47,7 @@ LW6_CODENAME="Blackbeard"
+ AC_SUBST(LW6_CODENAME)
+
+ dnl Headers, some are optional
+-AC_CHECK_HEADERS(arpa/inet.h ctype.h dirent.h errno.h execinfo.h expat.h fcntl.h gmp.h GL/gl.h GL/glu.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h SDL/SDL.h SDL/SDL_image.h SDL/SDL_mixer.h SDL/SDL_ttf.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h)
++AC_CHECK_HEADERS(arpa/inet.h ctype.h dirent.h errno.h execinfo.h expat.h fcntl.h gmp.h GL/gl.h GL/glu.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h libpng16/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h SDL/SDL.h SDL/SDL_image.h SDL/SDL_mixer.h SDL/SDL_ttf.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h)
+
+ AM_MISSING_PROG(PERL, perl, ${missing_dir})
+ AM_MISSING_PROG(AWK, awk, ${missing_dir})
+@@ -319,7 +319,8 @@ AC_CHECK_HEADER(libpng12/png.h, HAVE_LIBPNG12_PNG_H=1)
+ AC_CHECK_HEADER(libpng13/png.h, HAVE_LIBPNG13_PNG_H=1)
+ AC_CHECK_HEADER(libpng14/png.h, HAVE_LIBPNG14_PNG_H=1)
+ AC_CHECK_HEADER(libpng15/png.h, HAVE_LIBPNG15_PNG_H=1)
+-if test x${HAVE_LIBPNG12_PNG_H} = x1 || test x${HAVE_LIBPNG13_PNG_H} = x1 || test x${HAVE_LIBPNG14_PNG_H} = x1 || test x${HAVE_LIBPNG15_PNG_H} = x1; then
++AC_CHECK_HEADER(libpng16/png.h, HAVE_LIBPNG16_PNG_H=1)
++if test x${HAVE_LIBPNG12_PNG_H} = x1 || test x${HAVE_LIBPNG13_PNG_H} = x1 || test x${HAVE_LIBPNG14_PNG_H} = x1 || test x${HAVE_LIBPNG15_PNG_H} = x1 || test x${HAVE_LIBPNG16_PNG_H} = x1; then
+ if test x${HAVE_LIBPNG12_PNG_H} = x1; then
+ LIBPNG_1X_H=libpng12/png.h
+ fi
+@@ -332,9 +333,12 @@ if test x${HAVE_LIBPNG12_PNG_H} = x1 || test x${HAVE_LIBPNG13_PNG_H} = x1 || tes
+ if test x${HAVE_LIBPNG15_PNG_H} = x1; then
+ LIBPNG_1X_H=libpng15/png.h
+ fi
++ if test x${HAVE_LIBPNG16_PNG_H} = x1; then
++ LIBPNG_1X_H=libpng16/png.h
++ fi
+ else
+ AC_MSG_ERROR([
+-*** Liquid War 6 needs libpng 1.2 1.3 1.4 or 1.5 (http://www.libpng.org/pub/png/libpng.html)
++*** Liquid War 6 needs libpng 1.2 1.3 1.4 1.5 or 1.6 (http://www.libpng.org/pub/png/libpng.html)
+ ])
+ fi
+ AC_SUBST(LIBPNG_1X_H)
diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-paths.patch b/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-paths.patch
new file mode 100644
index 000000000000..2ae15b80dfb4
--- /dev/null
+++ b/games-strategy/liquidwar6/files/liquidwar6-0.0.13_beta-paths.patch
@@ -0,0 +1,56 @@
+commit e204ce228f5aafc7efd2c09fb4b0bfefe9708dfe
+Author: hasufell <hasufell@gentoo.org>
+Date: Mon Sep 30 00:19:48 2013 +0200
+
+ make paths modifiable
+
+diff --git a/configure.ac b/configure.ac
+index 334b96e..d846210 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -698,6 +698,20 @@ else
+ fi
+ AC_SUBST(VALGRIND_CFLAGS)
+
++AC_ARG_WITH([iconsdir],
++ [AS_HELP_STRING([--with-iconsdir=DIR],
++ [path where icons get installed (default: $datadir/icons/hicolor/48x48/apps)])],
++ [ICONSDIR="$withval"],
++ [ICONSDIR='$(datadir)/pixmaps'])
++AC_SUBST(ICONSDIR)
++
++AC_ARG_WITH([desktopdir],
++ [AS_HELP_STRING([--with-desktopdir=DIR],
++ [path where desktop files get installed (default: $datadir/applications)])],
++ [DESKTOPDIR="$withval"],
++ [DESKTOPDIR='$(datadir)/applications'])
++AC_SUBST(DESKTOPDIR)
++
+ if test x${USE_INCLUDED_LIBINTL} = xyes ; then
+ LW6_LIBINTL_LDFLAGS=
+ LW6_LIBINTL_LDADD=${LTLIBINTL}
+diff --git a/data/icon/Makefile.am b/data/icon/Makefile.am
+index b4d5ae4..f9b738c 100644
+--- a/data/icon/Makefile.am
++++ b/data/icon/Makefile.am
+@@ -19,6 +19,6 @@
+ # Contact author : ufoot@ufoot.org
+
+ pkgdata_DATA = liquidwar6.png liquidwar6.xpm
+-pkgdatadir = $(datadir)/pixmaps
++pkgdatadir = $(ICONSDIR)
+ EXTRA_DIST = $(pkgdata_DATA) liquidwar6.ico liquidwar6.icns
+
+diff --git a/pkg/Makefile.am b/pkg/Makefile.am
+index 37f73ee..1980369 100644
+--- a/pkg/Makefile.am
++++ b/pkg/Makefile.am
+@@ -19,7 +19,7 @@
+ # Contact author : ufoot@ufoot.org
+
+ pkgdata_DATA = liquidwar6.desktop
+-pkgdatadir = $(datadir)/applications
++pkgdatadir = $(DESKTOPDIR)
+ EXTRA_DIST = $(pkgdata_DATA) liquidwar6.spec liquidwar6d
+
+ distclean-local:
diff --git a/games-strategy/liquidwar6/liquidwar6-0.0.13_beta.ebuild b/games-strategy/liquidwar6/liquidwar6-0.0.13_beta.ebuild
new file mode 100644
index 000000000000..23d57dd44eac
--- /dev/null
+++ b/games-strategy/liquidwar6/liquidwar6-0.0.13_beta.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar6/liquidwar6-0.0.13_beta.ebuild,v 1.1 2013/09/30 12:13:05 hasufell Exp $
+
+EAPI=5
+
+inherit autotools eutils toolchain-funcs games
+
+MY_PV=${PV/_beta/beta}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Unique multiplayer wargame between liquids"
+HOMEPAGE="http://www.gnu.org/software/liquidwar6/"
+SRC_URI="http://www.ufoot.org/download/liquidwar/v6/${MY_PV}/${MY_P}.tar.gz
+ maps? ( http://www.ufoot.org/download/liquidwar/v6/${MY_PV}/${PN}-extra-maps-${MY_PV}.tar.gz )"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gtk +maps nls +ogg openmp readline"
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/expat
+ dev-scheme/guile
+ media-libs/freetype:2
+ media-libs/libpng:0
+ media-libs/libsdl[X,opengl,video]
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-ttf
+ net-misc/curl
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg
+ virtual/opengl
+ gtk? ( x11-libs/gtk+:2 )
+ nls? ( virtual/libintl
+ virtual/libiconv )
+ ogg? (
+ media-libs/libsdl[X,audio,opengl,video]
+ media-libs/sdl-mixer[vorbis]
+ )
+ readline? ( sys-libs/ncurses
+ sys-libs/readline )"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${MY_P}
+S_MAPS=${WORKDIR}/${PN}-extra-maps-${MY_PV}
+
+pkg_setup() {
+ if use openmp; then
+ if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp ; then
+ ewarn "OpenMP is not available in your current selected gcc"
+ die "need openmp capable gcc"
+ fi
+ fi
+ games_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libpng-1.6.patch \
+ "${FILESDIR}"/${P}-ldconfig.patch \
+ "${FILESDIR}"/${P}-paths.patch
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ $(use_enable nls) \
+ --enable-mod-gl \
+ $(use_enable gtk) \
+ $(use_enable openmp) \
+ $(use_enable ogg mod-ogg) \
+ $(use_enable !ogg silent) \
+ $(use_enable readline console) \
+ --disable-static \
+ --mandir=/usr/share/man \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-iconsdir=/usr/share/pixmaps \
+ --with-desktopdir=/usr/share/applications
+
+ if use maps; then
+ cd "${S_MAPS}" || die
+ egamesconf
+ fi
+}
+
+src_compile() {
+ default
+ use doc && emake html
+ use maps && emake -C "${S_MAPS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use maps && emake -C "${S_MAPS}" DESTDIR="${D}" install
+ prepgamesdirs
+}
diff --git a/games-strategy/liquidwar6/metadata.xml b/games-strategy/liquidwar6/metadata.xml
new file mode 100644
index 000000000000..75c9bbca1269
--- /dev/null
+++ b/games-strategy/liquidwar6/metadata.xml
@@ -0,0 +1,35 @@
+<?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>
+ <use>
+ <flag name='doc'>Convert the info pages to html</flag>
+ <flag name='gtk'>Used to display error/critical messages</flag>
+ <flag name='maps'>Install extra maps</flag>
+ <flag name='ogg'>Enable mod-ogg via <pkg>media-libs/sdl-mixer</pkg>
+ (currently the only sound provider)</flag>
+ <flag name='readline'>Enable interactive script shell for
+ hacking</flag>
+ </use>
+ <longdescription lang="en">
+ FEATURES:
+ * Fast-paced tactical action. Control the movement of all your forces
+ at the same time
+ * Simple yet original game mechanics, discovered by Thomas Colcombet
+ * 10 different teams, each with their own charactaristics and special
+ attacks
+ * 13 levels, each one twisting the gameplay in a new direction
+ * 100+ more levels if you download the bonus pack
+ * Levels can be created using simple image files
+ * Lots of level design options: walls, edge wraparound, bridges,
+ different speed, special areas such as glue or danger and varied
+ army size and fighter behavior
+ * Internationalization support, interface translated in French,
+ Norwegian and Russian
+ * Free Software, part of the GNU project (licence: GNU GPL v3+)
+ </longdescription>
+</pkgmetadata>