View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/games-misc/yadex/yadex-1.7.0.ebuild (-6 / +6 lines)
 Lines 12-17    Link Here 
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 )"
 Lines 19-29    Link Here 
	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() {
 Lines 34-46    Link Here 
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
}
}