Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 1999 22:45:02 +0900 (JST)
From:      hurukawa@kuee.kyoto-u.ac.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14459: new ports graphics/epstool
Message-ID:  <199910231345.WAA64936@manta.kuee.kyoto-u.ac.jp>

next in thread | raw e-mail | index | archive | help

>Number:         14459
>Category:       ports
>Synopsis:       new ports graphics/epstool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 23 06:47:16 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Yuzo Furukawa
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
Department of Electronic Science and Engineering, Kyoto University
>Environment:

	FreeBSD 3.3-RELEASE i386

>Description:

	New port of epstool 1.06 - a program create or extract preview bitmaps
	in EPS files. 
	Epstool requires ghostscript. 

>How-To-Repeat:

	The shell archive of files is attached.

# 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:
#
#	graphics
#	graphics/epstool
#	graphics/epstool/Makefile
#	graphics/epstool/pkg
#	graphics/epstool/pkg/PLIST
#	graphics/epstool/pkg/COMMENT
#	graphics/epstool/pkg/DESCR
#	graphics/epstool/files
#	graphics/epstool/files/md5
#	graphics/epstool/patches
#	graphics/epstool/patches/patch-aa
#	graphics/epstool/patches/patch-ab
#
echo c - graphics
mkdir -p graphics > /dev/null 2>&1
echo c - graphics/epstool
mkdir -p graphics/epstool > /dev/null 2>&1
echo x - graphics/epstool/Makefile
sed 's/^X//' >graphics/epstool/Makefile << 'END-of-graphics/epstool/Makefile'
X# New ports collection makefile for:	epstool
X# Version required:	1.06
X# Date created:		23 October 1999
X# Whom:			Yuzo FURUKAWA <hurukawa@kuee.kyoto-u.ac.jp>
X#
X# $FreeBSD$
X
XDISTNAME=	epstool-106
XPKGNAME=	epstool-1.06
XCATEGORIES=	graphics
XMASTER_SITES=	ftp://ftp.cs.wisc.edu/ghost/rjl/ \
X		ftp://ftp.fh-koblenz.de/pub/Ghostscript/rjl/
X
XMAINTAINER= 	ports@FreeBSD.org
X
XRUN_DEPENDS=    gs:${PORTSDIR}/print/ghostscript55
X
XMAKEFILE=	makefile.unx
XWRKSRC=		${WRKDIR}/epstool
X
Xpost-install:
X	${MKDIR} ${PREFIX}/bin ${PREFIX}/share/doc/epstool
X	${INSTALL_DATA} ${WRKSRC}/epstool.txt \
X		${PREFIX}/share/doc/epstool/epstool.txt
X
X.include <bsd.port.mk>
END-of-graphics/epstool/Makefile
echo c - graphics/epstool/pkg
mkdir -p graphics/epstool/pkg > /dev/null 2>&1
echo x - graphics/epstool/pkg/PLIST
sed 's/^X//' >graphics/epstool/pkg/PLIST << 'END-of-graphics/epstool/pkg/PLIST'
Xbin/epstool
Xshare/doc/epstool/epstool.txt
X
X@dirrm share/doc/epstool
END-of-graphics/epstool/pkg/PLIST
echo x - graphics/epstool/pkg/COMMENT
sed 's/^X//' >graphics/epstool/pkg/COMMENT << 'END-of-graphics/epstool/pkg/COMMENT'
XEPSTOOL - Create or extract preview bitmaps in EPS files.
END-of-graphics/epstool/pkg/COMMENT
echo x - graphics/epstool/pkg/DESCR
sed 's/^X//' >graphics/epstool/pkg/DESCR << 'END-of-graphics/epstool/pkg/DESCR'
XFeatures:
X- Add EPSI or DOS EPS previews.
X- Extract postscript from DOS EPS files.
X- Uses Ghostscript to create preview bitmaps.
X- Scan a bitmap created by Ghostscript to find bounding box.
X- Create TIFF or Interchange from part of a bitmap created 
X  by Ghostscript.
X
XPlease read text '/usr/local/share/doc/epstool/epstool.txt'
X
X- Yuzo FURUKAWA
END-of-graphics/epstool/pkg/DESCR
echo c - graphics/epstool/files
mkdir -p graphics/epstool/files > /dev/null 2>&1
echo x - graphics/epstool/files/md5
sed 's/^X//' >graphics/epstool/files/md5 << 'END-of-graphics/epstool/files/md5'
XMD5 (epstool-106.tar.gz) = 1b86df4d4420995090867dcc3882febb
END-of-graphics/epstool/files/md5
echo c - graphics/epstool/patches
mkdir -p graphics/epstool/patches > /dev/null 2>&1
echo x - graphics/epstool/patches/patch-aa
sed 's/^X//' >graphics/epstool/patches/patch-aa << 'END-of-graphics/epstool/patches/patch-aa'
X--- makefile.unx.orig	Sat Oct 23 18:00:19 1999
X+++ makefile.unx	Sat Oct 23 19:24:37 1999
X@@ -20,8 +20,8 @@
X RM=/bin/rm -f
X SHELL=/bin/sh
X 
X-BINDIR=/usr/local/bin
X-INCLUDES=-I/usr/openwin/include
X+BINDIR=${PREFIX}/bin
X+INCLUDES=-I/usr/X11R6/include
X LIBS=
X # if you have a strict ANSI compiler, add -D__STDC__
X DEFINES=-DUNIX -DEPSTOOL -DHAVE_UNISTD_H
X@@ -54,5 +54,5 @@
X 	-$(RM) epstool
X 
X install: epstool
X-	cp epstool $(BINDIR)
X-	chmod 755 $(BINDIR)/epstool
X+	install -c -s -g bin -o root -m 755 epstool $(BINDIR)
X+
END-of-graphics/epstool/patches/patch-aa
echo x - graphics/epstool/patches/patch-ab
sed 's/^X//' >graphics/epstool/patches/patch-ab << 'END-of-graphics/epstool/patches/patch-ab'
X--- epstool.c.orig	Sun Sep 13 09:52:52 1998
X+++ epstool.c	Sat Oct 23 17:59:46 1999
X@@ -25,7 +25,7 @@
X char upname[MAXSTR];
X char gsname[MAXSTR] = GSCOMMAND;
X char bmpname[MAXSTR];
X-char devname[MAXSTR];
X+char gsdevname[MAXSTR];
X char szScratch[] = "ep";
X char szAppName[] = "epstool";
X int resolution = 72;
X@@ -87,9 +87,9 @@
X main(int argc, char *argv[])
X {
X #ifdef UNIX
X-	strcpy(devname, "pbmraw");
X+	strcpy(gsdevname, "pbmraw");
X #else
X-	strcpy(devname, "bmpmono");
X+	strcpy(gsdevname, "bmpmono");
X #endif
X 	if (scan_args(argc, argv))
X 	   return 1;
X@@ -252,10 +252,10 @@
X 	fclose(tempfile);
X #ifdef UNIX
X 	sprintf(gscommand, "%s -dNOPAUSE -dQUIET -sDEVICE=%s -sOutputFile=\042%s\042 -r%d -g%dx%d %s",
X-	   gsname, devname, bmpname, resolution, width, height, tempname);
X+	   gsname, gsdevname, bmpname, resolution, width, height, tempname);
X #else
X 	sprintf(gscommand, "-dNOPAUSE\n-dQUIET\n-sDEVICE=%s\n-sOutputFile=\042%s\042\n-r%d\n-g%dx%d\n\042%s\042",
X-	   devname, bmpname, resolution, width, height, tempname);
X+	   gsdevname, bmpname, resolution, width, height, tempname);
X 	if (!quiet) {
X 	    fputs(gscommand, stderr);
X 	    fputs("\n", stderr);
X@@ -409,7 +409,7 @@
X 		  break;
X 		case 'z':
X 		  if (argp[2])
X-		      strcpy(devname, argp+2);
X+		      strcpy(gsdevname, argp+2);
X 		  break;
X 		case 'c':
X 		  if (got_op) {
END-of-graphics/epstool/patches/patch-ab
exit


>Fix:
	


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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910231345.WAA64936>