aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-03-17 14:38:41 +0800
committerrafan <rafan@FreeBSD.org>2008-03-17 14:38:41 +0800
commitca126785382d40398bfb6947baf4e8debad8e3b7 (patch)
tree8646d5a5424a801894d7d216331c1e1ea15be8d0 /graphics
parent3606f1ecb6b94e7232ed43e7b944385d65206e16 (diff)
downloadfreebsd-ports-gnome-ca126785382d40398bfb6947baf4e8debad8e3b7.tar.gz
freebsd-ports-gnome-ca126785382d40398bfb6947baf4e8debad8e3b7.tar.zst
freebsd-ports-gnome-ca126785382d40398bfb6947baf4e8debad8e3b7.zip
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 PR: ports/121775 Submitted by: Timothy Bourke <timbob at bigpond.com>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/imgtops/Makefile30
-rw-r--r--graphics/imgtops/distinfo3
-rw-r--r--graphics/imgtops/files/patch-setup.py39
-rw-r--r--graphics/imgtops/pkg-descr5
-rw-r--r--graphics/imgtops/pkg-plist22
6 files changed, 100 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 8d74dd1f140f..afb79e1a8967 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -295,6 +295,7 @@
SUBDIR += imageviewer
SUBDIR += imc
SUBDIR += imgseek
+ SUBDIR += imgtops
SUBDIR += imgv
SUBDIR += imlib
SUBDIR += imlib2
diff --git a/graphics/imgtops/Makefile b/graphics/imgtops/Makefile
new file mode 100644
index 000000000000..0cb8c73c435f
--- /dev/null
+++ b/graphics/imgtops/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: imgtops
+# Date created: 17 Mar 2008
+# Whom: Timothy Bourke <timbob@bigpond.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= imgtops
+PORTVERSION= 1.0
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=${PORTNAME}
+
+MAINTAINER= timbob@bigpond.com
+COMMENT= Create efficient Encapsulated Postscript files from images
+
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
+
+USE_GHOSTSCRIPT_RUN= yes
+USE_PYTHON= 2.2+
+USE_PYDISTUTILS= yes
+INSTALLS_EGGINFO= yes
+
+MAN1= imgtops.1 epstoimg.1
+
+post-install:
+ ${CHMOD} 644 ${MANPREFIX}/man/man1/imgtops.1
+ ${CHMOD} 644 ${MANPREFIX}/man/man1/epstoimg.1
+
+.include <bsd.port.mk>
diff --git a/graphics/imgtops/distinfo b/graphics/imgtops/distinfo
new file mode 100644
index 000000000000..66d8c9165bf0
--- /dev/null
+++ b/graphics/imgtops/distinfo
@@ -0,0 +1,3 @@
+MD5 (imgtops-1.0.tar.gz) = c9cddec4678dae1faa799bc9d9010859
+SHA256 (imgtops-1.0.tar.gz) = 97eae13a38b1145ae3fb4b5aa66a4b88b1a2ee12a0c322f6ec83f54d6112b2fa
+SIZE (imgtops-1.0.tar.gz) = 18183
diff --git a/graphics/imgtops/files/patch-setup.py b/graphics/imgtops/files/patch-setup.py
new file mode 100644
index 000000000000..f98849747d4c
--- /dev/null
+++ b/graphics/imgtops/files/patch-setup.py
@@ -0,0 +1,39 @@
+--- setup.py.orig 2003-09-05 12:25:18.000000000 +0800
++++ setup.py 2008-03-17 12:42:43.000000000 +0800
+@@ -1,6 +1,6 @@
+ #!/usr/bin/env python
+
+-import sys
++import sys, os
+
+ if sys.hexversion < 0x02020000:
+ print
+@@ -46,7 +46,7 @@
+ print
+ print ' see http://www.pythonware.com/products/pil/'
+ print
+- if not get_yesno( 'Do you want to continue installing? [Y/n] ', 1 ):
++ if True:
+ print
+ print 'Installation cancelled.'
+ print
+@@ -59,7 +59,7 @@
+ print 'To use "epstoimg" you will need the Ghostscript interpreter'
+ print 'installed. (see http://www.ghostscript.com/)'
+ print
+-if get_yesno( 'Do you want to install epstoimg? [Y/n] ', 1 ):
++if True:
+ if sys.platform == 'win32':
+ default = '+gswin32c.exe'
+ else:
+@@ -68,7 +68,9 @@
+ print
+ print 'Enter the full pathname of the Ghostscript interpreter,'
+ print 'or "+foo" to search the PATH for "foo" at runtime:'
+- gs = raw_input( '[%s] ' % (default,) )
++ # gs = raw_input( '[%s] ' % (default,) )
++ gs = os.environ['PREFIX'] + '/bin/gs'
++ print "ghostscript: " + gs
+ if gs == '':
+ gs = default
+
diff --git a/graphics/imgtops/pkg-descr b/graphics/imgtops/pkg-descr
new file mode 100644
index 000000000000..4af8b864eebe
--- /dev/null
+++ b/graphics/imgtops/pkg-descr
@@ -0,0 +1,5 @@
+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
diff --git a/graphics/imgtops/pkg-plist b/graphics/imgtops/pkg-plist
new file mode 100644
index 000000000000..7846ed5766aa
--- /dev/null
+++ b/graphics/imgtops/pkg-plist
@@ -0,0 +1,22 @@
+bin/imgtops
+bin/epstoimg
+%%PYTHON_SITELIBDIR%%/imgtopslib/__init__.py
+%%PYTHON_SITELIBDIR%%/imgtopslib/__init__.pyc
+%%PYTHON_SITELIBDIR%%/imgtopslib/__init__.pyo
+%%PYTHON_SITELIBDIR%%/imgtopslib/dimensions.py
+%%PYTHON_SITELIBDIR%%/imgtopslib/dimensions.pyc
+%%PYTHON_SITELIBDIR%%/imgtopslib/dimensions.pyo
+%%PYTHON_SITELIBDIR%%/imgtopslib/encoders.py
+%%PYTHON_SITELIBDIR%%/imgtopslib/encoders.pyc
+%%PYTHON_SITELIBDIR%%/imgtopslib/encoders.pyo
+%%PYTHON_SITELIBDIR%%/imgtopslib/encoders.so
+%%PYTHON_SITELIBDIR%%/imgtopslib/epstoimg.py
+%%PYTHON_SITELIBDIR%%/imgtopslib/epstoimg.pyc
+%%PYTHON_SITELIBDIR%%/imgtopslib/epstoimg.pyo
+%%PYTHON_SITELIBDIR%%/imgtopslib/imgtops.py
+%%PYTHON_SITELIBDIR%%/imgtopslib/imgtops.pyc
+%%PYTHON_SITELIBDIR%%/imgtopslib/imgtops.pyo
+%%PYTHON_SITELIBDIR%%/imgtopslib/psimage.py
+%%PYTHON_SITELIBDIR%%/imgtopslib/psimage.pyc
+%%PYTHON_SITELIBDIR%%/imgtopslib/psimage.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/imgtopslib