summaryrefslogtreecommitdiffstats
path: root/devel/py-itools/Makefile
blob: cb8a366a70d5a27ccb44551ee6adfc53d1f21223 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$

PORTNAME=	itools
PORTVERSION=	0.75.2
PORTREVISION=	5
CATEGORIES=	devel python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	cpm@fbsd.es
COMMENT=	Python library Provides Wide Range Of Capabilities

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BUILD_DEPENDS=  ${LOCALBASE}/include/poppler/goo/gtypes.h:${PORTSDIR}/graphics/poppler \
		${LOCALBASE}/include/git2.h:${PORTSDIR}/devel/libgit2 \
		${PYTHON_PKGNAMEPREFIX}reportlab2>=2.3:${PORTSDIR}/print/py-reportlab2 \
		${PYTHON_PKGNAMEPREFIX}pygit2>0:${PORTSDIR}/devel/py-pygit2 \
		${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
		${PYTHON_PKGNAMEPREFIX}xlrd>0:${PORTSDIR}/textproc/py-xlrd \
		${PYTHON_PKGNAMEPREFIX}magic>0:${PORTSDIR}/devel/py-magic \
		${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx \
		${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow \
		${PYTHON_PKGNAMEPREFIX}matplotlib>0:${PORTSDIR}/math/py-matplotlib \
		${PYTHON_PKGNAMEPREFIX}gobject>=2.16.1:${PORTSDIR}/devel/py-gobject \
		${LOCALBASE}/bin/git:${PORTSDIR}/devel/git \
		xapian-bindings>1.0.8:${PORTSDIR}/databases/xapian-bindings
RUN_DEPENDS:=	${BUILD_DEPENDS}
LIB_DEPENDS=	libglib-2.0.so:${PORTSDIR}/devel/glib20 \
		libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
		libwv2.so:${PORTSDIR}/textproc/wv2

CFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/poppler
LDFLAGS+=	-L${LOCALBASE}/lib

USES=		gettext-tools:run pkgconfig python:2.7+
USE_PYTHON=	autoplist distutils

OPTIONS_DEFINE=	DOCS EXAMPLES

PORTDOCS=	INSTALL.txt MANIFEST README.rst RELEASE-0.75.0 \
		RELEASE-0.75.1 RELEASE-0.75.2 UPGRADE-0.75.0
PORTEXAMPLES=	*

post-install:
.for f in office pdf web xml
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/${f}/*.so
.endfor

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/docs/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

regression-test: build
	cd ${WRKSRC}/test && ${PYTHON_CMD} test.py

.include <bsd.port.mk>
OpenPOWER on IntegriCloud