blob: 7d3ab901aa2b9a9b4bdd206d100e650cc653dfd0 (
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
49
50
51
52
53
54
|
# $FreeBSD$
PORTNAME= pykde4
PORTVERSION= ${KDE4_VERSION}
PORTREVISION= 9
CATEGORIES= devel kde kde-kde4 python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= kde@FreeBSD.org
COMMENT= Python bindings for KDE
DEPRECATED= KDE4 is EOL upstream
EXPIRATION_DATE= 2018-12-31
LIB_DEPENDS= libqwt.so:x11-toolkits/qwt5
USES= cmake kde:4 python:2.7 pyqt:4 qt:4 tar:xz
USE_KDE= kdelibs nepomuk-core okular pimlibs \
akonadi automoc4 soprano
USE_PYQT= declarative designer gui network opengl phonon script sip \
sql svg webkit xml \
dbussupport_run
USE_PYTHON= flavors
USE_QT= corelib dbus designer_build gui network xml \
qmake_build moc_build uic_build rcc_build
USE_CXXSTD= gnu++98
CMAKE_ARGS+= -DWITH_PolkitQt:BOOL=FALSE \
-DENABLE_PYTHON=ON \
-DPYTHON_INCLUDE_DIR:PATH=${WRKDIR}/include/${PYTHON_VERSION}
SUB_FILES= kdebindings4.pth
SUB_LIST= PYTHONPREFIX_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR}
PLIST_SUB+= PYQT_SIPDIR=share/sip
OPTIONS_DEFINE= EXAMPLES
post-patch:
${FIND} -d ${PATCH_WRKSRC}/sip -name "*.orig" -delete
pre-configure:
${REINPLACE_CMD} -e '/add_subdirectory(examples)/ d' \
-e '/add_subdirectory(tools)/ d' \
${WRKSRC}/CMakeLists.txt
${RM} ${WRKSRC}/examples/CMakeLists.txt
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_DATA} ${WRKDIR}/kdebindings4.pth ${STAGEDIR}${PYTHON_SITELIBDIR}
.include <bsd.port.mk>
|