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