summaryrefslogtreecommitdiff
path: root/games-strategy/liquidwar
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-strategy/liquidwar
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/liquidwar')
-rw-r--r--games-strategy/liquidwar/Manifest8
-rw-r--r--games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch27
-rw-r--r--games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch18
-rw-r--r--games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch11
-rw-r--r--games-strategy/liquidwar/liquidwar-5.6.4-r1.ebuild60
-rw-r--r--games-strategy/liquidwar/metadata.xml8
6 files changed, 132 insertions, 0 deletions
diff --git a/games-strategy/liquidwar/Manifest b/games-strategy/liquidwar/Manifest
new file mode 100644
index 000000000000..ddae45b1e6bd
--- /dev/null
+++ b/games-strategy/liquidwar/Manifest
@@ -0,0 +1,8 @@
+AUX liquidwar-5.6.4-exec-stack.patch 430 SHA256 d661dab2c07f2df8089c618d4ccf6e40032fe3af19704ff9b4273aec21043263 SHA512 e5f068a73bc8a13f85350823fb12264adaaa2e4ad7b19dcba6d3bb81c8ff70818a274adb9827665208bc5d63cde59a7ec5c2bc83fd3449b4e8fbffd4d8ef5ce7 WHIRLPOOL ab2d61d775790aa04a5a558c183a1fa8910d8afc2c830d5b7f39c6c0a0f6eafb07e568e82e2d214ffddceafe15477c2b3b68e7d5d37490e6296dceaf5a7e5eaa
+AUX liquidwar-5.6.4-ovflfix.patch 696 SHA256 3e72162d8ff2a690b1f30736f16867bcab76f031040460d95ec0ef9c41df8452 SHA512 2d1b72ac481ef9c742e4b22e012805161e628fcdbebc8b55084c03fae63f0fd88da92ce1827ad08c27da2ca2c0ec3482726e4524887385cf4fc75f202c302102 WHIRLPOOL 14b4faea9ca85a1cec426a38f9b2eb43135dbba88dcdb59aaa32217aab3e5c18f4ac14f5c046a27bcfaf92b16307d2d7be2ec87678f4ce8b27078669ba0d936f
+AUX liquidwar-5.6.4-underlink.patch 438 SHA256 4187d94156d5adfba1f7ddeace9d35baf6c7a28bfbcac503ca7e246d580285ad SHA512 c4795242e102566d208ca57d68fdb60d3c69d0aec5c8a2f196e4bcbfa91e64c07cb8b06d82e870c059405967f8563090a8910ace3bad17b9591047329ccbe3d5 WHIRLPOOL 057e63d15d7436c00b4aeba59fb9190f07772a22ab111eec9ded20667b13ea85e4fcd437cf23b2ed08412a9ae71cb5256d481d272c637beef48429117dc11328
+DIST liquidwar-5.6.4.tar.gz 3268432 SHA256 32c52e4588e8e723f907ef43703b4ddf009e8ff1f29555c09bcc1f70bf5b93a3 SHA512 7145a8362c46a0f39662327edf81b341659a3ce8216f9fb3bb32e483de618c0f46169ed916fe2c4c651ebc5925ecdc534b372c381e16c3ddae9a50fb48f98ed7 WHIRLPOOL b4480b250c45adf3b93761d0a7f167cb24e6a03c404b364f2bedd8203e8711f00d3a25b5d3fc86e9b19edb056ebece4f2a51d2be488d4b002104f4f34e7bf9b6
+EBUILD liquidwar-5.6.4-r1.ebuild 1533 SHA256 8a5e3aeb0265dc37c19225c4290410b228bd5a24855f2c6fc214900034842df0 SHA512 403043fc5a72f3e2664a49244ab2560f8fde641da5dd0ff15fc7fa796b25b98a25c4959b8a692c08d6c0719f7b4d6f01e2431b6f2779ffba793b445154c5de3b WHIRLPOOL 0868fd8bf2281ef3f8136df5e8ff69276c4a55e8ef2342b71a58a9a2ab57c4d439e37d944a7516cd6899cbea1fb5022752ab9fc5f47fde83586bfe9a74b52e01
+MISC ChangeLog 2681 SHA256 31c6f59b2fce9413b74bce499f6589b90f5b7e34c27fedd165f2a49fb1453b33 SHA512 c32981be0ff6fab9df6272811b7dff1c9f0f645c3b7938bb0f969de0be7678112fe4ed092f43b7a9b3fb9499ff7b4a9ea5102b0856e9485e0a46def27b89f2a6 WHIRLPOOL 13057f7c7669f5fa2b827a9d3eff6115f20b63e5527f185a09a510284dc7a2d7ab5d4e3d7af21c0b9c4fb6f128d5b2ce584683fb905d27615dbc2c7bdf0a9978
+MISC ChangeLog-2015 4889 SHA256 106abdf147f20d149839d1610459afc1b98740815411ad3147b6cb3e53829759 SHA512 778296dd8fe0e01771266cbe68ee3347a944fe9b8b855090124f2a9f3ff68e49a07431b57fef5848acd5e11734079d3b65e3395596fa1c99733208072a9607ef WHIRLPOOL c9fce811e653310e5247165acfe5e38c966f0b780b62d1955b3de91b5b30a347b4eda0761d60734d91b1f9967f445e601e0b4d928a5f557938cf9d17c429154f
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch b/games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch
new file mode 100644
index 000000000000..83e733b28a05
--- /dev/null
+++ b/games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch
@@ -0,0 +1,27 @@
+--- src/glouglou.s
++++ src/glouglou.s
+@@ -240,3 +240,6 @@
+
+ ret
+
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+--- src/monster.s
++++ src/monster.s
+@@ -972,3 +972,6 @@
+ ret # retour au c
+
+
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+--- src/spread.s
++++ src/spread.s
+@@ -957,3 +957,6 @@
+
+
+
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch b/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch
new file mode 100644
index 000000000000..446385624cfa
--- /dev/null
+++ b/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch
@@ -0,0 +1,18 @@
+--- src/wwwsrv.c.old 2010-10-26 14:16:31.000000000 +0200
++++ src/wwwsrv.c 2010-10-26 14:17:35.000000000 +0200
+@@ -100,12 +100,12 @@
+
+ data->privacy = privacy;
+ data->log = log;
+- strncpy (data->metaserver, metaserver, URL_SIZE);
++ strncpy (data->metaserver, metaserver, sizeof(data->metaserver));
+ data->port = port;
+ data->busy_players = busy_players;
+ data->max_players = max_players;
+- strncpy (data->password, password, URL_SIZE);
+- strncpy (data->comment, comment, URL_SIZE);
++ strncpy (data->password, password, sizeof(data->password));
++ strncpy (data->comment, comment, sizeof(data->comment));
+ }
+
+ /*------------------------------------------------------------------*/
diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch b/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch
new file mode 100644
index 000000000000..2bc53e0caccb
--- /dev/null
+++ b/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.in.old 2011-06-22 07:45:05.756127862 +0200
++++ src/Makefile.in 2011-06-22 07:46:00.681613957 +0200
+@@ -223,7 +223,7 @@
+ EXTERN_LIBS = `allegro-config --static $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY)
+ else
+ LINK_OPTIONS =
+- EXTERN_LIBS = `allegro-config --libs $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY)
++ EXTERN_LIBS = `allegro-config --libs $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY) -lm
+ endif
+
+ CONFIG_OPTIONS = \
diff --git a/games-strategy/liquidwar/liquidwar-5.6.4-r1.ebuild b/games-strategy/liquidwar/liquidwar-5.6.4-r1.ebuild
new file mode 100644
index 000000000000..86976443a054
--- /dev/null
+++ b/games-strategy/liquidwar/liquidwar-5.6.4-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="unique multiplayer wargame"
+HOMEPAGE="http://www.ufoot.org/liquidwar/"
+SRC_URI="https://savannah.nongnu.org/download/liquidwar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE="nls"
+RESTRICT="test"
+
+RDEPEND=">=media-libs/allegro-4.2:0[X]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-exec-stack.patch \
+ "${FILESDIR}"/${P}-ovflfix.patch
+ sed -i \
+ -e 's:/games::' \
+ -e '/^MANDIR/ s:=.*:= $(mandir)/man6:' \
+ -e '/^PIXDIR/ s:=.*:= /usr/share/pixmaps:' \
+ -e '/^DESKTOPDIR/ s:=.*:= /usr/share/applnk/Games/:' \
+ -e '/^INFODIR/ s/=.*/= $(infodir)/' \
+ -e '/^GAMEDIR/ s/exec_prefix/bindir/' \
+ -e '/install/s:-s ::' \
+ -e 's:$(DOCDIR)/txt:$(DOCDIR):g' \
+ -e 's:$(GMAKE):$(MAKE):' \
+ -e '/^DOCDIR/ s:=.*:= /usr/share/doc/$(PF):' Makefile.in \
+ || die 'sed Makefile.in failed'
+ sed -i \
+ -e '/^GAMEDIR/ s/$(exec_prefix)/@bindir@/' \
+ -e 's:/games::' src/Makefile.in \
+ || die "sed src/Makefile.in failed"
+ epatch "${FILESDIR}"/${P}-underlink.patch
+}
+
+src_configure() {
+ egamesconf \
+ --disable-doc-ps \
+ --disable-doc-pdf \
+ --disable-target-opt \
+ $(use_enable x86 asm)
+}
+
+src_compile() {
+ # skip build_doc target wrt bug 460344
+ emake build_bin build_data
+}
+
+src_install() {
+ emake DESTDIR="${D}" install_nolink
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING
+ use nls || rm -f "${D}"/usr/share/doc/${PF}/README.*
+ prepgamesdirs
+}
diff --git a/games-strategy/liquidwar/metadata.xml b/games-strategy/liquidwar/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-strategy/liquidwar/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>