| 1 |
# Copyright 1999-2009 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.10 2009/01/29 08:40:12 mr_bones_ Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 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 |
|
| 20 |
src_prepare() {
|
| 21 |
sed -i \
|
| 22 |
-e '/iwad/s/local\///' \
|
| 23 |
"${S}"/yadex.cfg \
|
| 24 |
|| die "sed yadex.cfg failed"
|
| 25 |
epatch "${FILESDIR}/${P}"-NULL-is-not-zero.patch \
|
| 26 |
"${FILESDIR}/${P}"-elif.patch
|
| 27 |
# Force the patched file to be old, otherwise the compile fails
|
| 28 |
touch -t 196910101010 "${S}"/src/wadlist.cc
|
| 29 |
touch -t 196910101010 "${S}"/src/gfx.cc
|
| 30 |
}
|
| 31 |
|
| 32 |
src_configure() {
|
| 33 |
# not an autoconf script
|
| 34 |
./configure --prefix="/usr" || die "configure failed"
|
| 35 |
}
|
| 36 |
|
| 37 |
src_compile() {
|
| 38 |
emake CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "emake failed"
|
| 39 |
}
|
| 40 |
|
| 41 |
src_install() {
|
| 42 |
dogamesbin obj/0/yadex || die "dogamesbin failed"
|
| 43 |
insinto "${GAMES_DATADIR}/${PN}/${PV}"
|
| 44 |
doins ygd/* || die "doins failed (data)"
|
| 45 |
doman doc/yadex.6
|
| 46 |
dodoc CHANGES FAQ README TODO VERSION
|
| 47 |
dohtml doc/*
|
| 48 |
insinto /etc/yadex/${PV}
|
| 49 |
doins yadex.cfg || die "doins failed (cfg)"
|
| 50 |
prepgamesdirs
|
| 51 |
}
|