2011-10-17 01:01:09 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= qzeitgeist
|
2012-05-25 03:53:50 +02:00
|
|
|
PORTVERSION= 0.8.0
|
2015-08-02 17:37:19 +02:00
|
|
|
PORTREVISION= 2
|
2011-10-17 01:01:09 +02:00
|
|
|
CATEGORIES= sysutils
|
2015-05-11 20:34:57 +02:00
|
|
|
MASTER_SITES= KDE/stable/lib${PORTNAME}/${PORTVERSION}/src/:kde \
|
2012-05-25 03:53:50 +02:00
|
|
|
http://launchpad.net/zeitgeist/${ZEITGEIST_VERSION:R}/${ZEITGEIST_VERSION}/+download/
|
|
|
|
DISTNAME= lib${PORTNAME}-${PORTVERSION}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:kde \
|
2015-08-02 17:37:19 +02:00
|
|
|
zeitgeist-${ZEITGEIST_VERSION}.tar.xz
|
2012-05-25 03:53:50 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2011-10-17 01:01:09 +02:00
|
|
|
|
|
|
|
MAINTAINER= avilla@FreeBSD.org
|
2011-10-17 02:08:52 +02:00
|
|
|
COMMENT= Qt 4 wrapper library around the Zeitgeist D-Bus API
|
2011-10-17 01:01:09 +02:00
|
|
|
|
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
BUILD_DEPENDS= rapper:textproc/raptor2 \
|
|
|
|
${PYTHON_SITELIBDIR}/rdflib/__init__.py:textproc/py-rdflib
|
2012-05-25 03:53:50 +02:00
|
|
|
|
2016-08-24 10:20:31 +02:00
|
|
|
USES= cmake kde:4 python:build tar:bzip2
|
|
|
|
USE_KDE= automoc4
|
2016-12-22 13:36:23 +01:00
|
|
|
USE_QT4= corelib dbus declarative qtestlib \
|
2011-10-17 01:01:09 +02:00
|
|
|
moc_build qmake_build rcc_build uic_build
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2012-05-25 03:53:50 +02:00
|
|
|
# To be kept in sync with sysutils/zeitgeist.
|
2015-08-02 17:37:19 +02:00
|
|
|
ZEITGEIST_VERSION= 0.9.16
|
2012-05-25 03:53:50 +02:00
|
|
|
|
|
|
|
post-extract:
|
2014-05-29 09:49:06 +02:00
|
|
|
@(cd ${WRKDIR} && ${TAR} ${EXTRACT_BEFORE_ARGS} \
|
2015-08-02 17:37:19 +02:00
|
|
|
${_DISTDIR}/zeitgeist-${ZEITGEIST_VERSION}.tar.xz \
|
2014-05-29 09:49:06 +02:00
|
|
|
${EXTRACT_AFTER_ARGS})
|
2012-05-25 03:53:50 +02:00
|
|
|
cd ${WRKDIR}/zeitgeist-${ZEITGEIST_VERSION} && \
|
2015-08-02 17:37:19 +02:00
|
|
|
${CP} -r python/*.py \
|
|
|
|
data/ontology \
|
2012-05-25 03:53:50 +02:00
|
|
|
${WRKSRC}/scripts
|
2011-10-17 01:01:09 +02:00
|
|
|
|
2016-12-22 13:36:23 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-10-17 01:01:09 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e '/\.pc/ s|pkgconfig|../libdata/pkgconfig|' \
|
|
|
|
-e 's|share/${PORTNAME}/cmake|lib/cmake/${PORTNAME}|' \
|
|
|
|
-e "/add_subdirectory(tests)/ d" \
|
|
|
|
${WRKSRC}/CMakeLists.txt \
|
|
|
|
${WRKSRC}/src/CMakeLists.txt \
|
|
|
|
${WRKSRC}/QZeitgeistConfig.cmake.in
|
2012-05-25 03:53:50 +02:00
|
|
|
${REINPLACE_CMD} -e 's|zeitgeist.datamodel|datamodel|' \
|
2016-12-22 13:36:23 +01:00
|
|
|
-e 's|env python|env ${PYTHON_CMD}|g' \
|
2012-05-25 03:53:50 +02:00
|
|
|
${WRKSRC}/scripts/onto2cpp.py
|
2016-12-22 13:36:23 +01:00
|
|
|
.if ${PYTHON_VERSION:M*3*}
|
|
|
|
${REINPLACE_CMD} -E -e '/except/ s|,| as |' \
|
|
|
|
-e 's|(print) +>> +(sys\.stderr) *, *(.*)|\1(\3, file=\2)|' \
|
|
|
|
-e 's|(print) +(.*)|\1(\2)|' \
|
|
|
|
-e '/gettext\.install/ s|\((.*),.*\)|(\1)|' \
|
|
|
|
-e 's|execfile\((.*)\)|exec(compile(open(\1, "rb").read(), \1, "exec"))|' \
|
|
|
|
-e '/iter(items|keys|values)\(\)/ s|iter||g' \
|
|
|
|
${WRKSRC}/scripts/*.py
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|