summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2005-12-17 01:40:19 +0000
committerCarsten Lohrke <carlo@gentoo.org>2005-12-17 01:40:19 +0000
commit6d3e388810fe618006f6fb7b1dba36515aa3ff93 (patch)
treec20d07d64ef656062e8c405f7d2d3ab04f2801a9 /dev-lang/fpc
parentVersion bump. Add ~x86 keyword. (diff)
downloadhistorical-6d3e388810fe618006f6fb7b1dba36515aa3ff93.tar.gz
historical-6d3e388810fe618006f6fb7b1dba36515aa3ff93.tar.bz2
historical-6d3e388810fe618006f6fb7b1dba36515aa3ff93.zip
version bump
Package-Manager: portage-2.0.53
Diffstat (limited to 'dev-lang/fpc')
-rw-r--r--dev-lang/fpc/ChangeLog9
-rw-r--r--dev-lang/fpc/Manifest22
-rw-r--r--dev-lang/fpc/files/digest-fpc-1.9.5_pre200408201
-rw-r--r--dev-lang/fpc/files/digest-fpc-2.0.03
-rw-r--r--dev-lang/fpc/files/digest-fpc-2.0.0-r15
-rw-r--r--dev-lang/fpc/files/digest-fpc-2.0.0_rc22
-rw-r--r--dev-lang/fpc/files/digest-fpc-2.0.27
-rw-r--r--dev-lang/fpc/fpc-1.9.5_pre20040820.ebuild60
-rw-r--r--dev-lang/fpc/fpc-2.0.0-r1.ebuild161
-rw-r--r--dev-lang/fpc/fpc-2.0.0.ebuild120
-rw-r--r--dev-lang/fpc/fpc-2.0.0_rc2.ebuild84
-rw-r--r--dev-lang/fpc/fpc-2.0.2.ebuild161
12 files changed, 179 insertions, 456 deletions
diff --git a/dev-lang/fpc/ChangeLog b/dev-lang/fpc/ChangeLog
index 2c9a43e3df92..0b39d9b05e4e 100644
--- a/dev-lang/fpc/ChangeLog
+++ b/dev-lang/fpc/ChangeLog
@@ -1,6 +1,13 @@
# 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.24 2005/10/14 17:45:14 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.25 2005/12/17 01:39:35 carlo Exp $
+
+*fpc-2.0.2 (17 Dec 2005)
+
+ 17 Dec 2005; Carsten Lohrke <carlo@gentoo.org>
+ -fpc-1.9.5_pre20040820.ebuild, -fpc-2.0.0_rc2.ebuild, -fpc-2.0.0.ebuild,
+ -fpc-2.0.0-r1.ebuild, +fpc-2.0.2.ebuild:
+ version bump
14 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org> fpc-2.0.0-r1.ebuild:
Added sparc support and keyworded accordingly
diff --git a/dev-lang/fpc/Manifest b/dev-lang/fpc/Manifest
index 51cb0ede8349..2bf48d005cdc 100644
--- a/dev-lang/fpc/Manifest
+++ b/dev-lang/fpc/Manifest
@@ -1,20 +1,4 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 e1b8dffe04f771397949e785e148f3d6 ChangeLog 2516
-MD5 765515c95e92cbeb5061c5eb1978eb68 files/digest-fpc-1.9.5_pre20040820 58
-MD5 21228ac75288afaff37b7e0e236ed8bd files/digest-fpc-2.0.0 215
-MD5 0ca342f79113c71c07c127c02f7cdd4d files/digest-fpc-2.0.0-r1 360
-MD5 35b2220a69ffb4f90c2d27e905024582 files/digest-fpc-2.0.0_rc2 126
-MD5 81dc5a334516f896c2fea40e67799cb5 fpc-1.9.5_pre20040820.ebuild 1722
-MD5 435f744baa26a90a434823d0ee528d0e fpc-2.0.0-r1.ebuild 3999
-MD5 c2c4474a4cc7fc2d545bb6ef85f28f15 fpc-2.0.0.ebuild 2899
-MD5 930a09fa6ce48effa0410e573e34a8a7 fpc-2.0.0_rc2.ebuild 2246
+MD5 1289b14fd69aad4518301ce33a26560f ChangeLog 2725
+MD5 5b8d0c2a6f7a33a0b6e56fbf0d576860 files/digest-fpc-2.0.2 490
+MD5 4cc8aaf789c6d6fbae42576225d48ac6 fpc-2.0.2.ebuild 4318
MD5 dffd46174e78b327c834fc3e4b1cf848 metadata.xml 160
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1-ecc0.1.6 (GNU/Linux)
-
-iD8DBQFDT+7QKRy60XGEcJIRAl4mAKCCK3bAh+9x0TtsRCJXJeeq+yZDUwCfQVVC
-5fT0jXxMCHcYZ4cyGqqEF90=
-=D2FV
------END PGP SIGNATURE-----
diff --git a/dev-lang/fpc/files/digest-fpc-1.9.5_pre20040820 b/dev-lang/fpc/files/digest-fpc-1.9.5_pre20040820
deleted file mode 100644
index 5944475cb531..000000000000
--- a/dev-lang/fpc/files/digest-fpc-1.9.5_pre20040820
+++ /dev/null
@@ -1 +0,0 @@
-MD5 724cf7311ff2c34fa8848f259815a8ef doc-html.zip 7249589
diff --git a/dev-lang/fpc/files/digest-fpc-2.0.0 b/dev-lang/fpc/files/digest-fpc-2.0.0
deleted file mode 100644
index 93a6707256ae..000000000000
--- a/dev-lang/fpc/files/digest-fpc-2.0.0
+++ /dev/null
@@ -1,3 +0,0 @@
-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/files/digest-fpc-2.0.0-r1 b/dev-lang/fpc/files/digest-fpc-2.0.0-r1
deleted file mode 100644
index c63dc4510d1e..000000000000
--- a/dev-lang/fpc/files/digest-fpc-2.0.0-r1
+++ /dev/null
@@ -1,5 +0,0 @@
-MD5 5f0a5fba632a811dcfdafe0ff80476a3 fpc-2.0.0.i386-linux.tar 21360640
-MD5 7019384e09411902e530dfe55d4ff145 fpc-2.0.0.powerpc-linux.tar 22231040
-MD5 3f9c64d0146a3631f6963fd7477776d1 fpc-2.0.0.source.tar.gz 21040763
-MD5 dd8925ce8ce93309456c3072e6e4d14d fpc-2.0.0.sparc-linux.tar 22272000
-MD5 36270de604c6b5ad3af8aaa08143e88f fpc-2.0.0.x86_64-linux.tar 18380800
diff --git a/dev-lang/fpc/files/digest-fpc-2.0.0_rc2 b/dev-lang/fpc/files/digest-fpc-2.0.0_rc2
deleted file mode 100644
index a5b70909cef0..000000000000
--- a/dev-lang/fpc/files/digest-fpc-2.0.0_rc2
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 9b459ccf4273bde8e6f5e32cbd488ecc fpc-1.9.8.source.tar.gz 19378107
-MD5 62c7ac6c21c44276b5e14bf34265d185 binary.tar 6512640
diff --git a/dev-lang/fpc/files/digest-fpc-2.0.2 b/dev-lang/fpc/files/digest-fpc-2.0.2
new file mode 100644
index 000000000000..0d1e29d68eba
--- /dev/null
+++ b/dev-lang/fpc/files/digest-fpc-2.0.2
@@ -0,0 +1,7 @@
+MD5 5f0a5fba632a811dcfdafe0ff80476a3 fpc-2.0.0.i386-linux.tar 21360640
+MD5 7019384e09411902e530dfe55d4ff145 fpc-2.0.0.powerpc-linux.tar 22231040
+MD5 dd8925ce8ce93309456c3072e6e4d14d fpc-2.0.0.sparc-linux.tar 22272000
+MD5 feda2c92a435075b63cb78d01b104115 fpc-2.0.0.x86_64-linux.tar 4127040
+MD5 0a48954021273fec6b7fdba9038acdcc fpc-2.0.2.source.tar.gz 13404431
+MD5 392e122ec12aee30bde19086efdcf71c fpc-docs-2.0.2.tar.gz 6347946
+MD5 ebcc2dcf0edeab21ee5ec510441e53a6 fpc-man-2.0.2.tar.gz 25843
diff --git a/dev-lang/fpc/fpc-1.9.5_pre20040820.ebuild b/dev-lang/fpc/fpc-1.9.5_pre20040820.ebuild
deleted file mode 100644
index d2beb9bada76..000000000000
--- a/dev-lang/fpc/fpc-1.9.5_pre20040820.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# 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-1.9.5_pre20040820.ebuild,v 1.3 2005/09/15 22:02:41 vanquirius Exp $
-
-inherit eutils
-
-FPC_V="1.9.5"
-
-DESCRIPTION="Source build for the Free Pascal Compiler"
-HOMEPAGE="http://www.us.freepascal.org/fpc.html"
-SRC_URI="doc? ( ftp://ftp.freepascal.org/pub/fpc/docs/doc-html.zip )"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 -amd64"
-IUSE="doc"
-RDEPEND="!dev-lang/fpc-bin"
-DEPEND="${RDEPEND}
- doc? ( app-arch/unzip )"
-S="${WORKDIR}/fpc-${FPC_V}"
-
-src_compile() {
- cd ${S}
-
- einfo "Building the fpc compiler and units"
- # have to use -j1 as it doesn't seem to like -j2+
- emake -j1 build \
- OS_TARGET=linux \
- PP=${S}/ppc386 \
- PREFIX=${D}/usr \
- || die "Free Pascal Compiler build process failed!"
-}
-
-src_install() {
- einfo "Installing the fpc compiler and units"
- make install \
- OS_TARGET=linux \
- PP=${S}/ppc386 \
- PREFIX=${D}/usr \
- || die "Free Pascal Compiler install failed!"
-
- if use doc; then
- #install the html docs
- einfo "Installing html docs"
- mkdir ${D}/usr/share/doc/fpc-${FPC_V}/html
- cp -r ${WORKDIR}/doc/* ${D}/usr/share/doc/fpc-${FPC_V}/html
- fi
-}
-
-config() {
- #Create our configuration file so fpc
- #is easier to use
- /usr/lib/fpc/${FPC_V}/samplecfg /usr/lib/fpc/${FPC_V} /etc
-
- einfo "The configuration file for fpc has been placed in /etc/fpc.cfg"
- einfo "Use this to customize your pascal compile flags"
- einfo "More information on the fpc flags can be found in the fpc manpage"
- echo
- einfo "Examples and docs can be found in /usr/share/doc/fpc-${FPC_V}"
- einfo "Upstream support can be found at: http://community.freepascal.org:10000/"
-}
diff --git a/dev-lang/fpc/fpc-2.0.0-r1.ebuild b/dev-lang/fpc/fpc-2.0.0-r1.ebuild
deleted file mode 100644
index d5780979ba83..000000000000
--- a/dev-lang/fpc/fpc-2.0.0-r1.ebuild
+++ /dev/null
@@ -1,161 +0,0 @@
-# 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.3 2005/10/14 17:45:14 gustavoz 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="~amd64 ~ppc ~sparc ~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 )
- sparc? ( mirror://sourceforge/freepascal/fpc-${MY_PV}.sparc-linux.tar )
- ppc? ( mirror://sourceforge/freepascal/fpc-${MY_PV}.powerpc-linux.tar )
- amd64? ( mirror://sourceforge/freepascal/fpc-${MY_PV}.x86_64-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!"
- ;;
- sparc)
- tar -xf binary.sparc-linux.tar || die "Unpacking binary.sparc-linux.tar
- failed!"
- tar -zxf base.sparc-linux.tar.gz || die "Unpacking
- base.sparc-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!"
- ;;
- amd64)
- tar -xf binary.x86_64-linux.tar || die "Unpacking binary.x86_64-linux.tar failed!"
- tar -zxf base.x86_64-linux.tar.gz || die "Unpacking base.x86_64-linux.tar.gz failed!"
- ;;
- esac
-}
-
-set_pp() {
- case ${ARCH} in
- x86)
- FPCARCH=386
- ;;
- sparc)
- FPCARCH=sparc
- ;;
- ppc)
- FPCARCH=ppc
- ;;
- amd64)
- FPCARCH=x64
- ;;
- 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
- ;;
- sparc)
- FPCARCH=sparc
- ;;
- ppc)
- FPCARCH=ppc
- ;;
- amd64)
- FPCARCH=x64
- ;;
- 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
- ;;
- sparc)
- FPCARCH=sparc
- ;;
- ppc)
- FPCARCH=ppc
- ;;
- amd64)
- FPCARCH=x64
- ;;
- esac
- einfo "/usr/bin/ppc${FPCARCH} now points to the new binary:"
- einfo " /usr/lib/${PN}/${MY_PV}/ppc${FPCARCH}"
-}
diff --git a/dev-lang/fpc/fpc-2.0.0.ebuild b/dev-lang/fpc/fpc-2.0.0.ebuild
deleted file mode 100644
index db0433ddd085..000000000000
--- a/dev-lang/fpc/fpc-2.0.0.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# 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.ebuild,v 1.5 2005/06/27 15:13:27 agriffis 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=""
-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"
-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!"
-}
-
-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 \
- || die "make install failed!"
-}
-
-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}"
-}
diff --git a/dev-lang/fpc/fpc-2.0.0_rc2.ebuild b/dev-lang/fpc/fpc-2.0.0_rc2.ebuild
deleted file mode 100644
index 0d74d4f845e4..000000000000
--- a/dev-lang/fpc/fpc-2.0.0_rc2.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# 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.4 2005/06/27 15:13:27 agriffis Exp $
-
-inherit eutils
-
-MY_PV="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_PV}/fpc-${MY_PV}.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!"
-}
-
-set_pp() {
- case $1 in
- bootstrap) pp=${WORKDIR}/lib/fpc/${STABLE}/ppc${ARCH} ;;
- new) pp=${S}/compiler/ppc${ARCH} ;;
- *) 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!"
-}
-
-src_install() {
- local pp
- set_pp new
-
- make compiler_install rtl_install fcl_install packages_install utils_install \
- PP=${pp} FPCMAKE=${S}/utils/fpcm/fpcmake INSTALL_PREFIX=${D}usr \
- || die "make install failed!"
-}
-
-pkg_preinst() {
- ${IMAGE}/usr/lib/fpc/${MY_PV}/samplecfg /usr/lib/fpc/${MY_PV} ${IMAGE}/etc
- ln -s ../lib/fpc/${MY_PV}/ppc386 ${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
- einfo "/usr/bin/ppc386 now points to the new binary:"
- einfo " /usr/lib/${PN}/${MY_PV}/ppc${ARCH}"
-}
diff --git a/dev-lang/fpc/fpc-2.0.2.ebuild b/dev-lang/fpc/fpc-2.0.2.ebuild
new file mode 100644
index 000000000000..3a3efce868df
--- /dev/null
+++ b/dev-lang/fpc/fpc-2.0.2.ebuild
@@ -0,0 +1,161 @@
+# 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.2.ebuild,v 1.1 2005/12/17 01:39:35 carlo Exp $
+
+inherit eutils
+
+
+PV_BIN="2.0.0"
+S="${WORKDIR}/fpc"
+
+HOMEPAGE="http://www.freepascal.org/"
+DESCRIPTION="Free Pascal Compiler"
+SRC_URI="mirror://sourceforge/freepascal/fpc-${PV}.source.tar.gz
+ mirror://gentoo/fpc-man-${PV}.tar.gz
+ x86? ( mirror://gentoo/fpc-${PV_BIN}.i386-linux.tar )
+ sparc? ( mirror://gentoo/fpc-${PV_BIN}.sparc-linux.tar )
+ ppc? ( mirror://gentoo/fpc-${PV_BIN}.powerpc-linux.tar )
+ amd64? ( mirror://gentoo/fpc-${PV_BIN}.x86_64-linux.tar )
+ doc? ( mirror://gentoo/fpc-docs-${PV}.tar.gz )"
+
+SLOT="0"
+LICENSE="GPL-2 LGPL-2.1 LGPL-2.1-FPC"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="doc source"
+
+DEPEND="!dev-lang/fpc-bin
+ !dev-lang/fpc-source
+ net-misc/rsync"
+RDEPEND="!dev-lang/fpc-bin
+ !dev-lang/fpc-source"
+
+src_unpack() {
+ unpack ${A} || die "Unpacking ${A} failed!"
+ case ${ARCH} in
+ x86) FPC_ARCH="i386" ;;
+ ppc) FPC_ARCH="powerpc" ;;
+ amd64) FPC_ARCH="x86_64" ;;
+ sparc) FPC_ARCH="sparc" ;;
+ *) die "This ebuild doesn't support ${ARCH}." ;;
+ esac
+ tar -xf binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!"
+ tar -zxf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!"
+}
+
+set_pp() {
+ case ${ARCH} in
+ x86) FPC_ARCH="386" ;;
+ ppc) FPC_ARCH="ppc" ;;
+ amd64) FPC_ARCH="x64" ;;
+ sparc) FPC_ARCH="sparc" ;;
+ *) die "This ebuild doesn't support ${ARCH}." ;;
+ esac
+
+ case ${1} in
+ bootstrap) pp=${WORKDIR}/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;;
+ new) pp=${S}/compiler/ppc${FPC_ARCH} ;;
+ *) die "set_pp: unknown argument: ${1}" ;;
+ esac
+}
+
+src_compile() {
+ local pp d
+
+ # Using the bootstrap compiler.
+ set_pp bootstrap
+ make -j1 compiler_cycle PP=${pp} || die "make compiler_cycle failed!"
+
+ # Save new compiler from cleaning...
+ cp ${S}/compiler/ppc${FPC_ARCH} ${S}/ppc${FPC_ARCH}.new
+ # ...rebuild with current version...
+ make -j1 compiler_cycle PP=${S}/ppc${FPC_ARCH}.new || die "make compiler_cycle failed!"
+ # ..and clean up afterwards
+ rm ${S}/ppc${FPC_ARCH}.new
+
+ # Using the new compiler.
+ set_pp new
+
+ # We cannot do this at once!
+ for d in rtl packages fcl; do
+ make -j1 -C $d clean PP=${pp} || die "make -C $d clean failed!"
+ done
+
+ make -j1 rtl packages_base_all fcl packages_extra_all PP=${pp} \
+ || die "make rtl packages_base_all fcl packages_extra_all failed!"
+
+ make -j1 utils PP=${pp} DATA2INC=${S}/utils/data2inc \
+ || die "make utils failed!"
+}
+
+src_install() {
+ local pp
+ set_pp new
+
+ make compiler_install rtl_install fcl_install \
+ packages_install utils_install \
+ PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \
+ INSTALL_PREFIX="${D}usr" || die "make install failed!"
+
+ find ${WORKDIR}/fpc/ -type f -perm -o=x -exec rm '{}' \;
+ if use "source" ; then
+ ebegin "Copying source files"
+ # Use rsync since cp doesn't support exclusions
+ rsync -a \
+ --exclude="*.#*" \
+ --exclude="*.bak" \
+ --exclude="*.cvsignore" \
+ --exclude="*.o" \
+ --exclude="*.orig" \
+ --exclude="*.ow" \
+ --exclude="*.ppl" \
+ --exclude="*.ppu" \
+ --exclude="*.ppw" \
+ --exclude="*.rej" \
+ --exclude="*.rst" \
+ --exclude="*.xvpics" \
+ --exclude="*.~*" \
+ --exclude="CVS" \
+ --exclude="fpcmade.i386-linux" \
+ ${WORKDIR}/fpc/ ${D}usr/lib/fpc/src
+ eend $? || die
+ fi
+
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins ${WORKDIR}/fpc-docs-${PV}/*.pdf
+ fi
+
+ doman ${WORKDIR}/fpc-man-${PV}/man{1,5}/*
+}
+
+pkg_preinst() {
+ ${IMAGE}/usr/lib/fpc/${PV}/samplecfg /usr/lib/fpc/${PV} ${IMAGE}/etc
+ case ${ARCH} in
+ x86) FPC_ARCH="386" ;;
+ ppc) FPC_ARCH="ppc" ;;
+ amd64) FPC_ARCH="x64" ;;
+ sparc) FPC_ARCH="sparc" ;;
+ *) die "This ebuild doesn't support ${ARCH}." ;;
+ esac
+ ln -s ../lib/fpc/${PV}/ppc${FPC_ARCH} ${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) FPC_ARCH="386" ;;
+ ppc) FPC_ARCH="ppc" ;;
+ amd64) FPC_ARCH="x64" ;;
+ sparc) FPC_ARCH="sparc" ;;
+ *) die "This ebuild doesn't support ${ARCH}." ;;
+ esac
+ einfo "/usr/bin/ppc${FPC_ARCH} now points to the new binary:"
+ einfo " /usr/lib/${PN}/${PV}/ppc${FPC_ARCH}"
+}