Annotation of /trunk/core/unzip/unzip-6.0-r1.smage2
Parent Directory | Revision Log
Revision 3213 -
(hide annotations)
(download)
Fri Oct 16 16:27:55 2009 UTC (14 years, 8 months ago) by niro
File size: 1571 byte(s)
Fri Oct 16 16:27:55 2009 UTC (14 years, 8 months ago) by niro
File size: 1571 byte(s)
auto added: ver bump to 6.0-r1
1 | niro | 3211 | # $Id$ |
2 | |||
3 | PNAME="unzip" | ||
4 | PVER="6.0" | ||
5 | PBUILD="r1" | ||
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 | niro | 3213 | mirror://${PNAME}/${PNAME}-5.52-fix_Makefile.patch |
25 | mirror://${PNAME}/${PNAME}-5.52-fix_libz.patch | ||
26 | mirror://${PNAME}/${PNAME}-5.52-dont_make_noise.patch | ||
27 | niro | 3211 | ) |
28 | |||
29 | niro | 3212 | UP2DATE="updatecmd_sourceforge infozip ${PNAME}" |
30 | niro | 3211 | |
31 | src_prepare() | ||
32 | { | ||
33 | munpack ${SRCFILE} || die | ||
34 | cd ${SRCDIR} | ||
35 | |||
36 | # fix a missing symlink | ||
37 | niro | 3213 | mpatch ${PNAME}-5.52-fix_Makefile.patch || die |
38 | niro | 3211 | |
39 | niro | 3213 | # fix compile against zlib |
40 | mpatch ${PNAME}-5.52-fix_libz.patch || die | ||
41 | niro | 3211 | |
42 | # fix noisiness in Midnight Commander | ||
43 | niro | 3213 | mpatch ${PNAME}-5.52-dont_make_noise.patch || die |
44 | niro | 3211 | |
45 | # force use of our CFLAGS | ||
46 | sed -i -e "s:-O3:${CFLAGS}:" \ | ||
47 | -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \ | ||
48 | -e "s:-O :${CFLAGS} :" unix/Makefile \ | ||
49 | || die | ||
50 | } | ||
51 | |||
52 | src_compile() | ||
53 | { | ||
54 | cd ${SRCDIR} | ||
55 | |||
56 | # disable asm on all arches but x86 | ||
57 | local my_opts=linux_noasm | ||
58 | [[ ${ARCH} = i*86 ]] && my_opts=linux | ||
59 | |||
60 | mmake -f unix/Makefile ${my_opts} || die | ||
61 | } | ||
62 | |||
63 | src_install() | ||
64 | { | ||
65 | cd ${SRCDIR} | ||
66 | |||
67 | # bins | ||
68 | minstallexec unzip || die | ||
69 | minstallexec funzip || die | ||
70 | minstallexec unzipsfx || die | ||
71 | minstallexec unix/zipgrep || die | ||
72 | |||
73 | mlink unzip /usr/bin/zipinfo || die | ||
74 | |||
75 | # man | ||
76 | minstallman man/*.1 || die | ||
77 | |||
78 | # docs | ||
79 | minstalldocs BUGS COPYING.OLD History* LICENSE README ToDo WHERE || die | ||
80 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |