ports/53662: [CHANGE-REQUEST] Patch textproc/xlhtml so that ns*view work

John Merryweather Cooper coop9211 at uidaho.edu
Tue Jun 24 06:00:23 UTC 2003


>Number:         53662
>Category:       ports
>Synopsis:       [CHANGE-REQUEST] Patch textproc/xlhtml so that ns*view work
>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:   Mon Jun 23 23:00:21 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     John Merryweather Cooper
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:


System: FreeBSD johncoop.marjoh.org 4.8-STABLE FreeBSD 4.8-STABLE #21: Thu Jun i386  


>Description:


Patch browser helper utilities nsopen, nsxlview, and nsppptview so that they work.


>How-To-Repeat:


Try either nsxlview or nspptview with the test files . . .


>Fix:


--- change-xlhtml-to-0.5.1_1 begins here ---
# This is a patch for xlhtml to update it to xlhtml-0.5.1_1
# 
# To apply this patch:
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'applypatch' program with this patch file as input.
#
# If you do not have 'applypatch', it is part of the 'makepatch' package
# that you can fetch from the Comprehensive Perl Archive Network:
# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
# In the above URL, 'x' should be 2 or higher.
#
# To apply this patch without the use of 'applypatch':
# STEP 1: Chdir to the source directory.
# If you have a decent Bourne-type shell:
# STEP 2: Run the shell with this file as input.
# If you don't have such a shell, you may need to manually create
# the files as shown below.
# STEP 3: Run the 'patch' program with this file as input.
#
# These are the commands needed to create/delete files/directories:
#
touch 'files/patch-ppthtml_nspptview'
chmod 0644 'files/patch-ppthtml_nspptview'
touch 'files/patch-xlhtml_nsopen'
chmod 0644 'files/patch-xlhtml_nsopen'
touch 'files/patch-xlhtml_nsxlview'
chmod 0644 'files/patch-xlhtml_nsxlview'
#
# This command terminates the shell and need not be executed manually.
exit
#
#### End of Preamble ####

#### Patch data follows ####
diff -u 'xlhtml/Makefile' 'xlhtml-0.5.1_1/Makefile'
Index: ./Makefile
--- ./Makefile	Thu May 22 08:05:57 2003
+++ ./Makefile	Sun Jun 22 01:30:54 2003
@@ -2,11 +2,12 @@
 # Date created:				27 March 2000
 # Whom:					Maxim Sobolev <sobomax at FreeBSD.org>
 #
-# $FreeBSD: ports/textproc/xlhtml/Makefile,v 1.14 2003/03/07 06:11:56 ade Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	xlhtml
 PORTVERSION=	0.5.1
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	http://chicago.sourceforge.net/xlhtml/
 DISTNAME=	${PORTNAME}.${PORTVERSION}
diff -u /dev/null 'xlhtml-0.5.1_1/files/patch-ppthtml_nspptview'
Index: ./files/patch-ppthtml_nspptview
--- ./files/patch-ppthtml_nspptview	Wed Dec 31 16:00:00 1969
+++ ./files/patch-ppthtml_nspptview	Sun Jun 22 08:52:23 2003
@@ -0,0 +1,23 @@
+--- ppthtml/nspptview.orig	Sun Jun 22 08:47:02 2003
++++ ppthtml/nspptview	Sun Jun 22 08:49:18 2003
+@@ -1,7 +1,7 @@
+ #!/bin/csh
+ 
+ if ($#argv != 1) then
+-    echo "Usage: $0 file.doc"
++    echo "Usage: $0 file.ppt"
+     exit 1
+ endif
+ 
+@@ -12,9 +12,8 @@
+ #set tmp = /tmp/$com:t.$$
+ #set html = $tmp.html
+ 
+-set tmp = `mktemp -q /tmp/nspptview.XXXXXX` || exit 1
+-set tmp2 = `mktemp -q $tmp/nspptview.XXXXXX` || exit 1
+-set html = $tmp2.html
++set tmp = `mktemp -t nspptview.XXXXXX` || exit 1
++set html = $tmp.html
+  
+ ppthtml $source > $html
+ if ((!(-r $html)) | ($status)) then
diff -u /dev/null 'xlhtml-0.5.1_1/files/patch-xlhtml_nsopen'
Index: ./files/patch-xlhtml_nsopen
--- ./files/patch-xlhtml_nsopen	Wed Dec 31 16:00:00 1969
+++ ./files/patch-xlhtml_nsopen	Sun Jun 22 01:25:51 2003
@@ -0,0 +1,14 @@
+--- xlhtml/nsopen.orig	Sun Jun 22 01:17:52 2003
++++ xlhtml/nsopen	Sun Jun 22 01:18:51 2003
+@@ -12,9 +12,9 @@
+ endif
+ 
+ #Try to open file in an existing netscape window
+-(netscape -no-about-splash -remote "openFile(${file})") >& /dev/null
++(mozilla -remote "openFile(${file})") >& /dev/null
+ 
+ #if this fails, it means that netscape is not running, so start it
+ if ($status) then
+-  netscape -no-about-splash -no-install file:${file}
++  mozilla file:${file}
+ endif
diff -u /dev/null 'xlhtml-0.5.1_1/files/patch-xlhtml_nsxlview'
Index: ./files/patch-xlhtml_nsxlview
--- ./files/patch-xlhtml_nsxlview	Wed Dec 31 16:00:00 1969
+++ ./files/patch-xlhtml_nsxlview	Sun Jun 22 08:46:37 2003
@@ -0,0 +1,15 @@
+--- xlhtml/nsxlview.orig	Sun Jun 22 08:36:31 2003
++++ xlhtml/nsxlview	Sun Jun 22 08:44:57 2003
+@@ -12,10 +12,8 @@
+ #set tmp = /tmp/$com:t.$$
+ #set html = $tmp.html
+ 
+-set tmp = `mktemp -q /tmp/nsxlview.XXXXXX` || exit 1
+-set tmp2 = `mktemp -q $tmp/nsxlview.XXXXXX` || exit 1
+-set html = $tmp2.html
+- 
++set tmp = `mktemp -t nsxlview.XXXXXX` || exit 1
++set html = $tmp.html
+ 
+ xlhtml -a $source > $html
+ if ((!(-r $html)) | ($status)) then
#### End of Patch data ####

#### ApplyPatch data follows ####
# Data version        : 1.0
# Date generated      : Sun Jun 22 08:58:30 2003
# Generated by        : makepatch 2.00
# Recurse directories : Yes
# p 'Makefile' 842 1056270654 0100644
# c 'files/patch-ppthtml_nspptview' 0 1056297143 0100644
# c 'files/patch-xlhtml_nsopen' 0 1056270351 0100644
# c 'files/patch-xlhtml_nsxlview' 0 1056296797 0100644
#### End of ApplyPatch data ####

#### End of Patch kit [created: Sun Jun 22 08:58:30 2003] ####
#### Checksum: 133 4500 27351 ####

--- change-xlhtml-to-0.5.1_1 ends here ---



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



More information about the freebsd-ports-bugs mailing list