Contents of /branches/magellan-next/extras/zip/zip-3.0-r4.smage2
Parent Directory | Revision Log
Revision 8607 -
(show annotations)
(download)
Mon Jul 25 10:23:32 2011 UTC (13 years, 2 months ago) by niro
File size: 888 byte(s)
Mon Jul 25 10:23:32 2011 UTC (13 years, 2 months ago) by niro
File size: 888 byte(s)
auto added: ver bump to 3.0-r4
1 | # $Id$ |
2 | |
3 | PNAME="zip" |
4 | PVER="3.0" |
5 | PBUILD="r4" |
6 | |
7 | PCATEGORIE="app-arch" |
8 | |
9 | DESCRIPTION="ZIP with encryption support." |
10 | HOMEPAGE="http://www.info-zip.org/" |
11 | |
12 | DEPEND=">= app-arch/unzip-5" |
13 | SDEPEND=">= sys-apps/sed-4" |
14 | |
15 | SRCFILE="${PNAME}${PVER/./}.tgz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}${PVER/./}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | ftp://ftp.info-zip.org/pub/infozip/src/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd ${HOMEPAGE}/Zip.html | grep Zip | sed -n 's/.*p \(.*\) \[.*/\1/;1 p'" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR}/unix |
31 | |
32 | # force use of our CFLAGS |
33 | sed -i "s:-O2:${CFLAGS}:" Makefile || die |
34 | } |
35 | |
36 | src_compile() |
37 | { |
38 | cd ${SRCDIR} |
39 | mmake -f unix/Makefile CC="gcc" CPP="gcc -E" generic || die |
40 | } |
41 | |
42 | src_install() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | minstallexec zip || die |
47 | minstallexec zipcloak || die |
48 | minstallexec zipnote || die |
49 | minstallexec zipsplit || die |
50 | minstallman man/zip.1 || die |
51 | } |