diff options
Diffstat (limited to 'dev-util/sourcenav/sourcenav-5.1.4.ebuild')
-rw-r--r-- | dev-util/sourcenav/sourcenav-5.1.4.ebuild | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/dev-util/sourcenav/sourcenav-5.1.4.ebuild b/dev-util/sourcenav/sourcenav-5.1.4.ebuild index 8069a1030e91..1bef1c6839b5 100644 --- a/dev-util/sourcenav/sourcenav-5.1.4.ebuild +++ b/dev-util/sourcenav/sourcenav-5.1.4.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/sourcenav/sourcenav-5.1.4.ebuild,v 1.9 2005/11/26 06:04:50 nerdboy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/sourcenav/sourcenav-5.1.4.ebuild,v 1.10 2006/07/20 04:58:45 nerdboy Exp $ -inherit eutils libtool toolchain-funcs +inherit eutils libtool toolchain-funcs flag-o-matic S=${WORKDIR}/build @@ -13,16 +13,34 @@ HOMEPAGE="http://sourcenav.sourceforge.net" SLOT="0" LICENSE="GPL-2 LGPL-2" -KEYWORDS="x86 ~sparc ppc" +KEYWORDS="amd64 sparc ppc ppc64 x86" IUSE="" -DEPEND=">=sys-libs/glibc-2.2.4" SN="/opt/sourcenav" +RDEPEND="|| ( + ( x11-libs/libX11 + x11-libs/libXdmcp + x11-libs/libXaw ) + virtual/x11 + ) + sys-libs/glibc" + +DEPEND="${RDEPEND} + || ( + ( x11-proto/xproto ) + virtual/x11 + )" + src_unpack() { unpack ${A} mkdir ${WORKDIR}/build cd ${WORKDIR}/${P} - zcat ${DISTDIR}/${PF}-gentoo.diff.gz | patch -p0 || die "patch failed" + epatch ${DISTDIR}/${PF}-gentoo.diff.gz || die "big patch failed" + epatch ${FILESDIR}/${P}-bash3.patch || die "bash3 patch failed" + # Backported from 5.2 + if [ $(gcc-major-version) -ge 4 ]; then + epatch ${FILESDIR}/${P}-gcc4.patch || die "gcc4 patch failed" + fi } src_compile() { |