Magellan Linux

Contents of /trunk/core/unzip/unzip-5.52-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 998 - (show annotations) (download)
Mon Dec 29 00:28:10 2008 UTC (15 years, 4 months ago) by niro
File size: 1639 byte(s)
-rev bump to 5.52-r6
1 # $Header: /magellan-cvs/smage/unzip/unzip-5.52-r5.smage2,v 1.1 2008/02/14 12:40:53 niro Exp $
2
3 PNAME="unzip"
4 PVER="5.52"
5 PBUILD="r6"
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 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-${PVER}-fix_Makefile.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-fix_libz.patch
25 mirror://${PNAME}/${PNAME}-${PVER}-dont_make_noise.patch
26 )
27
28 # fake up2date uri
29 UP2DATE="echo ${PVER}"
30
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