summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-dotnet/gecko-sharp/gecko-sharp-0.12.ebuild')
-rw-r--r--dev-dotnet/gecko-sharp/gecko-sharp-0.12.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-dotnet/gecko-sharp/gecko-sharp-0.12.ebuild b/dev-dotnet/gecko-sharp/gecko-sharp-0.12.ebuild
new file mode 100644
index 000000000000..27da88dacfe0
--- /dev/null
+++ b/dev-dotnet/gecko-sharp/gecko-sharp-0.12.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2007 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.12.ebuild,v 1.1 2007/02/24 23:38:45 compnerd Exp $
+
+inherit mono multilib
+
+MY_P="${P/${PN}/${PN}-2.0}"
+
+DESCRIPTION="A Gtk# Mozilla binding"
+HOMEPAGE="http://www.go-mono.com/"
+SRC_URI="http://www.go-mono.com/sources/${PN}-2.0/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+
+S="${WORKDIR}/${MY_P}"
+
+RDEPEND=">=dev-lang/mono-1.0
+ >=dev-dotnet/gtk-sharp-2.4.0
+ || (
+ www-client/seamonkey
+ www-client/mozilla-firefox
+ )"
+DEPEND="${RDEPEND}
+ doc? ( >=dev-util/monodoc-1.0 )
+ >=dev-util/pkgconfig-0.19"
+
+MAKEOPTS="${MAKEOPTS} -j1"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ if [[ $(get_libdir) != "lib" ]] ; then
+ sed -i -e 's:^libdir.*:libdir=@libdir@:' \
+ -e 's:${prefix}/lib:${libdir}:' \
+ -e 's:$(prefix)/lib:$(libdir):' \
+ ${S}/Makefile.{in,am} ${S}/*.pc.in \
+ || die
+ fi
+}
+
+src_compile() {
+ export GACUTIL_FLAGS="-root ${D}/usr/$(get_libdir) -gacdir /usr/$(get_libdir) -package ${PN}-${SLOT}"
+
+ econf || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+}