Date: Mon, 14 Jul 2008 14:27:51 GMT From: bf <bf2006a@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/125602: [NEW PORT]print/gsview: GUI for viewing, searching, printing, and converting PostScript and PDF documents Message-ID: <200807141427.m6EERpfU089909@www.freebsd.org> Resent-Message-ID: <200807141430.m6EEU5HO036035@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125602 >Category: ports >Synopsis: [NEW PORT]print/gsview: GUI for viewing, searching, printing, and converting PostScript and PDF documents >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 Jul 14 14:30:05 UTC 2008 >Closed-Date: >Last-Modified: >Originator: bf >Release: 7-STABLE i386 >Organization: - >Environment: >Description: This simple GUI, created by one of the authors of Ghostscript, has been around for a while, but hasn't previously been included in FreeBSD Ports. It has some useful features that similar software in Ports lack. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # gsview # gsview/files # gsview/files/patch-srcunx_unx.mak # gsview/files/pkg-message.in # gsview/files/patch-src_gvcver.mak # gsview/Makefile # gsview/distinfo # gsview/pkg-descr # echo c - gsview mkdir -p gsview > /dev/null 2>&1 echo c - gsview/files mkdir -p gsview/files > /dev/null 2>&1 echo x - gsview/files/patch-srcunx_unx.mak sed 's/^X//' >gsview/files/patch-srcunx_unx.mak << 'e1f279ca0be526ef4788422f050060db' X--- srcunx/unx.mak.orig 2008-07-13 07:39:58.254461217 -0400 X+++ srcunx/unx.mak 2008-07-14 09:22:24.652938045 -0400 X@@ -19,8 +19,8 @@ X # X # WARNING: Doesn't install pstotext X X-prefix= X-GSVIEW_ROOT=/usr/local X+prefix=${PREFIX} X+GSVIEW_ROOT= X GSVIEW_BASE=$(prefix)$(GSVIEW_ROOT) X X X@@ -38,8 +38,6 @@ X # GSview printer.ini and system wide gsview.ini X GSVIEW_ETCPATH=$(prefix)/etc X X-MAKE=make X-CC=gcc X OBJ=o X INSTALL=install -m 644 X INSTALL_EXE=install -m 755 X@@ -50,8 +48,8 @@ X X # Linux X XINCLUDE= X-PFLAGS=-DMULTITHREAD X-PLINK=-lpthread -lrt X+PFLAGS=-DMULTITHREAD ${PTHREAD_CFLAGS} X+PLINK=${PTHREAD_LIBS} X X # SunOS 5.7 X #XINCLUDE=-I/usr/openwin/share/lib X@@ -77,7 +75,8 @@ X X # Other possible options are -Wtraditional X # Compiler flags for C and C++ files. X-CFLAGS=-O -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -Wcast-qual -Wwrite-strings $(CDEBUG) -DX11 -DUNIX -DNONAG $(RPM_OPT_FLAGS) `gtk-config --cflags` $(XINCLUDE) $(PFLAGS) X+#CFLAGS=-O -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -Wcast-qual -Wwrite-strings $(CDEBUG) -DX11 -DUNIX -DNONAG $(RPM_OPT_FLAGS) `gtk-config --cflags` $(XINCLUDE) $(PFLAGS) X+CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -Wcast-qual -Wwrite-strings $(CDEBUG) -DX11 -DUNIX -DNONAG `gtk-config --cflags` $(XINCLUDE) $(PFLAGS) X X # Linker flags X LFLAGS=$(LDEBUG) $(PLINK) `gtk-config --libs` X@@ -152,7 +151,7 @@ X #all: gsview html pstotext X all: $(BD)gsview$(EXE) html X X-GSVIEW_DOCDIR=$(GSVIEW_DOCPATH)/gsview-$(GSVIEW_DOT_VERSION) X+GSVIEW_DOCDIR=$(GSVIEW_DOCPATH)/gsview X X $(BD)gsview$(EXE): $(OBJS) X $(COMP) $(CFLAGS) $(FO)$(BD)gsview$(EXE) $(OBJS) $(LFLAGS) e1f279ca0be526ef4788422f050060db echo x - gsview/files/pkg-message.in sed 's/^X//' >gsview/files/pkg-message.in << '8ff23519f8839b3b63b5ff0467642a05' X X========================================================= XFor html help access, edit %%PREFIX%%/bin/gsview-help Xto start your browser of choice with appropriate options. XSome configuration of Ghostscript options may be Xnecessary through the Options->Advanced Configure... Xmenu. Consider installing graphics/pstoedit to take Xfull advantage of the Edit->Convert to vector format... Xfeature. (This feature, while useful, occasionally causes Xcoredumps.) X========================================================= 8ff23519f8839b3b63b5ff0467642a05 echo x - gsview/files/patch-src_gvcver.mak sed 's/^X//' >gsview/files/patch-src_gvcver.mak << '65c716581dda3979a3327b1090942db8' X--- src/gvcver.mak.orig 2008-07-14 09:44:07.759575900 -0400 X+++ src/gvcver.mak 2008-07-14 09:44:49.641971567 -0400 X@@ -32,5 +32,5 @@ X $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_VERSION " $(GSVIEW_VERSION) X $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_DOT_VERSION " -x 22 $(GSVIEW_DOT_VERSION) -x 22 X $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_DATE " -x 22 $(GSVIEW_DATE) -x 22 X- $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_DOCPATH " -x 22 $(GSVIEW_DOCPATH) "/gsview-" $(GSVIEW_DOT_VERSION) "/" -x 22 X+ $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_DOCPATH " -x 22 $(GSVIEW_DOCPATH) "/gsview/" -x 22 X $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_ETCPATH " -x 22 $(GSVIEW_ETCPATH) "/gsview/" -x 22 65c716581dda3979a3327b1090942db8 echo x - gsview/Makefile sed 's/^X//' >gsview/Makefile << '78daf748e9474a5a4fe071495b8341ac' X# New ports collection makefile for: gsview X# Date created: 13 July 2008 X# Whom: bf <bf2006a@yahoo.com> X# X# $FreeBSD$ X# X XPORTNAME= gsview XPORTVERSION= 4.9 XCATEGORIES= print XMASTER_SITES= http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/ X XMAINTAINER= bf2006a@yahoo.com XCOMMENT= A GUI to view, search, print, and convert PostScript and PDF documents X XUSE_GNOME= gtk12 XUSE_GHOSTSCRIPT= yes X XRUN_DEPENDS+= epstool:${PORTSDIR}/graphics/epstool \ X pstotext:${PORTSDIR}/print/pstotext X XMAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS} PTHREAD_CFLAGS=${PTHREAD_CFLAGS} X XMAN1= gsview.1 XPLIST_FILES= bin/gsview \ X bin/gsview-help \ X etc/gsview/printer.ini XPLIST_DIRS= etc/gsview XPORTDOCS= gsview.css cdorder.txt regorder.txt Readme.htm LICENCE \ X gvxct.htm gvxde.htm gvxen.htm gvxes.htm gvxfr.htm gvxgr.htm \ X gvxit.htm gvxnl.htm gvxru.htm gvxse.htm gvxsk.htm XSUB_FILES= pkg-message X Xpost-patch: X ${CP} ${WRKSRC}/srcunx/unx.mak ${WRKSRC}/Makefile X ${REINPLACE_CMD} -e 's;malloc\.h;stdlib\.h;g' \ X ${WRKSRC}/src/doc2html.c ${WRKSRC}/src/doc2ipf.c \ X ${WRKSRC}/src/doc2xml.c X ${REINPLACE_CMD} -e 's;mozilla;firefox3;g' \ X ${WRKSRC}/srcunx/gvxhelp.txt X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/bin/gsview ${PREFIX}/bin X ${INSTALL_SCRIPT} ${WRKSRC}/srcunx/gvxhelp.txt ${PREFIX}/bin/gsview-help X ${INSTALL_MAN} ${WRKSRC}/srcunx/gsview.1 ${PREFIX}/man/man1 X ${MKDIR} ${PREFIX}/etc/gsview/ X ${INSTALL_DATA} ${WRKSRC}/src/printer.ini ${PREFIX}/etc/gsview/ X.ifndef(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_MAN} gsview.css cdorder.txt regorder.txt \ X Readme.htm LICENCE ${DOCSDIR} ) X ${INSTALL_MAN} ${WRKSRC}/bin/*.htm ${DOCSDIR} X.endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> 78daf748e9474a5a4fe071495b8341ac echo x - gsview/distinfo sed 's/^X//' >gsview/distinfo << 'eefdd4befbb471ac8e27273a1df4e027' XMD5 (gsview-4.9.tar.gz) = 96ca9460c8bd86ef20d881554331d72f XSHA256 (gsview-4.9.tar.gz) = 1a717bef2d6372e6182e4df1793c5d222dc5881a5e02e32284dc716e209ea9e5 XSIZE (gsview-4.9.tar.gz) = 892681 eefdd4befbb471ac8e27273a1df4e027 echo x - gsview/pkg-descr sed 's/^X//' >gsview/pkg-descr << 'cad6645c6c3b014f11fcf6539a1792e1' XGSview is a graphical interface for Ghostscript. (Ghostscript is an Xinterpreter for the PostScript page description language used by Xlaser printers.) For documents following the Adobe PostScript Document XStructuring Conventions, GSview allows selected pages to be viewed or Xprinted. Features include: X* Display and print PostScript and PDF files. X* View pages in arbitrary order (Next, Previous, Goto). X* Page size and Orientation are automatically selected from DSC X comments or can be selected using the menu. X* Print selected pages using Ghostscript. X* Convert pages to bitmap, PDF or PostScript. X* Selectable display resolution, depth, alpha. X* Single button zoom. X* Extract selected pages to another file. X* Copy display bitmap to clipboard, and save clipboard bitmap as BMP file. X* Add bitmap or user preview to EPS file (Interchange, TIFF or Windows X Metafile) X* Graphically select and show bounding box for EPS file. X* Extract bitmap preview or PostScript from DOS EPS file. X* Extract text or search for text. X* Can read gzip and bzip2 compressed PostScript and PDF files. X* On-line help. X* English, Catalan, Dutch, French, German, Greek, Italian, Russian, X Slovak, Spanish and Swedish languages. cad6645c6c3b014f11fcf6539a1792e1 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807141427.m6EERpfU089909>