Magellan Linux

Contents of /branches/magellan-next/core/unzip/unzip-6.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6377 - (show annotations) (download)
Sun Aug 22 21:55:34 2010 UTC (13 years, 8 months ago) by niro
File size: 1426 byte(s)
imported from trunk
1 # $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}-5.52-fix_Makefile.patch
25 mirror://${PNAME}/${PNAME}-5.52-fix_libz.patch
26 )
27
28 UP2DATE="updatecmd_sourceforge infozip ${PNAME}"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 # fix a missing symlink
36 mpatch ${PNAME}-5.52-fix_Makefile.patch || die
37
38 # fix compile against zlib
39 mpatch ${PNAME}-5.52-fix_libz.patch || die
40
41 # force use of our CFLAGS
42 sed -i -e "s:-O3:${CFLAGS}:" \
43 -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \
44 -e "s:-O :${CFLAGS} :" unix/Makefile \
45 || die
46 }
47
48 src_compile()
49 {
50 cd ${SRCDIR}
51
52 # disable asm on all arches but x86
53 local my_opts=linux_noasm
54 [[ ${ARCH} = i*86 ]] && my_opts=linux
55
56 mmake -f unix/Makefile ${my_opts} || die
57 }
58
59 src_install()
60 {
61 cd ${SRCDIR}
62
63 # bins
64 minstallexec unzip || die
65 minstallexec funzip || die
66 minstallexec unzipsfx || die
67 minstallexec unix/zipgrep || die
68
69 mlink unzip /usr/bin/zipinfo || die
70
71 # man
72 minstallman man/*.1 || die
73
74 # docs
75 minstalldocs BUGS COPYING.OLD History* LICENSE README ToDo WHERE || die
76 }

Properties

Name Value
svn:keywords Id