From e368a566bd469860d88485a565ca48b51db2c6f9 Mon Sep 17 00:00:00 2001 From: Johann Visagie Date: Wed, 30 Jan 2002 08:54:33 +0000 Subject: [PATCH] Add py-exif 0.9, a Python library to extract EXIF metadata from JPEG and TIFF image files. --- graphics/Makefile | 1 + graphics/py-exif/Makefile | 50 ++++++++++++++++++++++++++++++++++++ graphics/py-exif/distinfo | 1 + graphics/py-exif/pkg-comment | 1 + graphics/py-exif/pkg-descr | 16 ++++++++++++ graphics/py-exif/pkg-plist | 13 ++++++++++ 6 files changed, 82 insertions(+) create mode 100644 graphics/py-exif/Makefile create mode 100644 graphics/py-exif/distinfo create mode 100644 graphics/py-exif/pkg-comment create mode 100644 graphics/py-exif/pkg-descr create mode 100644 graphics/py-exif/pkg-plist diff --git a/graphics/Makefile b/graphics/Makefile index 70390da73121..a0979530c3f1 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 000000000000..c099c8a452bc --- /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 +# +# $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 diff --git a/graphics/py-exif/distinfo b/graphics/py-exif/distinfo new file mode 100644 index 000000000000..b6ab96c856e7 --- /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 000000000000..0d937139826b --- /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 000000000000..1832ef3d551a --- /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 diff --git a/graphics/py-exif/pkg-plist b/graphics/py-exif/pkg-plist new file mode 100644 index 000000000000..98b7c530cea5 --- /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