|
|
SLOT="0" | SLOT="0" |
KEYWORDS="~ppc x86" | KEYWORDS="~ppc x86" |
IUSE="" | IUSE="" |
|
RESTRICT="test" |
| |
DEPEND="|| ( x11-libs/libX11 virtual/x11 )" | DEPEND="|| ( x11-libs/libX11 virtual/x11 )" |
| |
|
|
unpack ${A} | unpack ${A} |
sed -i \ | sed -i \ |
-e '/iwad/s/local\///' \ | -e '/iwad/s/local\///' \ |
${S}/yadex.cfg \ |
"${S}"/yadex.cfg \ |
|| die "sed yadex.cfg failed" | || die "sed yadex.cfg failed" |
epatch "${FILESDIR}/${P}"-NULL-is-not-zero.patch | epatch "${FILESDIR}/${P}"-NULL-is-not-zero.patch |
# Force the patched file to be old, otherwise the compile fails | # Force the patched file to be old, otherwise the compile fails |
touch -t 196910101010 ${S}/src/wadlist.cc |
touch -t 196910101010 "${S}"/src/wadlist.cc |
} | } |
| |
src_compile() { | src_compile() { |
|
|
| |
src_install() { | src_install() { |
dogamesbin obj/0/yadex || die "dogamesbin failed" | dogamesbin obj/0/yadex || die "dogamesbin failed" |
insinto "${GAMES_DATADIR}/${PN}/${PV}/" |
insinto "${GAMES_DATADIR}/${PN}/${PV}" |
doins ygd/* || die "doins failed (data)" | doins ygd/* || die "doins failed (data)" |
doman doc/yadex.6 | doman doc/yadex.6 |
dodoc CHANGES FAQ README TODO VERSION | dodoc CHANGES FAQ README TODO VERSION |
dohtml doc/* | dohtml doc/* |
insinto /etc/yadex/${PV}/ |
insinto /etc/yadex/${PV} |
doins yadex.cfg || die "doins failed (cfg)" |
doins yadex.cfg || die "doins failed (cfg)" |
|
|
prepgamesdirs | prepgamesdirs |
} | } |