/[gentoo-alt]/trunk/prefix/app-arch/tar/tar-1.15.1.ebuild
Gentoo

Contents of /trunk/prefix/app-arch/tar/tar-1.15.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1166 - (show annotations) (download)
Sat Mar 25 22:08:50 2006 UTC (13 years, 3 months ago) by kito
File size: 2087 byte(s)
PREFIX->EPREFIX DEST->EDEST
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.15.1.ebuild,v 1.17 2005/08/12 08:39:38 flameeyes Exp $
4
5 EAPI="prefix"
6
7 inherit flag-o-matic eutils
8
9 DESCRIPTION="Use this to make tarballs :)"
10 HOMEPAGE="http://www.gnu.org/software/tar/"
11 SRC_URI="http://ftp.gnu.org/gnu/tar/${P}.tar.bz2
12 http://alpha.gnu.org/gnu/tar/${P}.tar.bz2
13 mirror://gnu/tar/${P}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ~ppc-macos ppc64 s390 sh sparc x86"
18 IUSE="nls static build bzip2"
19
20 RDEPEND="app-arch/gzip
21 bzip2? ( app-arch/bzip2 )"
22 DEPEND="${RDEPEND}
23 nls? ( >=sys-devel/gettext-0.10.35 )"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28 epatch "${FILESDIR}"/${PV}-flex-arg.patch
29 epatch "${FILESDIR}"/${P}-gcc4-test.patch #88214
30 epatch "${FILESDIR}"/${P}-dont-abort-long-names.patch #87540
31 epatch "${FILESDIR}"/${P}-less-verbose-newer.patch #86467
32 epatch "${FILESDIR}"/${P}-lseek.patch
33 cp "${FILESDIR}"/append.at tests/
34
35 if ! use userland_GNU ; then
36 sed -i \
37 -e 's:/backup\.sh:/gbackup.sh:' \
38 scripts/{backup,dump-remind,restore}.in \
39 || die "sed non-GNU"
40 fi
41 }
42
43 src_compile() {
44 local myconf
45 use static && append-ldflags -static
46 use userland_BSD && myconf="--program-prefix=g"
47 # Work around bug in sandbox #67051
48 gl_cv_func_chown_follows_symlink=yes \
49 econf \
50 --enable-backup-scripts \
51 $(with_bindir) \
52 --libexecdir=${EPREFIX}/usr/sbin \
53 $(use_enable nls) \
54 ${myconf} || die
55 emake || die "emake failed"
56 }
57
58 src_install() {
59 make DESTDIR="${EDEST}" install || die "make install failed"
60 # a nasty yet required symlink
61 local p=""
62 use userland_BSD && p=g
63 dodir /etc
64 dosym /usr/sbin/${p}rmt /etc/${p}rmt
65 if use build ; then
66 rm -r "${D}"/usr
67 else
68 dodir /usr/bin
69 dosym /bin/${p}tar /usr/bin/${p}tar
70 dodoc AUTHORS ChangeLog* NEWS README* PORTS THANKS
71 newman "${FILESDIR}"/tar.1 ${p}tar.1
72 mv "${D}"/usr/sbin/${p}backup{,-tar}
73 mv "${D}"/usr/sbin/${p}restore{,-tar}
74 fi
75
76 rm -f ${D}/usr/$(get_libdir)/charset.alias
77 }

  ViewVC Help
Powered by ViewVC 1.1.20