cf649469f2
Add patches to py-poppler [2] and rubygem-poppler [3] to fix the build of these ports with poppler 0.39+. PR: 206293 [1] Submitted by: olivierd@ [1] Obtained from: ubuntu [2], rubygem-poppler upstream [3]
63 lines
2.1 KiB
Makefile
63 lines
2.1 KiB
Makefile
# Created by: Wen Heping <wenheping@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= itools
|
|
PORTVERSION= 0.75.2
|
|
PORTREVISION= 6
|
|
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>
|