From 856a994e30ebfcdffc3fc543f0d42ca26a571d04 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 8 Oct 2010 07:19:54 +0000 Subject: - Add commons-utilities 1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a port for Wikimedia Commons or MediaWiki similar installations power users, to allow bulk images upload to a wiki, from the command line. * commons-csv-creator allows to get metadata from images EXIF tags * commons-upload allows to upload in batch images to Wikimedia Commons or a MediaWiki site. WWW: http://bitbucket.org/dereckson/commons-utilities PR: ports/150743 Submitted by: Sébastien Santoro Approved by: pgollucci (mentor) --- graphics/commons-utilities/Makefile | 47 ++++++++++++++++++++++++++++++++++++ graphics/commons-utilities/distinfo | 3 +++ graphics/commons-utilities/pkg-descr | 8 ++++++ 3 files changed, 58 insertions(+) create mode 100644 graphics/commons-utilities/Makefile create mode 100644 graphics/commons-utilities/distinfo create mode 100644 graphics/commons-utilities/pkg-descr (limited to 'graphics/commons-utilities') diff --git a/graphics/commons-utilities/Makefile b/graphics/commons-utilities/Makefile new file mode 100644 index 000000000000..c092e7b8e762 --- /dev/null +++ b/graphics/commons-utilities/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: commons-utilities +# Date created: 18 September 2010 +# Whom: Dereckson +# +# $FreeBSD$ +# + +PORTNAME= commons-utilities +PORTVERSION= 1.0 +CATEGORIES= graphics +MASTER_SITES= http://devio.us/~dereckson/software/commons-utilities/ + +MAINTAINER= dereckson@gmail.com +COMMENT= Wikimedia Commons / MediaWiki utilities for bulk uploading + +LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg +RUN_DEPENDS= p5-Image-ExifTool>=0:${PORTSDIR}/graphics/p5-Image-ExifTool \ + p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey \ + p5-Text-CSV_XS>=0:${PORTSDIR}/textproc/p5-Text-CSV_XS \ + p5-Text-CSV-Encoded>=0:${PORTSDIR}/textproc/p5-Text-CSV-Encoded \ + ${PYTHON_PKGNAMEPREFIX}mechanize>=0.2:${PORTSDIR}/www/py-mechanize \ + exiv2:${PORTSDIR}/graphics/exiv2 + +NO_BUILD= yes +USE_PERL5_RUN= yes +USE_PYTHON= 2.4+ + +LICENSE= GPLv3 + +PLIST_FILES= bin/commons-csv-creator bin/commons-upload + +.if !defined(NOPORTDOCS) +PLIST_DIRS= %%DOCSDIR%% +PLIST_FILES+= %%DOCSDIR%%/README +.endif + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/commons-csv-creator ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/commons-upload ${PREFIX}/bin + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ +.endif + +.include diff --git a/graphics/commons-utilities/distinfo b/graphics/commons-utilities/distinfo new file mode 100644 index 000000000000..7144e7cda19f --- /dev/null +++ b/graphics/commons-utilities/distinfo @@ -0,0 +1,3 @@ +MD5 (commons-utilities-1.0.tar.gz) = 3c90d19ab7b732d22df0460bad578372 +SHA256 (commons-utilities-1.0.tar.gz) = 1ac7e605291ea2e596b1ebe30b53530f3a1ed129a64e825bc7ac3598c0c180b6 +SIZE (commons-utilities-1.0.tar.gz) = 21412 diff --git a/graphics/commons-utilities/pkg-descr b/graphics/commons-utilities/pkg-descr new file mode 100644 index 000000000000..e90d3b2da56b --- /dev/null +++ b/graphics/commons-utilities/pkg-descr @@ -0,0 +1,8 @@ +This is a port for Wikimedia Commons or MediaWiki similar installations +power users, to allow bulk images upload to a wiki, from the command line. + +* commons-csv-creator allows to get metadata from images EXIF tags +* commons-upload allows to upload in batch images to Wikimedia Commons + or a MediaWiki site. + +WWW: http://bitbucket.org/dereckson/commons-utilities -- cgit v1.2.3