Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2004 18:14:05 -0400 (EDT)
From:      Christopher Nehren <apeiron@comcast.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/70431: New port: www/gecko-sharp: C# gtkmozembed bindings
Message-ID:  <200408132214.i7DME5Pc055647@prophecy.dyndns.org>
Resent-Message-ID: <200408132220.i7DMKI7d069032@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70431
>Category:       ports
>Synopsis:       New port: www/gecko-sharp: C# gtkmozembed bindings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 13 22:20:18 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Christopher Nehren
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD prophecy.dyndns.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Aug 12 18:14:22 EDT 2004 root@prophecy.dyndns.org:/usr/obj/usr/src/sys/PROPHECY i386


	
>Description:
gecko-sharp is a set of C# bindings for gtkmozembed.
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gecko-sharp
#	gecko-sharp/files
#	gecko-sharp/files/patch-sample::Makefile.in
#	gecko-sharp/files/patch-gtkmozembed::gecko-sharp.dll.config
#	gecko-sharp/files/patch-gtkmozembed::Makefile.in
#	gecko-sharp/files/patch-sample::webshot.in
#	gecko-sharp/Makefile
#	gecko-sharp/pkg-plist
#	gecko-sharp/distinfo
#	gecko-sharp/pkg-descr
#
echo c - gecko-sharp
mkdir -p gecko-sharp > /dev/null 2>&1
echo c - gecko-sharp/files
mkdir -p gecko-sharp/files > /dev/null 2>&1
echo x - gecko-sharp/files/patch-sample::Makefile.in
sed 's/^X//' >gecko-sharp/files/patch-sample::Makefile.in << 'END-of-gecko-sharp/files/patch-sample::Makefile.in'
X--- sample/Makefile.in.orig	Fri Aug 13 15:35:59 2004
X+++ sample/Makefile.in	Fri Aug 13 15:37:17 2004
X@@ -274,14 +274,14 @@
X 	-L @top_builddir@/gtkmozembed \
X 	-r gecko-sharp.dll \
X 	-L $(GTKSHARP_PREFIX)/lib \
X-	-pkg:gtk-sharp \
X+	`pkg-config --libs gtk-sharp` \
X 	-r System.Drawing \
X 	-o GtkMozApp.exe $(srcdir)/GtkMozApp.cs $(srcdir)/MozWindow.cs
X 
X WebThumbnailer.exe: $(srcdir)/WebThumbnailer.cs
X 	$(MCS) 	-L @top_builddir@/gtkmozembed \
X 	-r gecko-sharp.dll \
X-	-pkg:gtk-sharp $(srcdir)/WebThumbnailer.cs \
X+	`pkg-config --libs gtk-sharp` $(srcdir)/WebThumbnailer.cs \
X 	-o WebThumbnailer.exe
X # Tell versions [3.59,3.63) of GNU make to not export all variables.
X # Otherwise a system limit (for SysV at least) may be exceeded.
END-of-gecko-sharp/files/patch-sample::Makefile.in
echo x - gecko-sharp/files/patch-gtkmozembed::gecko-sharp.dll.config
sed 's/^X//' >gecko-sharp/files/patch-gtkmozembed::gecko-sharp.dll.config << 'END-of-gecko-sharp/files/patch-gtkmozembed::gecko-sharp.dll.config'
X--- gtkmozembed/gecko-sharp.dll.config.orig	Fri Aug 13 15:41:01 2004
X+++ gtkmozembed/gecko-sharp.dll.config	Fri Aug 13 15:41:46 2004
X@@ -1,6 +1,6 @@
X <configuration>
X-  <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
X-  <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/>
X-  <dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.so.0"/>
X-  <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/>
X+  <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so"/>
X+  <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so"/>
X+  <dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.so"/>
X+  <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so"/>
X </configuration>
END-of-gecko-sharp/files/patch-gtkmozembed::gecko-sharp.dll.config
echo x - gecko-sharp/files/patch-gtkmozembed::Makefile.in
sed 's/^X//' >gecko-sharp/files/patch-gtkmozembed::Makefile.in << 'END-of-gecko-sharp/files/patch-gtkmozembed::Makefile.in'
X--- gtkmozembed/Makefile.in.orig	Mon Jun 14 17:47:34 2004
X+++ gtkmozembed/Makefile.in	Fri Aug 13 15:50:10 2004
X@@ -252,17 +252,17 @@
X $(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA)
X 	cp $(srcdir)/$(RAW_API) $(API)
X 	chmod u+w $(API)
X-	mono $(GTKSHARP_PREFIX)/bin/gapi-fixup.exe --api=$(srcdir)/$(API) --metadata=$(srcdir)/$(METADATA)
X+	$(MONO) $(GTKSHARP_PREFIX)/bin/gapi-fixup.exe --api=$(srcdir)/$(API) --metadata=$(srcdir)/$(METADATA)
X 
X generated-stamp: $(API)
X-	 mono $(GTKSHARP_PREFIX)/bin/gapi_codegen.exe --generate $(srcdir)/$(API) --include $(INCLUDE_APIS) --outdir=generated --customdir=$(srcdir) --assembly-name=gecko-sharp && touch generated-stamp
X+	 $(MONO) $(GTKSHARP_PREFIX)/bin/gapi_codegen.exe --generate $(srcdir)/$(API) --include $(INCLUDE_APIS) --outdir=generated --customdir=$(srcdir) --assembly-name=gecko-sharp && touch generated-stamp
X 
X gecko-sharp.snk: $(top_srcdir)/gecko-sharp.snk
X 	cp $(top_srcdir)/gecko-sharp.snk .
X 
X gecko-sharp.dll: $(build_sources) generated-stamp gecko-sharp.snk
X 	$(MCS) --unsafe --target library -L $(GTKSHARP_PREFIX)/lib \
X-	/pkg:gtk-sharp \
X+	`pkg-config --libs gtk-sharp` \
X 	$(build_sources) generated/*.cs -o gecko-sharp.dll
X 
X install-data-local:
END-of-gecko-sharp/files/patch-gtkmozembed::Makefile.in
echo x - gecko-sharp/files/patch-sample::webshot.in
sed 's/^X//' >gecko-sharp/files/patch-sample::webshot.in << 'END-of-gecko-sharp/files/patch-sample::webshot.in'
X--- sample/webshot.in.orig	Fri Aug 13 16:04:21 2004
X+++ sample/webshot.in	Fri Aug 13 16:04:35 2004
X@@ -1,2 +1,2 @@
X #!/bin/sh
X-exec mono @libdir@/gecko-sharp/WebThumbnailer.exe
X+exec %%LOCALBASE%%/bin/mono @libdir@/gecko-sharp/WebThumbnailer.exe
END-of-gecko-sharp/files/patch-sample::webshot.in
echo x - gecko-sharp/Makefile
sed 's/^X//' >gecko-sharp/Makefile << 'END-of-gecko-sharp/Makefile'
X# New ports collection makefile for:    gecko-sharp
X# Date created:         2004-08-13
X# Friday the 13th!
X# Whom:                 Christopher Nehren
X#
X# $FreeBSD$
X#
X
XPORTNAME=		gecko-sharp
XPORTVERSION=		0.5
XCATEGORIES=		www gnome
XMASTER_SITES=		http://www.go-mono.com/archive/1.0/
X
XMAINTAINER=		apeiron@comcast.net
XCOMMENT=		C\# bindings for embedding Mozilla (GTK+ 2.0 ONLY)
X
XBUILD_DEPENDS=		${LOCALBASE}/bin/mono:${PORTSDIR}/lang/mono \
X			${LOCALBASE}/libdata/pkgconfig/gtk-sharp.pc:${PORTSDIR}/x11-toolkits/gtk-sharp \
X			${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}
XRUN_DEPENDS=		${BUILD_DEPENDS}
X
XMOZILLA=		mozilla
X
X.if !defined(WITH_MOZILLA)
XMOZILLA=		mozilla
X.else
X.if ${WITH_MOZILLA}=="mozilla-devel"
XMOZILLA=		mozilla-devel
X.else
XMOZILLA=		mozilla
X.endif
X.endif
X
XUSE_REINPLACE=		yes
XGNU_CONFIGURE=		yes
XUSE_GNOME=		gnomehack gnometarget
XUSE_GMAKE=		yes
X
X.include <bsd.port.pre.mk>
X
Xpre-everything::
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} " By default the port uses www/mozilla for html rendering, but you can"
X	@${ECHO_MSG} " change this by defining WITH_MOZILLA to one of the following values:"
X	@${ECHO_MSG}
X	@${ECHO_MSG} "  mozilla-devel "
X	@${ECHO_MSG} ""
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
X		${WRKSRC}/sample/webshot.in
X
X.include <bsd.port.post.mk>
END-of-gecko-sharp/Makefile
echo x - gecko-sharp/pkg-plist
sed 's/^X//' >gecko-sharp/pkg-plist << 'END-of-gecko-sharp/pkg-plist'
Xbin/webshot
Xlib/gecko-sharp/WebThumbnailer.exe
Xlib/mono/gac/gecko-sharp/1.0.0.0__ccf7d78a55e9f021/gecko-sharp.dll
X@unexec gacutil /u gecko-sharp.dll /f /package gecko-sharp /gacdir %D/lib > /dev/null || /usr/bin/true
Xlib/mono/gac/gecko-sharp/1.0.0.0__ccf7d78a55e9f021/gecko-sharp.dll.config
Xlib/mono/gecko-sharp/gecko-sharp.dll
Xlibdata/pkgconfig/gecko-sharp.pc
X@dirrm lib/gecko-sharp
X@dirrm lib/mono/gac/gecko-sharp/1.0.0.0__ccf7d78a55e9f021
X@dirrm lib/mono/gac/gecko-sharp
X@dirrm lib/mono/gecko-sharp
END-of-gecko-sharp/pkg-plist
echo x - gecko-sharp/distinfo
sed 's/^X//' >gecko-sharp/distinfo << 'END-of-gecko-sharp/distinfo'
XMD5 (gecko-sharp-0.5.tar.gz) = 71e75186b2ee5c644d5dd1560ce27357
XSIZE (gecko-sharp-0.5.tar.gz) = 109354
END-of-gecko-sharp/distinfo
echo x - gecko-sharp/pkg-descr
sed 's/^X//' >gecko-sharp/pkg-descr << 'END-of-gecko-sharp/pkg-descr'
Xgecko-sharp provides C# bindings for embedding a GTK+ 2.x-backed Mozilla
X(i.e., Gecko) browser inside of a C# application. Note that GTK+ 1.x is not
Xsupported and likely never will be, unless someone creates C# bindings for
XGTK+ 1.x.
END-of-gecko-sharp/pkg-descr
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408132214.i7DME5Pc055647>