Magellan Linux

Annotation of /trunk/core/unzip/unzip-6.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3212 - (hide annotations) (download)
Fri Oct 16 16:27:15 2009 UTC (14 years, 8 months ago) by niro
File size: 1591 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 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     mpatch ${PNAME}-${PVER}-fix_Makefile.patch || die
38    
39     # fix compile against zlib
40     mpatch ${PNAME}-${PVER}-fix_libz.patch || die
41    
42     # fix noisiness in Midnight Commander
43     mpatch ${PNAME}-${PVER}-dont_make_noise.patch || die
44    
45    
46     # force use of our CFLAGS
47     sed -i -e "s:-O3:${CFLAGS}:" \
48     -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \
49     -e "s:-O :${CFLAGS} :" unix/Makefile \
50     || die
51     }
52    
53     src_compile()
54     {
55     cd ${SRCDIR}
56    
57     # disable asm on all arches but x86
58     local my_opts=linux_noasm
59     [[ ${ARCH} = i*86 ]] && my_opts=linux
60    
61     mmake -f unix/Makefile ${my_opts} || die
62     }
63    
64     src_install()
65     {
66     cd ${SRCDIR}
67    
68     # bins
69     minstallexec unzip || die
70     minstallexec funzip || die
71     minstallexec unzipsfx || die
72     minstallexec unix/zipgrep || die
73    
74     mlink unzip /usr/bin/zipinfo || die
75    
76     # man
77     minstallman man/*.1 || die
78    
79     # docs
80     minstalldocs BUGS COPYING.OLD History* LICENSE README ToDo WHERE || die
81     }

Properties

Name Value
svn:keywords Id