Adding multi-section debugging support; bug #72378. Fixing a Makefile so all the...
authorTim Yamin <plasmaroo@gentoo.org>
Tue, 4 Jan 2005 17:47:14 +0000 (17:47 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Tue, 4 Jan 2005 17:47:14 +0000 (17:47 +0000)
dev-lang/prc-tools/ChangeLog
dev-lang/prc-tools/Manifest
dev-lang/prc-tools/files/digest-prc-tools-2.3-r1 [new file with mode: 0644]
dev-lang/prc-tools/files/prc-tools-2.3-compilefix.patch
dev-lang/prc-tools/prc-tools-2.3-r1.ebuild [new file with mode: 0644]

index f10ffdea3e6afffa3d6633ee5143ab080e11fa10..60df1d27b74f1319e249164768ccffcd1a903684 100644 (file)
@@ -1,9 +1,16 @@
 # ChangeLog for dev-lang/prc-tools
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/prc-tools/ChangeLog,v 1.6 2004/06/24 22:54:23 agriffis Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/prc-tools/ChangeLog,v 1.7 2005/01/04 17:47:14 plasmaroo Exp $
+
+*prc-tools-2.3-r1 (04 Jan 2005)
+
+  04 Jan 2005; <plasmaroo@gentoo.org> +prc-tools-2.3-r1.ebuild,
+  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; <plasmaroo@gentoo.org> prc-tools-2.3.ebuild:
-  Added fix for thecompile error when not upgrading because of broken 
+  Added fix for the compile error when not upgrading because of broken 
   includes in prc-tools.
 
 *prc-tools-2.3 (29 Oct 2003)
index ae75d8a96c6baf5b2f645c228a4c705aa7aa08a9..aa8ea771be607a6ea99ca7bfa1096d484097b573 100644 (file)
@@ -1,6 +1,8 @@
-MD5 5fdc4c03698ce46609cf3e6ef57ea52a prc-tools-2.3.ebuild 3354
-MD5 9b894b97a333bd063440238a3812e1a1 ChangeLog 663
+MD5 86fa290d3ac9fe865351461322d8405d ChangeLog 928
+MD5 43fb4cfe116cc53057a3d04f5b0b0b80 prc-tools-2.3-r1.ebuild 3515
 MD5 a5c50833bcc05f696a75e5dc8bb9eb4d metadata.xml 225
+MD5 5fdc4c03698ce46609cf3e6ef57ea52a prc-tools-2.3.ebuild 3354
+MD5 caff630bb5a63f4cd8b4165d5016eca1 files/digest-prc-tools-2.3-r1 393
 MD5 fcc20c7b30e20c7bc95f2accdfe8f569 files/prc-tools-2.2-compilefix.patch 6620
-MD5 e94278d85c02d1338bad0e3c7f0f8f4a files/prc-tools-2.3-compilefix.patch 8621
 MD5 a7ab0a38eef025abb11ecefaa270c68b files/digest-prc-tools-2.3 323
+MD5 a706541b6a4c3a143841be0110df0313 files/prc-tools-2.3-compilefix.patch 9707
diff --git a/dev-lang/prc-tools/files/digest-prc-tools-2.3-r1 b/dev-lang/prc-tools/files/digest-prc-tools-2.3-r1
new file mode 100644 (file)
index 0000000..03f077f
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 038a42a71a984fee6f906abc85a032ec prc-tools-2.3.tar.gz 333417
+MD5 2da8def15d28af3ec6af0982709ae90a binutils-2.14.tar.bz2 10921504
+MD5 70e4ade69a2dff2c7b9af9a4ef44798f gdb-5.3.tar.bz2 11198721
+MD5 1135a104e9fa36fdf7c663598fab5c40 gcc-3.3.1.tar.bz2 23544362
+MD5 87ee083a830683e2aaa57463940a0c3c gcc-2.95.3.tar.bz2 9848842
+MD5 32a23e84f5d35f4b5aaa1b425bd1a38c MsectGdb2.3-1Patch.tar.bz2 14210
index ef22d41d3ff65b1c639cb2fd06bb847ff86e5012..dbfe81d0283b6050ecdde3419bd6f5c73a9698e8 100644 (file)
  
  INSTALL = @INSTALL@
  INSTALL_DATA = @INSTALL_DATA@
+@@ -61,8 +61,33 @@
+       $(INSTALL_DATA) index.texi.html $(DESTDIR)$(htmldir)/index.html
+       -rm -rf $(DESTDIR)$(htmldir)/texi
+       $(INSTALL) -d $(DESTDIR)$(htmldir)/texi
+-      for f in `ls *.html | grep -v '^index'`; do \
+-        $(INSTALL_DATA) $$f $(DESTDIR)$(htmldir)/texi/$$f; \
++      cd prc-tools; \
++      for f in `ls *.html`; do \
++              $(INSTALL_DATA) $$f $(DESTDIR)$(htmldir)/texi/$$f; \
++      done
++      cd gcc; \
++      for f in `ls *.html`; do \
++              $(INSTALL_DATA) $$f $(DESTDIR)$(htmldir)/texi/$$f; \
++      done
++      cd cpp; \
++      for f in `ls *.html`; do \
++              $(INSTALL_DATA) $$f $(DESTDIR)$(htmldir)/texi/$$f; \
++      done
++      cd gdb; \
++      for f in `ls *.html`; do \
++              $(INSTALL_DATA) $$f $(DESTDIR)$(htmldir)/texi/$$f; \
++      done
++      cd as; \
++      for f in `ls *.html`; do \
++              $(INSTALL_DATA) $$f $(DESTDIR)$(htmldir)/texi/$$f; \
++      done
++      cd ld; \
++      for f in `ls *.html`; do \
++              $(INSTALL_DATA) $$f $(DESTDIR)$(htmldir)/texi/$$f; \
++      done
++      cd binutils; \
++      for f in `ls *.html`; do \
++              $(INSTALL_DATA) $$f $(DESTDIR)$(htmldir)/texi/$$f; \
+       done
+ 
+ .PHONY: all info man html install install-info install-man install-html clean
diff --git a/dev-lang/prc-tools/prc-tools-2.3-r1.ebuild b/dev-lang/prc-tools/prc-tools-2.3-r1.ebuild
new file mode 100644 (file)
index 0000000..17f6deb
--- /dev/null
@@ -0,0 +1,114 @@
+# Copyright 1999-2005 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-r1.ebuild,v 1.1 2005/01/04 17:47:14 plasmaroo Exp $
+
+inherit flag-o-matic eutils
+
+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.64-r1"
+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
+
+               # 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 -0 -01 -02"
+       strip-flags
+
+       ../${P}/configure --enable-targets=m68k-palmos,arm-palmos \
+       --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}/..
+}
+
+src_compile() {
+       src_config
+       make || die
+}
+
+src_install() {
+       cd ../build
+       einstall || die
+}
+
+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
+}