summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris White <chriswhite@gentoo.org>2005-03-31 01:48:28 +0000
committerChris White <chriswhite@gentoo.org>2005-03-31 01:48:28 +0000
commit398ef8a965f00367861cff62dc1a02e49e6a39c2 (patch)
tree4172e091e5a533747376d6286dd7a846b4454677 /dev-lang/fpc
parentAdding new LGPL with FPC extensions to licenses. (diff)
downloadgentoo-2-398ef8a965f00367861cff62dc1a02e49e6a39c2.tar.gz
gentoo-2-398ef8a965f00367861cff62dc1a02e49e6a39c2.tar.bz2
gentoo-2-398ef8a965f00367861cff62dc1a02e49e6a39c2.zip
Closing part 1 of 2 for Bug #87337. Thanks to expose for the ebuild.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-lang/fpc')
-rw-r--r--dev-lang/fpc/ChangeLog7
-rw-r--r--dev-lang/fpc/Manifest14
-rw-r--r--dev-lang/fpc/files/digest-fpc-2.0.0_rc22
-rw-r--r--dev-lang/fpc/fpc-2.0.0_rc2.ebuild98
4 files changed, 109 insertions, 12 deletions
diff --git a/dev-lang/fpc/ChangeLog b/dev-lang/fpc/ChangeLog
index 2a8004f8960d..c1b165fb8086 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.13 2005/01/21 00:50:15 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.14 2005/03/31 01:48:28 chriswhite Exp $
+
+*fpc-2.0.0_rc2 (31 Mar 2005)
+
+ 31 Mar 2005; Chris White <chriswhite@gentoo.org> +fpc-2.0.0_rc2.ebuild:
+ Closing part 1 of 2 for Bug #87337. Thanks to expose for the ebuild.
*fpc-1.9.5_pre20040820 (21 Jan 2005)
diff --git a/dev-lang/fpc/Manifest b/dev-lang/fpc/Manifest
index 2a1cfc51d54e..79f8c0b5d413 100644
--- a/dev-lang/fpc/Manifest
+++ b/dev-lang/fpc/Manifest
@@ -1,14 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 f6b0ed26bfd2aafee562a2c1dabc2094 fpc-1.9.5_pre20040820.ebuild 1678
MD5 d703fb7edf54e58cbad523b88a1902c7 ChangeLog 1066
+MD5 f6b0ed26bfd2aafee562a2c1dabc2094 fpc-1.9.5_pre20040820.ebuild 1678
MD5 f5f1522837a3398846f77d381fda47ec metadata.xml 226
+MD5 39f5313e108f7705b1a1ca709c086199 fpc-2.0.0_rc2.ebuild 2200
MD5 765515c95e92cbeb5061c5eb1978eb68 files/digest-fpc-1.9.5_pre20040820 58
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFB8FHNI1lqEGTUzyQRAivPAKDSSy5nUtPfKuk9zd3HfKIIpUfhHQCfRN1Y
-yeS86+rMCqAKRVHelstZXmM=
-=bAte
------END PGP SIGNATURE-----
+MD5 35b2220a69ffb4f90c2d27e905024582 files/digest-fpc-2.0.0_rc2 126
diff --git a/dev-lang/fpc/files/digest-fpc-2.0.0_rc2 b/dev-lang/fpc/files/digest-fpc-2.0.0_rc2
new file mode 100644
index 000000000000..a5b70909cef0
--- /dev/null
+++ b/dev-lang/fpc/files/digest-fpc-2.0.0_rc2
@@ -0,0 +1,2 @@
+MD5 9b459ccf4273bde8e6f5e32cbd488ecc fpc-1.9.8.source.tar.gz 19378107
+MD5 62c7ac6c21c44276b5e14bf34265d185 binary.tar 6512640
diff --git a/dev-lang/fpc/fpc-2.0.0_rc2.ebuild b/dev-lang/fpc/fpc-2.0.0_rc2.ebuild
new file mode 100644
index 000000000000..703749985cff
--- /dev/null
+++ b/dev-lang/fpc/fpc-2.0.0_rc2.ebuild
@@ -0,0 +1,98 @@
+# 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_rc2.ebuild,v 1.1 2005/03/31 01:48:28 chriswhite Exp $
+
+inherit eutils
+
+MY_P="1.9.8"
+STABLE="1.0.10"
+ARCH="386"
+
+SLOT="0"
+LICENSE="GPL-2 LGPL-2.1 LGPL-2.1-FPC"
+KEYWORDS="x86"
+DESCRIPTION="Free Pascal Compiler"
+HOMEPAGE="http://www.freepascal.org/"
+IUSE=""
+SRC_URI="ftp://ftp.freepascal.org/pub/fpc/beta/source-${MY_P}/fpc-${MY_P}.source.tar.gz
+ ftp://ftp.freepascal.org/pub/fpc/dist/Linux/i386/separate/binary.tar"
+DEPEND="!dev-lang/fpc-bin"
+RDEPEND="!dev-lang/fpc-bin"
+S=${WORKDIR}/fpc
+
+src_unpack () {
+ unpack ${A} || die "Unpacking ${A} failed!"
+ tar -zxf baselinux.tar.gz || die "Unpacking baselinux.tar.gz failed!"
+}
+
+src_compile () {
+ # Using the bootstrap compiler.
+ COMPILER=${WORKDIR}/lib/fpc/${STABLE}/ppc${ARCH}
+ emake -j1 \
+ compiler_cycle \
+ PP=${COMPILER} \
+ || die "make compiler_cycle failed!"
+
+ # Using the new compiler.
+ COMPILER=${S}/compiler/ppc${ARCH}
+
+ # We cannot do this at once!
+ clean_subdir "rtl"
+ clean_subdir "packages"
+ clean_subdir "fcl"
+
+ emake -j1 \
+ rtl \
+ packages_base_all \
+ fcl \
+ packages_extra_all \
+ PP=${COMPILER} \
+ || die "make rtl packages_base_all fcl packages_extra_all failed!"
+
+ DATA2INC=${S}/utils/data2inc
+ emake -j1 \
+ utils \
+ PP=${COMPILER} \
+ DATA2INC=${DATA2INC} \
+ || die "make utils failed!"
+}
+
+src_install () {
+ FPCMAKE=${S}/utils/fpcm/fpcmake
+ emake -j1 \
+ compiler_install \
+ rtl_install \
+ fcl_install \
+ packages_install \
+ utils_install \
+ PP=${COMPILER} \
+ FPCMAKE=${FPCMAKE} \
+ INSTALL_PREFIX=${D}usr \
+ || die "make compiler_install rtl_install fcl_install packages_install utils_install failed!"
+}
+
+pkg_preinst () {
+ ${D}usr/lib/fpc/${MY_P}/samplecfg /usr/lib/fpc/${MY_P} ${D}etc
+ ln -s ../lib/fpc/${MY_P}/ppc386 ${D}usr/bin/
+}
+
+pkg_postinst () {
+ # Using ewarn - it is really important for other ebuilds.
+ if [ -e /etc/._cfg0000_fpc.cfg ]; then
+ ewarn
+ ewarn "Make sure you update /etc/fpc.cfg !"
+ ewarn "Otherwise FPC will not work correctly."
+ ewarn
+ ebeep
+ fi
+ einfo "/usr/bin/ppc386 now points to the new binary."
+ echo $D
+}
+
+clean_subdir() {
+ emake -j1 \
+ -C $1 \
+ clean \
+ PP=${COMPILER} \
+ || die "make -C $1 clean failed!"
+}