diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2006-09-06 06:45:02 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2006-09-06 06:45:02 +0000 |
commit | 9adcc4e9d6145ec9e051bc9ce75fcea84fdfa34f (patch) | |
tree | a8e84d73f1c63efb783c4c3d4a64e635f00461ae /www/mozex | |
parent | - fix build error in 4.x (diff) |
Add Seamonkey's support, with some cleaning.
Diffstat (limited to 'www/mozex')
-rw-r--r-- | www/mozex/Makefile | 18 | ||||
-rw-r--r-- | www/mozex/Makefile.xpi | 48 | ||||
-rw-r--r-- | www/mozex/files/pkg-message.in (renamed from www/mozex/pkg-message) | 2 | ||||
-rw-r--r-- | www/mozex/pkg-descr | 2 | ||||
-rw-r--r-- | www/mozex/pkg-install.xpi | 17 | ||||
-rw-r--r-- | www/mozex/pkg-plist | 2 |
6 files changed, 31 insertions, 58 deletions
diff --git a/www/mozex/Makefile b/www/mozex/Makefile index 0931274d0c86..8bac7822c053 100644 --- a/www/mozex/Makefile +++ b/www/mozex/Makefile @@ -5,21 +5,31 @@ # $FreeBSD$ # -PORTNAME?= mozex +PORTNAME= mozex PORTVERSION= 1.07 -PORTREVISION?= 3 +PORTREVISION= 4 CATEGORIES= www mail news ftp MASTER_SITES= ${MASTER_SITE_MOZDEV} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER?= ports@FreeBSD.org -COMMENT?= Mozex allows Mozilla's users to use external programs for mail, news, etc. +MAINTAINER= ports@FreeBSD.org +COMMENT= Mozex allows users of ${GEKO} to use external programs for mail, news, etc. USE_X_PREFIX= yes # Cannot be included after <bsd.port.pre.mk>. +SUB_FILES= pkg-message +SUB_LIST= GECKO=${GECKO} +PKGMESSAGE= ${WRKDIR}/pkg-message + +PLIST_FILES= %%MOZDIR%%/chrome/mozex.jar + .include <bsd.port.pre.mk> .include "${PORTSDIR}/www/mozex/Makefile.xpi" +.if ${GECKO} == mozilla +PLIST_FILES+= %%MOZDIR%%/chrome/overlayinfo/browser/content/overlays.rdf +.endif + do-install: @${INSTALL_DATA} ${WRKDIR}/mozex.jar ${MOZDIR}/chrome diff --git a/www/mozex/Makefile.xpi b/www/mozex/Makefile.xpi index 95558f57d055..2ad122c92d2f 100644 --- a/www/mozex/Makefile.xpi +++ b/www/mozex/Makefile.xpi @@ -4,54 +4,26 @@ # $FreeBSD$ # -EXTRACT_SUFX= .xpi +USE_GECKO= seamonkey mozilla +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" -BUILD_DEPENDS+= ${MOZDIR}/regxpcom:${PORTSDIR}/www/${MOZPORT} -RUN_DEPENDS+= ${MOZDIR}:${PORTSDIR}/www/${MOZPORT} +EXTRACT_SUFX= .xpi NO_BUILD= yes USE_ZIP= yes -PKGINSTALL= ${PORTSDIR}/www/mozex/pkg-install.xpi +PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${PKGINSTALL} -.if !defined(WITH_FIREFOX) -# "Regular" mozillas -. if exists(${X11BASE}/lib) -MOZDIR!= ${FIND} ${X11BASE}/lib -name mozilla-bin -exec dirname {} \; | ${HEAD} -n 1 -. else -MOZDIR= -. endif -. if empty(MOZDIR) -MOZPORT= mozilla -MOZDIR= ${X11BASE}/lib/${MOZPORT} -. else -MOZPORT!= ${BASENAME} ${MOZDIR} -. endif -MOZLDIR= lib/${MOZPORT} -.else -# Firefox -DEPRECATED= "must be converted to include www/xpi-adblock/Makefile.xpi" -PKGNAMESUFFIX= -firefox -. if exists(${X11BASE}/lib) -MOZDIR!= ${FIND} ${X11BASE}/lib -name firefox-bin -exec dirname {} \; | ${HEAD} -n 1 -. else -MOZDIR= -. endif -. if empty(MOZDIR) -MOZVER= firefox -. else -MOZVER!= ${BASENAME} ${MOZDIR} -. endif -MOZPORT= firefox -MOZLDIR= lib/firefox -.endif -.if empty(MOZDIR) +MOZLDIR= lib/${GECKO} MOZDIR= ${X11BASE}/${MOZLDIR} -.endif - PLIST_SUB= MOZDIR=${MOZLDIR} +pre-configure: + ${SED} -e 's|%%GECKO%%|${GECKO}|g' \ + < ${.CURDIR}/../../www/mozex/pkg-install.xpi \ + > ${PKGINSTALL} + pre-install: .if ${PREFIX} != ${X11BASE} @${ECHO_MSG} "" diff --git a/www/mozex/pkg-message b/www/mozex/files/pkg-message.in index 54740e0ef8ef..ff22ac4a29ef 100644 --- a/www/mozex/pkg-message +++ b/www/mozex/files/pkg-message.in @@ -1,5 +1,5 @@ ************************************************************************** -Mozex has been installed. If Mozilla is running, restart it. +Mozex has been installed. If %%GECKO%% is running, restart it. A new "mozex" entry is present in page context menu (right click somewhere on the page), and you have to edit preferences (for every profile). diff --git a/www/mozex/pkg-descr b/www/mozex/pkg-descr index fe15d0df1edf..14fad01f61a4 100644 --- a/www/mozex/pkg-descr +++ b/www/mozex/pkg-descr @@ -1,4 +1,4 @@ -Mozex is an extension to Mozilla or Firefox which allows the user to use +Mozex is an extension to Mozilla or Seamonkey which allows the user to use external programs for these actions: * view page source diff --git a/www/mozex/pkg-install.xpi b/www/mozex/pkg-install.xpi index cf216dc45c80..2315d7a8490d 100644 --- a/www/mozex/pkg-install.xpi +++ b/www/mozex/pkg-install.xpi @@ -4,7 +4,7 @@ # # Date created: Mon Oct 27, 2003 # Whom: Thierry Thomas (<thierry@pompo.net>) -# Register the extension $1 in the chrome registry. +# Register the extension $1 in the chrome registry for the browser %%GECKO%%. umask 022 PATH=/bin:/usr/bin @@ -15,27 +15,20 @@ PATH=/bin:/usr/bin PREFIX=${PKG_PREFIX:-/usr/X11R6} -# If this is an extension for firefox, PKGNAMESUFFIX has been set PKG_NAME=${1%%-[0-9._]*} -PKG_ROOT=$(echo $PKG_NAME | sed 's/-firefox$//') -if [ $PKG_NAME = $PKG_ROOT ]; then -MOZBIN=mozilla-bin -else -MOZBIN=firefox-bin -fi -MOZDIR=`find $PREFIX/lib -name $MOZBIN -exec dirname {} \; | head -n 1` +MOZDIR=$PREFIX/lib/%%GECKO%% REGXPCOM=$MOZDIR/regxpcom REGCHROME=$MOZDIR/regchrome if [ "x$2" = "xPOST-DEINSTALL" ]; then - case $PKG_ROOT in - fr-mozilla-flp|fr-firefox-flp) + case $PKG_NAME in + fr-mozilla-flp) MODEXT="FR.jar fr-unix.jar" ;; *) - MODEXT=$PKG_ROOT + MODEXT=$PKG_NAME ;; esac # Removing definition of extension $MODEXT diff --git a/www/mozex/pkg-plist b/www/mozex/pkg-plist deleted file mode 100644 index c604d6193377..000000000000 --- a/www/mozex/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -%%MOZDIR%%/chrome/mozex.jar -%%MOZDIR%%/chrome/overlayinfo/browser/content/overlays.rdf |