Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 137673
Collapse All | Expand All

(-)/usr/portage/games-arcade/xevil/xevil-2.02_p2.ebuild (-6 / +7 lines)
Lines 13-19 Link Here
13
13
14
LICENSE="GPL-2"
14
LICENSE="GPL-2"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="x86 ppc"
16
KEYWORDS="ppc x86"
17
IUSE=""
17
IUSE=""
18
18
19
RDEPEND="|| ( x11-libs/libXpm virtual/x11 )"
19
RDEPEND="|| ( x11-libs/libXpm virtual/x11 )"
Lines 25-46 Link Here
25
src_unpack() {
25
src_unpack() {
26
	unpack ${A}
26
	unpack ${A}
27
	edos2unix readme.txt x11/*.{cpp,h} cmn/*.{cpp,h} makefile config.mk
27
	edos2unix readme.txt x11/*.{cpp,h} cmn/*.{cpp,h} makefile config.mk
28
	epatch ${WORKDIR}/xevil_${MY_PV}-${DEB_PATCH}.diff \
28
	epatch "${WORKDIR}"/xevil_${MY_PV}-${DEB_PATCH}.diff \
29
		"${FILESDIR}/${P}"-gcc41.patch
29
		"${FILESDIR}/${P}"-gcc41.patch
30
	sed -i \
30
	sed -i \
31
		-e 's:-static::' \
31
		-e 's:-static::' \
32
		-e "s:CFLAGS=\":CFLAGS=\"${CFLAGS} :g" \
32
		-e "s:CFLAGS=\":CFLAGS=\"${CFLAGS} :g" \
33
		-e 's:-lXpm:-lXpm -lpthread:g' \
33
		-e 's:-lXpm:-lXpm -lpthread:g' \
34
		config.mk
34
		config.mk || die "sed failed"
35
}
35
}
36
36
37
src_compile() {
37
src_compile() {
38
	emake || die #emake dies horribly
38
	emake STRIP=ls || die "emake failed"
39
}
39
}
40
40
41
src_install() {
41
src_install() {
42
	dogamesbin x11/REDHAT_LINUX/xevil
42
	dogamesbin x11/REDHAT_LINUX/xevil || die "dogamesbin failed"
43
	newgamesbin x11/REDHAT_LINUX/serverping xevil-serverping
43
	newgamesbin x11/REDHAT_LINUX/serverping xevil-serverping \
44
		|| die "newgamesbin failed"
44
	dodoc readme.txt
45
	dodoc readme.txt
45
	prepgamesdirs
46
	prepgamesdirs
46
}
47
}

Return to bug 137673