summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2005-12-17 16:17:58 +0000
committerCarsten Lohrke <carlo@gentoo.org>2005-12-17 16:17:58 +0000
commit0febd5bf7e9f6782b540a1794f340c3b3a56917a (patch)
tree46b1eb8869a130620da5d777cbbaa20a50d1944b /dev-lang
parentCorrected qt-3* dependency; bug #100235. (diff)
downloadhistorical-0febd5bf7e9f6782b540a1794f340c3b3a56917a.tar.gz
historical-0febd5bf7e9f6782b540a1794f340c3b3a56917a.tar.bz2
historical-0febd5bf7e9f6782b540a1794f340c3b3a56917a.zip
restore ebuild for dev-lang/lazarus
Package-Manager: portage-2.0.53
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/fpc/ChangeLog5
-rw-r--r--dev-lang/fpc/Manifest4
-rw-r--r--dev-lang/fpc/files/digest-fpc-2.0.0-r15
-rw-r--r--dev-lang/fpc/fpc-2.0.0-r1.ebuild161
4 files changed, 173 insertions, 2 deletions
diff --git a/dev-lang/fpc/ChangeLog b/dev-lang/fpc/ChangeLog
index 0b39d9b05e4e..281bef1b69b4 100644
--- a/dev-lang/fpc/ChangeLog
+++ b/dev-lang/fpc/ChangeLog
@@ -1,6 +1,9 @@
# 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.25 2005/12/17 01:39:35 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.26 2005/12/17 16:17:58 carlo Exp $
+
+ 17 Dec 2005; Carsten Lohrke <carlo@gentoo.org> +fpc-2.0.0-r1.ebuild:
+ restore ebuild for dev-lang/lazarus
*fpc-2.0.2 (17 Dec 2005)
diff --git a/dev-lang/fpc/Manifest b/dev-lang/fpc/Manifest
index 860194f9d4e6..e81b32405d0f 100644
--- a/dev-lang/fpc/Manifest
+++ b/dev-lang/fpc/Manifest
@@ -1,4 +1,6 @@
-MD5 9bb20f4a5ea1639e776ff8cf47ab6839 ChangeLog 2722
+MD5 08ea3c8ada96b5fd4d20e4fade7cb310 ChangeLog 2832
+MD5 4710aa73e50ad12ee202a25c86f54015 files/digest-fpc-2.0.0-r1 359
MD5 5b8d0c2a6f7a33a0b6e56fbf0d576860 files/digest-fpc-2.0.2 490
+MD5 b073490412445e26bae24586d679737d fpc-2.0.0-r1.ebuild 3996
MD5 f38dd880d984a6bb24632c3f59b63d6f fpc-2.0.2.ebuild 4408
MD5 dffd46174e78b327c834fc3e4b1cf848 metadata.xml 160
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..86ff015719e1
--- /dev/null
+++ b/dev-lang/fpc/files/digest-fpc-2.0.0-r1
@@ -0,0 +1,5 @@
+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 feda2c92a435075b63cb78d01b104115 fpc-2.0.0.x86_64-linux.tar 4127040
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..b288db90ba38
--- /dev/null
+++ b/dev-lang/fpc/fpc-2.0.0-r1.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.0-r1.ebuild,v 1.5 2005/12/17 16:17:58 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="~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}"
+}