sys-apps/pcsc-slb-rf72-drv: eapi cleanups
authorAlon Bar-Lev <alonbl@gentoo.org>
Fri, 3 Feb 2017 22:51:41 +0000 (00:51 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Sat, 4 Feb 2017 01:30:46 +0000 (03:30 +0200)
Package-Manager: portage-2.3.3

sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild

index 777ba41cce3e06f3e694e7f49a937ab3bea5656e..aaa21af882244bf085e9d2824d41a1227e7382bf 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -21,6 +21,10 @@ RDEPEND="sys-apps/pcsc-lite
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+DOCS=(
+       ERRATA README
+)
+
 PATCHES=(
        "${FILESDIR}/${P}-openct.patch"
 )
@@ -33,7 +37,7 @@ src_install () {
        local pcscdir="$(pkg-config --variable=usbdropdir libpcsclite)"
        local conf="/etc/reader.conf.d/${PN}.conf"
 
-       dodoc ERRATA README
+       einstalldocs
 
        dodir "${pcscdir}/serial"
        insinto "${pcscdir}/serial"
@@ -44,7 +48,9 @@ src_install () {
        insinto "$(dirname "${conf}")"
        newins "${FILESDIR}/reader.conf" "$(basename "${conf}")"
        sed -i "s#%PCSC_DRIVERS_DIR%#${pcscdir}#g" "${D}/${conf}"
+}
 
+pkg_postinst() {
        einfo "NOTICE:"
        einfo "1. modify ${conf}"
        einfo "2. run update-reader.conf, yes this is a command..."