ports/122855: print/ghostscript-gpl does not save options
Scot W. Hetzel
swhetzel at gmail.com
Sat Apr 26 07:20:04 UTC 2008
The following reply was made to PR ports/122855; it has been noted by GNATS.
From: "Scot W. Hetzel" <swhetzel at gmail.com>
To: bug-followup at freebsd.org,
marquis at roble.com
Cc:
Subject: Re: ports/122855: print/ghostscript-gpl does not save options
Date: Sat, 26 Apr 2008 01:42:54 -0500
--Boundary-00=_v7sEI5NTYhh7ne0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
The attached patches allow both the ghostscript-gnu and ghostscript-gpl
configure script to save the driver configuration
to /var/db/ports/${UNIQUENAME}/options.local.
--Boundary-00=_v7sEI5NTYhh7ne0
Content-Type: text/x-diff;
charset="us-ascii";
name="ghostscript-gnu.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="ghostscript-gnu.patch"
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/print/ghostscript-gnu/Makefile,v
retrieving revision 1.128
diff -u -r1.128 Makefile
--- Makefile 17 Apr 2008 23:19:48 -0000 1.128
+++ Makefile 26 Apr 2008 05:41:22 -0000
@@ -71,6 +71,7 @@
PLIST_SUB= GS_VERSION="${GS_VERSION}"
SCRIPTS_ENV= GS_DRIVERS_LIST="${GS_DRIVERS_LIST}" \
+ OPTIONSFILE_LOCAL="${OPTIONSFILE}.local" \
WITHOUT_X11="${WITHOUT_X11}" \
WITH_SVGALIB="${WITH_SVGALIB}"
Index: scripts/configure
===================================================================
RCS file: /home/ncvs/ports/print/ghostscript-gnu/scripts/configure,v
retrieving revision 1.26
diff -u -r1.26 configure
--- scripts/configure 8 Jun 2005 10:54:11 -0000 1.26
+++ scripts/configure 26 Apr 2008 05:37:43 -0000
@@ -239,7 +239,7 @@
"cljet5pr" "HP LaserJet 5/5M Color (old drv. with rotation hacks/flaws)" "$status_cljet5pr" \
"lj5mono" "HP LaserJet 5 and 6 family (PCL5 / PCL XL), bitmap" "$status_lj5mono" \
"lj5gray" "HP LaserJet 5 and 6 family, gray-scale bitmap" "$status_lj5gray" \
- "pj" "HP PaintJet XL driver " "$status_pj" \
+ "pj" "HP PaintJet XL driver" "$status_pj" \
"pjetxl" "HP PaintJet XL driver (alternate)" "$status_pjetxl" \
"pjxl" "HP PaintJet XL color printer" "$status_pjxl" \
"paintjet" "HP PaintJet color printer (alternate)" "$status_paintjet" \
@@ -375,10 +375,18 @@
exec > ${WRKSRC}/Makefile
echo "DEVICE_DEVS= \\"
+DRIVERS_LIST=""
+SEP=""
for i; do
echo " \$(DD)$i.dev \\"
+ DRIVERS_LIST="${DRIVERS_LIST}${SEP}${i}"
+ SEP=" "
done
echo ""
cat "${WRKSRC}/src/unix-gcc.mak"
+
+if [ -d `dirname ${OPTIONSFILE_LOCAL}` ] ; then
+ echo "GS_DRIVERS_LIST=\"${DRIVERS_LIST}\"" > ${OPTIONSFILE_LOCAL}
+fi
--Boundary-00=_v7sEI5NTYhh7ne0
Content-Type: text/x-diff;
charset="us-ascii";
name="ghostscript-gpl.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="ghostscript-gpl.patch"
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/print/ghostscript-gpl/Makefile,v
retrieving revision 1.162
diff -u -r1.162 Makefile
--- Makefile 17 Apr 2008 23:19:48 -0000 1.162
+++ Makefile 26 Apr 2008 05:47:00 -0000
@@ -71,6 +71,7 @@
.include <bsd.port.pre.mk>
SCRIPTS_ENV= GS_DRIVERS_LIST="${GS_DRIVERS_LIST}" \
+ OPTIONSFILE_LOCAL="${OPTIONSFILE}.local" \
WITHOUT_X11="${WITHOUT_X11}" \
WITH_SVGALIB="${WITH_SVGALIB}" \
WITH_ICONV="${WITH_ICONV}"
Index: scripts/configure
===================================================================
RCS file: /home/ncvs/ports/print/ghostscript-gpl/scripts/configure,v
retrieving revision 1.44
diff -u -r1.44 configure
--- scripts/configure 24 Mar 2008 03:50:08 -0000 1.44
+++ scripts/configure 26 Apr 2008 04:50:41 -0000
@@ -29,7 +29,7 @@
$iconvdevs \
md2k md5k \
md50Mono md50Eco md1xMono \
- appledmp iwhi iwlo iwlq hl7x0 bj10e \
+ appledmp iwhi iwlo iwlq hl7x0 hl1240 hl1250 bj10e \
bj10v bj10vh bj200 bjc600 bjc800 \
bjccmyk bjccolor bjcgray bjcmono \
lbp8 \
@@ -137,7 +137,7 @@
"iwlo" "Apple Imagewriter, low-resolution mode" "$status_iwlo" \
"iwlq" "Apple Imagewriter LQ in 320 x 216 dpi mode" "$status_iwlq" \
"hl7x0" "Brother HL720 and HL730 (HL760=PCL), MFC6550MC Fax Machine" "$status_hl7x0" \
- "hl1240" "Brother HL-1030/240 (600x600 dpi) [contrib]" "$status_hl1250" \
+ "hl1240" "Brother HL-1030/240 (600x600 dpi) [contrib]" "$status_hl1240" \
"hl1250" "Brother HL-1050/1070/1250/1270N (1200x600 dpi) [contrib]" "$status_hl1250" \
"bj10e" "Canon BubbleJet BJ-10e" "$status_bj10e" \
"bj10v" "Canon BubbleJet BJ-10v [contrib]" "$status_bj10v" \
@@ -259,7 +259,7 @@
"ljet4" "HP LaserJet 4 and 5L/5P (not real LJ5), defaults to 600 dpi" "$status_ljet4" \
"ljet4d" "HP LaserJet 4 (defaults to 600 dpi) with duplex" "$status_ljet4d" \
"lj4dith" "HP LaserJet 4 with Floyd-Steinberg dithering" "$status_lj4dith" \
- "ljet4pjl" "HP LaserJet 4V/4LJ Pro" "$status_let4pjl" \
+ "ljet4pjl" "HP LaserJet 4V/4LJ Pro" "$status_ljet4pjl" \
"lj4dithp" "HP LaserJet 4V/4LJ Pro with dithering" "$status_lj4dithp" \
"cljet5" "HP LaserJet 5/5M Color (new driver, old=cljet5pr)" "$status_cljet5" \
"cljet5c" "HP LaserJet 5/5M Color Simple" "$status_cljet5c" \
@@ -430,10 +430,18 @@
exec > ${WRKSRC}/Makefile
echo "DEVICE_DEVS= \\"
+DRIVERS_LIST=""
+SEP=""
for i; do
echo " \$(DD)$i.dev \\"
+ DRIVERS_LIST="${DRIVERS_LIST}${SEP}${i}"
+ SEP=" "
done
echo ""
cat "${WRKSRC}/src/unix-gcc.mak"
+
+if [ -d `dirname ${OPTIONSFILE_LOCAL}` ] ; then
+ echo "GS_DRIVERS_LIST=\"${DRIVERS_LIST}\"" > ${OPTIONSFILE_LOCAL}
+fi
--Boundary-00=_v7sEI5NTYhh7ne0--
More information about the freebsd-ports-bugs
mailing list