| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-arch/gzip/gzip-1.5.ebuild,v 1.7 2012/08/20 22:40:08 blueness Exp $
|
| 4 |
|
| 5 |
inherit eutils flag-o-matic unpacker
|
| 6 |
|
| 7 |
DESCRIPTION="Standard GNU compressor"
|
| 8 |
HOMEPAGE="http://www.gnu.org/software/gzip/"
|
| 9 |
SRC_URI="mirror://gnu-alpha/gzip/${P}.tar.xz
|
| 10 |
mirror://gnu/gzip/${P}.tar.xz
|
| 11 |
mirror://gentoo/${P}.tar.xz"
|
| 12 |
|
| 13 |
LICENSE="GPL-3"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
| 16 |
IUSE="nls pic static"
|
| 17 |
|
| 18 |
RDEPEND=""
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
nls? ( sys-devel/gettext )"
|
| 21 |
|
| 22 |
src_unpack() {
|
| 23 |
unpacker
|
| 24 |
cd "${S}"
|
| 25 |
#epatch "${FILESDIR}"/${PN}-1.3.5-rsync.patch
|
| 26 |
epatch "${FILESDIR}"/${PN}-1.3.8-install-symlinks.patch
|
| 27 |
}
|
| 28 |
|
| 29 |
src_compile() {
|
| 30 |
use static && append-flags -static
|
| 31 |
# avoid text relocation in gzip
|
| 32 |
use pic && export DEFS="NO_ASM"
|
| 33 |
econf || die
|
| 34 |
emake || die
|
| 35 |
}
|
| 36 |
|
| 37 |
src_install() {
|
| 38 |
emake install DESTDIR="${D}" || die
|
| 39 |
dodoc ChangeLog NEWS README THANKS TODO
|
| 40 |
docinto txt
|
| 41 |
dodoc algorithm.doc gzip.doc
|
| 42 |
|
| 43 |
# keep most things in /usr, just the fun stuff in /
|
| 44 |
dodir /bin
|
| 45 |
mv "${D}"/usr/bin/{gunzip,gzip,uncompress,zcat} "${D}"/bin/ || die
|
| 46 |
sed -e 's:/usr::' -i "${D}"/bin/gunzip || die
|
| 47 |
}
|