# 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 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 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