Annotation of /trunk/core/zip/zip-3.0-r5.smage2
Parent Directory | Revision Log
Revision 20717 -
(hide annotations)
(download)
Tue Feb 4 09:38:34 2014 UTC (10 years, 7 months ago) by niro
File size: 879 byte(s)
Tue Feb 4 09:38:34 2014 UTC (10 years, 7 months ago) by niro
File size: 879 byte(s)
-fixed dependencies sys-apps/sed -> virtual/sed
1 | niro | 20717 | # $Id$ |
2 | |||
3 | PNAME="zip" | ||
4 | PVER="3.0" | ||
5 | PBUILD="r5" | ||
6 | |||
7 | PCAT="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=">= virtual/sed" | ||
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 | } |