diff options
Diffstat (limited to 'graphics/py-exif')
-rw-r--r-- | graphics/py-exif/Makefile | 50 | ||||
-rw-r--r-- | graphics/py-exif/distinfo | 1 | ||||
-rw-r--r-- | graphics/py-exif/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/py-exif/pkg-descr | 16 | ||||
-rw-r--r-- | graphics/py-exif/pkg-plist | 13 |
5 files changed, 81 insertions, 0 deletions
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 <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 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 <wjv@FreeBSD.org> 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 |