summaryrefslogtreecommitdiffstats
path: root/www/mozex
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-23 03:53:02 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-23 03:53:02 +0800
commite782353eee0bb7585ca72374b0d792d90d68c5c0 (patch)
tree196ba9bbabe58e81181dc686b9d4d6617d900f99 /www/mozex
parent6cfe8262cf1ac23061e8ae92b7fc5cd295eed0c5 (diff)
downloadmarcuscom-ports-e782353eee0bb7585ca72374b0d792d90d68c5c0.tar
marcuscom-ports-e782353eee0bb7585ca72374b0d792d90d68c5c0.tar.gz
marcuscom-ports-e782353eee0bb7585ca72374b0d792d90d68c5c0.tar.bz2
marcuscom-ports-e782353eee0bb7585ca72374b0d792d90d68c5c0.tar.lz
marcuscom-ports-e782353eee0bb7585ca72374b0d792d90d68c5c0.tar.xz
marcuscom-ports-e782353eee0bb7585ca72374b0d792d90d68c5c0.tar.zst
marcuscom-ports-e782353eee0bb7585ca72374b0d792d90d68c5c0.zip
Sync w/ FreeBSD ports tree. As for deskutils/alexandria, I will do it after
I finish with my day. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7339 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/mozex')
-rw-r--r--www/mozex/Makefile19
-rw-r--r--www/mozex/Makefile.xpi52
-rw-r--r--www/mozex/files/pkg-message.in (renamed from www/mozex/pkg-message)2
-rw-r--r--www/mozex/pkg-descr2
-rw-r--r--www/mozex/pkg-install.xpi19
-rw-r--r--www/mozex/pkg-plist2
6 files changed, 35 insertions, 61 deletions
diff --git a/www/mozex/Makefile b/www/mozex/Makefile
index cb44dcba5..94dc57764 100644
--- a/www/mozex/Makefile
+++ b/www/mozex/Makefile
@@ -4,20 +4,31 @@
#
# $FreeBSD$
# $MCom$
+#
-PORTNAME?= mozex
+PORTNAME= mozex
PORTVERSION= 1.07
-PORTREVISION?= 3
+PORTREVISION= 5
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.
+
+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 99bc252fe..34b4e176d 100644
--- a/www/mozex/Makefile.xpi
+++ b/www/mozex/Makefile.xpi
@@ -1,57 +1,29 @@
# Date created: Sun Oct 26, 2003
# Whom: Thierry Thomas (<thierry@pompo.net>)
#
-# $FreeBSD$
-# $MCom$
+# $FreeBSD: ports/www/mozex/Makefile.xpi,v 1.6 2006/09/06 06:45:01 thierry Exp $
+#
-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(${LOCALBASE}/lib)
-MOZDIR!= ${FIND} ${LOCALBASE}/lib -name mozilla-bin -exec dirname {} \; | ${HEAD} -n 1
-. else
-MOZDIR=
-. endif
-. if empty(MOZDIR)
-MOZPORT= mozilla
-MOZDIR= ${LOCALBASE}/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(${LOCALBASE}/lib)
-MOZDIR!= ${FIND} ${LOCALBASE}/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= ${LOCALBASE}/${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} != ${LOCALBASE}
@${ECHO_MSG} ""
diff --git a/www/mozex/pkg-message b/www/mozex/files/pkg-message.in
index 54740e0ef..ff22ac4a2 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 fe15d0df1..14fad01f6 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 27aa2afd6..511847138 100644
--- a/www/mozex/pkg-install.xpi
+++ b/www/mozex/pkg-install.xpi
@@ -1,10 +1,10 @@
#!/bin/sh
#
-# $FreeBSD: ports/www/mozex/pkg-install.xpi,v 1.2 2005/01/20 22:23:18 thierry Exp $
+# $FreeBSD$
#
# 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/local}
-# 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 c604d6193..000000000
--- a/www/mozex/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-%%MOZDIR%%/chrome/mozex.jar
-%%MOZDIR%%/chrome/overlayinfo/browser/content/overlays.rdf