Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 244144 | Differences between
and this patch

Collapse All | Expand All

(-)a/p3scan-2.3.2.ebuild (-2 / +17 lines)
Lines 10-16 Link Here
10
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
HOMEPAGE="http://p3scan.sf.net/"
11
HOMEPAGE="http://p3scan.sf.net/"
12
12
13
DEPEND="dev-libs/libpcre"
13
# Older ripmime did not install a library
14
DEPEND="dev-libs/libpcre
15
	>=net-mail/ripmime-1.4.0.9
16
	"
14
RDEPEND="net-firewall/iptables"
17
RDEPEND="net-firewall/iptables"
15
18
16
SLOT="0"
19
SLOT="0"
Lines 20-29 Link Here
20
23
21
src_prepare() {
24
src_prepare() {
22
	epatch "${FILESDIR}/p3scan-ocreat.patch"
25
	epatch "${FILESDIR}/p3scan-ocreat.patch"
26
27
	# respect CC (bug #244144), and CFLAGS (bug #240786)
28
	sed -i \
29
		-e '/^CC=/d' \
30
		-e "s:^CFLAGS=-Wall -O2 :CFLAGS=-O2 ${CFLAGS} :" \
31
		-e '/^LDFLAGS=/d' \
32
		-e '/^ripmime\/libripmime/,+7d' \
33
		-e '/^\.c\.o:/,+3d' \
34
		-e '$ap3scan: LDLIBS:=-lripmime -lpcre -lssl -lcrypto\np3scan: $(OBJECTS)' \
35
		Makefile || die
36
	# Be sure the system copy is used
37
	rm -rf ripmime/
23
}
38
}
24
39
25
src_compile() {
40
src_compile() {
26
	emake || die
41
	emake CC="$(tc-getCC)" || die
27
}
42
}
28
43
29
src_install () {
44
src_install () {

Return to bug 244144