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

(-)libev-4.15.ebuild (-16 / +16 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
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/libev/libev-4.15.ebuild,v 1.10 2013/12/20 19:57:20 hwoarang Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libev/libev-4.15.ebuild,v 1.9 2013/09/26 17:29:37 ago Exp $
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-54 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
	# bug #493050
31
	epatch "${FILESDIR}/${P}-automake-1.14.patch"
32
33
	epatch_user
34
	eautoreconf
35
}
36
28
37
src_configure() {
29
src_configure() {
38
	econf \
30
	local myeconfargs=(
39
		--disable-maintainer-mode \
31
		--disable-maintainer-mode
40
		$(use_enable static-libs static)
32
		$(use_enable static-libs static)
33
	)
34
	autotools-multilib_src_configure
41
}
35
}
42
36
43
src_install() {
37
src_install() {
44
	default
38
	autotools-multilib_src_install
45
	use static-libs || prune_libtool_files
39
	use static-libs || prune_libtool_files
46
}
40
}
47
41
48
pkg_preinst() {
42
pkg_preinst() {
43
	keep_old_lib() {
49
	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
50
}
47
}
51
48
52
pkg_postinst() {
49
pkg_postinst() {
50
	keep_old_lib() {
53
	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
54
}
54
}

Return to bug 494924