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/libieee1284/libieee1284-0.2.11-r2.ebuild,v 1.6 2012/05/12 11:03:23 xarthisius Exp $ |
4 |
|
5 |
EAPI="3" |
6 |
|
7 |
PYTHON_DEPEND="python? 2" |
8 |
inherit python |
9 |
|
10 |
DESCRIPTION="Library to query devices using IEEE1284" |
11 |
HOMEPAGE="http://cyberelk.net/tim/libieee1284/index.html" |
12 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
13 |
|
14 |
LICENSE="GPL-2" |
15 |
SLOT="0" |
16 |
KEYWORDS="amd64 ppc x86 ~x86-fbsd" |
17 |
IUSE="doc python static-libs" |
18 |
|
19 |
RDEPEND="" |
20 |
DEPEND="${RDEPEND} |
21 |
doc? ( |
22 |
app-text/docbook-sgml-utils |
23 |
>=app-text/docbook-sgml-dtd-4.1 |
24 |
app-text/docbook-dsssl-stylesheets |
25 |
dev-perl/XML-RegExp |
26 |
)" |
27 |
|
28 |
pkg_setup() { |
29 |
use python && python_set_active_version 2 |
30 |
} |
31 |
|
32 |
src_configure() { |
33 |
econf \ |
34 |
--enable-shared \ |
35 |
$(use_enable static-libs static) \ |
36 |
$(use_with python) \ |
37 |
--disable-dependency-tracking |
38 |
} |
39 |
|
40 |
src_install () { |
41 |
emake DESTDIR="${D}" install || die |
42 |
find "${D}" -name '*.la' -delete |
43 |
dodoc AUTHORS NEWS README* TODO doc/interface* |
44 |
} |