dev-util/confix-wrapper: bump to EAPI 7
authorMichael Haubenwallner <haubi@gentoo.org>
Wed, 16 Oct 2019 09:01:28 +0000 (11:01 +0200)
committerMichael Haubenwallner <haubi@gentoo.org>
Wed, 16 Oct 2019 09:02:42 +0000 (11:02 +0200)
Closes: https://bugs.gentoo.org/697324
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
dev-util/confix-wrapper/confix-wrapper-1.ebuild [moved from dev-util/confix-wrapper/confix-wrapper-0.ebuild with 70% similarity]

similarity index 70%
rename from dev-util/confix-wrapper/confix-wrapper-0.ebuild
rename to dev-util/confix-wrapper/confix-wrapper-1.ebuild
index e8f8dcb4d2cb897bbe9383b8fe28d7587afe3a2c..685b1b97161d40be6789f945c04a6eb7eb78fb8d 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
 DESCRIPTION="Wrapper to select either confix1.py or confix2.py"
 HOMEPAGE="http://confix.sourceforge.net"
@@ -10,10 +10,10 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
 IUSE=""
+S=${WORKDIR}
 
-src_install() {
-       dodir /usr/bin
-       cat >> "${ED:-${D}}"usr/bin/confix <<EOF
+src_unpack() {
+       cat >> confix <<EOF || die
 #! ${EPREFIX:-}/bin/sh
 confixpy=
 if [ -f ./Confix2.dir ]; then
@@ -28,6 +28,8 @@ case \$# in
 *) exec \${confixpy} "\$@" ;;
 esac
 EOF
-       fperms a+x /usr/bin/confix || die "cannot set permissions"
-       dosym confix /usr/bin/confix.py || die "cannot create 'confix' symlink"
+}
+
+src_install() {
+       dobin confix
 }