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