summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorwjv <wjv@FreeBSD.org>2002-01-30 08:54:33 +0000
committerwjv <wjv@FreeBSD.org>2002-01-30 08:54:33 +0000
commitbac9d3f138baef03dc33ae3d8da57bb46fbba8d8 (patch)
treea1b5f6e8c3542eac96414cca41f1bdbda8d976b9 /graphics
parent4811ad370e4348a1c5adfffd126053e1864f3f0b (diff)
downloadFreeBSD-ports-bac9d3f138baef03dc33ae3d8da57bb46fbba8d8.zip
FreeBSD-ports-bac9d3f138baef03dc33ae3d8da57bb46fbba8d8.tar.gz
Add py-exif 0.9, a Python library to extract EXIF metadata from JPEG
and TIFF image files.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/py-exif/Makefile50
-rw-r--r--graphics/py-exif/distinfo1
-rw-r--r--graphics/py-exif/pkg-comment1
-rw-r--r--graphics/py-exif/pkg-descr16
-rw-r--r--graphics/py-exif/pkg-plist13
6 files changed, 82 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 70390da..a097953 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -242,6 +242,7 @@
SUBDIR += proj
SUBDIR += pstoedit
SUBDIR += pvmpov
+ SUBDIR += py-exif
SUBDIR += py-gd
SUBDIR += py-gdchart
SUBDIR += py-imaging
diff --git a/graphics/py-exif/Makefile b/graphics/py-exif/Makefile
new file mode 100644
index 0000000..c099c8a
--- /dev/null
+++ b/graphics/py-exif/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: py-exif
+# Date created: 30 January 2001
+# Whom: Johann Visagie <wjv@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= exif
+PORTVERSION= 0.9
+CATEGORIES= graphics python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pyexif
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pyexif-${PORTVERSION}
+
+MAINTAINER= wjv@FreeBSD.org
+
+USE_PYTHON= yes
+WRKSRC= ${WRKDIR}/pyexif
+DATADIR= ${PREFIX}/share/py-exif
+DOCSDIR= ${PREFIX}/share/doc/py-exif
+INSTALL_SITELIBDIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages
+
+post-patch:
+.for pyfile in exiftool exifinfo.py
+ @ cd ${WRKSRC}/bin && ${MV} ${pyfile} ${pyfile}.orig && \
+ ${SED} -e '1s|.*|#!${PYTHON_CMD}|' ${pyfile}.orig > ${pyfile}
+.endfor
+
+do-build:
+ @ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib
+ @ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib
+
+do-install:
+ @ ${MKDIR} ${INSTALL_SITELIBDIR}
+ @ ${MKDIR} ${PREFIX}/bin
+ @ cd ${WRKSRC}/lib && ${INSTALL_DATA} *.py *.pyc *.pyo \
+ ${INSTALL_SITELIBDIR}
+ @ ${INSTALL_SCRIPT} ${WRKSRC}/bin/exiftool ${PREFIX}/bin
+ @ ${MKDIR} ${DATADIR}
+ @ cd ${WRKSRC}/share/exiftool && ${INSTALL_DATA} *.html *.txt \
+ ${DATADIR}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${DOCSDIR}
+ @ ${INSTALL_DATA} ${WRKSRC}/README* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/py-exif/distinfo b/graphics/py-exif/distinfo
new file mode 100644
index 0000000..b6ab96c
--- /dev/null
+++ b/graphics/py-exif/distinfo
@@ -0,0 +1 @@
+MD5 (pyexif-0.9.tar.gz) = c72c3a60f800d92389f64c2953aa7a35
diff --git a/graphics/py-exif/pkg-comment b/graphics/py-exif/pkg-comment
new file mode 100644
index 0000000..0d93713
--- /dev/null
+++ b/graphics/py-exif/pkg-comment
@@ -0,0 +1 @@
+Python library to extract EXIF metadata from JPEG and TIFF image files
diff --git a/graphics/py-exif/pkg-descr b/graphics/py-exif/pkg-descr
new file mode 100644
index 0000000..1832ef3
--- /dev/null
+++ b/graphics/py-exif/pkg-descr
@@ -0,0 +1,16 @@
+Pyexif is a Python library and associated command line tool to extract EXIF
+format metadata from the headers of JPEG and TIFF image files. EXIF
+information is typically included in images created using digital imaging
+devices such as digital cameras and digital film scanners.
+
+Currently, pyexif provides the following functionality:
+- Parse EXIF headers in JPEG files.
+- Parse EXIF headers in TIFF files.
+- Support for camera-specific MakerNote tags (e.g. Nikon, Canon, etc.).
+- Provide a simple cmdline interfaces to format the data in human-readable
+ format.
+
+WWW: http://pyexif.sourceforge.net/
+EXIF specification: http://www.pima.net/standards/it10/PIMA15740/exif.htm
+
+-- Johann Visagie <wjv@FreeBSD.org>
diff --git a/graphics/py-exif/pkg-plist b/graphics/py-exif/pkg-plist
new file mode 100644
index 0000000..98b7c53
--- /dev/null
+++ b/graphics/py-exif/pkg-plist
@@ -0,0 +1,13 @@
+%%PORTDOCS%%share/doc/py-exif/README
+%%PORTDOCS%%share/doc/py-exif/README.exiftool
+bin/exiftool
+lib/%%PYTHON_VERSION%%/site-packages/__init__.py
+lib/%%PYTHON_VERSION%%/site-packages/__init__.pyc
+lib/%%PYTHON_VERSION%%/site-packages/__init__.pyo
+lib/%%PYTHON_VERSION%%/site-packages/exif.py
+lib/%%PYTHON_VERSION%%/site-packages/exif.pyc
+lib/%%PYTHON_VERSION%%/site-packages/exif.pyo
+share/py-exif/template.html
+share/py-exif/template.txt
+@dirrm share/py-exif
+%%PORTDOCS%%@dirrm share/doc/py-exif
OpenPOWER on IntegriCloud