ports/143042: new port www/xpi-gwt-dev-plugin

Jonathan Chen jonc at chen.org.nz
Thu Jan 21 00:50:07 UTC 2010


>Number:         143042
>Category:       ports
>Synopsis:       new port www/xpi-gwt-dev-plugin
>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:   Thu Jan 21 00:50:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Chen
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD osiris.chen.org.nz 8.0-STABLE FreeBSD 8.0-STABLE #0: Mon Jan 18 16:18:01 NZDT 2010 root at osiris.chen.org.nz:/usr/obj/usr/src/sys/OSIRIS amd64
>Description:
New port for native GWT XPCOM plugin for Firefox 3.5
>How-To-Repeat:
>Fix:

The distfile in the port is a trimmed and tarred subversion copy.

Shar archive follows:

# 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:
#
#	xpi-gwt-dev-plugin
#	xpi-gwt-dev-plugin/Makefile
#	xpi-gwt-dev-plugin/pkg-descr
#	xpi-gwt-dev-plugin/distinfo
#	xpi-gwt-dev-plugin/files
#	xpi-gwt-dev-plugin/files/patch-config.mk
#	xpi-gwt-dev-plugin/files/patch-install.rdf
#	xpi-gwt-dev-plugin/files/patch-xpcom-Makefile
#	xpi-gwt-dev-plugin/pkg-plist
#
echo c - xpi-gwt-dev-plugin
mkdir -p xpi-gwt-dev-plugin > /dev/null 2>&1
echo x - xpi-gwt-dev-plugin/Makefile
sed 's/^X//' >xpi-gwt-dev-plugin/Makefile << '4685f63696a9ca7e0ba8eefc88aebeb6'
X# New ports collection makefile for:	xpi-gwt-dev-plugin
X# Date created:			2010/01/20
X# Whom:				Jonathan Chen <jonc at chen.org.nz>
X#
X# $FreeBSD: ports/www/xpi-web_developer/Makefile,v 1.8 2009/01/03 13:12:17 miwi Exp $
X#
X
XPORTNAME=	xpi-gwt-dev-plugin
XPORTVERSION=	2.0
XCATEGORIES=	www
XMASTER_SITES=	http://sites.google.com/site/daemonwizard/
XDISTNAME=	gwt-dev-plugin-${PORTVERSION}-partial
X
XMAINTAINER=	jonc at chen.org.nz
XCOMMENT=        Google Web Toolkit Developer Plugin for Firefox
X
XBUILD_DEPENDS=	firefox3:${PORTSDIR}/www/firefox35 \
X		${LOCALBASE}/lib/libxul/xpidl:${PORTSDIR}/www/libxul
XRUN_DEPENDS=	firefox3:${PORTSDIR}/www/firefox35
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
X
XWRKSRC=		${WRKDIR}/gwt-dev-plugin
XBUILD_WRKSRC=	${WRKSRC}/xpcom
X
XXPI_ID=		gwt-dmp-ff35 at gwt.google.com
XXPI_LIBDIR=	${PREFIX}/lib/xpi
XXPI_XPIDIR=	${XPI_LIBDIR}/${XPI_ID}
XXPI_FILESDIR=	${BUILD_WRKSRC}/prebuilt/extension-ff35
X
XFETCH_ARGS=	-p -o ${DISTDIR}/${DISTFILES}
X
Xdo-fetch:
X	@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
X		${FETCH_CMD} ${MASTER_SITES}${DISTFILES}?attredirects=0\&d=1 ; \
X	fi
X
Xpost-extract:
X	${RM} -rf ${XPI_FILESDIR}/.svn ${XPI_FILESDIR}/*/.svn ${XPI_FILESDIR}/platform/*
X
Xdo-install:
X	${MKDIR} ${XPI_XPIDIR}
X	${CP} -R ${XPI_FILESDIR}/ ${XPI_XPIDIR}
X	${LN} -s ${XPI_XPIDIR} ${LOCALBASE}/lib/firefox3/extensions
X
X.include <bsd.port.mk>
4685f63696a9ca7e0ba8eefc88aebeb6
echo x - xpi-gwt-dev-plugin/pkg-descr
sed 's/^X//' >xpi-gwt-dev-plugin/pkg-descr << 'c67a38d02305d3b827423c6875dd3937'
XThe GWT developer plugin spans the gap between Java bytecode in the
Xdebugger and the browser's JavaScript. There's no compiling of code to
XJavaScript to view it in the browser. You can use the same edit-refresh-view
Xcycle you're used to with JavaScript, while at the same time inspect
Xvariables, set breakpoints, and utilize all the other debugger tools
Xavailable to you with Java. And because GWT's development mode is now
Xin the browser itself, you can use tools like Firebug and Inspector
Xas you code in Java.
c67a38d02305d3b827423c6875dd3937
echo x - xpi-gwt-dev-plugin/distinfo
sed 's/^X//' >xpi-gwt-dev-plugin/distinfo << '5aec2edd1ecf68e79b598041149dbb7a'
XMD5 (gwt-dev-plugin-2.0-partial.tar.bz2) = 0bae11258869ad08ca02f57a91ca97c5
XSHA256 (gwt-dev-plugin-2.0-partial.tar.bz2) = fe4881a9b76e8956d4891f8e435043566150c9a62b44df764eb991b5662c2cfa
XSIZE (gwt-dev-plugin-2.0-partial.tar.bz2) = 5240877
5aec2edd1ecf68e79b598041149dbb7a
echo c - xpi-gwt-dev-plugin/files
mkdir -p xpi-gwt-dev-plugin/files > /dev/null 2>&1
echo x - xpi-gwt-dev-plugin/files/patch-config.mk
sed 's/^X//' >xpi-gwt-dev-plugin/files/patch-config.mk << '2d217ba7de72ce155594404a469e7f0d'
Xdiff -u /tmp/gwt-plugins-release-2.0/config.mk config.mk
X--- /tmp/gwt-plugins-release-2.0/config.mk	2010-01-19 08:52:18.000000000 +1300
X+++ ./config.mk	2010-01-11 14:41:49.000000000 +1300
X@@ -32,6 +32,9 @@
X FLAG32BIT=32
X 
X # Figure out 64-bit platforms, canonicalize ARCH and MARCH
X+ifeq ($(ARCH),amd64)
X+FLAG32BIT=64
X+endif
X ifeq ($(ARCH),x86_64)
X FLAG32BIT=64
X endif
X@@ -76,6 +79,12 @@
X endif
X 
X # Set OS as well as CFLAGS, CXX, and other common make variables
X+ifeq ($(shell uname),FreeBSD)
X+OS=freebsd
X+BASECFLAGS= -g -O2 -fPIC $(INC) -rdynamic
X+ARCHCFLAGS=-m$(FLAG32BIT)
X+ALLARCHCFLAGS=$(ARCHCFLAGS)
X+endif
X ifeq ($(shell uname),Linux)
X OS=linux
X BASECFLAGS= -g -O2 -fPIC $(INC) -rdynamic
2d217ba7de72ce155594404a469e7f0d
echo x - xpi-gwt-dev-plugin/files/patch-install.rdf
sed 's/^X//' >xpi-gwt-dev-plugin/files/patch-install.rdf << '8c75b0c8bdaeaed8331b64240c4ef1b7'
Xdiff -u /tmp/gwt-plugins-release-2.0/xpcom/install-template-ff35.rdf xpcom/install-template-ff35.rdf
X--- /tmp/gwt-plugins-release-2.0/xpcom/install-template-ff35.rdf	2010-01-19 08:52:13.000000000 +1300
X+++ ./xpcom/install-template-ff35.rdf	2010-01-11 14:46:53.000000000 +1300
X@@ -26,6 +26,7 @@
X     <em:targetPlatform>WINNT_x86-msvc</em:targetPlatform>
X     <em:targetPlatform>Darwin_x86-gcc3</em:targetPlatform>
X     <em:targetPlatform>Darwin_ppc-gcc3</em:targetPlatform>
X+    <em:targetPlatform>FreeBSD_x86_64-gcc3</em:targetPlatform>
X 
X     <em:optionsURL>chrome://gwt-dmp/content/options.xul</em:optionsURL>
X 
8c75b0c8bdaeaed8331b64240c4ef1b7
echo x - xpi-gwt-dev-plugin/files/patch-xpcom-Makefile
sed 's/^X//' >xpi-gwt-dev-plugin/files/patch-xpcom-Makefile << '9f895f1e0ef60de48f98ae8d523fbc5c'
X--- /tmp/gwt-plugins-release-2.0/xpcom/Makefile	2010-01-19 08:52:13.000000000 +1300
X+++ ./xpcom/Makefile	2010-01-18 08:52:57.000000000 +1300
X@@ -20,6 +20,14 @@
X #   GECKO_PLATFORM		XPCOM ABI (ie, Linux_x86_64-gcc3)
X #
X 
X+ifeq ($(OS),freebsd)
X+DEFAULT_FIREFOX_LIBS ?= /usr/local/lib/firefox3
X+RUN_PATH_FLAG = -rpath-link
X+DLL_SUFFIX = .so
X+DLLFLAGS = -shared -m${FLAG32BIT}
X+TARGET_PLATFORM = FreeBSD_x86_64-gcc3
X+endif
X+
X ifeq ($(OS),mac)
X DEFAULT_FIREFOX_LIBS ?= /Applications/Firefox.app/Contents/MacOS
X RUN_PATH_FLAG = -executable_path
X@@ -47,8 +55,8 @@
X export FLAG32BIT
X 
X ifeq ($(BROWSER),)
X-$(warning Defaulting to FF3 build [set with BROWSER=ff2, ff3, ff3+, or ff35])
X-BROWSER=ff3
X+$(warning Defaulting to FF35 build [set with BROWSER=ff2, ff3, ff3+, or ff35])
X+BROWSER=ff35
X endif
X 
X GECKO_MINOR_VERSION=
X@@ -79,8 +87,6 @@
X CXXFLAGS = $(CXXONLYFLAGS) $(CFLAGS)
X DIR = $(shell pwd)
X 
X-# Set $PLUGIN_SDKS if it isn't in the default location
X-PLUGIN_SDKS ?= ../../../plugin-sdks
X GECKO_PLATFORM ?= $(TARGET_PLATFORM)
X 
X COMMON            = ../common/libcommon$(FLAG32BIT).a
X@@ -97,12 +103,10 @@
X FF_HEADER         = prebuilt/$(BROWSER)/include/IOOPHM.h
X INSTALL_RDF       = $(EXTENSION_OUTDIR)/install.rdf
X 
X-SDK_PATH          = $(PLUGIN_SDKS)/gecko-sdks
X-GECKO_SDK         = $(SDK_PATH)/gecko-$(BROWSER_VERSION)
X-GECKO_PLAT_INC    = $(GECKO_SDK)/$(GECKO_PLATFORM)/include
X-GECKO_LIBS        = $(GECKO_SDK)/$(GECKO_PLATFORM)/lib$(GECKO_MINOR_VERSION)
X-XPIDL             = $(GECKO_SDK)/$(GECKO_PLATFORM)/bin/xpidl
X-XPIDL_FLAGS       = -I$(GECKO_SDK)/idl
X+GECKO_PLAT_INC    = ${LOCALBASE}/include/firefox3/unstable
X+GECKO_LIBS        = ${LOCALBASE}/lib/firefox3/sdk/lib
X+XPIDL             = ${LOCALBASE}/lib/libxul/xpidl
X+XPIDL_FLAGS       = -I${LOCALBASE}/share/idl/firefox3/unstable
X 
X #DLLFLAGS += \
X #		-L$(GECKO_LIBS) \
X@@ -112,12 +116,13 @@
X #		-Wl,$(RUN_PATH_FLAG),$(DEFAULT_FIREFOX_LIBS) \
X #		-lxpcomglue_s -lxpcom -lnspr4 -lmozjs
X DLLFLAGS += \
X+		-L${LOCALBASE}/lib \
X 		-L$(DEFAULT_FIREFOX_LIBS) \
X 		-L$(GECKO_LIBS) \
X 		-Wl,$(RUN_PATH_FLAG),$(GECKO_LIBS) \
X 		-lxpcomglue_s -lxpcom -lnspr4 -lmozjs
X 
X-INC += -I$(GECKO_PLAT_INC) -I$(GECKO_SDK)/include -I$(dir $(FF_HEADER))
X+INC += -I$(dir $(FF_HEADER)) -I$(GECKO_PLAT_INC) -I${LOCALBASE}/include/nspr
X 
X VERSION=0.9.$(shell ./getversion).$(shell date +%Y%m%d%H%M%S)
X 
X@@ -212,7 +217,7 @@
X endif
X 
X DEPEND = g++ -MM -MT'$$(OBJ_OUTDIR)/$(patsubst %.cpp,%.o,$(src))' \
X-  -I. -I../common -isystem$(dir $(FF_HEADER)) -isystem$(GECKO_SDK)/include $(src) &&
X+  -I. -I../common -isystem$(dir $(FF_HEADER)) $(src) &&
X depend: browser $(OBJ_OUTDIR) $(FF_HEADER)
X 	($(foreach src,$(SRCS),$(DEPEND)) true) >>Makefile
X #	makedepend -- $(CFLAGS) -- $(SRCS)
9f895f1e0ef60de48f98ae8d523fbc5c
echo x - xpi-gwt-dev-plugin/pkg-plist
sed 's/^X//' >xpi-gwt-dev-plugin/pkg-plist << '2885ad0c2740909453b18fc7773715ec'
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/chrome.manifest
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/components/IOOPHM.xpt
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/content/options.xul
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/content/prefScript.js
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/defaults/preferences/defaults.js
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/install.rdf
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/platform/FreeBSD_x86_64-gcc3/components/libgwt_dmp_ff35.so
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/skin/README.txt
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/skin/icon.png
Xlib/xpi/gwt-dmp-ff35 at gwt.google.com/skin/warning.png
Xlib/firefox3/extensions/gwt-dmp-ff35 at gwt.google.com
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com/skin
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com/platform/FreeBSD_x86_64-gcc3/components
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com/platform/FreeBSD_x86_64-gcc3
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com/platform
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com/defaults/preferences
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com/defaults
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com/content
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com/components
X at dirrm lib/xpi/gwt-dmp-ff35 at gwt.google.com
X at dirrm lib/xpi
2885ad0c2740909453b18fc7773715ec
exit

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



More information about the freebsd-ports-bugs mailing list