/[gentoo-x86]/sys-libs/libnih/libnih-1.0.3.ebuild
Gentoo

Contents of /sys-libs/libnih/libnih-1.0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu May 24 05:13:29 2012 UTC (2 years, 2 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Inherit toolchain-funcs for gen_usr_ldscript.

(Portage version: 2.2.0_alpha107_p3/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libnih/libnih-1.0.3.ebuild,v 1.3 2012/05/04 07:33:11 jdhore Exp $
4
5 EAPI="2"
6
7 inherit versionator eutils autotools toolchain-funcs
8
9 DESCRIPTION="Light-weight 'standard library' of C functions"
10 HOMEPAGE="https://launchpad.net/libnih"
11 SRC_URI="http://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~x86"
16 IUSE="+dbus nls static-libs test +threads"
17
18 RDEPEND="dbus? ( dev-libs/expat >=sys-apps/dbus-1.2.16 )"
19 DEPEND="${RDEPEND}
20 sys-devel/gettext
21 virtual/pkgconfig
22 test? ( dev-util/valgrind )"
23
24 src_prepare() {
25 epatch "${FILESDIR}"/${PN}-1.0.3-optional-dbus.patch
26 epatch "${FILESDIR}"/${PN}-1.0.3-pkg-config.patch
27 eautoreconf
28 }
29
30 src_configure() {
31 econf \
32 $(use_with dbus) \
33 $(use_enable nls) \
34 $(use_enable static-libs static) \
35 $(use_enable threads) \
36 $(use_enable threads threading)
37 }
38
39 src_install() {
40 emake DESTDIR="${D}" install || die
41
42 # we need to be in / because upstart needs libnih
43 gen_usr_ldscript -a nih $(use dbus && echo nih-dbus)
44 use static-libs || rm "${D}"/usr/lib*/*.la
45
46 dodoc AUTHORS ChangeLog HACKING NEWS README TODO
47 }

  ViewVC Help
Powered by ViewVC 1.1.20