diff options
Diffstat (limited to 'games-strategy/liquidwar6')
6 files changed, 270 insertions, 0 deletions
diff --git a/games-strategy/liquidwar6/Manifest b/games-strategy/liquidwar6/Manifest new file mode 100644 index 000000000000..397c6d3f2a36 --- /dev/null +++ b/games-strategy/liquidwar6/Manifest @@ -0,0 +1,9 @@ +AUX liquidwar6-0.4.3681-check-headers.patch 3579 SHA256 fdbac895025ebdb044e0621fce892f92e0fb4de8ae122ec14b8a9efeb0870e3a SHA512 43429430fe1d447bd70a8b7a6b1da0023a9f17d6b96e2edd7079e199c25e8e28df9ffadbca6c94ee4fdb397022d89f0246cf4da3468255fd204ae4e51fe53e9f WHIRLPOOL caffdcf113616d4895fb560c2b0a8f816ca357136212dc7cc37dd22c1923e75bafa2c9107d27fa21f6b987cf444dfc04bb3b0e059f00b87774f50969044c803b +AUX liquidwar6-0.4.3681-ldconfig.patch 717 SHA256 4a3010fdc6a94e9704e3c648040f2660a23ccf939a963528ddbd742f5a703faf SHA512 8dfb058210de219c6f27564988ba92c4bcbae2e74b3c42636fccf3e8c039e1aae8df724bc59d40484dd40151eb46c168a2eba929af15f54ee029b5a600559c2b WHIRLPOOL 12aa0f626c3e8fcd1c0bba8940417dfd960e1b291cb632c35a282e43d7945dc3ca09c0094c9cc9d43fe1f5b14fd51060c4e8093ac9c59d619a4947f81f43ff7c +AUX liquidwar6-0.4.3681-paths.patch 788 SHA256 05056f313766dc505849047575dcff9fe77b6e995befca27eaaa42997cde75d7 SHA512 6e89453c4c5ff08f99d41c1ab92ed6552c41b4f08eb09b2e7c5ca10147eeb02b000eb68bc1eb4b4b29f27e15ed7e7d380999c13a16804665a937e5facb67f365 WHIRLPOOL 62caadc7745e27e03651c7d1f88f598676ef1003da59520e4d7fd09ff1008068cea48401547595382fcf0e7697d1a44009cbbe8ceed59adc78b67bb1c652c86c +DIST liquidwar6-0.4.3681.tar.gz 26531646 SHA256 942f5547199462fea521717b94517d6415d90573d948e94922f7b15271a4a8e0 SHA512 4154c8d3c2ceb128cf2d27a4682c89a30d3610f695b2e05f8d4e33c13fb54aaab3bb4a2b5c6dbcc43ff5d24991ea57a521716c94e15d8dd05dc384c22a37f52a WHIRLPOOL 4f502f572082c89469126eb97cfb181c28980783203f73b51a577c9a9e6cd28936f76c50892757320cb8dbee8b44319790a5ca7715d7cf096664043233fd5647 +DIST liquidwar6-extra-maps-0.4.3681.tar.gz 16191302 SHA256 32ffe94781aade93ca26919220b434a26dbde9260655bf6733f19d5df41abc65 SHA512 e767adc4402f803824145fd12f79eb2cbf9b34aea12065123a558dfb6704bd7ab1861b453e794f7a612d4fa75d0f6024ef410b2700eea08a279d6857b9dc2ba7 WHIRLPOOL d53b3e28b4a26aba780e35a825c1fa7f33ea00bf4884b44685a550cf6c04d0a2cf296dd29ecf5d7884ca91a8f560988dce7b4ae1c819a92bbaa5cc59900e154b +EBUILD liquidwar6-0.4.3681-r1.ebuild 2616 SHA256 1fbffb6db9a0fbfb7493a360cc3bae533c6932af54a71ad554bd5ab5806be585 SHA512 c8638919d98c1935877a3c6105ef6110842e0fb640dbd698ea183a65e065ed3690262c06556e883cac0c0ed71a8531621b5f18210e3f357e8afd6eb1347667a4 WHIRLPOOL 7ff5a1663ede2d768604f991c9b1d9678910f17694113fab21243973a82daceaac6d6b4f492d1514a2c67865e0199b9bab844b7202877bbcd35575e4294c62a2 +MISC ChangeLog 3937 SHA256 04654b774ed72b03147d3b0d1faa93201b614c10a600dce8c9fbc5ff41eb872c SHA512 142b40d07ebb1ea24176a93a028caad38b1e01afaa52aea03b2e9a922f48c429fb0b2140581ed9a007bc22c8af63436fc1da38b7c045f7fe8eebb57c296f0f0c WHIRLPOOL 936a0e5969520bcef785ab315edd34fea07d6e727a9f9f35ff45c49f111f83ad6a791a0e820972d987af0cae1aea738257f6f55e7169e3aab220fc85898e41d9 +MISC ChangeLog-2015 2431 SHA256 aba38e8ed310ae2933aa7a6450d9218a70c961bc8be12126ea6d20a6ef79fa93 SHA512 4fdfec89afab91d5fd133282931368ac6966b208c7048201f7cae046f090fd22219b4c7e592326ffa093aee1a32134e49b4c877dc05de74333be11e65b85d619 WHIRLPOOL 71be7df710179a4c9161d3dc4edf7fffc72b562bf73715fdfe0c6453a75317a45f6c2ff948d170033e9fcc7bec939f2fb7e59545623564508bd257b2217ec0e0 +MISC metadata.xml 1521 SHA256 86095f76f94f93cba774e24121295e232045e6a945a714cffd9df5724e69c39c SHA512 f0b8c24ca6d7cded3731c3a38092b6ec7163c9c2b5bac8638d9402d76c5e53a4a1a7440c6d2a11a12f457cf4a7d89a592b928b05a04158d93f15deea32e13c09 WHIRLPOOL 0685d14c4d9915d2f3e21ee6e35848a314ddbe1f5f4b75f67e6221131829e8813d9fc9601ee91601669a99681743b1d9cde5a55592d329877b2c9c9dc9a4c4c6 diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-check-headers.patch b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-check-headers.patch new file mode 100644 index 000000000000..34dd76b48ea0 --- /dev/null +++ b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-check-headers.patch @@ -0,0 +1,70 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Jun 4 16:01:18 UTC 2014 +Subject: fix header checks + + our multilib wrapped headers are broken shit + +--- a/configure.ac ++++ b/configure.ac +@@ -55,7 +55,7 @@ + AC_SUBST(LW6_VERSION_MINOR) + + dnl Headers, some are optional +-AC_CHECK_HEADERS(arpa/inet.h caca.h ctype.h CUnit/CUnit.h CUnit/Automated.h CUnit/CUCurses.h dirent.h errno.h execinfo.h expat.h fcntl.h gc/gc.h gmp.h GL/gl.h GL/glu.h GLES2/gl2.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) ++AC_CHECK_HEADERS(arpa/inet.h caca.h ctype.h CUnit/CUnit.h CUnit/Automated.h CUnit/CUCurses.h dirent.h errno.h execinfo.h expat.h fcntl.h gc/gc.h gmp.h GL/gl.h GL/glu.h GLES2/gl2.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 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) + + dnl GNULIB stuff, http://www.gnu.org/software/gnulib/ + gl_00GNULIB +@@ -477,40 +477,42 @@ + fi + SDL_EXTRA="${SDL_EXTRA_CFLAGS} ${SDL_EXTRA_LIBS}" + ++CFLAGS="$CFLAGS $SDL_EXTRA_CFLAGS" ++ + AC_CHECK_HEADER(SDL/SDL.h, HAVE_SDL_H=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL (http://www.libsdl.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(SDL, SDL_Init, HAVE_LIBSDL=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL (http://www.libsdl.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_CHECK_HEADER(GL/gl.h, HAVE_GL_GL_H=1,AC_MSG_WARN([ + *** Liquid War 6 needs Mesa (http://www.mesa3d.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(GL, glBegin, HAVE_LIBGL=1, AC_MSG_WARN([ + *** Liquid War 6 needs Mesa (http://www.mesa3d.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_CHECK_HEADER(GL/glu.h, HAVE_GL_GLU_H=1,AC_MSG_WARN([ + *** Liquid War 6 needs GLU (http://www.mesa3d.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(GLU, gluBeginCurve, HAVE_LIBGLU=1, AC_MSG_WARN([ + *** Liquid War 6 needs GLU (http://www.mesa3d.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_CHECK_HEADER(SDL/SDL_image.h, HAVE_SDL_IMAGE_H=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL_image (http://www.libsdl.org/projects/SDL_image/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(SDL_image, IMG_Load, HAVE_LIBSDL_IMAGE=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL_image (http://www.libsdl.org/projects/SDL_image/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_CHECK_HEADER(SDL/SDL_ttf.h, HAVE_SDL_TTF_H=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL_ttf (http://www.libsdl.org/projects/SDL_ttf/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(SDL_ttf, TTF_Init, HAVE_LIBSDL_TTF=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL_ttf (http://www.libsdl.org/projects/SDL_ttf/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_ARG_ENABLE([mod-gl1], AS_HELP_STRING([--enable-mod-gl1],[compile mod-gl1 default=yes]), [enable_mod_gl1=$enableval], [enable_mod_gl1=yes]) + diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-ldconfig.patch b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-ldconfig.patch new file mode 100644 index 000000000000..dd5e702b6144 --- /dev/null +++ b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-ldconfig.patch @@ -0,0 +1,16 @@ +commit 1bd3596545912f2e47b8848df3fb5d99195d299a +Author: hasufell <hasufell@gentoo.org> +Date: Wed Jan 8 17:21:09 2014 +0100 + + don't run ldconfig + +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -65,7 +65,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@-@LW6_VERSION_BASE@; ln -s @PACKAGE_TARNAME@-@LW6_VERSION_BASE@ $(DESTDIR)$(bindir)/liquidwar6; fi + + uninstall-local: diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-paths.patch b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-paths.patch new file mode 100644 index 000000000000..3ac69032471e --- /dev/null +++ b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-paths.patch @@ -0,0 +1,27 @@ +commit b121fe3d9fb7e5fc52f592482e02b6a28430435f +Author: hasufell <hasufell@gentoo.org> +Date: Wed Jan 8 17:23:56 2014 +0100 + + respect datarootdir + +--- 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 = $(datarootdir)/pixmaps + EXTRA_DIST = $(pkgdata_DATA) liquidwar6.ico liquidwar6.icns + +--- 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 = $(datarootdir)/applications + EXTRA_DIST = $(pkgdata_DATA) liquidwar6.spec liquidwar6d 406FFCAB.gnupg.txt FD409E94.gnupg.txt + + distclean-local: diff --git a/games-strategy/liquidwar6/liquidwar6-0.4.3681-r1.ebuild b/games-strategy/liquidwar6/liquidwar6-0.4.3681-r1.ebuild new file mode 100644 index 000000000000..8caf4976f559 --- /dev/null +++ b/games-strategy/liquidwar6/liquidwar6-0.4.3681-r1.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="https://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 gles2 gtk libcaca +maps nls +ogg openmp readline test" + +# yes, cunit is rdep +# Drop the libtool dep once libltdl goes stable. +RDEPEND="dev-db/sqlite:3 + dev-libs/expat + dev-scheme/guile:12 + dev-util/cunit + 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 + || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 ) + sys-libs/zlib + virtual/glu + virtual/jpeg:0 + virtual/opengl + libcaca? ( media-libs/libcaca ) + gles2? ( media-libs/mesa[gles2] ) + gtk? ( x11-libs/gtk+:2 ) + nls? ( virtual/libintl + virtual/libiconv ) + ogg? ( + media-libs/libsdl[X,sound,opengl,video] + media-libs/sdl-mixer[vorbis] + ) + readline? ( sys-libs/ncurses:0 + sys-libs/readline:0 )" +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}-{ldconfig,paths}.patch \ + "${FILESDIR}"/${P}-check-headers.patch + + sed -i \ + -e 's/-Werror//' \ + configure.ac || die + eautoreconf +} + +src_configure() { + # configure fails with cunit disabled + egamesconf \ + $(use_enable nls) \ + --enable-cunit \ + $(use_enable gtk) \ + --enable-mod-gl1 \ + $(use_enable gles2 mod-gles2) \ + $(use_enable libcaca mod-caca) \ + $(use_enable openmp) \ + $(use_enable ogg mod-ogg) \ + $(use_enable !ogg silent) \ + $(use_enable readline console) \ + --disable-static \ + --datarootdir=/usr/share \ + --mandir=/usr/share/man \ + --docdir=/usr/share/doc/${PF} \ + --htmldir=/usr/share/doc/${PF}/html + + 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 + prune_libtool_files --all + prepgamesdirs +} diff --git a/games-strategy/liquidwar6/metadata.xml b/games-strategy/liquidwar6/metadata.xml new file mode 100644 index 000000000000..4f04e7250855 --- /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> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="doc">Convert the info pages to html</flag> + <flag name="gles2">Enable OpenGL ES 2.0 support</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> |