diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-08-12 07:50:39 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-08-12 07:50:39 +0000 |
commit | c4b89fdecf0eae699a7edf6904d75b8dec59293e (patch) | |
tree | 3765a2d4d505bd031e8380d60edb33bcee331a82 | |
parent | Inherit multilib.eclass for function get_libdir as noted by repoman. (diff) | |
download | gentoo-2-c4b89fdecf0eae699a7edf6904d75b8dec59293e.tar.gz gentoo-2-c4b89fdecf0eae699a7edf6904d75b8dec59293e.tar.bz2 gentoo-2-c4b89fdecf0eae699a7edf6904d75b8dec59293e.zip |
Query udev.pc pkg-config file for correct udevdir value.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
-rw-r--r-- | app-crypt/acr38u/ChangeLog | 7 | ||||
-rw-r--r-- | app-crypt/acr38u/acr38u-1.7.10-r1.ebuild | 4 | ||||
-rw-r--r-- | app-crypt/acr38u/acr38u-1.7.11-r1.ebuild | 59 |
3 files changed, 67 insertions, 3 deletions
diff --git a/app-crypt/acr38u/ChangeLog b/app-crypt/acr38u/ChangeLog index 5b8081b2a8a4..7aea9673dfb8 100644 --- a/app-crypt/acr38u/ChangeLog +++ b/app-crypt/acr38u/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-crypt/acr38u # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/acr38u/ChangeLog,v 1.3 2012/05/03 18:16:38 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/acr38u/ChangeLog,v 1.4 2012/08/12 07:50:39 ssuominen Exp $ + +*acr38u-1.7.11-r1 (12 Aug 2012) + + 12 Aug 2012; Samuli Suominen <ssuominen@gentoo.org> +acr38u-1.7.11-r1.ebuild: + Query udev.pc pkg-config file for correct udevdir value. 03 May 2012; Jeff Horelick <jdhore@gentoo.org> acr38u-1.7.10-r1.ebuild, acr38u-1.7.11.ebuild: diff --git a/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild b/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild index 479500bf13e0..95cdcc7e6013 100644 --- a/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild +++ b/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild,v 1.2 2012/05/03 18:16:38 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild,v 1.3 2012/08/12 07:50:39 ssuominen Exp $ EAPI=3 @@ -47,6 +47,6 @@ src_install() { # Remove useless .la files find "${D}" -name '*.la' -delete - insinto /$(get_libdir)/udev/rules.d + insinto /lib/udev/rules.d doins "${FILESDIR}/92-pcscd-acr38u.rules" } diff --git a/app-crypt/acr38u/acr38u-1.7.11-r1.ebuild b/app-crypt/acr38u/acr38u-1.7.11-r1.ebuild new file mode 100644 index 000000000000..1ad04e2a7b2a --- /dev/null +++ b/app-crypt/acr38u/acr38u-1.7.11-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/acr38u/acr38u-1.7.11-r1.ebuild,v 1.1 2012/08/12 07:50:39 ssuominen Exp $ + +EAPI=4 + +inherit multilib eutils versionator autotools toolchain-funcs + +MY_P=ACR38_LINUX_$(get_version_component_range 1)00$(get_version_component_range 2)$(get_version_component_range 3)_P + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="~amd64 ~x86" +DESCRIPTION="Non CCID driver for ACR38 AC1038-based Smart Card Reader." + +#SRC_URI="http://www.acs.com.hk/drivers/eng/${MY_P}.tar.bz2" +# tarball release is encapsuled in a .zip file :-( +# http://www.acs.com.hk/drivers/eng/ACR38_Driver_Lnx_101_P.zip +# I'm waiting an answer from info@acs.com.hk about that ! +SRC_URI="http://www.linuxunderground.be/${MY_P}.tar.bz2" +HOMEPAGE="http://www.acs.com.hk" + +# Make this safe from collisions, require a version of pcsc-lite that +# uses libusb-1.0 and use the wrapper library instead. +# Changed back from dev-libs/libusb-compat to virtual/libusb:0 because +# libusb-compat is marked stable and primary in the virtual. -ssuominen +RDEPEND=">=sys-apps/pcsc-lite-1.6.4 + virtual/libusb:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +IUSE="" + +src_prepare() { + epatch_user + + sed -i -e '/pcdir/s:@prefix@/lib:$(libdir):' src/controllib/Makefile.am + + eautoreconf +} + +src_configure() { + econf \ + --enable-static=false \ + --enable-usbdropdir="${D}/usr/$(get_libdir)/readers/usb" +} + +src_install() { + emake DESTDIR="${D}" install + + prune_libtool_files + + local udevdir=/lib/udev + has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" + insinto "${udevdir}"/rules.d + newins "${FILESDIR}"/${PV}.rules 92-pcscd-acr38u.rules +} |