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

Collapse All | Expand All

(-)/usr/portage/dev-libs/libev/libev-4.15.ebuild (-12 / +15 lines)
Lines 4-10 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit autotools eutils multilib
7
inherit autotools-multilib
8
8
9
DESCRIPTION="A high-performance event loop/event model with lots of feature"
9
DESCRIPTION="A high-performance event loop/event model with lots of feature"
10
HOMEPAGE="http://software.schmorp.de/pkg/libev.html"
10
HOMEPAGE="http://software.schmorp.de/pkg/libev.html"
Lines 22-51 Link Here
22
22
23
DOCS=( Changes README )
23
DOCS=( Changes README )
24
24
25
src_prepare() {
25
# bug #411847
26
	sed -i -e "/^include_HEADERS/s/ event.h//" Makefile.am || die
26
PATCHES=( "${FILESDIR}"/${PN}-pc.patch "${FILESDIR}"/${P}-gentoo.patch )
27
27
AUTOTOOLS_AUTORECONF=1
28
	# bug #411847
29
	epatch "${FILESDIR}/${PN}-pc.patch"
30
31
	eautoreconf
32
}
33
28
34
src_configure() {
29
src_configure() {
35
	econf \
30
	local myeconfargs=(
36
		--disable-maintainer-mode \
31
		--disable-maintainer-mode
37
		$(use_enable static-libs static)
32
		$(use_enable static-libs static)
33
	)
34
	autotools-multilib_src_configure
38
}
35
}
39
36
40
src_install() {
37
src_install() {
41
	default
38
	autotools-multilib_src_install
42
	use static-libs || prune_libtool_files
39
	use static-libs || prune_libtool_files
43
}
40
}
44
41
45
pkg_preinst() {
42
pkg_preinst() {
43
	keep_old_lib() {
46
	preserve_old_lib /usr/$(get_libdir)/libev.so.3.0.0
44
	preserve_old_lib /usr/$(get_libdir)/libev.so.3.0.0
45
	}
46
	multilib_foreach_abi keep_old_lib
47
}
47
}
48
48
49
pkg_postinst() {
49
pkg_postinst() {
50
	keep_old_lib() {
50
	preserve_old_lib_notify /usr/$(get_libdir)/libev.so.3.0.0
51
	preserve_old_lib_notify /usr/$(get_libdir)/libev.so.3.0.0
52
	}
53
	multilib_foreach_abi keep_old_lib
51
}
54
}

Return to bug 494924