/[gentoo-x86]/dev-libs/libtar/libtar-1.2.11-r5.ebuild
Gentoo

Contents of /dev-libs/libtar/libtar-1.2.11-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Jun 29 12:57:41 2012 UTC (10 months, 3 weeks ago) by ranger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Marking libtar-1.2.11-r5 ppc for bug 420935

(Portage version: 2.1.10.49/cvs/Linux ppc64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libtar/libtar-1.2.11-r5.ebuild,v 1.5 2012/06/25 17:13:38 jlec Exp $
4
5 EAPI=4
6 inherit autotools eutils multilib
7
8 p_level=8
9
10 DESCRIPTION="C library for manipulating tar archives"
11 HOMEPAGE="http://www.feep.net/libtar/ http://packages.qa.debian.org/libt/libtar.html"
12 SRC_URI="ftp://ftp.feep.net/pub/software/libtar/${P}.tar.gz
13 mirror://debian/pool/main/libt/${PN}/${PN}_${PV}-${p_level}.debian.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
18 IUSE="static-libs zlib"
19
20 DEPEND="zlib? ( sys-libs/zlib )
21 !zlib? ( app-arch/gzip )"
22
23 src_prepare() {
24 local d="${WORKDIR}"/debian/patches
25 sed -i -e '/#/d' "${d}"/series || die
26 EPATCH_SOURCE="${d}" epatch $(<"${d}"/series)
27
28 epatch \
29 "${FILESDIR}"/${P}-f{ree,ortify}.patch \
30 "${FILESDIR}"/${P}-impl-dec.patch
31
32 sed -i \
33 -e '/INSTALL_PROGRAM/s:-s::' \
34 {doc,lib{,tar}}/Makefile.in || die
35
36 sed -i -e "/\/usr\/share\/aclocal/s:/usr:$EPREFIX/usr:" aclocal.m4
37 eautoreconf # reconf for missing config.sub
38 }
39
40 src_configure() {
41 econf \
42 --disable-encap \
43 --disable-epkg-install \
44 $(use_enable static-libs static) \
45 $(use_with zlib)
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" install
50
51 dodoc ChangeLog* README TODO
52 newdoc compat/README README.compat
53 newdoc compat/TODO TODO.compat
54 newdoc listhash/TODO TODO.listhash
55 newdoc "${WORKDIR}"/debian/changelog ChangeLog.debian
56
57 prune_libtool_files
58 }

  ViewVC Help
Powered by ViewVC 1.1.13