Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-lang/prc-tools
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/prc-tools/ChangeLog,v 1.20 2007/10/15 09:04:26 opfer Exp $
15 Oct 2007; Christian Faulhammer
prc-tools-2.3-r2.ebuild:
correct postinst message (bug 192587); quote some variables; do emake
instead of pure make; remove texinfo from DEPEND
19 Mar 2007; Bryan Østergaard
Remove plasmaroo from metadata.xml due to retirement.
06 Feb 2007; Marius Mauch
Replacing einfo with elog
12 Dec 2006; Christian Faulhammer
-prc-tools-2.3.ebuild, -prc-tools-2.3-r1.ebuild:
clean up old versions
05 Dec 2006; Christian Faulhammer
prc-tools-2.3-r2.ebuild:
stable x86, bug #151615
26 Nov 2006; Christian Faulhammer
prc-tools-2.3-r2.ebuild:
fix file collisions...finally
23 Nov 2006; Christian Faulhammer
prc-tools-2.3-r2.ebuild:
fix file collisions properly, thanks to Bo Ørsted Andresen
*prc-tools-2.3-r2 (04 Nov 2006)
04 Nov 2006; Christian Faulhammer
+prc-tools-2.3-r2.ebuild:
corrected ALLOWED_FLAGS, added trailing slash to HOMEPAGE's URL, fixed file
collisions with sys-devel/gdb
17 Jun 2006;
+files/prc-tools-2.3-gcc4.patch:
Fix #134659.
02 Jan 2006;
Add configure fix for userpriv; #117307.
01 Jan 2006;
Path fix; bug #100879.
28 Jan 2005;
Add texinfo-4.8 $DEPEND; 4.7 fails when generating the documentation.
27 Jan 2005;
Bump texi2html $DEPEND to 1.70; bug #79719.
*prc-tools-2.3-r1 (04 Jan 2005)
04 Jan 2005;
files/prc-tools-2.3-compilefix.patch:
Adding multi-section debugging support; bug #72378. Fixing a Makefile so all
the HTML docs are also installed correctly.
05 Nov 2003;
Added fix for the compile error when not upgrading because of broken
includes in prc-tools.
*prc-tools-2.3 (29 Oct 2003)
29 Oct 2003;
files/prc-tools-2.3-compilefix.patch:
Version bump.
*prc-tools-2.2 (31 Aug 2003)
31 Aug 2003;
files/prc-tools-2.2-compilefix.patch:
Initial Import.
AUX prc-tools-2.3-compilefix.patch 10402 RMD160 4dc143e5fbb34609eed50bb4f75bd84c74e59916 SHA1 eeebb466706e330523f6cbf92d7fc321930345d9 SHA256 940181fc986b9922568836db4663cf4cb7d2a3783d0947cc3da71057ca434dd5
AUX prc-tools-2.3-gcc4.patch 13101 RMD160 653b69113754242117f203bfe5120170314e6895 SHA1 aa8ceff76dd7b320e5890ef9ac8220449b434cdc SHA256 83b280b2df87decdb05d031d34abc264479394b9adfaa092e6f3ff2cde6541c7
DIST MsectGdb2.3-1Patch.tar.bz2 14210 RMD160 527a45bde13f02133f158e90243800fde8af81fd SHA1 bc66fd0a9c32aa9b9827f1ace193538b292fb658 SHA256 4befe806424014b4b5865e7fb0b5f5aed6bcde633bd92757ec3747d61ecdc359
DIST binutils-2.14.tar.bz2 10921504 RMD160 e629a1256b5f75552e3360a315d28ad37f11a604 SHA1 66b4f057bf687126d7cc11d0a68ed89182541ae7 SHA256 e20bdd49a0fb317959b410c1fe81269a620ec21207045d8a37cadea621be4b59
DIST gcc-2.95.3.tar.bz2 9848842 RMD160 09cca1860ce897000df19643dfd944ae28366a1d SHA1 1741fd70901a39442e5135e31dde370d1c194e6c SHA256 cf91a6b4f41248895f06bcd0570a62d2417ee99d32e6e2c5f70490e0eb6af5e4
DIST gcc-3.3.1.tar.bz2 23544362 RMD160 b3c0025b10de0917a30df55b669e8c6c7ec5814b SHA1 65ba4142dbf345d1aac1ed323f64b5f49294aee7 SHA256 e6c498d1d310de2f4e5834def91603229e089ad814ac47c8ed6dd6c191b46f35
DIST gdb-5.3.tar.bz2 11198721 RMD160 92c5ee92e993354839f002231164296f51882570 SHA1 fe03cb6dd40be2297766ded8142135bd1a32f685 SHA256 6e559a98636a1a5d92fd8df31161ed9307eca2234ae2d783dd8c84f500cddb6c
DIST prc-tools-2.3.tar.gz 333417 RMD160 6c5cce0b0a03a5e6b37c6a7b80dc925e64b0c0a1 SHA1 1100d35dc906bae8f3bbfd4564298ccd0359800a SHA256 9ae076efc71eb693815cbd8177826d75bd958fef53fb5c9968511a1b2081a173
EBUILD prc-tools-2.3-r2.ebuild 4199 RMD160 3047d6e0fd37c65d73e181b7cefa4b1f77deda72 SHA1 30c31b95b9194ac931a62141be5ac7140efe02de SHA256 82d00ee95baec71d5de8852c0af157ce04b34b13d8baad9a7948ec4018668c6a
MISC ChangeLog 2677 RMD160 bdf92aadeca1c62dbd04b4532e004e28477ccfdb SHA1 7e6b1c89c6c803ba10471637274317cc3187d4be SHA256 0ad69543803141cf2d52d174870971ec65133a4109dc3ad09fb86d071d286501
MISC metadata.xml 233 RMD160 d81ec1a0582856aeac5ef3bfec5c80d9850216f6 SHA1 9b94f113e7f382076b1749c2a856e409c96cade3 SHA256 dce03f6cdd96135caf3c971a5ca4a8c916f44532fe8cfb6df88b7bdade407e8b
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/prc-tools/prc-tools-2.3-r2.ebuild,v 1.6 2007/10/15 09:04:26 opfer Exp $
inherit flag-o-matic eutils toolchain-funcs
BIN_V="binutils-2.14"
GDB_V="gdb-5.3"
GCC_V_ARM="gcc-3.3.1"
GCC_V_M68K="gcc-2.95.3"
MSECT_V="MsectGdb2.3-1Patch"
DESCRIPTION="GNU-Based Palm C++ Development Suite"
HOMEPAGE="http://prc-tools.sourceforge.net/"
SRC_URI="mirror://sourceforge/prc-tools/${P}.tar.gz
ftp://sources.redhat.com/pub/binutils/releases/${BIN_V}.tar.bz2
ftp://sources.redhat.com/pub/gdb/releases/${GDB_V}.tar.bz2
ftp://gcc.gnu.org/pub/gcc/releases/${GCC_V_ARM}/${GCC_V_ARM}.tar.bz2
ftp://gcc.gnu.org/pub/gcc/releases/${GCC_V_M68K}/${GCC_V_M68K}.tar.bz2
http://www.v-overbeek.nl/msectgdb/${MSECT_V}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=">=app-text/texi2html-1.70"
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${P}"
ln -s ../${BIN_V} binutils
ln -s ../${GDB_V} gdb
ln -s ../${GCC_V_ARM} gcc
ln -s ../${GCC_V_M68K} gcc295
cd ..
echo ">>> Patching sources..."
echo -n " "; epatch "${P}/${BIN_V}.palmos.diff"
echo -n " "; epatch "${P}/${GCC_V_ARM}.palmos.diff"
echo -n " "; epatch "${P}/${GCC_V_M68K}.palmos.diff"
echo -n " "; epatch "${P}/${GDB_V}.palmos.diff"
echo -n " "; EPATCH_OPTS="-l" epatch "${P}/../MsectGdb2.3-1.diff"
echo -n " "; epatch "${FILESDIR}/${P}-compilefix.patch"
echo -n " "; epatch "${FILESDIR}/${P}-gcc4.patch"
# This last patch disables dummy headers being copied.
# a) They're not needed
# b) This causes a sandboxing error
# +) Keeps 'palmdev-prep' pointed at the
# right place while making the docs install
# script from not install them to real root /
# Fix ${GCC_V_ARM} include problem
cp ${GCC_V_ARM}/gcc/fixinc/tests/base/unistd.h ${GCC_V_ARM}/gcc
sed -i -e 's:#include
}
src_config() {
echo ">>> Rebuilding configuration scripts"
cd binutils
WANT_AUTOCONF=2.1 autoconf || die "Failed to reconfigure binutils"
cd ..
cd ..
mkdir build
cd build
echo ">>> Configuring..."
echo
# Remove any flags; because the cross-compiler (2.9.x GCC)
# will not understand any of these optimizations {and will
# fail} once the cross-compiler compiles the m68k GCC suite
ALLOWED_FLAGS="-pipe -O -O1 -O2"
strip-flags
local targets
if [ "$(gcc-major-version)" -ge '4' ]
then
ewarn "Disabling ARM support as the 3.3 GCC prc-tools uses can't be"
ewarn "compiled using your GCC4+ compiler. Switch to GCC 3.x and rerun"
ewarn "the merge to get ARM support."
echo
else
targets=',arm-palmos'
fi
# econf not possible as this seems to rely on from where it has been started
# will not debug further as this is a maintainer-needed ebuild
../${P}/configure --enable-targets=m68k-palmos"${targets}" \
--enable-languages=c,c++ \
--with-headers="${WORKDIR}/build/empty" --enable-html-docs \
--with-palmdev-prefix=/opt/palmdev --prefix=/usr || die
# These have to be real; otherwise the compiler is hard-coded
# and tries to find libraries in ${D}/....
# palmdev-prefix also has to be real; otherwise 'palmdev-prep'
# defaults to virtual ${D}/..
# Make sure the newly built compiler is found; #100879.
export PATH="$PATH:${D}/usr/bin"
}
src_compile() {
src_config
emake -j1 || die
}
src_install() {
cd ../build
export PATH="$PATH:${D}/usr/bin"
einstall || die
# fix file collisions
rm -rf "${D}"/usr/share/locale/
rm -f "${D}"/usr/share/info/gdb.info*
rm -f "${D}"/usr/share/info/gdbint*
rm -f "${D}"/usr/share/info/standards.info*
rm -f "${D}"/usr/share/info/stabs.info*
}
pkg_postinst() {
elog
elog "PRC-Tools is now compiled and installed!"
elog ""
elog
elog "For a complete Palm Development Environment you will also need..."
elog
elog "[ ] PilRC; the Palm resource compiler; emerge pilrc"
elog "[ ] POSE; The Palm OS Emulator"
elog " ->> A ROM for POSE; available from Palm"
elog "[ ] An SDK; emerge dev-lang/palmos-sdk"
elog
}