Add py-exif 0.9, a Python library to extract EXIF metadata from JPEG

and TIFF image files.
This commit is contained in:
Johann Visagie 2002-01-30 08:54:33 +00:00
parent 909d2dd10f
commit e368a566bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54017
6 changed files with 82 additions and 0 deletions

View file

@ -242,6 +242,7 @@
SUBDIR += proj
SUBDIR += pstoedit
SUBDIR += pvmpov
SUBDIR += py-exif
SUBDIR += py-gd
SUBDIR += py-gdchart
SUBDIR += py-imaging

50
graphics/py-exif/Makefile Normal file
View file

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

View file

@ -0,0 +1 @@
MD5 (pyexif-0.9.tar.gz) = c72c3a60f800d92389f64c2953aa7a35

View file

@ -0,0 +1 @@
Python library to extract EXIF metadata from JPEG and TIFF image files

View file

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

View file

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