/[gentoo-x86]/dev-libs/opensc/opensc-0.12.2.ebuild
Gentoo

Contents of /dev-libs/opensc/opensc-0.12.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Jun 22 23:27:32 2012 UTC (2 years, 6 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old; make sure to use automake 1.11 for rebuilding as it fails with 1.12.

(Portage version: 2.2.0_alpha110/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/dev-libs/opensc/opensc-0.12.2.ebuild,v 1.5 2012/05/13 22:13:29 flameeyes Exp $
4
5 EAPI="4"
6
7 inherit eutils autotools
8
9 DESCRIPTION="Libraries and applications to access smartcards"
10 HOMEPAGE="http://www.opensc-project.org/opensc/"
11 SRC_URI="http://www.opensc-project.org/files/${PN}/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
16 IUSE="doc libtool +pcsc-lite openct readline ssl zlib"
17
18 RDEPEND="libtool? ( sys-devel/libtool )
19 zlib? ( sys-libs/zlib )
20 readline? ( sys-libs/readline )
21 ssl? ( dev-libs/openssl )
22 openct? ( >=dev-libs/openct-0.5.0 )
23 pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )"
24 DEPEND="${RDEPEND}
25 virtual/pkgconfig
26 app-text/docbook-xsl-stylesheets
27 dev-libs/libxslt"
28
29 REQUIRED_USE="
30 pcsc-lite? ( !openct )
31 openct? ( !pcsc-lite )"
32
33 src_prepare() {
34 epatch "${FILESDIR}"/${PN}-0.12.1-crossbuild.patch
35 epatch "${FILESDIR}"/${P}-parallelinstall.patch
36 eautoreconf
37 }
38
39 src_configure() {
40 # disable everything, enable selectively
41 local myconf="--disable-pcsc --disable-openct --disable-ctapi"
42
43 if use pcsc-lite; then
44 myconf+=" --enable-pcsc"
45 elif use openct; then
46 myconf+=" --enable-openct"
47 else
48 myconf+=" --enable-ctapi"
49 fi
50
51 # the configure script prefers libtool's libltdl over
52 # the native system's dlopen ... so we have to manually
53 # control the behavior to something a bit more sane
54 export ac_cv_header_ltdl_h=$(usex libtool) \
55 ac_cv_lib_ltdl_lt_dlopen=$(usex libtool)
56
57 econf \
58 --docdir="/usr/share/doc/${PF}" \
59 --htmldir="/usr/share/doc/${PF}/html" \
60 --disable-static \
61 $(use_enable doc) \
62 $(use_enable openct) \
63 $(use_enable readline) \
64 $(use_enable zlib) \
65 ${myconf}
66 }
67
68 src_install() {
69 emake DESTDIR="${D}" install
70 find "${D}" -name '*.la' -delete
71
72 dodoc ChangeLog
73 }

  ViewVC Help
Powered by ViewVC 1.1.20