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

Collapse All | Expand All

(-)/usr/portage/dev-libs/libmix/libmix-2.05-r1.ebuild (-15 / +10 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/dev-libs/libmix/libmix-2.05-r1.ebuild,v 1.1 2009/01/08 19:11:40 jer Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmix/libmix-2.05-r1.ebuild,v 1.1 2009/01/08 19:11:40 jer Exp $
4
4
5
inherit multilib eutils
5
EAPI="2"
6
inherit autotools eutils
6
7
7
DESCRIPTION="Programs Crypto/Network/Multipurpose Library"
8
DESCRIPTION="Programs Crypto/Network/Multipurpose Library"
8
HOMEPAGE="http://mixter.void.ru/"
9
HOMEPAGE="http://mixter.void.ru/"
Lines 11-39 Link Here
11
LICENSE="GPL-2"
12
LICENSE="GPL-2"
12
SLOT="0"
13
SLOT="0"
13
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
14
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
14
IUSE="no-net2"
15
IUSE="net2"
15
16
16
DEPEND="!no-net2? ( virtual/libpcap net-libs/libnet )"
17
DEPEND="net2? ( virtual/libpcap net-libs/libnet )"
17
18
18
S=${WORKDIR}/${PN}-v${PV}
19
S=${WORKDIR}/${PN}-v${PV}
19
20
20
src_unpack() {
21
src_prepare() {
21
	unpack ${A}
22
	cd "${S}"
23
	sed -i "s:-O3 -funroll-loops:${CFLAGS} -fPIC:" configure
24
	epatch "${FILESDIR}"/${P}-fix-pattern.patch
22
	epatch "${FILESDIR}"/${P}-fix-pattern.patch
23
	epatch "${FILESDIR}"/${P}-autotools.patch
24
	eautoreconf
25
}
25
}
26
26
27
src_compile() {
27
src_configure() {
28
	econf $(use_with no-net2) || die
28
	econf $(use_with net2) || die "econf failed"
29
	emake || die
30
}
29
}
31
30
32
src_install() {
31
src_install() {
33
	make \
32
	emake DESTDIR="${D}" install || die "install failed"
34
		INSTALL_INCLUDES_IN="${D}"/usr/include \
35
		INSTALL_LIBRARY_IN="${D}"/usr/$(get_libdir) \
36
		INSTALL_MANPAGE_IN="${D}"/usr/share/man \
37
		install || die
38
	dodoc CHANGES
33
	dodoc CHANGES
39
}
34
}

Return to bug 268444