# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-dotnet/gecko-sharp/gecko-sharp-0.7-r1.ebuild,v 1.4 2005/06/23 13:22:03 urilith Exp $ inherit mono eutils DESCRIPTION="A Gtk# Mozilla binding" HOMEPAGE="http://www.go-mono.com/" SRC_URI="http://www.go-mono.com/archive/1.1.5/${P}.tar.gz" LICENSE="GPL-2" SLOT="2" KEYWORDS="~x86 ~ppc ~amd64" IUSE="firefox" DEPEND=">=dev-lang/mono-1.0 >=dev-dotnet/gtk-sharp-1.9.3 !firefox? ( >=www-client/mozilla-1.7 ) firefox? ( >=www-client/mozilla-firefox-1.0.2-r1 )" S="${WORKDIR}/${PN}-2.0-${PV}" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-1.9.3-compat.diff epatch ${FILESDIR}/${PN}-webshot-fix.patch epatch ${FILESDIR}/${PN}-pkgconfig.patch if [ $(get_libdir) != "lib" ] ; then sed -i -e 's:^libdir.*:libdir=@libdir@:' \ ${S}/*.pc.in || die fi autoreconf } src_compile() { econf `use_with firefox` || die "./configure failed!" emake -j1 || die "Make failed. You may need to unmerge gecko-sharp and re-emerge it if you are upgrading from an earlier version." } src_install() { make DESTDIR=${D} install || die mv ${D}/usr/bin/webshot ${D}/usr/bin/webshot-2.0 sed -i -e "s:nailer:nailer-2.0:" ${D}/usr/bin/webshot-2.0 mv ${D}/usr/$(get_libdir)/gecko-sharp/WebThumbnailer.exe \ ${D}/usr/$(get_libdir)/gecko-sharp/WebThumbnailer-2.0.exe }