summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2005-07-03 17:42:51 +0000
committerCarsten Lohrke <carlo@gentoo.org>2005-07-03 17:42:51 +0000
commit07d1d55cb0388a75519d5418a0d0550487af1419 (patch)
tree83a7713eeb6a1ffc94ca08ad10f80b29225518c1 /dev-lang/fpc
parentAdded atk and firefox useflags for eclipse-sdk. (diff)
downloadhistorical-07d1d55cb0388a75519d5418a0d0550487af1419.tar.gz
historical-07d1d55cb0388a75519d5418a0d0550487af1419.tar.bz2
historical-07d1d55cb0388a75519d5418a0d0550487af1419.zip
added optional documentation
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'dev-lang/fpc')
-rw-r--r--dev-lang/fpc/ChangeLog7
-rw-r--r--dev-lang/fpc/Manifest18
-rw-r--r--dev-lang/fpc/files/digest-fpc-2.0.0-r13
-rw-r--r--dev-lang/fpc/fpc-2.0.0-r1.ebuild131
4 files changed, 145 insertions, 14 deletions
diff --git a/dev-lang/fpc/ChangeLog b/dev-lang/fpc/ChangeLog
index 7002fb4827a9..6a2e21969e53 100644
--- a/dev-lang/fpc/ChangeLog
+++ b/dev-lang/fpc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/fpc
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.20 2005/06/27 15:13:27 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.21 2005/07/03 17:42:51 carlo Exp $
+
+*fpc-2.0.0-r1 (03 Jul 2005)
+
+ 03 Jul 2005; Carsten Lohrke <carlo@gentoo.org> +fpc-2.0.0-r1.ebuild:
+ added optional documentation
27 Jun 2005; Aron Griffis <agriffis@gentoo.org> fpc-2.0.0_rc2.ebuild,
fpc-2.0.0.ebuild:
diff --git a/dev-lang/fpc/Manifest b/dev-lang/fpc/Manifest
index e145515f8272..515acdf5d2f7 100644
--- a/dev-lang/fpc/Manifest
+++ b/dev-lang/fpc/Manifest
@@ -1,18 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 6d2cdc7bbdf29311703b6e92dff4bcf9 fpc-1.9.5_pre20040820.ebuild 1672
-MD5 dffd46174e78b327c834fc3e4b1cf848 metadata.xml 160
MD5 930a09fa6ce48effa0410e573e34a8a7 fpc-2.0.0_rc2.ebuild 2246
-MD5 5b790f9b487766c8535fa9ed366fcfd7 ChangeLog 2009
+MD5 24f3cf85423f6a11a77d57c2ae07d81a fpc-2.0.0-r1.ebuild 3293
+MD5 5bff984909287b39c52226c55d2fc82c ChangeLog 2138
+MD5 dffd46174e78b327c834fc3e4b1cf848 metadata.xml 160
MD5 c2c4474a4cc7fc2d545bb6ef85f28f15 fpc-2.0.0.ebuild 2899
MD5 35b2220a69ffb4f90c2d27e905024582 files/digest-fpc-2.0.0_rc2 126
-MD5 765515c95e92cbeb5061c5eb1978eb68 files/digest-fpc-1.9.5_pre20040820 58
MD5 21228ac75288afaff37b7e0e236ed8bd files/digest-fpc-2.0.0 215
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFCwBe1BXaUFmZvwyMRAsuSAKC9htsVDplgfKqkkrP9xgja52bODQCbBXGo
-hpdZ9YD/fGE5EytBFAF06eQ=
-=GE3L
------END PGP SIGNATURE-----
+MD5 21228ac75288afaff37b7e0e236ed8bd files/digest-fpc-2.0.0-r1 215
+MD5 765515c95e92cbeb5061c5eb1978eb68 files/digest-fpc-1.9.5_pre20040820 58
diff --git a/dev-lang/fpc/files/digest-fpc-2.0.0-r1 b/dev-lang/fpc/files/digest-fpc-2.0.0-r1
new file mode 100644
index 000000000000..93a6707256ae
--- /dev/null
+++ b/dev-lang/fpc/files/digest-fpc-2.0.0-r1
@@ -0,0 +1,3 @@
+MD5 3f9c64d0146a3631f6963fd7477776d1 fpc-2.0.0.source.tar.gz 21040763
+MD5 5f0a5fba632a811dcfdafe0ff80476a3 fpc-2.0.0.i386-linux.tar 21360640
+MD5 7019384e09411902e530dfe55d4ff145 fpc-2.0.0.powerpc-linux.tar 22231040
diff --git a/dev-lang/fpc/fpc-2.0.0-r1.ebuild b/dev-lang/fpc/fpc-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..5eeee77c957a
--- /dev/null
+++ b/dev-lang/fpc/fpc-2.0.0-r1.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.0.0-r1.ebuild,v 1.1 2005/07/03 17:42:51 carlo Exp $
+
+inherit eutils
+
+MY_PV="2.0.0"
+STABLE="2.0.0"
+
+SLOT="0"
+LICENSE="GPL-2 LGPL-2.1 LGPL-2.1-FPC"
+KEYWORDS="~ppc ~x86"
+DESCRIPTION="Free Pascal Compiler"
+HOMEPAGE="http://www.freepascal.org/"
+IUSE="doc"
+SRC_URI="mirror://sourceforge/freepascal/fpc-${MY_PV}.source.tar.gz
+ x86? ( mirror://sourceforge/freepascal/fpc-${MY_PV}.i386-linux.tar )
+ ppc? ( mirror://sourceforge/freepascal/fpc-${MY_PV}.powerpc-linux.tar )"
+DEPEND="!dev-lang/fpc-bin
+ doc? ( dev-tex/tex4ht )"
+RDEPEND="!dev-lang/fpc-bin"
+S=${WORKDIR}/fpc
+
+src_unpack() {
+ unpack ${A} || die "Unpacking ${A} failed!"
+ case ${ARCH} in
+ x86)
+ tar -xf binary.i386-linux.tar || die "Unpacking binary.i386-linux.tar failed!"
+ tar -zxf base.i386-linux.tar.gz || die "Unpacking base.i386-linux.tar.gz failed!"
+ ;;
+ ppc)
+ tar -xf binary.powerpc-linux.tar || die "Unpacking binary.powerpc-linux.tar failed!"
+ tar -zxf base.powerpc-linux.tar.gz || die "Unpacking base.powerpc-linux.tar.gz failed!"
+ ;;
+ esac
+}
+
+set_pp() {
+ case ${ARCH} in
+ x86)
+ FPCARCH=386
+ ;;
+ ppc)
+ FPCARCH=ppc
+ ;;
+ esac
+
+ case $1 in
+ bootstrap) pp=${WORKDIR}/lib/fpc/${STABLE}/ppc${FPCARCH} ;;
+ new) pp=${S}/compiler/ppc${FPCARCH} ;;
+ *) die "set_pp: unknown argument: $1" ;;
+ esac
+}
+
+src_compile() {
+ local pp d
+
+ # Using the bootstrap compiler.
+ set_pp bootstrap
+ emake -j1 compiler_cycle PP=${pp} \
+ || die "make compiler_cycle failed!"
+
+ # Using the new compiler.
+ set_pp new
+
+ # We cannot do this at once!
+ for d in rtl packages fcl; do
+ emake -j1 -C $d clean PP=${pp} || die "make -C $d clean failed!"
+ done
+
+ emake -j1 rtl packages_base_all fcl packages_extra_all PP=${pp} \
+ || die "make rtl packages_base_all fcl packages_extra_all failed!"
+
+ emake -j1 utils PP=${pp} DATA2INC=${S}/utils/data2inc \
+ || die "make utils failed!"
+
+ cd ${S}/docs
+ use doc && make 4ht
+ # examples fail miserably in v.2.0.0, sent email upstream
+ # use examples && make linuxexamples
+}
+
+src_install() {
+ local pp
+ set_pp new
+
+ make compiler_install rtl_install fcl_install \
+ packages_install utils_install man_install \
+ PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \
+ INSTALL_PREFIX="${D}usr" INSTALL_MANDIR="${D}usr/share/man" \
+ doc_install INSTALL_DOCDIR="${D}usr/share/doc/${PF}/" \
+ || die "make install failed!"
+ dohtml ${D}usr/share/doc/${PF}/faq.html
+ rm ${D}usr/share/doc/${PF}/faq.html
+ cd ${S}/docs
+ use doc && make INSTALL_DOCDIR="${D}usr/share/doc/${PF}/html" htmlinstall
+}
+
+pkg_preinst() {
+ ${IMAGE}/usr/lib/fpc/${MY_PV}/samplecfg /usr/lib/fpc/${MY_PV} ${IMAGE}/etc
+ case ${ARCH} in
+ x86)
+ FPCARCH=386
+ ;;
+ ppc)
+ FPCARCH=ppc
+ ;;
+ esac
+ ln -s ../lib/fpc/${MY_PV}/ppc${FPCARCH} ${IMAGE}/usr/bin/
+}
+
+pkg_postinst() {
+ # Using ewarn - it is really important for other ebuilds (e.g. Lazarus)
+ if [ -e /etc/._cfg0000_fpc.cfg ]; then
+ echo
+ ewarn "Make sure you etc-update /etc/fpc.cfg"
+ ewarn "Otherwise FPC will not work correctly."
+ echo
+ ebeep
+ fi
+ case ${ARCH} in
+ x86)
+ FPCARCH=386
+ ;;
+ ppc)
+ FPCARCH=ppc
+ ;;
+ esac
+ einfo "/usr/bin/ppc${FPCARCH} now points to the new binary:"
+ einfo " /usr/lib/${PN}/${MY_PV}/ppc${FPCARCH}"
+}