use xdg-open instead of hardcoding a list of browsers

This commit is contained in:
jasper 2012-12-28 14:48:42 +00:00
parent 81b5f76cbd
commit 5320a5e5e5
2 changed files with 19 additions and 4 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.5 2012/12/28 14:44:56 jasper Exp $
# $OpenBSD: Makefile,v 1.6 2012/12/28 14:48:42 jasper Exp $
# Makefile prepared Sat Feb 13 11:r7:14 PST 2010 by Ted Walther <ted@reactor-core.org>
COMMENT= newLISP is a LISP like, general purpose scripting language
V= 10.3.2
DISTNAME= newlisp-$V
REVISION= 0
REVISION= 1
CATEGORIES= lang
HOMEPAGE= http://newlisp.org/
MAINTAINER= Ted Walther <ted@reactor-core.org>
@ -20,6 +20,8 @@ WANTLIB += c m ncurses readline
MASTER_SITES= http://dpkg.reactor-core.org/port/
EXTRACT_SUFX= .tgz
RUN_DEPENDS= devel/xdg-utils
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= simple
CONFIGURE_SCRIPT= configure-alt

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-guiserver_newlisp-edit_lsp,v 1.1 2012/12/28 14:44:56 jasper Exp $
$OpenBSD: patch-guiserver_newlisp-edit_lsp,v 1.2 2012/12/28 14:48:42 jasper Exp $
--- guiserver/newlisp-edit.lsp.orig Tue Jul 19 23:32:22 2011
+++ guiserver/newlisp-edit.lsp Fri Dec 28 15:41:34 2012
+++ guiserver/newlisp-edit.lsp Fri Dec 28 15:46:19 2012
@@ -1,4 +1,4 @@
-#!/usr/bin/newlisp
+#!${PREFIX}/bin/newlisp
@ -25,3 +25,16 @@ $OpenBSD: patch-guiserver_newlisp-edit_lsp,v 1.1 2012/12/28 14:44:56 jasper Exp
)
)
@@ -1446,11 +1446,7 @@
; all other UNIX
(true
(set 'files '(
- "/usr/bin/sensible-browser"
- "/usr/bin/x-www-browser"
- "/usr/bin/mozilla"
- "/usr/bin/firefox"
- "/usr/bin/konqueror"
+ "${PREFIX}/bin/xdg-open"
))
(set 'prog (find true (map file? files)))
(if prog