/[gentoo-x86]/games-misc/yadex/yadex-1.7.0.ebuild
Gentoo

Contents of /games-misc/yadex/yadex-1.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Fri Feb 6 22:15:03 2015 UTC (5 years ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +10 -9 lines
EAPI 5

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0145142D)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-misc/yadex/yadex-1.7.0.ebuild,v 1.11 2009/08/05 02:53:29 mr_bones_ Exp $
4
5 EAPI=5
6 inherit eutils games
7
8 DESCRIPTION="A Doom level (wad) editor"
9 HOMEPAGE="http://www.teaser.fr/~amajorel/yadex/"
10 SRC_URI="http://www.teaser.fr/~amajorel/yadex/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~ppc x86"
15 IUSE=""
16 RESTRICT="test"
17
18 DEPEND="x11-libs/libX11"
19 RDEPEND="${DEPEND}"
20
21 src_prepare() {
22 sed -i \
23 -e '/iwad/s/local\///' \
24 "${S}"/yadex.cfg \
25 || die "sed yadex.cfg failed"
26 epatch "${FILESDIR}/${P}"-NULL-is-not-zero.patch \
27 "${FILESDIR}/${P}"-elif.patch
28 # Force the patched file to be old, otherwise the compile fails
29 touch -t 197010101010 "${S}"/src/wadlist.cc
30 touch -t 197010101010 "${S}"/src/gfx.cc
31 }
32
33 src_configure() {
34 # not an autoconf script
35 ./configure --prefix="/usr" || die "configure failed"
36 }
37
38 src_compile() {
39 emake CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
40 }
41
42 src_install() {
43 dogamesbin obj/0/yadex
44 insinto "${GAMES_DATADIR}/${PN}/${PV}"
45 doins ygd/*
46 doman doc/yadex.6
47 dodoc CHANGES FAQ README TODO VERSION
48 dohtml doc/*
49 insinto /etc/yadex/${PV}
50 doins yadex.cfg
51 prepgamesdirs
52 }

  ViewVC Help
Powered by ViewVC 1.1.20