New package: kdevelop-python 5.2.1

This commit is contained in:
yopito 2017-11-28 23:17:17 +01:00 committed by Jürgen Buchmüller
parent 18accea379
commit 0ff224e49c
2 changed files with 63 additions and 0 deletions

View File

@ -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

View File

@ -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 <pierre.bourgin@free.fr>"
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
}