Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 997 - (show annotations) (download)
Mon Dec 29 00:26:56 2008 UTC (15 years, 4 months ago) by niro
File size: 1596 byte(s)
-moved to 'core'
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="r5"
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 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # fix a missing symlink
34 mpatch ${PNAME}-${PVER}-fix_Makefile.patch || die
35
36 # fix compile against zlib
37 mpatch ${PNAME}-${PVER}-fix_libz.patch || die
38
39 # fix noisiness in Midnight Commander
40 mpatch ${PNAME}-${PVER}-dont_make_noise.patch || die
41
42
43 # force use of our CFLAGS
44 sed -i -e "s:-O3:${CFLAGS}:" \
45 -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \
46 -e "s:-O :${CFLAGS} :" unix/Makefile \
47 || die
48 }
49
50 src_compile()
51 {
52 cd ${SRCDIR}
53
54 # disable asm on all arches but x86
55 local my_opts=linux_noasm
56 [[ ${ARCH} = i*86 ]] && my_opts=linux
57
58 mmake -f unix/Makefile ${my_opts} || die
59 }
60
61 src_install()
62 {
63 cd ${SRCDIR}
64
65 # bins
66 minstallexec unzip || die
67 minstallexec funzip || die
68 minstallexec unzipsfx || die
69 minstallexec unix/zipgrep || die
70
71 mlink unzip /usr/bin/zipinfo || die
72
73 # man
74 minstallman man/*.1 || die
75
76 # docs
77 minstalldocs BUGS COPYING.OLD History* LICENSE README ToDo WHERE || die
78 }

Properties

Name Value
svn:keywords Id