summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-12-29 11:27:26 +0100
committerDavid Seifert <soap@gentoo.org>2017-12-29 14:15:47 +0100
commit7577e56e13fbbc97d9e4c73db9cc83836656ea48 (patch)
tree30e849201c70a28a14c315c8d03549d54989e257 /app-arch/stuffit
parentapp-text/kbibtex: Restrict tests (diff)
downloadgentoo-7577e56e13fbbc97d9e4c73db9cc83836656ea48.tar.gz
gentoo-7577e56e13fbbc97d9e4c73db9cc83836656ea48.tar.bz2
gentoo-7577e56e13fbbc97d9e4c73db9cc83836656ea48.zip
app-arch/stuffit: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-arch/stuffit')
-rw-r--r--app-arch/stuffit/stuffit-5.2.0.611.ebuild24
1 files changed, 13 insertions, 11 deletions
diff --git a/app-arch/stuffit/stuffit-5.2.0.611.ebuild b/app-arch/stuffit/stuffit-5.2.0.611.ebuild
index e6853abaea75..2e6528ed2126 100644
--- a/app-arch/stuffit/stuffit-5.2.0.611.ebuild
+++ b/app-arch/stuffit/stuffit-5.2.0.611.ebuild
@@ -1,10 +1,13 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+EAPI=6
+
MY_P="stuffit520.611linux-i386"
+
DESCRIPTION="Aladdin Software's StuffIt and StuffIt Expander"
HOMEPAGE="http://www.stuffit.com/"
-SRC_URI="http://my.smithmicro.com/downloads/files/stuffit520.611linux-i386.tar.gz"
+SRC_URI="http://my.smithmicro.com/downloads/files/${MY_P}.tar.gz"
LICENSE="Stuffit"
SLOT="0"
@@ -14,7 +17,7 @@ RESTRICT="fetch strip"
S="${WORKDIR}"
-INSTALLDIR="/opt/stuffit"
+INSTALLDIR=/opt/stuffit
pkg_nofetch() {
einfo "Please download stuffit from"
@@ -27,7 +30,6 @@ pkg_nofetch() {
}
src_install() {
-
# First do the binaries
exeinto ${INSTALLDIR}/bin
doexe bin/stuff
@@ -39,20 +41,20 @@ src_install() {
# Now the documentation
docinto stuff
- dodoc doc/stuff/README
- dohtml doc/stuff/stuff.html
+ dodoc doc/stuff/{README,stuff.html}
docinto unstuff
- dodoc doc/unstuff/README
- dohtml doc/unstuff/unstuff.html
+ dodoc doc/unstuff/{README,unstuff.html}
# And now the man pages
doman man/man1/*
# Also add the executables to the path
dodir /etc/env.d
- echo -e "PATH=${INSTALLDIR}/bin\nROOTPATH=${INSTALLDIR}/bin" > \
- "${D}"/etc/env.d/10stuffit
-
+ cat > "${T}"/10stuffit <<- EOF || die
+ PATH="${EPREFIX}${INSTALLDIR}/bin"
+ ROOTPATH="${EPREFIX}${INSTALLDIR}/bin"
+ EOF
+ doenvd "${T}"/10stuffit
}
pkg_postinst() {