ChangeLog

# ChangeLog for app-arch/star
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/star/ChangeLog,v 1.79 2008/05/24 13:30:02 maekke Exp $

24 May 2008; Markus Meier star-1.5.ebuild:
remove unneded cp for amd64 in src_unpack. amd64 stable, bug #222789

20 May 2008; Markus Rothe star-1.5.ebuild:
Stable on ppc64; bug #222789

20 May 2008; Raúl Porcel star-1.5.ebuild:
alpha/ia64 stable wrt #222789

20 May 2008; Ferris McCormick star-1.5.ebuild:
Sparc stable --- Bug #222789 --- it can read, extract, and create .tar files.

20 May 2008; Dawid Węgliński star-1.5.ebuild:
Stable on x86 (bug #222789)

20 May 2008; Jeroen Roovers star-1.5.ebuild:
Stable for HPPA (bug #222789).

19 May 2008; nixnut star-1.5.ebuild:
Stable on ppc wrt bug 222789

06 May 2008; Peter Volkov star-1.5_alpha88.ebuild:
amd64 stable, bug #216658. Thank Víctor Enríquez for tests.

*star-1.5 (18 Apr 2008)

18 Apr 2008; Peter Volkov +star-1.5.ebuild:
Version bump. Finally stable release!

09 Apr 2008; nixnut star-1.5_alpha88.ebuild:
Stable on ppc wrt bug #216658

08 Apr 2008; Raúl Porcel star-1.5_alpha88.ebuild:
ia64/sparc/x86 stable wrt #216658

08 Apr 2008; Jeroen Roovers star-1.5_alpha88.ebuild:
Stable for HPPA (bug #216658).

07 Apr 2008; Tobias Klausmann
star-1.5_alpha88.ebuild:
Stable on alpha, bug #216658

07 Apr 2008; Markus Rothe star-1.5_alpha88.ebuild:
Stable on ppc64; bug #216658

*star-1.5_alpha89 (20 Mar 2008)

20 Mar 2008; Peter Volkov +star-1.5_alpha89.ebuild:
Version bump.

*star-1.5_alpha88 (04 Mar 2008)

04 Mar 2008; +star-1.5_alpha88.ebuild:
Version bump.

21 Feb 2008; Raúl Porcel
-files/star-1.5_alpha84-data-change-warn.patch, -star-1.5_alpha84.ebuild,
-star-1.5_alpha85.ebuild:
old

16 Dec 2007; Samuli Suominen star-1.5_alpha87.ebuild:
amd64 stable wrt #201835

12 Dec 2007; Jeroen Roovers star-1.5_alpha87.ebuild:
Stable for HPPA (bug #201835).

12 Dec 2007; Markus Rothe star-1.5_alpha87.ebuild:
Stable on ppc64; bug #201835

11 Dec 2007; nixnut star-1.5_alpha87.ebuild:
Stable on ppc wrt bug 201835

10 Dec 2007; Raúl Porcel star-1.5_alpha87.ebuild:
alpha/ia64/sparc stable wrt #201835

10 Dec 2007; Dawid Węgliński star-1.5_alpha87.ebuild:
Stable on x86 (bug #201835)

*star-1.5_alpha87 (31 Oct 2007)

31 Oct 2007; +star-1.5_alpha87.ebuild:
Version bump.

*star-1.5_alpha85 (08 Oct 2007)

08 Oct 2007; -star-1.5_alpha46.ebuild,
-star-1.5_alpha62.ebuild, -star-1.5_alpha74.ebuild,
+star-1.5_alpha85.ebuild:
Version bump. Removed old and not secure versions.

28 Sep 2007; Joshua Kinard star-1.5_alpha84.ebuild:
Stable on mips, per #189690.

17 Sep 2007; Christian Heim metadata.xml:
Removing merlin from metadata.xml (see #186468 for reference).

16 Sep 2007; Christoph Mende star-1.5_alpha84.ebuild:
Stable on amd64 wrt bug #189690

15 Sep 2007; Tobias Scherbaum
star-1.5_alpha84.ebuild:
ppc stable, bug #189690

13 Sep 2007; Jose Luis Rivero
star-1.5_alpha84.ebuild:
Stable on sparc wrt security bug #189690

13 Sep 2007; Markus Rothe star-1.5_alpha84.ebuild:
Stable on ppc64; bug #189690

13 Sep 2007; Raúl Porcel star-1.5_alpha84.ebuild:
alpha/ia64 stable wrt security #189690

13 Sep 2007; Jeroen Roovers star-1.5_alpha84.ebuild:
Stable for HPPA (bug #189690).

12 Sep 2007; Markus Meier star-1.5_alpha84.ebuild:
stable on x86, wrt security bug #189690

*star-1.5_alpha84 (12 Sep 2007)

12 Sep 2007;
+files/star-1.5_alpha84-data-change-warn.patch, +star-1.5_alpha84.ebuild:
Version bump, ebuild cleanups, fixes security bug #189690. Thank Robert
Buchholz for report.

25 Jun 2007; Joshua Kinard star-1.5_alpha74.ebuild:
Stable on mips, per #146750.

11 Jun 2007; Raúl Porcel star-1.5_alpha74.ebuild:
alpha stable wrt #146750

27 Mar 2007; Raúl Porcel star-1.5_alpha74.ebuild:
ia64 stable wrt bug 146750

21 Feb 2007; Joseph Jezak star-1.5_alpha74.ebuild:
Marked ppc stable for bug #146750.

13 Feb 2007; Markus Rothe star-1.5_alpha74.ebuild:
Stable on ppc64; bug #146750

06 Feb 2007; Jeroen Roovers star-1.5_alpha74.ebuild:
Stable for HPPA (bug #146750).

05 Feb 2007; Raúl Porcel star-1.5_alpha74.ebuild:
x86 stable wrt bug 146750

05 Feb 2007; Gustavo Zacarias
star-1.5_alpha74.ebuild:
Stable on sparc wrt #146750

05 Feb 2007; Simon Stelling star-1.5_alpha74.ebuild:
stable on amd64

19 Jan 2007; Ryan Hill star-1.5_alpha62.ebuild,
star-1.5_alpha74.ebuild:
Fix licenses for bug #145842.

05 Jan 2007; Steve Dibb -star-1.4.3.ebuild:
Remove vuln version, bug 152079

28 Dec 2006; Gustavo Zacarias
star-1.5_alpha62.ebuild:
Stable on sparc

15 Oct 2006; Tobias Scherbaum
star-1.5_alpha62.ebuild:
hppa stable

09 Oct 2006; Fabian Groffen star-1.5_alpha74.ebuild:
Dropped ppc-macos, see you in prefix.

16 Sep 2006; Tobias Scherbaum
star-1.5_alpha62.ebuild:
ppc stable

22 Jun 2006; Fabian Groffen star-1.5_alpha74.ebuild:
Marked ~ppc-macos (bug #105862)

*star-1.5_alpha74 (30 May 2006)

30 May 2006; Cory Visi metadata.xml,
+star-1.5_alpha74.ebuild:
Took over maintainership, revbumped to alpha74, and corrected symlink bug

30 May 2006; Cory Visi -star-1.5_alpha14.ebuild,
-star-1.5_alpha43.ebuild, -star-1.5_alpha50-r1.ebuild,
-star-1.5_alpha50.ebuild:
Removed obsoleted ebuilds (checked with eshowkw)

06 Feb 2006; Aron Griffis star-1.5_alpha62.ebuild:
Mark 1.5_alpha62 stable on alpha

04 Feb 2006; Aron Griffis star-1.5_alpha62.ebuild:
Mark 1.5_alpha62 stable on ia64

25 Nov 2005; Tom Gall star-1.5_alpha62.ebuild:
stable on ppc64

*star-1.5_alpha62 (02 Aug 2005)

02 Aug 2005; Tom Martin +star-1.5_alpha62.ebuild:
Version bump to 1.5_alpha62, resolves bug 66434.

*star-1.5_alpha50-r1 (20 Jun 2005)

20 Jun 2005; Tom Martin +star-1.5_alpha50-r1.ebuild:
Really fix bug 33119 now: we needed to remove gnutar in order to avoid a
conflict with kdevelop.

*star-1.5_alpha50 (16 Jun 2005)

16 Jun 2005; Tom Martin +metadata.xml,
+star-1.5_alpha50.ebuild:
Version bump, and take over as maintainer. Lots of cleanups.

13 Apr 2005; Tom Gall
star-1.5_alpha46.ebuild:
add ~ppc64 support

28 Dec 2004; Ciaran McCreesh :
Change encoding to UTF-8 for GLEP 31 compliance

05 Oct 2004; Pieter Van den Abeele
star-1.5_alpha14.ebuild:
Masked star-1.5_alpha14.ebuild stable for ppc

06 Sep 2004; star-1.5_alpha46.ebuild:
Marked stable on IA64, bug #61797.

02 Sep 2004; Travis Tilley star-1.5_alpha46.ebuild:
stable on amd64

01 Sep 2004; star-1.5_alpha46.ebuild:
marked stabe on ppc

01 Sep 2004; Bryan Østergaard
star-1.5_alpha46.ebuild:
Stable on alpha, bug 61797.

31 Aug 2004; Gustavo Zacarias star-1.5_alpha46.ebuild:
Stable on sparc wrt #61797

*star-1.5_alpha46 (31 Aug 2004)

31 Aug 2004; +star-1.5_alpha46.ebuild:
Version bump. security bug #61797

*star-1.5_alpha43 (30 Jul 2004)

30 Jul 2004; Brandon Low +star-1.5_alpha43.ebuild:
Bump, bug #51094

09 May 2004; Ilya A. Volynets-Evenbach
star-1.5_alpha14.ebuild:
Keyword with ~mips

07 Mar 2004; Ilya A. Volynets-Evenbakh
star-1.4.3.ebuild:
mark as ~mips

11 Feb 2004; Bartosch Pixa star-1.4.3.ebuild:
set ppc in keywords

26 Dec 2003; star-1.5_alpha14.ebuild:
Updated the ebuild, the Makefiles are now patched to use global linux
headers - which are patched to support this - this should resolve bug
#35225.

22 Nov 2003; Jason Wever star-1.5_alpha14.ebuild:
Marked stable on sparc.

*star-1.4.3 (14 Nov 2003)

14 Nov 2003; Seemant Kulleen star-1.4.3.ebuild,
star-1.5_alpha14.ebuild:
moved from sys-apps to app-arch

13 Aug 2003; Aron Griffis star-1.5_alpha14.ebuild:
Mark stable on alpha for LiveCD

18 Jul 2003; Olivier Crete star-1.5_alpha14.ebuild:
Added config file for amd64

26 Jun 2003; Aron Griffis star-1.5_alpha14.ebuild:
Add ~alpha to KEYWORDS

*star-1.4.3 (11 Jun 2003)
*star-1.5_alpha14 (11 Jun 2003)

11 Jun 2003; Brandon Low star-1.4.2.ebuild,
star-1.4.3.ebuild, star-1.5_alpha06-r1.ebuild, star-1.5_alpha09.ebuild,
star-1.5_alpha14.ebuild:
2 bumps, one for stable branch, one for alpha branch

*star-1.4.2 (14 Jan 2003)

14 Jan 2003; Brandon Low star-1.4.2.ebuild:
Include a stable version in the tree, kill off old 1.4_alpha ebuilds.

Marked unstable until after Gentoo 1.4 is out.

*star-1.5_alpha09 (14 Jan 2003)

25 Mar 2003; Guy Matin star-1.5_alpha09.ebuild :
Added hppa to KEYWORDS.

14 Jan 2003; Brandon Low star-1.5_alpha09.ebuild:
Update to the latest alpha, and mark the alpha ebuild unstable.

Make the SRC_URI and ${S} figure themselves out from packagenames.

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

*star-1.5_alpha06-r1 (26 Oct 2002)

26 Oct 2002; Nick Hadaway star-1.5_alpha06-r1.ebuild :
Now installing mt as mt.star instead of just removing it due to
conflicts with mt-st. See bug #9442

*star-1.5_alpha06 (27 Aug 2002)

27 Aug 2002; raker
star-1.5_alpha06.ebuild, digest-star-1.5_alpha06 :
Version bump. Many fixes for gcc3.x, sparc, sparc64, and much more.
Check out the AN-* files in the doc directory for further details.

*star-1.3_alpha8-r2.ebuild (14 July 2002)

21 Jul 2002; Mark Guertin :
updated keywords (ppc)

14 Jul 2002; phoen][x star-1.3_alpha8-r2.ebuild :
Added LICENSE, KEYWORDS, SLOT.

*star-1.4_alpha21 (12 Apr 2002)

14 Jul 2002; phoen][x star-1.4_alpha21.ebuild :
Added LICENSE, KEYWORDS, SLOT.

12 Apr 2002; Donny Davies :

Update to latest available release.

*star-1.4_alpha15 (1 Feb 2002)

14 Jul 2002; phoen][x star-1.4_alpha15.ebuild :
Added LICENSE, KEYWORDS, SLOT.

1 Feb 2002; G.Bevin ChangeLog :

Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

DIST star-1.5.tar.bz2 783704 RMD160 88889ca5d0d7fd99094e614c08fc59f85ea50134 SHA1 83f00d740b3feeafc741dfde5287cc319cfd6b9a SHA256 6dbb345d75c88d70ebdea04b13b80d7f3e9cf5d29316d803a355afd03df2723f
DIST star-1.5a87.tar.bz2 821760 RMD160 67844a36ffe29776d29d44699bbcde87636b168e SHA1 5f6cb97f075f7b44cdd8dd8b86ca1f5b1940c2ff SHA256 2b40fd819aa822a3f7ba19d8e6ebf43db7651d9ddf6d7d64c4de976b1523c91e
DIST star-1.5a88.tar.bz2 818607 RMD160 7fae3ad20cb8bb5e52f1946c0d6426af96e63c74 SHA1 835a97232f476a7ee487ae7095ce0358959baab3 SHA256 60c01a1b246ce3b1083c98a78269ab0bd3e1bc12c2b54f0fa90a716c36be93da
DIST star-1.5a89.tar.bz2 817991 RMD160 a8589b6c6fd0ea8a9f3074e08a0ea68072434e01 SHA1 03fa2f7cdc1890f11c6b83a1806a92a9599ddcde SHA256 997f101243684d4df6f469441ef89b44bd677c302bd5c1480572b799ab2e7972
EBUILD star-1.5.ebuild 2387 RMD160 f58a7260cd096d92d8ed418fe78d1289e5cb040d SHA1 ab98cd651a1c426a9b4590a564fbddedc6ebd3b5 SHA256 ef69c7aaebcd1ccd686dbca97e01abaf8e720777f1dad2947f5d28e474ebe2a7
EBUILD star-1.5_alpha87.ebuild 2424 RMD160 c63246e5ce823c21f8b1221255c5fc9b11c59b03 SHA1 e29efaa9e6efc14fb66863410b175befcfdc4279 SHA256 da047730c2d8f37da23c3a6c97f645a101bd17be445b3e046b315c427d8eb436
EBUILD star-1.5_alpha88.ebuild 2423 RMD160 faed8ec67c6c9ed237325bb2c481db202481a79b SHA1 b631fee150d172b74949153435f790e2336213a6 SHA256 8797daf13225a7cf4f9189a9743e38a77786bbc39d8d9aacd76854c6d12950c1
EBUILD star-1.5_alpha89.ebuild 2431 RMD160 7e46f1effe5d25eec8785840a5282384f8b79244 SHA1 078b0184e3e43234adb4739d045261fdbb044c12 SHA256 5c25c27d7b2adfdea852fb82b70085d2f7049c27425a68eb09bf19e3d72e1cf0
MISC ChangeLog 12002 RMD160 3aa763119bd9065ef3113401ec299480bcae3daa SHA1 c01f0dca51690acc1e8207d4e5bb8bbeb1a0f6c4 SHA256 52f1b76ff4fc940a16a5ac8c21e5bb81056a17358a899b590e49b17fca302119
MISC metadata.xml 165 RMD160 c4557a3518a065b077539be5a0f20e4735fc2141 SHA1 1831705b1eb97b63968fc9eef31aa904a69a854a SHA256 75ca85c472d4181ae0de529c83826baaebe75d9e750ee6621758b5096bceffcd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkg4GJEACgkQkKaRLQcq0GJcCACgqrW2EG4Sr1doVRnXthexOHFA
uroAniEXL+/yRv8oZdtT+G7q9cafWMTn
=NQhX
-----END PGP SIGNATURE-----

metadata.xml




shell-tools

star-1.5.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/star/star-1.5.ebuild,v 1.8 2008/05/24 13:30:02 maekke Exp $

inherit eutils toolchain-funcs

DESCRIPTION="An enhanced (world's fastest) tar, as well as enhanced mt/rmt"
HOMEPAGE="http://cdrecord.berlios.de/old/private/star.html"
if [[ ${PV%_alpha*} == ${PV} ]] ; then
SRC_URI="ftp://ftp.berlios.de/pub/${PN}/${P}.tar.bz2"
else
SRC_URI="ftp://ftp.berlios.de/pub/${PN}/alpha/${PN}-${PV/_alpha/a}.tar.bz2"
fi

LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
IUSE=""

S=${WORKDIR}/${P/_alpha[0-9][0-9]}

src_unpack() {
unpack ${A}
cd "${S}"

cd "${S}"/DEFAULTS
sed -i \
-e 's:/opt/schily:/usr:g' \
-e 's:bin:root:g' \
-e 's:/usr/src/linux/include:/usr/include:' \
Defaults.linux

if use ppc64 ; then
cd "${S}"/RULES
cp ppc-linux-cc.rul ppc64-linux-cc.rul
cp ppc-linux-gcc.rul ppc64-linux-gcc.rul
fi
}

src_compile() {
make CC="$(tc-getCC)" COPTX="${CFLAGS}" CPPOPTX="${CPPFLAGS}" LDOPTX="${LDFLAGS}" || die
}

src_install() {
# Joerg Schilling suggested to integrate star into the main OS using call:
# make INS_BASE=/usr DESTDIR="${D}" install

dobin star/OBJ/*-*-cc/star || die "dobin star failed"
dobin tartest/OBJ/*-*-cc/tartest || die "dobin tartest failed"
dobin star_sym/OBJ/*-*-cc/star_sym || die "dobin star_sym failed"
dobin mt/OBJ/*-*-cc/smt || die "dobin smt failed"

newsbin rmt/OBJ/*-*-cc/rmt rmt.star
newman rmt/rmt.1 rmt.star.1

# Note that we should never install gnutar, tar or rmt in this package.
# tar and rmt are provided by app-arch/tar. gnutar is not compatible with
# GNU tar and breakes compilation, or init scripts. bug #33119
dosym /usr/bin/{star,ustar}
dosym /usr/bin/{star,spax}
dosym /usr/bin/{star,scpio}
dosym /usr/bin/{star,suntar}

# match is needed to understand the pattern matcher, if you wondered why ;)
mv star/{star.4,star.5}
doman man/man1/match.1 tartest/tartest.1 \
star/{star.5,star.1,spax.1,scpio.1,suntar.1}

insinto /etc/default
newins star/star.dfl star
newins rmt/rmt.dfl rmt

dodoc star/{README.ACL,README.crash,README.largefiles,README.otherbugs} \
star/{README.pattern,README.pax,README.posix-2001,README,STARvsGNUTAR} \
rmt/default-rmt.sample TODO AN-* Changelog CONTRIBUTING
}

star-1.5_alpha87.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/star/star-1.5_alpha87.ebuild,v 1.7 2007/12/16 08:51:02 drac Exp $

inherit eutils toolchain-funcs

DESCRIPTION="An enhanced (world's fastest) tar, as well as enhanced mt/rmt"
HOMEPAGE="http://cdrecord.berlios.de/old/private/star.html"
SRC_URI="ftp://ftp.berlios.de/pub/${PN}/alpha/${PN}-${PV/_alpha/a}.tar.bz2"

LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
IUSE=""

S=${WORKDIR}/${P/_alpha[0-9][0-9]}

src_unpack() {
unpack ${A}
cd "${S}"

cd "${S}"/DEFAULTS
sed -i \
-e 's:/opt/schily:/usr:g' \
-e 's:bin:root:g' \
-e 's:/usr/src/linux/include:/usr/include:' \
Defaults.linux

if use amd64 ; then
cd "${S}"/RULES
cp i386-linux-cc.rul x86_64-linux-cc.rul
cp i386-linux-gcc.rul x86_64-linux-gcc.rul
fi

if use ppc64 ; then
cd "${S}"/RULES
cp ppc-linux-cc.rul ppc64-linux-cc.rul
cp ppc-linux-gcc.rul ppc64-linux-gcc.rul
fi
}

src_compile() {
make CC="$(tc-getCC)" COPTX="${CFLAGS}" CPPOPTX="${CPPFLAGS}" LDOPTX="${LDFLAGS}" || die
}

src_install() {
# Joerg Schilling suggested to integrate star into the main OS using call:
# make INS_BASE=/usr DESTDIR="${D}" install

dobin star/OBJ/*-*-cc/star || die "dobin star failed"
dobin tartest/OBJ/*-*-cc/tartest || die "dobin tartest failed"
dobin star_sym/OBJ/*-*-cc/star_sym || die "dobin star_sym failed"
dobin mt/OBJ/*-*-cc/smt || die "dobin smt failed"

newsbin rmt/OBJ/*-*-cc/rmt rmt.star
newman rmt/rmt.1 rmt.star.1

# Note that we should never install gnutar, tar or rmt in this package.
# tar and rmt are provided by app-arch/tar. gnutar is not compatible with
# GNU tar and breakes compilation, or init scripts. bug #33119
dosym /usr/bin/{star,ustar}
dosym /usr/bin/{star,spax}
dosym /usr/bin/{star,scpio}
dosym /usr/bin/{star,suntar}

# match is needed to understand the pattern matcher, if you wondered why ;)
mv star/{star.4,star.5}
doman man/man1/match.1 tartest/tartest.1 \
star/{star.5,star.1,spax.1,scpio.1,suntar.1}

insinto /etc/default
newins star/star.dfl star
newins rmt/rmt.dfl rmt

dodoc star/{README.ACL,README.crash,README.largefiles,README.otherbugs} \
star/{README.pattern,README.pax,README.posix-2001,README,STARvsGNUTAR} \
rmt/default-rmt.sample TODO AN-* Changelog CONTRIBUTING
}

star-1.5_alpha88.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/star/star-1.5_alpha88.ebuild,v 1.7 2008/05/06 07:23:09 pva Exp $

inherit eutils toolchain-funcs

DESCRIPTION="An enhanced (world's fastest) tar, as well as enhanced mt/rmt"
HOMEPAGE="http://cdrecord.berlios.de/old/private/star.html"
SRC_URI="ftp://ftp.berlios.de/pub/${PN}/alpha/${PN}-${PV/_alpha/a}.tar.bz2"

LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
IUSE=""

S=${WORKDIR}/${P/_alpha[0-9][0-9]}

src_unpack() {
unpack ${A}
cd "${S}"

cd "${S}"/DEFAULTS
sed -i \
-e 's:/opt/schily:/usr:g' \
-e 's:bin:root:g' \
-e 's:/usr/src/linux/include:/usr/include:' \
Defaults.linux

if use amd64 ; then
cd "${S}"/RULES
cp i386-linux-cc.rul x86_64-linux-cc.rul
cp i386-linux-gcc.rul x86_64-linux-gcc.rul
fi

if use ppc64 ; then
cd "${S}"/RULES
cp ppc-linux-cc.rul ppc64-linux-cc.rul
cp ppc-linux-gcc.rul ppc64-linux-gcc.rul
fi
}

src_compile() {
make CC="$(tc-getCC)" COPTX="${CFLAGS}" CPPOPTX="${CPPFLAGS}" LDOPTX="${LDFLAGS}" || die
}

src_install() {
# Joerg Schilling suggested to integrate star into the main OS using call:
# make INS_BASE=/usr DESTDIR="${D}" install

dobin star/OBJ/*-*-cc/star || die "dobin star failed"
dobin tartest/OBJ/*-*-cc/tartest || die "dobin tartest failed"
dobin star_sym/OBJ/*-*-cc/star_sym || die "dobin star_sym failed"
dobin mt/OBJ/*-*-cc/smt || die "dobin smt failed"

newsbin rmt/OBJ/*-*-cc/rmt rmt.star
newman rmt/rmt.1 rmt.star.1

# Note that we should never install gnutar, tar or rmt in this package.
# tar and rmt are provided by app-arch/tar. gnutar is not compatible with
# GNU tar and breakes compilation, or init scripts. bug #33119
dosym /usr/bin/{star,ustar}
dosym /usr/bin/{star,spax}
dosym /usr/bin/{star,scpio}
dosym /usr/bin/{star,suntar}

# match is needed to understand the pattern matcher, if you wondered why ;)
mv star/{star.4,star.5}
doman man/man1/match.1 tartest/tartest.1 \
star/{star.5,star.1,spax.1,scpio.1,suntar.1}

insinto /etc/default
newins star/star.dfl star
newins rmt/rmt.dfl rmt

dodoc star/{README.ACL,README.crash,README.largefiles,README.otherbugs} \
star/{README.pattern,README.pax,README.posix-2001,README,STARvsGNUTAR} \
rmt/default-rmt.sample TODO AN-* Changelog CONTRIBUTING
}

star-1.5_alpha89.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/star/star-1.5_alpha89.ebuild,v 1.1 2008/03/20 12:59:58 pva Exp $

inherit eutils toolchain-funcs

DESCRIPTION="An enhanced (world's fastest) tar, as well as enhanced mt/rmt"
HOMEPAGE="http://cdrecord.berlios.de/old/private/star.html"
SRC_URI="ftp://ftp.berlios.de/pub/${PN}/alpha/${PN}-${PV/_alpha/a}.tar.bz2"

LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE=""

S=${WORKDIR}/${P/_alpha[0-9][0-9]}

src_unpack() {
unpack ${A}
cd "${S}"

cd "${S}"/DEFAULTS
sed -i \
-e 's:/opt/schily:/usr:g' \
-e 's:bin:root:g' \
-e 's:/usr/src/linux/include:/usr/include:' \
Defaults.linux

if use amd64 ; then
cd "${S}"/RULES
cp i386-linux-cc.rul x86_64-linux-cc.rul
cp i386-linux-gcc.rul x86_64-linux-gcc.rul
fi

if use ppc64 ; then
cd "${S}"/RULES
cp ppc-linux-cc.rul ppc64-linux-cc.rul
cp ppc-linux-gcc.rul ppc64-linux-gcc.rul
fi
}

src_compile() {
make CC="$(tc-getCC)" COPTX="${CFLAGS}" CPPOPTX="${CPPFLAGS}" LDOPTX="${LDFLAGS}" || die
}

src_install() {
# Joerg Schilling suggested to integrate star into the main OS using call:
# make INS_BASE=/usr DESTDIR="${D}" install

dobin star/OBJ/*-*-cc/star || die "dobin star failed"
dobin tartest/OBJ/*-*-cc/tartest || die "dobin tartest failed"
dobin star_sym/OBJ/*-*-cc/star_sym || die "dobin star_sym failed"
dobin mt/OBJ/*-*-cc/smt || die "dobin smt failed"

newsbin rmt/OBJ/*-*-cc/rmt rmt.star
newman rmt/rmt.1 rmt.star.1

# Note that we should never install gnutar, tar or rmt in this package.
# tar and rmt are provided by app-arch/tar. gnutar is not compatible with
# GNU tar and breakes compilation, or init scripts. bug #33119
dosym /usr/bin/{star,ustar}
dosym /usr/bin/{star,spax}
dosym /usr/bin/{star,scpio}
dosym /usr/bin/{star,suntar}

# match is needed to understand the pattern matcher, if you wondered why ;)
mv star/{star.4,star.5}
doman man/man1/match.1 tartest/tartest.1 \
star/{star.5,star.1,spax.1,scpio.1,suntar.1}

insinto /etc/default
newins star/star.dfl star
newins rmt/rmt.dfl rmt

dodoc star/{README.ACL,README.crash,README.largefiles,README.otherbugs} \
star/{README.pattern,README.pax,README.posix-2001,README,STARvsGNUTAR} \
rmt/default-rmt.sample TODO AN-* Changelog CONTRIBUTING
}