blob: 41ab72a8af36027c625d700ef5955ddb9c98319c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/librapi2/librapi2-0.15.2.ebuild,v 1.4 2011/08/07 11:40:11 ssuominen Exp $
EAPI=3
PYTHON_DEPEND="python? 2:2.6"
inherit autotools eutils python
DESCRIPTION="A library for SynCE"
HOMEPAGE="http://www.synce.org/"
SRC_URI="mirror://sourceforge/synce/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="python static-libs"
RDEPEND=">=dev-libs/libsynce-0.15.1[dbus]
>=dev-libs/dbus-glib-0.88
python? ( >=dev-python/pyrex-0.9.6 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
pkg_setup() {
if use python; then
python_set_active_version 2
python_pkg_setup
fi
}
src_prepare() {
epatch "${FILESDIR}"/${P}-underlinking.patch
AT_M4DIR="m4" eautoreconf
}
src_configure() {
econf \
--disable-dependency-tracking \
$(use_enable static-libs static) \
--enable-odccm-support \
--disable-hal-support \
--enable-udev-support \
$(use_enable python python-bindings)
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc BUGS ChangeLog README* TODO
find "${D}" -name '*.la' -exec rm -f {} +
}
|