mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
+ Use bsd.gecko.mk to set GECKO, if WITH_GECKO is set, or default to firefox.
+ Respect X11BASE. PR: 102954 Submitted by: Thierry Thomas <thierry@@pompo.net>
This commit is contained in:
parent
a1eff5e1a4
commit
9c73eee995
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244961
4 changed files with 24 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
PORTNAME= urlview
|
||||
PORTVERSION= 0.9
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= textproc www
|
||||
MASTER_SITES= ftp://ftp.mutt.org/mutt/contrib/ \
|
||||
ftp://ftp.sunsite.auc.dk/pub/mail/mutt/contrib/ \
|
||||
|
@ -22,13 +22,25 @@ COMMENT= URL extractor/launcher
|
|||
|
||||
GNU_CONFIGURE= yes
|
||||
MAN1= urlview.1
|
||||
SUB_FILES= gecko.sh
|
||||
SUB_LIST= GECKO=${GECKO}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_GECKO)
|
||||
USE_GECKO= firefox firefox-devel seamonkey mozilla
|
||||
.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
|
||||
.else
|
||||
GECKO= firefox
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,!!PREFIX!!,${PREFIX},g" ${WRKSRC}/url_handler.sh
|
||||
@${REINPLACE_CMD} -e "s,!!PREFIX!!,${PREFIX},g" \
|
||||
-e "s,/usr/X11R6,${X11BASE},g" ${WRKSRC}/url_handler.sh
|
||||
@${REINPLACE_CMD} -e \
|
||||
"s,/etc/urlview.conf,${PREFIX}/etc/urlview.conf,g" ${WRKSRC}/*
|
||||
|
||||
post-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/url_handler.sh ${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
5
textproc/urlview/files/gecko.sh.in
Normal file
5
textproc/urlview/files/gecko.sh.in
Normal file
|
@ -0,0 +1,5 @@
|
|||
#! /bin/sh
|
||||
# $FreeBSD$
|
||||
# Launch %%GECKO%% for urlview
|
||||
URL=$@
|
||||
%%GECKO%% -remote "openurl($URL, new-tab)" || %%GECKO%% $URL
|
|
@ -1,3 +1,4 @@
|
|||
$FreeBSD$
|
||||
--- url_handler.sh.orig Tue Jul 4 03:14:30 2000
|
||||
+++ url_handler.sh Wed Aug 22 10:42:49 2001
|
||||
@@ -1,4 +1,4 @@
|
||||
|
@ -15,8 +16,8 @@
|
|||
-mailto_prgs="/usr/bin/mutt:VT /usr/bin/elm:VT /usr/bin/pine:VT /usr/bin/mail:VT"
|
||||
-gopher_prgs="/usr/bin/lynx:XT /usr/bin/gopher:XT"
|
||||
-ftp_prgs="/usr/bin/lynx:XT /usr/bin/ncftp:XT"
|
||||
+https_prgs="!!PREFIX!!/bin/netscape:XW !!PREFIX!!/bin/lynx:XT !!PREFIX!!/bin/w3m:XT"
|
||||
+http_prgs="!!PREFIX!!/bin/netscape:XW !!PREFIX!!/bin/lynx:XT !!PREFIX!!/bin/w3m:XT !!PREFIX!!/bin/links:XT"
|
||||
+https_prgs="!!PREFIX!!/bin/gecko.sh:XW !!PREFIX!!/bin/lynx:XT !!PREFIX!!/bin/w3m:XT"
|
||||
+http_prgs="!!PREFIX!!/bin/gecko.sh:XW !!PREFIX!!/bin/lynx:XT !!PREFIX!!/bin/w3m:XT !!PREFIX!!/bin/links:XT"
|
||||
+mailto_prgs="!!PREFIX!!/bin/mutt:VT !!PREFIX!!/bin/elm:VT !!PREFIX!!/bin/pine:VT /usr/bin/mail:VT"
|
||||
+gopher_prgs="!!PREFIX!!/bin/lynx:XT !!PREFIX!!/bin/gopher:XT"
|
||||
+ftp_prgs="!!PREFIX!!/bin/lynx:XT !!PREFIX!!/bin/ncftp2:XT !!PREFIX!!/bin/ncftp3:XT !!PREFIX!!/bin/ncftp:XT"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
@comment $FreeBSD$
|
||||
bin/gecko.sh
|
||||
bin/url_handler.sh
|
||||
bin/urlview
|
||||
|
|
Loading…
Add table
Reference in a new issue