Contents of /trunk/core/gzip/gzip-1.5-r1.smage2
Parent Directory | Revision Log
Revision 12846 -
(show annotations)
(download)
Wed Jul 4 10:59:08 2012 UTC (11 years, 11 months ago) by niro
File size: 842 byte(s)
Wed Jul 4 10:59:08 2012 UTC (11 years, 11 months ago) by niro
File size: 842 byte(s)
-marked stable
1 | # $Id$ |
2 | |
3 | PNAME="gzip" |
4 | PVER="1.5" |
5 | PBUILD="r1" |
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 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mbuild mtools |
19 | msetfeature "!check" |
20 | |
21 | SRC_URI=( |
22 | gnu://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | # fix compilation with newer glibc (>=2.6.1) |
34 | sed -i "s/futimens/gl_&/" $(grep -lr futimens *) || die |
35 | } |
36 | |
37 | src_install() |
38 | { |
39 | cd ${SRCDIR} |
40 | make DESTDIR=${BINDIR} install || die |
41 | |
42 | # missing: gzcat |
43 | mlink zcat /usr/bin/gzcat || die |
44 | |
45 | # and the docs too |
46 | minstalldocs \ |
47 | AUTHORS COPYING ChangeLog INSTALL NEWS README \ |
48 | README-alpha THANKS TODO algorithm.doc gzip.doc || die |
49 | } |