diff --git a/srcpkgs/kdevelop-python/patches/kdev-python-1.7.0-py3-doc-syntax.patch b/srcpkgs/kdevelop-python/patches/kdev-python-1.7.0-py3-doc-syntax.patch new file mode 100644 index 00000000000..fada1bb7614 --- /dev/null +++ b/srcpkgs/kdevelop-python/patches/kdev-python-1.7.0-py3-doc-syntax.patch @@ -0,0 +1,38 @@ +remove bogus autogenerated '' set"other '' methods that are actually the < and > +operators, not methods - the bogus syntax (quote in identifier) makes the +Byte-compiling python fails on this file at package installation. + +source: https://src.fedoraproject.org/rpms/kdevelop-python/raw/master/f/kdev-python-1.7.0-py3-doc-syntax.patch + +--- documentation_files/__builtin_types__.py.ORIG ++++ documentation_files/__builtin_types__.py +@@ -44,14 +44,6 @@ + """ + pass + +- def set"other(self, (): +- """ +- Test whether the set is a true subset of *other*, that is, +- ``set <= other and set != other``. +- +- """ +- pass +- + def issuperset(self, other): + """set >= other + +@@ -59,14 +51,6 @@ + + """ + pass +- +- def set"other(self, (): +- """ +- Test whether the set is a true superset of *other*, that is, ``set >= +- other and set != other``. +- +- """ +- pass + + def union(self, other,more): + """set | other | more diff --git a/srcpkgs/kdevelop-python/template b/srcpkgs/kdevelop-python/template new file mode 100644 index 00000000000..a173a7bd583 --- /dev/null +++ b/srcpkgs/kdevelop-python/template @@ -0,0 +1,25 @@ +# Template file for 'kdevelop-python' +pkgname=kdevelop-python +version=5.2.1 +revision=1 +build_style=cmake +wrksrc="kdev-python-${version}" +hostmakedepends="extra-cmake-modules python3 qt5-qmake python3-devel" +makedepends="python3-devel qt5-devel knewstuff-devel kitemmodels-devel + threadweaver-devel ktexteditor-devel kcmutils-devel knotifyconfig-devel + grantlee5-devel kdevelop-devel" +pycompile_dirs="usr/share/kdevpythonsupport" +pycompile_version="3.6" +python_version="3" +short_desc="Python 3 language and Django project support for KDevelop" +maintainer="yopito " +license="LGPL-2" +homepage="https://www.kdevelop.org/" +distfiles="https://download.kde.org/stable/kdevelop/${version}/src/kdev-python-${version}.tar.xz" +checksum=32d663e593ac8c538c101742b2ee838256a7794914d8e0a047ce0d28bafa027b +nocross="kdevelop-devel is not available" + +post_install() { + # don't install this python2 script: generates documentation_files, useless at runtime + rm -f ${DESTDIR}/usr/share/kdevpythonsupport/documentation_files/PyKDE4/parse_xml.py +}