Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 96363 | Differences between
and this patch

Collapse All | Expand All

(-)tar-1.15.1.ebuild (-7 / +24 lines)
Lines 16-22 Link Here
16
IUSE="nls static build bzip2"
16
IUSE="nls static build bzip2"
17
17
18
RDEPEND="app-arch/gzip
18
RDEPEND="app-arch/gzip
19
	bzip2? ( app-arch/bzip2 )"
19
	bzip2? ( app-arch/bzip2 )
20
	elibc_FreeBSD? ( dev-libs/libiconv )"
20
DEPEND="${RDEPEND}
21
DEPEND="${RDEPEND}
21
	nls? ( >=sys-devel/gettext-0.10.35 )"
22
	nls? ( >=sys-devel/gettext-0.10.35 )"
22
23
Lines 29-34 Link Here
29
	epatch "${FILESDIR}"/${P}-less-verbose-newer.patch #86467
30
	epatch "${FILESDIR}"/${P}-less-verbose-newer.patch #86467
30
	epatch "${FILESDIR}"/${P}-lseek.patch
31
	epatch "${FILESDIR}"/${P}-lseek.patch
31
	cp "${FILESDIR}"/append.at tests/
32
	cp "${FILESDIR}"/append.at tests/
33
34
	sed -i -e 's:/backup.sh:/gbackup.sh:' \
35
		scripts/backup.in scripts/restore.in scripts/dump-remind.in
32
}
36
}
33
37
34
src_compile() {
38
src_compile() {
Lines 39-44 Link Here
39
		--enable-backup-scripts \
44
		--enable-backup-scripts \
40
		--bindir=/bin \
45
		--bindir=/bin \
41
		--libexecdir=/usr/sbin \
46
		--libexecdir=/usr/sbin \
47
		--program-prefix=g \
42
		$(use_enable nls) \
48
		$(use_enable nls) \
43
		|| die
49
		|| die
44
	emake || die "emake failed"
50
	emake || die "emake failed"
Lines 48-62 Link Here
48
	make DESTDIR="${D}" install || die "make install failed"
54
	make DESTDIR="${D}" install || die "make install failed"
49
	# a nasty yet required symlink:
55
	# a nasty yet required symlink:
50
	dodir /etc
56
	dodir /etc
51
	dosym ../usr/sbin/rmt /etc/rmt
57
	dosym ../usr/sbin/grmt /etc/rmt
58
52
	if use build ; then
59
	if use build ; then
53
		rm -r "${D}"/usr
60
		rm -r "${D}"/usr
54
	else
61
	else
55
		dodir /usr/bin
56
		dosym /bin/tar /usr/bin/gtar
57
		dodoc AUTHORS ChangeLog* NEWS README* PORTS THANKS
62
		dodoc AUTHORS ChangeLog* NEWS README* PORTS THANKS
58
		doman "${FILESDIR}"/tar.1
63
		newman "${FILESDIR}"/tar.1 gtar.1
59
		mv "${D}"/usr/sbin/backup{,-tar}
64
		mv "${D}"/usr/sbin/gbackup{,-tar}
60
		mv "${D}"/usr/sbin/restore{,-tar}
65
		mv "${D}"/usr/sbin/grestore{,-tar}
61
	fi
66
	fi
67
68
	if [[ ${USERLAND} == "GNU" ]]; then
69
		dosym gtar /bin/tar
70
		dosym gtar.1.gz /usr/share/man/man1/tar.1.gz
71
72
		for prog in rmt backup-tar restore-tar dump-remind; do
73
			dosym g${prog} /usr/sbin/${prog}
74
		done
75
	fi
76
77
	# This is installed on non-GNU systems but we already have
78
	# it by using libiconv. Avoid collision.
79
	rm -f ${D}/usr/$(get_libdir)/charset.alias
62
}
80
}

Return to bug 96363