diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2006-11-05 00:03:25 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2006-11-05 00:03:25 +0000 |
commit | aa643b327a06c0981adeabef6a753f63a3ff79fb (patch) | |
tree | eb569b8096af68b405e87b32cb32509d57cd3cc3 | |
parent | Initial commit of new typeface. (diff) | |
download | gentoo-2-aa643b327a06c0981adeabef6a753f63a3ff79fb.tar.gz gentoo-2-aa643b327a06c0981adeabef6a753f63a3ff79fb.tar.bz2 gentoo-2-aa643b327a06c0981adeabef6a753f63a3ff79fb.zip |
corrected ALLOWED_FLAGS, added trailing slash to HOMEPAGE's URL, fixed file collisions with sys-devel/gdb
(Portage version: 2.1.1-r1)
-rw-r--r-- | dev-lang/prc-tools/ChangeLog | 9 | ||||
-rw-r--r-- | dev-lang/prc-tools/files/digest-prc-tools-2.3-r2 | 18 | ||||
-rw-r--r-- | dev-lang/prc-tools/prc-tools-2.3-r2.ebuild | 137 |
3 files changed, 163 insertions, 1 deletions
diff --git a/dev-lang/prc-tools/ChangeLog b/dev-lang/prc-tools/ChangeLog index f789e512b17e..a31252443193 100644 --- a/dev-lang/prc-tools/ChangeLog +++ b/dev-lang/prc-tools/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-lang/prc-tools # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/prc-tools/ChangeLog,v 1.12 2006/06/17 22:32:15 plasmaroo Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/prc-tools/ChangeLog,v 1.13 2006/11/05 00:03:25 opfer Exp $ + +*prc-tools-2.3-r2 (04 Nov 2006) + + 04 Nov 2006; Christian Faulhammer <opfer@gentoo.org> + +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; <plasmaroo@gentoo.org> prc-tools-2.3-r1.ebuild, +files/prc-tools-2.3-gcc4.patch: diff --git a/dev-lang/prc-tools/files/digest-prc-tools-2.3-r2 b/dev-lang/prc-tools/files/digest-prc-tools-2.3-r2 new file mode 100644 index 000000000000..b31afd25258f --- /dev/null +++ b/dev-lang/prc-tools/files/digest-prc-tools-2.3-r2 @@ -0,0 +1,18 @@ +MD5 32a23e84f5d35f4b5aaa1b425bd1a38c MsectGdb2.3-1Patch.tar.bz2 14210 +RMD160 527a45bde13f02133f158e90243800fde8af81fd MsectGdb2.3-1Patch.tar.bz2 14210 +SHA256 4befe806424014b4b5865e7fb0b5f5aed6bcde633bd92757ec3747d61ecdc359 MsectGdb2.3-1Patch.tar.bz2 14210 +MD5 2da8def15d28af3ec6af0982709ae90a binutils-2.14.tar.bz2 10921504 +RMD160 e629a1256b5f75552e3360a315d28ad37f11a604 binutils-2.14.tar.bz2 10921504 +SHA256 e20bdd49a0fb317959b410c1fe81269a620ec21207045d8a37cadea621be4b59 binutils-2.14.tar.bz2 10921504 +MD5 87ee083a830683e2aaa57463940a0c3c gcc-2.95.3.tar.bz2 9848842 +RMD160 09cca1860ce897000df19643dfd944ae28366a1d gcc-2.95.3.tar.bz2 9848842 +SHA256 cf91a6b4f41248895f06bcd0570a62d2417ee99d32e6e2c5f70490e0eb6af5e4 gcc-2.95.3.tar.bz2 9848842 +MD5 1135a104e9fa36fdf7c663598fab5c40 gcc-3.3.1.tar.bz2 23544362 +RMD160 b3c0025b10de0917a30df55b669e8c6c7ec5814b gcc-3.3.1.tar.bz2 23544362 +SHA256 e6c498d1d310de2f4e5834def91603229e089ad814ac47c8ed6dd6c191b46f35 gcc-3.3.1.tar.bz2 23544362 +MD5 70e4ade69a2dff2c7b9af9a4ef44798f gdb-5.3.tar.bz2 11198721 +RMD160 92c5ee92e993354839f002231164296f51882570 gdb-5.3.tar.bz2 11198721 +SHA256 6e559a98636a1a5d92fd8df31161ed9307eca2234ae2d783dd8c84f500cddb6c gdb-5.3.tar.bz2 11198721 +MD5 038a42a71a984fee6f906abc85a032ec prc-tools-2.3.tar.gz 333417 +RMD160 6c5cce0b0a03a5e6b37c6a7b80dc925e64b0c0a1 prc-tools-2.3.tar.gz 333417 +SHA256 9ae076efc71eb693815cbd8177826d75bd958fef53fb5c9968511a1b2081a173 prc-tools-2.3.tar.gz 333417 diff --git a/dev-lang/prc-tools/prc-tools-2.3-r2.ebuild b/dev-lang/prc-tools/prc-tools-2.3-r2.ebuild new file mode 100644 index 000000000000..cebe31c8fda5 --- /dev/null +++ b/dev-lang/prc-tools/prc-tools-2.3-r2.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2006 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.1 2006/11/05 00:03:25 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 + >=sys-apps/texinfo-4.8" +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 || die + echo -n " "; epatch ${P}/${GCC_V_ARM}.palmos.diff || die + echo -n " "; epatch ${P}/${GCC_V_M68K}.palmos.diff || die + echo -n " "; epatch ${P}/${GDB_V}.palmos.diff || die + echo -n " "; EPATCH_OPTS="-l" epatch ${P}/../MsectGdb2.3-1.diff || die + echo -n " "; epatch ${FILESDIR}/${P}-compilefix.patch || die + echo -n " "; epatch ${FILESDIR}/${P}-gcc4.patch || die + + # 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 <stdio.h>::' -e 's:#include <sys/types.h>::' -e 's:#include <errno.h>::' -e 's:#include <stdlib.h>::' ${GCC_V_ARM}/gcc/tsystem.h || die +} + +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 + + ../${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 + make || 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*.gz" + rm -f "${D}/usr/share/info/gdbint*.gz" + rm -f "${D}/usr/share/info/standards.info.gz" + rm -f "${D}/usr/share/info/stabs.info.gz" +} + +pkg_postinst() { + echo + einfo "PRC-Tools is now compiled and installed!" + einfo "<HTML docs are installed in /opt/palmdev>" + echo + einfo "For a complete Palm Development Environment you will also need..." + echo + einfo "[ ] PilRC; the Palm resource compiler; emerge pilrc" + einfo "[ ] POSE; The Palm OS Emulator; emerge pose" + echo " ->> A ROM for POSE; available from Palm" + einfo "[ ] An SDK; available from the Palm Website" + echo " ->> Decompress this to /opt/palmdev and then run" + echo " 'palmdev-prep /opt/palmdev'" + echo +} |