From 23f8766717b7e9b711d197d911f15c859e8ae74f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 18 Feb 2003 02:51:04 +0000 Subject: gcc check --- net-www/webcpp/webcpp-0.8.0.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'net-www/webcpp') 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 -- cgit v1.2.3-65-gdbad