# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/gitosis-gentoo/gitosis-gentoo-0.2_p20080711.ebuild,v 1.3 2008/11/24 01:26:33 robbat2 Exp $ EAPI="3" inherit eutils DESCRIPTION="editor, browser, and mail client using the /bin/ed interface" HOMEPAGE="http://edbrowse.sourceforge.net/" SRC_URI="http://www.eklhad.net/$PN/$PN-$PV.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="linguas_fr odbc" COMMON_DEPEND=">=dev-lang/spidermonkey-1.7.0 >=sys-libs/readline-6.0 >=net-misc/curl-7.17.0 >=dev-libs/libpcre-7.8 >=dev-libs/openssl-0.9.8j odbc? ( dev-db/unixODBC )" DEPEND="${COMMON_DEPEND} app-arch/unzip" RDEPEND="${COMMON_DEPEND}" src_prepare() { epatch "${FILESDIR}"/$P-fix-makefile.patch || die } src_compile() { emake prefix=/usr || die if use odbc; then # Top-level makefile doesn't have this target. pushd src emake prefix=/usr edbrowseodbc || die popd fi } src_install() { dodoc CHANGES README todo COPYING cd src emake prefix=/usr DESTDIR="${D}" install || die if use odbc; then dobin edbrowseodbc fi cd ../doc dobin setup.ebrc dohtml usersguide.html philosophy.html dodoc sample.ebrc if use linguas_fr; then dohtml usersguide_fr.html philosophy_fr.html dodoc sample_fr.ebrc fi }