1 |
commit: 7577e56e13fbbc97d9e4c73db9cc83836656ea48 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 10:27:26 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 13:15:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7577e56e |
7 |
|
8 |
app-arch/stuffit: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-arch/stuffit/stuffit-5.2.0.611.ebuild | 24 +++++++++++++----------- |
13 |
1 file changed, 13 insertions(+), 11 deletions(-) |
14 |
|
15 |
diff --git a/app-arch/stuffit/stuffit-5.2.0.611.ebuild b/app-arch/stuffit/stuffit-5.2.0.611.ebuild |
16 |
index e6853abaea7..2e6528ed212 100644 |
17 |
--- a/app-arch/stuffit/stuffit-5.2.0.611.ebuild |
18 |
+++ b/app-arch/stuffit/stuffit-5.2.0.611.ebuild |
19 |
@@ -1,10 +1,13 @@ |
20 |
-# Copyright 1999-2013 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
+EAPI=6 |
25 |
+ |
26 |
MY_P="stuffit520.611linux-i386" |
27 |
+ |
28 |
DESCRIPTION="Aladdin Software's StuffIt and StuffIt Expander" |
29 |
HOMEPAGE="http://www.stuffit.com/" |
30 |
-SRC_URI="http://my.smithmicro.com/downloads/files/stuffit520.611linux-i386.tar.gz" |
31 |
+SRC_URI="http://my.smithmicro.com/downloads/files/${MY_P}.tar.gz" |
32 |
|
33 |
LICENSE="Stuffit" |
34 |
SLOT="0" |
35 |
@@ -14,7 +17,7 @@ RESTRICT="fetch strip" |
36 |
|
37 |
S="${WORKDIR}" |
38 |
|
39 |
-INSTALLDIR="/opt/stuffit" |
40 |
+INSTALLDIR=/opt/stuffit |
41 |
|
42 |
pkg_nofetch() { |
43 |
einfo "Please download stuffit from" |
44 |
@@ -27,7 +30,6 @@ pkg_nofetch() { |
45 |
} |
46 |
|
47 |
src_install() { |
48 |
- |
49 |
# First do the binaries |
50 |
exeinto ${INSTALLDIR}/bin |
51 |
doexe bin/stuff |
52 |
@@ -39,20 +41,20 @@ src_install() { |
53 |
|
54 |
# Now the documentation |
55 |
docinto stuff |
56 |
- dodoc doc/stuff/README |
57 |
- dohtml doc/stuff/stuff.html |
58 |
+ dodoc doc/stuff/{README,stuff.html} |
59 |
docinto unstuff |
60 |
- dodoc doc/unstuff/README |
61 |
- dohtml doc/unstuff/unstuff.html |
62 |
+ dodoc doc/unstuff/{README,unstuff.html} |
63 |
|
64 |
# And now the man pages |
65 |
doman man/man1/* |
66 |
|
67 |
# Also add the executables to the path |
68 |
dodir /etc/env.d |
69 |
- echo -e "PATH=${INSTALLDIR}/bin\nROOTPATH=${INSTALLDIR}/bin" > \ |
70 |
- "${D}"/etc/env.d/10stuffit |
71 |
- |
72 |
+ cat > "${T}"/10stuffit <<- EOF || die |
73 |
+ PATH="${EPREFIX}${INSTALLDIR}/bin" |
74 |
+ ROOTPATH="${EPREFIX}${INSTALLDIR}/bin" |
75 |
+ EOF |
76 |
+ doenvd "${T}"/10stuffit |
77 |
} |
78 |
|
79 |
pkg_postinst() { |