aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/commons-utilities/Makefile
blob: e4ddf99dc4ad896bb25562761f011f61ea0f6c65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:    commons-utilities
# Date created:                         18 September 2010
# Whom:                                 Dereckson <dereckson@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   commons-utilities
PORTVERSION=    1.0
PORTREVISION=   1
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.5+

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 <bsd.port.mk>