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

(-)a/aget-0.4.1.ebuild (-2 / +9 lines)
Lines 17-26 Link Here
17
17
18
src_prepare() {
18
src_prepare() {
19
	sed -i \
19
	sed -i \
20
		-e '3s/$/DESTDIR =/' \
20
		-e '/^CFLAGS/s:=.*:+= -Wall -Wextra:' \
21
		-e '/^CFLAGS/s:=.*:+= -Wall $(CPPFLAGS):' \
22
		-e '/^LDFLAGS/s:=:+=:' \
21
		-e '/^LDFLAGS/s:=:+=:' \
22
		-e 's/^\(all: \)\(.*\)$/\1aget\naget: \2\n\t$(LINK.o) $^ $(OUTPUT_OPTION)/' \
23
		-e '/^\t$(CC).*/d' \
23
		-e '/^\tcp -f aget /s:\/usr.*:\$(DESTDIR)\/usr\/bin:' Makefile || die
24
		-e '/^\tcp -f aget /s:\/usr.*:\$(DESTDIR)\/usr\/bin:' Makefile || die
25
	# Subsequent snprintf calls treat the buffer as having size GETREQSIZ, so
26
	# drop the subtraction.
27
	sed -i -e 's/\(calloc(GETREQSIZ\) - 2/\1/' Aget.c || die
28
	# Fix useless memset that set 0 bytes to the value of GETRECVSIZ, rather
29
	# than setting GETRECVSIZ bytes to the value of 0.
30
	sed -i -e 's/memset(\([a-zA-Z]\+\), \([a-zA-Z]\+\), 0)/memset(\1, 0, \2)/g' Download.c || die
24
	sed -i -e '/_XOPEN_SOURCE/d' Head.c || die
31
	sed -i -e '/_XOPEN_SOURCE/d' Head.c || die
25
	sed -i -e 's/http\/\//http:\/\//' Misc.c || die
32
	sed -i -e 's/http\/\//http:\/\//' Misc.c || die
26
}
33
}

Return to bug 337874