Contents of /smage/branches/alx-0_6_0/extras/unzip/unzip-6.0-r1.smage2
Parent Directory | Revision Log
Revision 2653 -
(show annotations)
(download)
Mon Jul 11 11:10:46 2011 UTC (12 years, 11 months ago) by niro
File size: 1494 byte(s)
Mon Jul 11 11:10:46 2011 UTC (12 years, 11 months ago) by niro
File size: 1494 byte(s)
auto added: ver bump to 6.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="unzip" |
4 | PVER="6.0" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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=">= sys-apps/sed-4" |
14 | |
15 | SRCFILE="${PNAME}${PVER/.}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}${PVER/./}" |
17 | |
18 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
19 | ALX_ONLY_KEEP="usr/bin/unzip" |
20 | sminclude mtools alx-split |
21 | |
22 | SRC_URI=( |
23 | sourceforge://infozip/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-5.52-fix_Makefile.patch |
26 | mirror://${PNAME}/${PNAME}-5.52-fix_libz.patch |
27 | ) |
28 | |
29 | UP2DATE="updatecmd_sourceforge infozip ${PNAME}" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # fix a missing symlink |
37 | mpatch ${PNAME}-5.52-fix_Makefile.patch || die |
38 | |
39 | # fix compile against zlib |
40 | mpatch ${PNAME}-5.52-fix_libz.patch || die |
41 | |
42 | # force use of our CFLAGS |
43 | sed -i -e "s:-O3:${CFLAGS}:" \ |
44 | -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \ |
45 | -e "s:-O :${CFLAGS} :" unix/Makefile \ |
46 | || die |
47 | } |
48 | |
49 | src_compile() |
50 | { |
51 | cd ${SRCDIR} |
52 | |
53 | # disable asm on all arches but x86 |
54 | local my_opts=linux_noasm |
55 | [[ ${ARCH} = i*86 ]] && my_opts=linux |
56 | |
57 | mmake -f unix/Makefile ${my_opts} || die |
58 | } |
59 | |
60 | alx_generic_src_install() |
61 | { |
62 | cd ${SRCDIR} |
63 | |
64 | # bins |
65 | minstallexec unzip || die |
66 | minstallexec funzip || die |
67 | minstallexec unzipsfx || die |
68 | minstallexec unix/zipgrep || die |
69 | |
70 | mlink unzip /usr/bin/zipinfo || die |
71 | |
72 | # man |
73 | minstallman man/*.1 || die |
74 | |
75 | # docs |
76 | minstalldocs BUGS COPYING.OLD History* LICENSE README ToDo WHERE || die |
77 | } |