aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/commons-utilities/Makefile
blob: 7549cb2ff4b3658b4c106fd9ec2d54d10542a2bc (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
# Created by: Dereckson <dereckson@gmail.com>
# $FreeBSD$

PORTNAME=   commons-utilities
PORTVERSION=    1.0
PORTREVISION=   2
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
USES=       perl5
USE_PERL5=  run
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>