Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2008 14:51:36 +1100 (EST)
From:      Timothy Bourke <timbob@bigpond.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/121775: [NEW PORT] graphics/imgtops: Create efficient Encapsulated Postscript files from images
Message-ID:  <200803170351.m2H3pas6038033@triptrop.cse.unsw.edu.au>
Resent-Message-ID: <200803170410.m2H4A2HF021389@freefall.freebsd.org>

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

>Number:         121775
>Category:       ports
>Synopsis:       [NEW PORT] graphics/imgtops: Create efficient Encapsulated Postscript files from images
>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 Mar 17 04:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Timothy Bourke
>Release:        FreeBSD 6.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD triptrop 6.3-RELEASE FreeBSD 6.3-RELEASE #4: Thu Mar 13 14:01:14 EST 2008
>Description:
Command-line utilities for converting bitmage images (JPEG, PNG, GIF, Targa,
BMP, etc.) to and from encapsulated postscript. Special care is taken to
minimize the size of output files without reducing image quality.

WWW: http://imgtops.sourceforge.net

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- imgtops-1.0.shar begins here ---
# 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:
#
#	imgtops
#	imgtops/Makefile
#	imgtops/pkg-descr
#	imgtops/distinfo
#	imgtops/files
#	imgtops/files/patch-setup.py
#
echo c - imgtops
mkdir -p imgtops > /dev/null 2>&1
echo x - imgtops/Makefile
sed 's/^X//' >imgtops/Makefile << 'END-of-imgtops/Makefile'
X# New ports collection makefile for:   imgtops
X# Date created:        17 Mar 2008
X# Whom:                Timothy Bourke <timbob@bigpond.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	imgtops
XPORTVERSION=	1.0
XCATEGORIES=	graphics
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=${PORTNAME}
X
XMAINTAINER=	timbob@bigpond.com
XCOMMENT=	Create efficient Encapsulated Postscript files from images
X
XRUN_DEPENDS+=		${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
X
XUSE_GHOSTSCRIPT_RUN=	yes
XUSE_PYTHON=		2.2+
XUSE_PYDISTUTILS=	yes
XINSTALLS_EGGINFO=	yes
X
XPLIST_FILES=	bin/imgtops \
X		bin/epstoimg
X
XMAN1=		imgtops.1 epstoimg.1
X
Xpost-install:
X	${CHMOD} 644 ${MANPREFIX}/man/man1/imgtops.1
X	${CHMOD} 644 ${MANPREFIX}/man/man1/epstoimg.1
X
X.include <bsd.port.mk>
END-of-imgtops/Makefile
echo x - imgtops/pkg-descr
sed 's/^X//' >imgtops/pkg-descr << 'END-of-imgtops/pkg-descr'
XCommand-line utilities for converting bitmage images (JPEG, PNG, GIF, Targa,
XBMP, etc.) to and from encapsulated postscript. Special care is taken to
Xminimize the size of output files without reducing image quality.
X
XWWW: http://imgtops.sourceforge.net
END-of-imgtops/pkg-descr
echo x - imgtops/distinfo
sed 's/^X//' >imgtops/distinfo << 'END-of-imgtops/distinfo'
XMD5 (imgtops-1.0.tar.gz) = c9cddec4678dae1faa799bc9d9010859
XSHA256 (imgtops-1.0.tar.gz) = 97eae13a38b1145ae3fb4b5aa66a4b88b1a2ee12a0c322f6ec83f54d6112b2fa
XSIZE (imgtops-1.0.tar.gz) = 18183
END-of-imgtops/distinfo
echo c - imgtops/files
mkdir -p imgtops/files > /dev/null 2>&1
echo x - imgtops/files/patch-setup.py
sed 's/^X//' >imgtops/files/patch-setup.py << 'END-of-imgtops/files/patch-setup.py'
X--- setup.py.orig	2003-09-05 14:25:18.000000000 +1000
X+++ setup.py	2008-03-17 14:35:54.000000000 +1100
X@@ -1,6 +1,6 @@
X #!/usr/bin/env python
X 
X-import sys
X+import sys, os
X 
X if sys.hexversion < 0x02020000:
X     print
X@@ -59,7 +59,8 @@
X print 'To use "epstoimg" you will need the Ghostscript interpreter'
X print 'installed.  (see http://www.ghostscript.com/)'
X print
X-if get_yesno( 'Do you want to install epstoimg? [Y/n] ', 1 ):
X+# if get_yesno( 'Do you want to install epstoimg? [Y/n] ', 1 ):
X+if True:
X     if sys.platform == 'win32':
X         default = '+gswin32c.exe'
X     else:
X@@ -68,7 +69,9 @@
X     print
X     print 'Enter the full pathname of the Ghostscript interpreter,'
X     print 'or "+foo" to search the PATH for "foo" at runtime:'
X-    gs = raw_input( '[%s] ' % (default,) )
X+    # gs = raw_input( '[%s] ' % (default,) )
X+    gs = os.environ['PREFIX'] + '/bin/gs'
X+    print "ghostscript: " + gs
X     if gs == '':
X         gs = default
X 
END-of-imgtops/files/patch-setup.py
exit
--- imgtops-1.0.shar ends here ---

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



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