sys-apps/pmount: Bump to EAPI 7
authorMichał Górny <mgorny@gentoo.org>
Sun, 5 Jan 2020 14:57:02 +0000 (15:57 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 5 Jan 2020 15:17:56 +0000 (16:17 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-apps/pmount/files/pmount-0.9.19-testsuite-missing-dir.patch
sys-apps/pmount/files/pmount-0.9.99_alpha-locale-regex.patch
sys-apps/pmount/pmount-0.9.99_alpha-r5.ebuild

index 93d0555f0f3d74ace41307906fcca25452761a0d..319a1d6f04a3ac2fdb3a7668917d553758d1114f 100644 (file)
@@ -16,21 +16,21 @@ diff --git a/tests/check_fstab/a b/tests/check_fstab/a
 new file mode 100644
 index 0000000..d16d1c5
 --- /dev/null
-+++ tests/check_fstab/a
++++ b/tests/check_fstab/a
 @@ -0,0 +1 @@
 +This file is a 'dummy device file' for the fstab check
 diff --git a/tests/check_fstab/d b/tests/check_fstab/d
 new file mode 100644
 index 0000000..d16d1c5
 --- /dev/null
-+++ tests/check_fstab/d
++++ b/tests/check_fstab/d
 @@ -0,0 +1 @@
 +This file is a 'dummy device file' for the fstab check
 diff --git a/tests/check_fstab/fstab b/tests/check_fstab/fstab
 new file mode 100644
 index 0000000..8ba6f6c
 --- /dev/null
-+++ tests/check_fstab/fstab
++++ b/tests/check_fstab/fstab
 @@ -0,0 +1,6 @@
 +# A dummy fstab file for 
 +
index c96fc0554522df2fb9a55400705449ddacbc87d6..3dabd03c96598883837250accc80276abaf2da4c 100644 (file)
@@ -1,7 +1,7 @@
 http://bugs.gentoo.org/416985
 
---- src/conffile.c
-+++ src/conffile.c
+--- a/src/conffile.c
++++ b/src/conffile.c
 @@ -372,7 +372,7 @@ static int cf_prepare_regexps()
    /* A regexp matching a boolean value*/
  
index 52df8b15b9ffc398806394b3ace3961ddabb3570..7df482af2a2e75e01caba740867161ea689bde80 100644 (file)
@@ -1,12 +1,13 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils bash-completion-r1
+EAPI=7
+inherit bash-completion-r1
 
 DESCRIPTION="Policy based mounter that gives the ability to mount removable devices as a user"
 HOMEPAGE="https://launchpad.net/pmount"
 SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV/_/-}.orig.tar.bz2"
+S=${WORKDIR}/${P/_/-}
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -21,21 +22,22 @@ DEPEND="${RDEPEND}
        dev-util/intltool
        sys-devel/gettext"
 
-S=${WORKDIR}/${P/_/-}
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.9.19-testsuite-missing-dir.patch
+       "${FILESDIR}"/${P}-locale-regex.patch
+)
 
 src_prepare() {
        # Restore default value from pmount <= 0.9.23 wrt #393633
        sed -i -e '/^not_physically_logged_allow/s:=.*:= yes:' etc/pmount.conf || die
 
-       cat <<-EOF > po/POTFILES.skip
+       cat <<-EOF > po/POTFILES.skip || die
        src/conffile.c
        src/configuration.c
        src/loop.c
        EOF
 
-       epatch \
-               "${FILESDIR}"/${PN}-0.9.19-testsuite-missing-dir.patch \
-               "${FILESDIR}"/${P}-locale-regex.patch
+       default
 }
 
 src_configure() {
@@ -45,14 +47,15 @@ src_configure() {
 src_test() {
        local testdir=${S}/tests/check_fstab
 
-       ln -s $testdir/a $testdir/b && ln -s $testdir/d $testdir/c && \
-               ln -s $testdir/c $testdir/e \
-               || die "Unable to create fake symlinks required for testsuite"
+       ln -s a "${testdir}/b" &&
+               ln -s d "${testdir}/c" &&
+               ln -s c "${testdir}/e" ||
+               die "Unable to create fake symlinks required for testsuite"
 
        emake check
 }
 
-src_install () {
+src_install() {
        # Must be run SETUID+SETGID, bug #250106
        exeinto /usr/bin
        exeopts -m 6710 -g plugdev