summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-02-18 02:51:04 +0000
committerMike Frysinger <vapier@gentoo.org>2003-02-18 02:51:04 +0000
commit23f8766717b7e9b711d197d911f15c859e8ae74f (patch)
tree2d2381f9de01aa6efae499648adf8f383c9e27c6 /net-www/webcpp
parentAdded a hook so USE="gtk2" causes the build to fail. (diff)
downloadhistorical-23f8766717b7e9b711d197d911f15c859e8ae74f.tar.gz
historical-23f8766717b7e9b711d197d911f15c859e8ae74f.tar.bz2
historical-23f8766717b7e9b711d197d911f15c859e8ae74f.zip
gcc check
Diffstat (limited to 'net-www/webcpp')
-rw-r--r--net-www/webcpp/webcpp-0.8.0.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/net-www/webcpp/webcpp-0.8.0.ebuild b/net-www/webcpp/webcpp-0.8.0.ebuild
index 472b5cce7213..7e1257ef1e8c 100644
--- a/net-www/webcpp/webcpp-0.8.0.ebuild
+++ b/net-www/webcpp/webcpp-0.8.0.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/webcpp/webcpp-0.8.0.ebuild,v 1.2 2003/02/17 23:31:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/webcpp/webcpp-0.8.0.ebuild,v 1.3 2003/02/18 02:51:04 vapier Exp $
+
+inherit gcc
DESCRIPTION="converts source code into HTML file using a customizable syntax highlighting engine and colour schemes"
HOMEPAGE="http://webcpp.sourceforge.net/"
@@ -17,6 +19,12 @@ RDEPEND="sys-devel/gcc
S=${WORKDIR}/${P}-src
+pkg_setup() {
+ [ `gcc-major-version` -eq 2 ] \
+ && die "WebCPP only works with gcc-3.x" \
+ || return 0
+}
+
src_compile() {
econf --with-gnu-ld `use_with pic` || die
emake || die