blob: c6b45e53d6ea277c311e10bdd2abbbca52e3671a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/stuffit/stuffit-5.2.0.611.ebuild,v 1.3 2002/11/27 03:47:31 nall Exp $
MY_P="stuffit520.611linux-i386"
DESCRIPTION="Aladdin Software's StuffIt and StuffIt Expander"
HOMEPAGE="http://stuffit.com/"
SRC_URI=""
LICENSE="Stuffit"
SLOT="0"
KEYWORDS="x86 -ppc -sparc -sparc64 -alpha"
IUSE=""
DEPEND=""
RDEPEND=""
S=${WORKDIR}
INSTALLDIR="/opt/stuffit"
RESTRICT="fetch nostrip"
pkg_setup() {
if [ ${ARCH} != "x86" ] ; then
einfo "This is an x86 only package, sorry"
die "Not supported on your ARCH"
fi
}
src_unpack() {
if [ ! -f ${DISTDIR}/${MY_P}.tgz ] ; then
einfo
einfo "Please download ${MY_P} from ${HOMEPAGE}downloads.html"
einfo "(click on the Linux Evaluation Link), and put it in ${DISTDIR}"
einfo
einfo "Note that StuffIt requires registration within 15 days,"
einfo "but StuffIt Expander is freeware."
einfo
die
fi
unpack ${MY_P}.tgz
}
src_install() {
# First do the binaries
exeinto ${INSTALLDIR}/bin
doexe ${S}/bin/stuff
doexe ${S}/bin/unstuff
# Now the registration binary
exeinto ${INSTALLDIR}/extra
doexe ${S}/bin/register
# Now the documentation
docinto stuff
dodoc ${S}/doc/stuff/LICENSE
dodoc ${S}/doc/stuff/README
dodoc ${S}/doc/stuff/INSTALL
dohtml ${S}/doc/stuff/stuff.html
docinto unstuff
dodoc ${S}/doc/unstuff/LICENSE
dodoc ${S}/doc/unstuff/README
dodoc ${S}/doc/unstuff/INSTALL
dohtml ${S}/doc/unstuff/unstuff.html
# And now the man pages
doman ${S}/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
}
pkg_postinst() {
env-update
einfo
einfo "Reminder: StuffIt requires registration within 15 days."
einfo "The registration program is located in ${INSTALLDIR}/extra"
einfo
einfo "The binaries are named 'stuff' and 'unstuff'"
einfo
}
pkg_postrm() {
# Get rid of those extraneous PATH entries.
env-update
}
|