Index: tar-1.25.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.25.ebuild,v retrieving revision 1.1 diff -u -r1.1 tar-1.25.ebuild --- tar-1.25.ebuild 8 Nov 2010 20:57:35 -0000 1.1 +++ tar-1.25.ebuild 15 Nov 2010 17:19:52 -0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.25.ebuild,v 1.1 2010/11/08 20:57:35 ssuominen Exp $ -EAPI="2" +EAPI="3" inherit flag-o-matic @@ -14,7 +14,7 @@ LICENSE="GPL-3" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="nls static userland_GNU" RDEPEND="" @@ -39,8 +39,8 @@ FORCE_UNSAFE_CONFIGURE=1 \ econf \ --enable-backup-scripts \ - --bindir=/bin \ - --libexecdir=/usr/sbin \ + --bindir="${EPREFIX}"/bin \ + --libexecdir="${EPREFIX}"/usr/sbin \ $(use_enable nls) \ ${myconf} } @@ -57,10 +57,16 @@ doexe "${FILESDIR}"/rmt || die fi + # autoconf looks for gtar before tar (in configure scripts), hence + # in Prefix it is important that it is there, otherwise, a gtar from + # the host system (FreeBSD, Solaris, Darwin) will be found instead + # of the Prefix provided (GNU) tar + if use prefix ; then + dosym tar /bin/gtar + fi + dodoc AUTHORS ChangeLog* NEWS README* THANKS newman "${FILESDIR}"/tar.1 ${p}tar.1 - mv "${D}"/usr/sbin/${p}backup{,-tar} - mv "${D}"/usr/sbin/${p}restore{,-tar} - - rm -f "${D}"/usr/$(get_libdir)/charset.alias + mv "${ED}"/usr/sbin/${p}backup{,-tar} + mv "${ED}"/usr/sbin/${p}restore{,-tar} } Index: files/rmt =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-arch/tar/files/rmt,v retrieving revision 1.2 diff -u -r1.2 rmt --- files/rmt 30 Dec 2006 18:18:16 -0000 1.2 +++ files/rmt 15 Nov 2010 17:19:52 -0000 @@ -5,4 +5,4 @@ # utilities that expect to find (and execute) rmt in the /etc directory # on remote systems. # -exec /usr/sbin/rmt "$@" +exec rmt "$@"