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

(-)velvet-0.7.55.ebuild.orig (-1 / +2 lines)
Lines 23-30 Link Here
23
src_prepare() {
23
src_prepare() {
24
	rm -rf "${S}"/third-party/zlib*
24
	rm -rf "${S}"/third-party/zlib*
25
	sed -i -e '/\(CFLAGS\|LDFLAGS\|Z_LIB_DIR\|Z_LIB_FILES\) *= */d' \
25
	sed -i -e '/\(CFLAGS\|LDFLAGS\|Z_LIB_DIR\|Z_LIB_FILES\) *= */d' \
26
		-e '1 a CFLAGS+= -Wall' -e '1 a LDFLAGS+= -lm -lz' \
26
		-e '1 a CFLAGS+= -Wall' -e '1 a LIBS = -lm -lz' \
27
		-e '/default :/ s/zlib//' -e '/color :/ s/zlib//' \
27
		-e '/default :/ s/zlib//' -e '/color :/ s/zlib//' \
28
		-e 's/Z_LIB_FILES/LIBS/' \
28
		"${S}"/Makefile || die
29
		"${S}"/Makefile || die
29
	use doc || sed -i -e '/default :/ s/doc//' "${S}"/Makefile || die
30
	use doc || sed -i -e '/default :/ s/doc//' "${S}"/Makefile || die
30
	sed -i -e '/zlib.h/d' -e '1 i #include <zlib.h>' "${S}"/src/readSet.c || die
31
	sed -i -e '/zlib.h/d' -e '1 i #include <zlib.h>' "${S}"/src/readSet.c || die

Return to bug 277938