summaryrefslogtreecommitdiff
path: root/games-misc/yadex
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-misc/yadex
reinit the tree, so we can have metadata
Diffstat (limited to 'games-misc/yadex')
-rw-r--r--games-misc/yadex/Manifest7
-rw-r--r--games-misc/yadex/files/yadex-1.7.0-NULL-is-not-zero.patch11
-rw-r--r--games-misc/yadex/files/yadex-1.7.0-elif.patch11
-rw-r--r--games-misc/yadex/metadata.xml8
-rw-r--r--games-misc/yadex/yadex-1.7.0.ebuild51
5 files changed, 88 insertions, 0 deletions
diff --git a/games-misc/yadex/Manifest b/games-misc/yadex/Manifest
new file mode 100644
index 000000000000..c7cfcacb2e09
--- /dev/null
+++ b/games-misc/yadex/Manifest
@@ -0,0 +1,7 @@
+AUX yadex-1.7.0-NULL-is-not-zero.patch 406 SHA256 08d881eef844a7a7417feffdab473b557b43c6c240905cf05ea917504213c2dc SHA512 874fb952496bf87fbe7c2d4e8a2260a0b01841c4e52c9ec40290e2dcef782bbf3618228ff2284dbd0bc4c5bdcac8ac41ebda050a310962ab905b456a4232e4de WHIRLPOOL daaa1a2924a1a5758fe398193f1b8010c9b8df37427a5c9f26104b3eac027dbc0aee0e8b226813916f164505df12f0ca9f5a1a265201ce353dca8c73c36b3586
+AUX yadex-1.7.0-elif.patch 360 SHA256 8d626434f0e978bd64f3ece36967a9c9739194759758b152eebe6568975dc66c SHA512 76020ba5b03bc188479081006f6f3a587d9d17e03a3c38e6d76d4e6571dd9625f81ef6510d58526f7ca15ce4eed2ccfae3ec8b63ff37aedccca91c3723858e70 WHIRLPOOL e2082bcdf7f8ef578d8900cce30ee6d0214ac5ba9f747589782113242437c659653cbc9c4dda8c7ab976796785c4e162a6fc2cb0cd850fe6d2926f71f8335605
+DIST yadex-1.7.0.tar.gz 551318 SHA256 316aca295b647b45d6d0d359fd7bba0448e7e114d295347add7ac0e87aa0f446 SHA512 017f0ffc21b7b49e25e81a16c5badc3159f0b34954e278d658175da51b7ecf1e15e12579a244530afb10e133c890761d78c1f1a209a800887c145c5c1af5d317 WHIRLPOOL c59b2d6127d1e536b96cfb1cf87c2b4e181ae2f0882b0593e286de0bbda273bb13cc908adfcde9e56c1ed83e25ca7ec27a27d1c670d730137b0af2923c514968
+EBUILD yadex-1.7.0.ebuild 1160 SHA256 e3f8ba1a6d72c4d20d39beb37b7112eef7a9afb32b0f356d6efb50fb975dcf8f SHA512 adac338ab19a6ca7c25c11b5677e767dc32bfd9dbf821c1305d65a30fbad3e2c9a7fabac2dfa3b263bcaaab6c445511cfeebe5b4abc624a68fd41b52ddd1f42a WHIRLPOOL 1d7649877f6474e5757ef82a90b79d57b5758a51e8d7977274436dd8cfa0c498327e4e1f488a360996df4340dc366ca34c8a2903726df04260fe61dc1e69c96f
+MISC ChangeLog 2499 SHA256 eb53ef8ec10e2bca6e652f08c98e89b350d9fc4743db5f0f447fa788fe9a0bb3 SHA512 16335f9e9df394c82ceffbb5f30e03c483c4a7130d755ef501d9cf815618eec2be5f035cbfb50eaeb0196ddd61cf7c122d502635a40c571f9f681e131d0f6d7b WHIRLPOOL e0df343d950da45ee7ca57e94c0d6cdf94e89aa079d7a2489786afb4d9a7befdc23d3c02303a55a8ae51a16b167f408ae0fc0a60d355939f432854245af8f53a
+MISC ChangeLog-2015 1346 SHA256 03bfa4bbe9944f4b57e9636e3a52f139079a3d3650de4dab3cc681365d7a9b4b SHA512 7e0e8bba38803098c09f20db5a33445a403328dc41b719681a4d19af9e7dfc1425bcb89c7e2d8c4f6395ff41d098603b9d689ba285f5b8ae6d00af954edc8fb9 WHIRLPOOL e1c0333336fbd0c32fbe0ce0cd0a55d9beb824aaa546e4d2f618af8550c5ca40397976d3aec9606bc4e88fba1b54c3560200db8960da7bf205f97896b074b0e1
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-misc/yadex/files/yadex-1.7.0-NULL-is-not-zero.patch b/games-misc/yadex/files/yadex-1.7.0-NULL-is-not-zero.patch
new file mode 100644
index 000000000000..7ceb7a558873
--- /dev/null
+++ b/games-misc/yadex/files/yadex-1.7.0-NULL-is-not-zero.patch
@@ -0,0 +1,11 @@
+--- yadex-1.7.0/src/wadlist.cc.old 2003-01-29 14:45:19.000000000 -0700
++++ yadex-1.7.0/src/wadlist.cc 2003-01-29 14:45:56.000000000 -0700
+@@ -175,7 +175,7 @@
+ priv->iter = priv->list.erase (i);
+ if (priv->iter == priv->list.begin ())
+ {
+- priv->iter = 0; // Catch bugs
++ priv->iter = (std::_List_iterator<boost::shared_ptr<Wad_file> >)NULL; // Catch bugs
+ priv->rewound = true;
+ }
+ }
diff --git a/games-misc/yadex/files/yadex-1.7.0-elif.patch b/games-misc/yadex/files/yadex-1.7.0-elif.patch
new file mode 100644
index 000000000000..a170cbe0ad77
--- /dev/null
+++ b/games-misc/yadex/files/yadex-1.7.0-elif.patch
@@ -0,0 +1,11 @@
+--- src/gfx.cc.old 2009-08-01 18:47:46.000000000 +0200
++++ src/gfx.cc 2009-08-01 18:46:03.000000000 +0200
+@@ -310,7 +310,7 @@
+ win_vis_id = vis_info->visualid;
+ #if defined _cplusplus || defined __cplusplus
+ win_vis_class = vis_info->c_class;
+-#elif
++#else
+ win_vis_class = vis_info->class;
+ #endif
+ win_ncolours = vis_info->colormap_size;
diff --git a/games-misc/yadex/metadata.xml b/games-misc/yadex/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-misc/yadex/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>
diff --git a/games-misc/yadex/yadex-1.7.0.ebuild b/games-misc/yadex/yadex-1.7.0.ebuild
new file mode 100644
index 000000000000..9e37df3ce0d7
--- /dev/null
+++ b/games-misc/yadex/yadex-1.7.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A Doom level (wad) editor"
+HOMEPAGE="http://www.teaser.fr/~amajorel/yadex/"
+SRC_URI="http://www.teaser.fr/~amajorel/yadex/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/iwad/s/local\///' \
+ "${S}"/yadex.cfg \
+ || die "sed yadex.cfg failed"
+ epatch "${FILESDIR}/${P}"-NULL-is-not-zero.patch \
+ "${FILESDIR}/${P}"-elif.patch
+ # Force the patched file to be old, otherwise the compile fails
+ touch -t 197010101010 "${S}"/src/wadlist.cc
+ touch -t 197010101010 "${S}"/src/gfx.cc
+}
+
+src_configure() {
+ # not an autoconf script
+ ./configure --prefix="/usr" || die "configure failed"
+}
+
+src_compile() {
+ emake CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+ dogamesbin obj/0/yadex
+ insinto "${GAMES_DATADIR}/${PN}/${PV}"
+ doins ygd/*
+ doman doc/yadex.6
+ dodoc CHANGES FAQ README TODO VERSION
+ dohtml doc/*
+ insinto /etc/yadex/${PV}
+ doins yadex.cfg
+ prepgamesdirs
+}