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