Contents of /branches/R11-stable/core/unzip/unzip-6.0-r4.smage2
Parent Directory | Revision Log
Revision 20812 -
(show annotations)
(download)
Tue Feb 11 09:51:44 2014 UTC (10 years, 7 months ago) by niro
File size: 1463 byte(s)
Tue Feb 11 09:51:44 2014 UTC (10 years, 7 months ago) by niro
File size: 1463 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="unzip" |
4 | PVER="6.0" |
5 | PBUILD="r4" |
6 | |
7 | PCAT="app-arch" |
8 | |
9 | DESCRIPTION="Unzipper for pkzip-compressed files." |
10 | HOMEPAGE="http://www.info-zip.org/UnZip.html" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDPEND=">= virtual/sed" |
14 | |
15 | SRCFILE="${PNAME}${PVER/.}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}${PVER/./}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | sourceforge://infozip/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-5.52-fix_Makefile.patch |
24 | mirror://${PNAME}/${PNAME}-5.52-fix_libz.patch |
25 | ) |
26 | |
27 | UP2SEPERATOR="NULL" |
28 | UP2TARBALL="${PNAME}" |
29 | UP2PVER="${PVER//.}" |
30 | UP2DATE="updatecmd_sourceforge infozip UnZip gz" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # fix a missing symlink |
38 | mpatch ${PNAME}-5.52-fix_Makefile.patch || die |
39 | |
40 | # fix compile against zlib |
41 | mpatch ${PNAME}-5.52-fix_libz.patch || die |
42 | |
43 | # force use of our CFLAGS |
44 | sed -i -e "s:-O3:${CFLAGS}:" \ |
45 | -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \ |
46 | -e "s:-O :${CFLAGS} :" unix/Makefile \ |
47 | || die |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | # disable asm on all arches but x86 |
55 | local my_opts=linux_noasm |
56 | [[ ${ARCH} = i*86 ]] && my_opts=linux |
57 | |
58 | mmake -f unix/Makefile ${my_opts} || die |
59 | } |
60 | |
61 | src_install() |
62 | { |
63 | cd ${SRCDIR} |
64 | |
65 | # bins |
66 | minstallexec unzip || die |
67 | minstallexec funzip || die |
68 | minstallexec unzipsfx || die |
69 | minstallexec unix/zipgrep || die |
70 | |
71 | mlink unzip /usr/bin/zipinfo || die |
72 | |
73 | # man |
74 | minstallman man/*.1 || die |
75 | |
76 | # docs |
77 | minstalldocs BUGS COPYING.OLD History* LICENSE README ToDo WHERE || die |
78 | } |