Contents of /branches/R11-stable/core/gzip/gzip-1.6-r2.smage2
Parent Directory | Revision Log
Revision 24112 -
(show annotations)
(download)
Fri Feb 20 09:00:38 2015 UTC (9 years, 7 months ago) by niro
File size: 1225 byte(s)
Fri Feb 20 09:00:38 2015 UTC (9 years, 7 months ago) by niro
File size: 1225 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="gzip" |
4 | PVER="1.6" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="app-arch" |
8 | |
9 | |
10 | DESCRIPTION="Standard GNU compressor." |
11 | HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" |
12 | |
13 | DEPEND=">= virtual/glibc" |
14 | PROVIDE="virtual/gzip" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | sminclude mbuild mtools |
20 | msetfeature "!check" |
21 | |
22 | SRC_URI=( |
23 | gnu://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-1.3.13-rsync.patch |
26 | mirror://${PNAME}/${PNAME}-1.5-man-rsyncable.patch |
27 | ) |
28 | |
29 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # adds rsyncable switch, required by >=dracut-040 |
37 | mpatch ${PNAME}-1.3.13-rsync.patch || die |
38 | mpatch ${PNAME}-1.5-man-rsyncable.patch || die |
39 | |
40 | # fix compilation with newer glibc (>=2.6.1) |
41 | sed -i "s/futimens/gl_&/" $(grep -lr futimens *) || die |
42 | |
43 | # force reconf |
44 | # aclocal.m4 was created with an unreleased automake (1.99a) |
45 | WANT_AUTOMAKE=1.13 mautoreconf || die |
46 | } |
47 | |
48 | src_install() |
49 | { |
50 | cd ${SRCDIR} |
51 | make DESTDIR=${BINDIR} install || die |
52 | |
53 | # missing: gzcat |
54 | mlink zcat /usr/bin/gzcat || die |
55 | |
56 | # and the docs too |
57 | minstalldocs \ |
58 | AUTHORS COPYING ChangeLog INSTALL NEWS README \ |
59 | README-alpha THANKS TODO algorithm.doc gzip.doc || die |
60 | } |