diff options
author | Harald van Dijk <truedfx@gentoo.org> | 2007-04-01 11:39:48 +0000 |
---|---|---|
committer | Harald van Dijk <truedfx@gentoo.org> | 2007-04-01 11:39:48 +0000 |
commit | 8e3690ffe67a2d05b4b243a337e67028d9f4ae00 (patch) | |
tree | 490c10f1f7888fbe843f1a83bcce1676822b4826 /dev-lang/lazarus | |
parent | mark s390 as generic32 (diff) | |
download | gentoo-2-8e3690ffe67a2d05b4b243a337e67028d9f4ae00.tar.gz gentoo-2-8e3690ffe67a2d05b4b243a337e67028d9f4ae00.tar.bz2 gentoo-2-8e3690ffe67a2d05b4b243a337e67028d9f4ae00.zip |
Add sanity check for bad fpc.cfg
(Portage version: 2.1.2.3)
Diffstat (limited to 'dev-lang/lazarus')
-rw-r--r-- | dev-lang/lazarus/lazarus-0.9.20-r1.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild b/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild index 594949908681..d8c91e428e22 100644 --- a/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild +++ b/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild,v 1.2 2007/03/22 20:49:32 truedfx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild,v 1.3 2007/04/01 11:39:48 truedfx Exp $ inherit eutils @@ -29,6 +29,16 @@ pkg_setup() { } src_unpack() { + # check for broken fpc.cfg + # don't check in pkg_setup since it won't harm binpkgs + if grep -q '^[ ]*-Fu.*/lcl$' /etc/fpc.cfg + then + eerror "Your /etc/fpc.cfg automatically adds a LCL directory" + eerror "to the list of unit directories. This will break the" + eerror "build of lazarus." + die "don't set the LCL path in /etc/fpc.cfg" + fi + unpack ${A} sed -e "s/@FPCVER@/${FPCVER}/" "${FILESDIR}"/${P}-fpcsrc.patch \ > "${T}"/fpcsrc.patch || die "could not sed fpcsrc patch" |