# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils libtool toolchain-funcs flag-o-matic S="${WORKDIR}/sourcenavigator-NG${PV}" SN="/opt/sourcenav" DESCRIPTION="Code analysis and development tool, fork of Source-Navigator" SRC_URI="http://download.berlios.de/sourcenav/sourcenavigator-NG${PV}.tar.bz2" HOMEPAGE="http://sourcenav.berlios.de" SLOT="0" LICENSE="GPL-2 LGPL-2" KEYWORDS="~amd64 ~sparc ~ppc ~ppc64 ~x86" IUSE="" COMMON_DEP=" !dev-util/sourcenav x11-libs/libX11 x11-libs/libXdmcp x11-libs/libXaw sys-libs/glibc" DEPEND=" x11-proto/xproto ${COMMON_DEP}" RDEPEND=" ${COMMON_DEP}" src_configure() { # still needed for me epatch "${FILESDIR}/sourcenav_tk-8.3-lastevent.patch" local conf=" --host=${CHOST} --prefix=${SN} --exec-prefix=${SN} --bindir=${SN}/bin --sbindir=${SN}/sbin --mandir=${SN}/share/man --infodir=${SN}/share/info --datadir=${SN}/share --libdir=${SN}/$(get_libdir)" ./configure $conf # econf $conf does not work (host conflicts). } src_install() { make DESTDIR="${D}" install || die chmod -Rf 755 "${D}/${SN}"/share/doc/${P}/demos dodir /etc/env.d echo "PATH=${SN}/bin" > "${D}"/etc/env.d/10snavigator }