blob: 66c70c623e15c49b704fa1ffcf1b7a46b3e36f4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/bzip2/bzip2-1.0.1.ebuild,v 1.9 2001/01/31 20:49:06 achim Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="A high-quality data compressor used extensively by Gentoo"
SRC_URI="ftp://sourceware.cygnus.com/pub/bzip2/v100/${A}
ftp://ftp.freesoftware.com/pub/sourceware/bzip2/v100/${A}"
HOMEPAGE="http://sourceware.cygnus.com/bzip2/"
DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
# bzip2's try makefile does not use CFLAGS so we hard-wire the compile
# options using sed ;)
cd ${S}
cp Makefile Makefile.orig
sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile
cp Makefile-libbz2_so Makefile-libbz2.orig
sed -e "s/-O2/${CFLAGS}/" Makefile-libbz2.orig > Makefile-libbz2_so
}
src_compile() {
try pmake -f Makefile-libbz2_so all
try pmake all
}
src_install() {
dodoc README LICENSE CHANGES Y2K_INFO
docinto txt
dodoc bzip2.txt
docinto ps
dodoc manual.ps
docinto html
dodoc manual_*.html
try make PREFIX=${D}/usr install
into /usr
dolib.so libbz2.so.1.0.1
mv ${D}/usr/bin ${D}
preplib /usr
}
|