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

(-)net-tools-1.60-r7.ebuild (-2 / +4 lines)
Lines 12-22 Link Here
12
SLOT="0"
12
SLOT="0"
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~arm ~mips"
14
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~arm ~mips"
15
IUSE="nls build"
15
IUSE="nls build static"
16
16
17
DEPEND="nls? ( sys-devel/gettext )"
17
DEPEND="nls? ( sys-devel/gettext )"
18
18
19
src_unpack() {
19
src_unpack() {
20
	use static && CFLAGS="${CFLAGS} -static" && LDFLAGS="${LDFLAGS} -static"
21
20
	PATCHDIR=${WORKDIR}/${P}-gentoo
22
	PATCHDIR=${WORKDIR}/${P}-gentoo
21
23
22
	unpack ${A}
24
	unpack ${A}
Lines 37-43 Link Here
37
	cp ${PATCHDIR}/net-tools-1.60-config.make config.make
39
	cp ${PATCHDIR}/net-tools-1.60-config.make config.make
38
40
39
	cp Makefile Makefile.orig
41
	cp Makefile Makefile.orig
40
	sed -e "s:-O2 -Wall -g:${CFLAGS}:" Makefile.orig > Makefile
42
	sed -e "s:-O2 -Wall -g:${CFLAGS}:" -e "/^LOPTS =/ s/\$/${CFLAGS}/" Makefile.orig > Makefile
41
43
42
	cd man
44
	cd man
43
	cp Makefile Makefile.orig
45
	cp Makefile Makefile.orig

Return to bug 22450