diff --git a/programming/language/python3/dbus-python3/actions.py b/programming/language/python3/dbus-python3/actions.py new file mode 100644 index 0000000000..9df1d8bafd --- /dev/null +++ b/programming/language/python3/dbus-python3/actions.py @@ -0,0 +1,41 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + shelltools.makedirs("build-python3") + autotools.autoreconf("-fi") + + shelltools.cd("build-python3") + shelltools.system("PYTHON=python3 ../configure --prefix=/usr \ + --localstatedir=/var \ + --disable-api-docs \ + --disable-html-docs \ + --disable-static") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + shelltools.cd("build-python3") + autotools.make() + + +def check(): + #autotools.make("check") + pass + +def install(): + shelltools.cd("build-python3") + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + # remove dbus-python-common files in py3 package + pisitools.removeDir("/usr/include/") + pisitools.removeDir("/usr/lib/pkgconfig") + pisitools.removeDir("/usr/share/") diff --git a/programming/language/python3/dbus-python3/files/suppress-warnings.patch b/programming/language/python3/dbus-python3/files/suppress-warnings.patch new file mode 100644 index 0000000000..e5d7aedaf7 --- /dev/null +++ b/programming/language/python3/dbus-python3/files/suppress-warnings.patch @@ -0,0 +1,12 @@ +diff -Naur dbus-python-0.83.0.orig/dbus/connection.py dbus-python-0.83.0/dbus/connection.py +--- dbus-python-0.83.0.orig/dbus/connection.py 2009-04-22 13:58:33.000000000 +0300 ++++ dbus-python-0.83.0/dbus/connection.py 2009-04-22 13:58:40.000000000 +0300 +@@ -239,7 +239,7 @@ + ProxyObjectClass = ProxyObject + + def __init__(self, *args, **kwargs): +- super(Connection, self).__init__(*args, **kwargs) ++ super(Connection, self).__init__() + + # this if-block is needed because shared bus connections can be + # __init__'ed more than once diff --git a/programming/language/python3/dbus-python3/pspec.xml b/programming/language/python3/dbus-python3/pspec.xml new file mode 100644 index 0000000000..feea8e8fad --- /dev/null +++ b/programming/language/python3/dbus-python3/pspec.xml @@ -0,0 +1,61 @@ + + + + + dbus-python3 + http://dbus.freedesktop.org/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + AFL-2.1 + library + D-Bus Python bindings + dbus-python provides a Python module which wraps the D-Bus programming API. + http://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.0.tar.gz + + python3-devel + dbus-devel + dbus-glib-devel + glib2-devel + libpcre-devel + + + suppress-warnings.patch + + + + + dbus-python3 + programming.language.python + D-Bus Python3 bindings + + + python3 + dbus + glib2 + dbus-glib + + + /usr/lib/python3* + + + + + + 2016-06-09 + 1.2.0 + Release Bump + Pisi Linux Community + admin@pisilinux.org + + + 2016-05-08 + 1.2.0 + First release + Kamil Atlı + suvarice@gmail.com + + + diff --git a/programming/language/python3/dbus-python3/translations.xml b/programming/language/python3/dbus-python3/translations.xml new file mode 100644 index 0000000000..aebfdfa5d2 --- /dev/null +++ b/programming/language/python3/dbus-python3/translations.xml @@ -0,0 +1,7 @@ + + + + dbus-python + D-Bus için Python bağlayıcıları + +