summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild')
-rw-r--r--sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild27
1 files changed, 13 insertions, 14 deletions
diff --git a/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild b/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild
index 7af68a538a3..777ba41cce3 100644
--- a/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild
+++ b/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI="2"
+EAPI="6"
inherit eutils toolchain-funcs
@@ -14,37 +14,36 @@ LICENSE="all-rights-reserved BSD LGPL-2.1+"
KEYWORDS="~amd64 ~x86"
IUSE=""
SLOT="0"
-SRC_URI="http://www.linuxnet.com/drivers/readers/files/slb_rf72-drv-1.1.0.tar.gz"
-RESTRICT="mirror bindist"
+SRC_URI="mirror://gentoo/${MY_P}-drv-${PV}.tar.gz"
RDEPEND="sys-apps/pcsc-lite
dev-libs/openct"
DEPEND="${RDEPEND}
virtual/pkgconfig"
-src_prepare() {
- epatch "${FILESDIR}/${P}-build-new.patch"
-}
+PATCHES=(
+ "${FILESDIR}/${P}-openct.patch"
+)
src_compile() {
- emake CC="$(tc-getCC)" LD="$(tc-getLD)" || die
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)"
}
src_install () {
local pcscdir="$(pkg-config --variable=usbdropdir libpcsclite)"
local conf="/etc/reader.conf.d/${PN}.conf"
- dodoc ERRATA README || die
+ dodoc ERRATA README
- dodir "${pcscdir}/serial" || die
+ dodir "${pcscdir}/serial"
insinto "${pcscdir}/serial"
insopts -m755
- doins libslb_rf72.so || die
+ doins libslb_rf72.so
- dodir "$(dirname "${conf}")" || die
+ dodir "$(dirname "${conf}")"
insinto "$(dirname "${conf}")"
- newins "${FILESDIR}/reader.conf" "$(basename "${conf}")" || die
- sed -i "s#%PCSC_DRIVERS_DIR%#${pcscdir}#g" "${D}/${conf}" || die
+ newins "${FILESDIR}/reader.conf" "$(basename "${conf}")"
+ sed -i "s#%PCSC_DRIVERS_DIR%#${pcscdir}#g" "${D}/${conf}"
einfo "NOTICE:"
einfo "1. modify ${conf}"