diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-02-27 16:19:27 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-02-27 16:19:27 +0000 |
commit | 2212f1f71c07a4375c55cc65897f9b3694c9669c (patch) | |
tree | 1e88769812b47b7609809a4811cb808762295632 /sys-apps/bzip2 | |
parent | Now uses USE static nls instead of build-static (diff) | |
download | gentoo-2-2212f1f71c07a4375c55cc65897f9b3694c9669c.tar.gz gentoo-2-2212f1f71c07a4375c55cc65897f9b3694c9669c.tar.bz2 gentoo-2-2212f1f71c07a4375c55cc65897f9b3694c9669c.zip |
Patching Makefile now instead of using sed's changed hardlink to symlink on
a build system
Diffstat (limited to 'sys-apps/bzip2')
-rw-r--r-- | sys-apps/bzip2/bzip2-1.0.1-r3.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sys-apps/bzip2/bzip2-1.0.1-r3.ebuild b/sys-apps/bzip2/bzip2-1.0.1-r3.ebuild new file mode 100644 index 000000000000..2f729927833c --- /dev/null +++ b/sys-apps/bzip2/bzip2-1.0.1-r3.ebuild @@ -0,0 +1,69 @@ +# 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-r3.ebuild,v 1.1 2001/02/27 16:19:27 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} + + cd ${S} + patch -p0 < ${FILESDIR}/bzip2-1.0.1-Makefile-gentoo.diff + cp ${FILESDIR}/Makefile.dietlibc . +} + +src_compile() { + + if [ -z "`use build`" ] + then + try pmake -f Makefile-libbz2_so all + fi + if [ -z "`use static`" ] + then + try pmake all + else + if [ "`use diet`" ] + then + try pmake LDFLAGS=-static -f Makefile.dietlibc all + else + try pmake LDFLAGS=-static all + fi + fi + +} +src_install() { + + if [ -z "`use build`" ] + then + try make DESTDIR=${D} install + try make DESTDIR=${D} -f Makefile-libbz2_so install + + mv ${D}/usr/bin ${D} + + dodoc README LICENSE CHANGES Y2K_INFO + docinto txt + dodoc bzip2.txt + docinto ps + dodoc manual.ps + docinto html + dodoc manual_*.html + else + into / + dobin bzip2 + cd ${D}/bin + ln -s bzip2 bunzip2 + fi + +} + + |