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