summaryrefslogtreecommitdiff
path: root/devel/py-krosspython-kde4
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-krosspython-kde4')
-rw-r--r--devel/py-krosspython-kde4/Makefile22
-rw-r--r--devel/py-krosspython-kde4/distinfo2
-rw-r--r--devel/py-krosspython-kde4/files/patch-git_81e17bf27
-rw-r--r--devel/py-krosspython-kde4/pkg-descr3
4 files changed, 54 insertions, 0 deletions
diff --git a/devel/py-krosspython-kde4/Makefile b/devel/py-krosspython-kde4/Makefile
new file mode 100644
index 000000000000..0126d17c6d57
--- /dev/null
+++ b/devel/py-krosspython-kde4/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= krosspython
+PORTVERSION= ${KDE4_VERSION}
+PORTREVISION= 3
+CATEGORIES= devel kde kde-kde4 python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= kross-interpreters-${PORTVERSION}
+
+MAINTAINER= kde@FreeBSD.org
+COMMENT= Kross Python scripting library
+
+USES= cmake:outsource kde:4 python:2.7 tar:xz
+USE_KDE= kdelibs automoc4
+USE_QT4= corelib gui qmake_build moc_build uic_build rcc_build
+CMAKE_ARGS+= -DBUILD_falcon:BOOL=FALSE \
+ -DBUILD_ruby:BOOL=FALSE \
+ -DBUILD_java:BOOL=FALSE
+
+PLIST_FILES= lib/kde4/krosspython.so
+
+.include <bsd.port.mk>
diff --git a/devel/py-krosspython-kde4/distinfo b/devel/py-krosspython-kde4/distinfo
new file mode 100644
index 000000000000..8621563cb924
--- /dev/null
+++ b/devel/py-krosspython-kde4/distinfo
@@ -0,0 +1,2 @@
+SHA256 (KDE/4.14.3/kross-interpreters-4.14.3.tar.xz) = ea9a1aee409e0d7e97bc69a0c595cdcc93053ff7c6a92d427ca37fea6e93ddec
+SIZE (KDE/4.14.3/kross-interpreters-4.14.3.tar.xz) = 130784
diff --git a/devel/py-krosspython-kde4/files/patch-git_81e17bf b/devel/py-krosspython-kde4/files/patch-git_81e17bf
new file mode 100644
index 000000000000..ec6746654e36
--- /dev/null
+++ b/devel/py-krosspython-kde4/files/patch-git_81e17bf
@@ -0,0 +1,27 @@
+commit 81e17bf1d8514cc4f00191776022ba2e0c935b27
+Author: Tobias C. Berner <tcberner@FreeBSD.org>
+Date: Wed Jul 26 14:31:32 2017 +0200
+
+ Fix build on FreBSD
+
+ Summary:
+ kross-interpreters/python/cxx/Objects.hxx:1081:15: error: cannot initialize
+ a member subobject of type 'int' with an rvalue of type 'nullptr_t'
+ , offset( NULL )
+ ^ ~~~~
+
+ Reviewers: #freebsd, aspotashev
+
+ Differential Revision: https://phabricator.kde.org/D6928
+
+--- python/cxx/Objects.hxx
++++ python/cxx/Objects.hxx
+@@ -1078,7 +1078,7 @@ namespace Py
+ // TMM: added this seqref ctor for use with STL algorithms
+ seqref (Object& obj)
+ : s(dynamic_cast< SeqBase<T>&>(obj))
+- , offset( NULL )
++ , offset( 0 )
+ , the_item(s.getItem(offset))
+ {}
+ ~seqref()
diff --git a/devel/py-krosspython-kde4/pkg-descr b/devel/py-krosspython-kde4/pkg-descr
new file mode 100644
index 000000000000..7cab4d1d77ea
--- /dev/null
+++ b/devel/py-krosspython-kde4/pkg-descr
@@ -0,0 +1,3 @@
+Python bindings for KDE.
+
+WWW: http://www.kde.org/