summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-misc/yadex
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-misc/yadex')
-rw-r--r--games-misc/yadex/Manifest1
-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.xml5
-rw-r--r--games-misc/yadex/yadex-1.7.0.ebuild52
5 files changed, 80 insertions, 0 deletions
diff --git a/games-misc/yadex/Manifest b/games-misc/yadex/Manifest
new file mode 100644
index 000000000000..7794efce151a
--- /dev/null
+++ b/games-misc/yadex/Manifest
@@ -0,0 +1 @@
+DIST yadex-1.7.0.tar.gz 551318 SHA256 316aca295b647b45d6d0d359fd7bba0448e7e114d295347add7ac0e87aa0f446 SHA512 017f0ffc21b7b49e25e81a16c5badc3159f0b34954e278d658175da51b7ecf1e15e12579a244530afb10e133c890761d78c1f1a209a800887c145c5c1af5d317 WHIRLPOOL c59b2d6127d1e536b96cfb1cf87c2b4e181ae2f0882b0593e286de0bbda273bb13cc908adfcde9e56c1ed83e25ca7ec27a27d1c670d730137b0af2923c514968
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..d3c2cc926f0b
--- /dev/null
+++ b/games-misc/yadex/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</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..b994c167d853
--- /dev/null
+++ b/games-misc/yadex/yadex-1.7.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="~ppc 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
+}