summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Kelly (hashendgame) <weldingmaskman@hotmail.com>2007-05-06 11:37:16 +0000
committerJack Kelly (hashendgame) <weldingmaskman@hotmail.com>2007-05-06 11:37:16 +0000
commitdb7cc54aa5b59665017da1c4ce21b70c78e3015c (patch)
treefb165fcf0718945aecad6110015aead3c89feb22 /games-util
parentlocal USE flag dmalloc for games-util/bsp (diff)
downloadsunrise-reviewed-db7cc54aa5b59665017da1c4ce21b70c78e3015c.tar.gz
sunrise-reviewed-db7cc54aa5b59665017da1c4ce21b70c78e3015c.tar.bz2
sunrise-reviewed-db7cc54aa5b59665017da1c4ce21b70c78e3015c.zip
games-util/bsp: New ebuild for bug 177242.
svn path=/sunrise/; revision=3575
Diffstat (limited to 'games-util')
-rw-r--r--games-util/bsp/ChangeLog8
-rw-r--r--games-util/bsp/Manifest4
-rw-r--r--games-util/bsp/bsp-5.2.ebuild54
-rw-r--r--games-util/bsp/metadata.xml5
4 files changed, 71 insertions, 0 deletions
diff --git a/games-util/bsp/ChangeLog b/games-util/bsp/ChangeLog
new file mode 100644
index 000000000..a5ad49429
--- /dev/null
+++ b/games-util/bsp/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for games-util/bsp
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 06 May 2007; Jack Kelly (hashendgame) <weldingmaskman@hotmail.com>
+ +bsp-5.2.ebuild, +metadata.xml:
+ New ebuild for bug 177242.
+
diff --git a/games-util/bsp/Manifest b/games-util/bsp/Manifest
new file mode 100644
index 000000000..443c72648
--- /dev/null
+++ b/games-util/bsp/Manifest
@@ -0,0 +1,4 @@
+DIST bsp-5.2.tar.bz2 162768 RMD160 8e2e2ed8576a250537f90daa42c25fdd0a3b9aaf SHA1 52af16dfa28c7838d9503a9153d93bfa031ac169 SHA256 641c4350fd620d485e874dc9e504e6feeb6f44272be50f8622c97cbe396bc00e
+EBUILD bsp-5.2.ebuild 1631 RMD160 acfcdaf1b93621a9c4227967d3c7a1f7e6ba258a SHA1 e8ac7bd3ef2aca93e49dc7c42c5cd5721e801a6f SHA256 d5d7781576305a38e8b61b74ae00eb7724253242371a93a50c06fd99c9b52a6b
+MISC ChangeLog 248 RMD160 4b125f45140551c8f7d943aa8d82b23dc45142e3 SHA1 fef947d266e209f123567679876521cfc7c49901 SHA256 a8afa82e4197695f13142ca06a49a280bbcc7244b7c5a040f72ddbcd8cc3dd8d
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/games-util/bsp/bsp-5.2.ebuild b/games-util/bsp/bsp-5.2.ebuild
new file mode 100644
index 000000000..0f867a170
--- /dev/null
+++ b/games-util/bsp/bsp-5.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools eutils flag-o-matic games
+
+DESCRIPTION="BSP nodebuilder for DooM engine games."
+HOMEPAGE="http://games.moria.org.uk/doom/bsp"
+SRC_URI="http://games.moria.org.uk/doom/bsp/download/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug dmalloc profile"
+
+DEPEND="dmalloc? ( dev-libs/dmalloc )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # The configure script clobbers CFLAGS and doesn't handle
+ # --enable-{debug,profile} correctly. Fix it.
+ sed -i \
+ -e '/^CFLAGS="-O2 -fomit-frame-pointer"$/d' \
+ -e '/^AC_C_COMPILE_FLAGS(.*)$/d' \
+ -e 's:^CFLAGS="-g"$:if test "${enableval}" = "yes"; then CFLAGS="${CFLAGS} -g"; fi:' \
+ -e 's:^CFLAGS="-pg"$:if test "${enableval}" = "yes"; then CFLAGS="${CFLAGS} -pg"; fi:' \
+ configure.in || die "sed configure.in failed"
+ # We want documentation to be installed only through dodoc
+ sed -i \
+ -e '/^docdir =.*/d' \
+ -e '/^doc_DATA =.*/d' \
+ Makefile.am || die "sed Makefile.am failed"
+ eautoreconf || die "eautoreconf failed"
+}
+
+src_compile() {
+ # gcc chokes if -g and -fomit-frame-pointer are given
+ use debug && filter-flags -fomit-frame-pointer
+ # gcc chokes if -pg and -fomit-frame-pointer are given
+ use profile && filter-flags -fomit-frame-pointer
+ egamesconf \
+ $(use_enable debug) \
+ $(use_enable dmalloc) \
+ $(use_enable profile) \
+ || die "egamesconf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS NEWS README visplane.txt
+ prepgamesdirs
+}
diff --git a/games-util/bsp/metadata.xml b/games-util/bsp/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/games-util/bsp/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>maintainer-wanted</herd>
+</pkgmetadata>