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

Collapse All | Expand All

(-)a/oops-1.5.24_pre20050503-r4.ebuild (-5 / +19 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-proxy/oops/oops-1.5.24_pre20050503-r4.ebuild,v 1.5 2011/01/10 10:48:34 flameeyes Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-proxy/oops/oops-1.5.24_pre20050503-r4.ebuild,v 1.5 2011/01/10 10:48:34 flameeyes Exp $
4
4
5
EAPI="2"
5
EAPI="5"
6
6
7
inherit eutils flag-o-matic toolchain-funcs autotools
7
inherit eutils flag-o-matic toolchain-funcs autotools
8
8
Lines 39-44 Link Here
39
	epatch "${FILESDIR}/libpcreposix.patch"
39
	epatch "${FILESDIR}/libpcreposix.patch"
40
	epatch "${FILESDIR}/rotate-logs.patch"
40
	epatch "${FILESDIR}/rotate-logs.patch"
41
	epatch "${FILESDIR}/${P}+db-5.0.patch"
41
	epatch "${FILESDIR}/${P}+db-5.0.patch"
42
	epatch "${FILESDIR}/${P/_*}-respect-flags.patch"
42
	sed -i -e 's:y\.tab\.h:y.tab.c:' src/Makefile.in
43
	sed -i -e 's:y\.tab\.h:y.tab.c:' src/Makefile.in
43
	eautoreconf
44
	eautoreconf
44
}
45
}
Lines 54-72 Link Here
54
		--localstatedir=/var/run/oops \
55
		--localstatedir=/var/run/oops \
55
		--enable-large-files \
56
		--enable-large-files \
56
		--with-zlib=-lz \
57
		--with-zlib=-lz \
57
		|| die "configure problem"
58
		AR="$(tc-getAR)" \
59
		CC="$(tc-getCC)" \
60
		CXX="$(tc-getCXX)" \
61
		LD="$(tc-getCC)"
58
62
59
	sed -i -e '/STRERROR_R/d' src/config.h.in
63
	sed -i -e '/STRERROR_R/d' src/config.h.in || die
60
	sed -i \
64
	sed -i \
61
		-e "s|OOPS_LIBDIR = /usr/$(get_libdir)/oops|OOPS_LIBDIR = ${D}/usr/$(get_libdir)/oops|" \
65
		-e "s|OOPS_LIBDIR = /usr/$(get_libdir)/oops|OOPS_LIBDIR = ${D}/usr/$(get_libdir)/oops|" \
62
		-e "s|OOPS_SBINDIR = /usr/sbin|OOPS_SBINDIR = ${D}/usr/sbin|" \
66
		-e "s|OOPS_SBINDIR = /usr/sbin|OOPS_SBINDIR = ${D}/usr/sbin|" \
63
		-e "s|OOPS_SYSCONFDIR = /etc/oops|OOPS_SYSCONFDIR = ${D}/etc/oops|" \
67
		-e "s|OOPS_SYSCONFDIR = /etc/oops|OOPS_SYSCONFDIR = ${D}/etc/oops|" \
64
		-e "s|OOPS_LOCALSTATEDIR = /var/run/oops|OOPS_LOCALSTATEDIR = ${D}/var/run/oops|" \
68
		-e "s|OOPS_LOCALSTATEDIR = /var/run/oops|OOPS_LOCALSTATEDIR = ${D}/var/run/oops|" \
65
		-e "s|OOPSPATH=/usr/oops|OOPSPATH=${D}/usr/oops|" \
69
		-e "s|OOPSPATH=/usr/oops|OOPSPATH=${D}/usr/oops|" \
66
		src/Makefile
70
		src/Makefile || die
67
	sed -i \
71
	sed -i \
68
		-e "s|^\(LDFLAGS *= *\)${LDFLAGS}|\1$(raw-ldflags)|" \
72
		-e "s|^\(LDFLAGS *= *\)${LDFLAGS}|\1$(raw-ldflags)|" \
69
		src/modules/Makefile #modules makefile use ld directly
73
		src/modules/Makefile || die #modules makefile use ld directly
74
}
75
76
src_compile() {
77
	emake \
78
		AR="$(tc-getAR)" \
79
		CC="$(tc-getCC)" \
80
		CXX="$(tc-getCXX)" \
81
		LD="$(tc-getCC)" \
82
		RANLIB=":" \
83
		STRIP=":"
70
}
84
}
71
85
72
src_install() {
86
src_install() {

Return to bug 476000