summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2016-06-17 19:05:09 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2016-06-17 19:05:40 +0300
commitd8885d5e1b824691f554644cb086dabd8883b916 (patch)
tree2e938ce66a98f4defa7fde24b974226c6f66c027 /sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild
parentapp-i18n/sunpinyin: Update HOMEPAGE. (diff)
downloadgentoo-d8885d5e1b824691f554644cb086dabd8883b916.tar.gz
gentoo-d8885d5e1b824691f554644cb086dabd8883b916.tar.bz2
gentoo-d8885d5e1b824691f554644cb086dabd8883b916.zip
sys-apps/pcsc-slb-rf72-drv: fixups
EAP-6, fix src_uri, rework patch Bug: 530668 Package-Manager: portage-2.2.28
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 7af68a538a39..777ba41cce3e 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}"