summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-02-16 06:25:06 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2015-02-16 06:25:06 +0000
commit39ec4519422d4578b3c7fe4f6e03f83eb009a8ac (patch)
tree64888cdf30867ee0350b36b51c0de247a4ddb023 /games-util/glbsp/glbsp-2.24.ebuild
parentAdd ruby22. (diff)
downloadhistorical-39ec4519422d4578b3c7fe4f6e03f83eb009a8ac.tar.gz
historical-39ec4519422d4578b3c7fe4f6e03f83eb009a8ac.tar.bz2
historical-39ec4519422d4578b3c7fe4f6e03f83eb009a8ac.zip
EAPI=5
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Diffstat (limited to 'games-util/glbsp/glbsp-2.24.ebuild')
-rw-r--r--games-util/glbsp/glbsp-2.24.ebuild30
1 files changed, 14 insertions, 16 deletions
diff --git a/games-util/glbsp/glbsp-2.24.ebuild b/games-util/glbsp/glbsp-2.24.ebuild
index a6665d620053..91af9679abb9 100644
--- a/games-util/glbsp/glbsp-2.24.ebuild
+++ b/games-util/glbsp/glbsp-2.24.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-util/glbsp/glbsp-2.24.ebuild,v 1.4 2011/03/20 20:15:44 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-util/glbsp/glbsp-2.24.ebuild,v 1.5 2015/02/16 06:25:00 mr_bones_ Exp $
-EAPI=2
+EAPI=5
inherit eutils toolchain-funcs versionator
MY_PV=$(delete_version_separator 1)
@@ -16,6 +16,7 @@ KEYWORDS="~amd64 ~ppc x86"
IUSE="fltk"
DEPEND="fltk? ( x11-libs/fltk:1 )"
+RDEPEND=${DEPEND}
S=${WORKDIR}/${P}-source
@@ -29,39 +30,36 @@ src_prepare() {
-e "s:-O2:${CFLAGS}:" \
-e "s:-O -g3:${CFLAGS}:" \
Makefile.unx \
- nodeview/Makefile.unx \
- || die "sed failed"
+ nodeview/Makefile.unx || die
}
src_compile() {
- emake -f Makefile.unx || die "emake failed"
+ emake -f Makefile.unx
if use fltk ; then
emake -f Makefile.unx glBSPX \
FLTK_FLAGS="$(fltk-config --cflags)" \
- FLTK_LIBS="$(fltk-config --use-images --ldflags)" \
- || die "emake failed"
+ FLTK_LIBS="$(fltk-config --use-images --ldflags)"
emake -f Makefile.unx -C nodeview \
FLTK_CFLAGS="$(fltk-config --cflags)" \
- FLTK_LIBS="$(fltk-config --use-images --ldflags)" \
- || die "emake failed"
+ FLTK_LIBS="$(fltk-config --use-images --ldflags)"
fi
}
src_install() {
- dobin glbsp || die "dobin failed"
- dolib.a libglbsp.a || die "dolib.a failed"
+ dobin glbsp
+ dolib.a libglbsp.a
doman glbsp.1
dodoc AUTHORS.txt glbsp.txt
insinto "/usr/include"
- doins "src/glbsp.h" || die "doins failed"
+ doins "src/glbsp.h"
if use fltk ; then
- newbin glBSPX glbspx || die "newbin failed"
+ newbin glBSPX glbspx
newicon gui/icon.xpm glbspx.xpm
make_desktop_entry glbspx glBSPX glbspx
- dobin nodeview/nodeview || die "dobin failed"
+ dobin nodeview/nodeview
docinto nodeview
- dodoc nodeview/{README,TODO}.txt || die "dodoc failed"
+ dodoc nodeview/{README,TODO}.txt
fi
}