Annotation of /branches/magellan-next/core/gzip/gzip-1.4-r2.smage2
Parent Directory | Revision Log
Revision 7566 -
(hide annotations)
(download)
Thu May 26 21:27:30 2011 UTC (13 years, 4 months ago) by niro
File size: 1075 byte(s)
Thu May 26 21:27:30 2011 UTC (13 years, 4 months ago) by niro
File size: 1075 byte(s)
auto added: ver bump to 1.4-r2
1 | niro | 7566 | # $Id$ |
2 | |||
3 | PNAME="gzip" | ||
4 | PVER="1.4" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="app-arch" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Standard GNU compressor." | ||
11 | HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" | ||
12 | |||
13 | DEPEND=">= virtual/glibc" | ||
14 | |||
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
17 | |||
18 | sminclude mbuild mtools | ||
19 | |||
20 | SRC_URI=( | ||
21 | gnu://${PNAME}/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | ) | ||
24 | |||
25 | UP2DATE="updatecmd_gnu ${PNAME} gz" | ||
26 | |||
27 | src_prepare() | ||
28 | { | ||
29 | munpack ${SRCFILE} || die | ||
30 | cd ${SRCDIR} | ||
31 | |||
32 | # fix compilation with newer glibc (>=2.6.1) | ||
33 | sed -i "s/futimens/gl_&/" $(grep -lr futimens *) || die | ||
34 | } | ||
35 | |||
36 | src_install() | ||
37 | { | ||
38 | cd ${SRCDIR} | ||
39 | |||
40 | # needed directories | ||
41 | minstalldir /bin || die | ||
42 | |||
43 | make DESTDIR=${BINDIR} install || die | ||
44 | |||
45 | # move some binaries to /bin | ||
46 | mv ${BINDIR}{/usr,}/bin/gzip || die | ||
47 | mv ${BINDIR}{/usr,}/bin/gunzip || die | ||
48 | mv ${BINDIR}{/usr,}/bin/zcat || die | ||
49 | mv ${BINDIR}{/usr,}/bin/uncompress || die | ||
50 | |||
51 | # missing: gzcat | ||
52 | mlink zcat /bin/gzcat || die | ||
53 | |||
54 | # and the docs too | ||
55 | minstalldocs \ | ||
56 | AUTHORS COPYING ChangeLog INSTALL NEWS README \ | ||
57 | README-alpha THANKS TODO algorithm.doc gzip.doc || die | ||
58 | } |