diff --git a/programming/language/python/telepathy-python/actions.py b/programming/language/python/telepathy-python/actions.py new file mode 100644 index 0000000000..d94e63063c --- /dev/null +++ b/programming/language/python/telepathy-python/actions.py @@ -0,0 +1,23 @@ +#!/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 autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + shelltools.unlink("py-compile") + autotools.configure() + +def build(): + autotools.make() + +def install(): + pisitools.dosed("src/Makefile", "\s_generated\/errors\.py.*", deleteLine=True) + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README") diff --git a/programming/language/python/telepathy-python/files/dont-compile-py.patch b/programming/language/python/telepathy-python/files/dont-compile-py.patch new file mode 100644 index 0000000000..b8c7c01346 --- /dev/null +++ b/programming/language/python/telepathy-python/files/dont-compile-py.patch @@ -0,0 +1,125 @@ +diff -Nuar telepathy-python-0.15.15.orig/Makefile.in telepathy-python-0.15.15/Makefile.in +--- telepathy-python-0.15.15.orig/Makefile.in 2010-01-20 15:47:58.000000000 +0200 ++++ telepathy-python-0.15.15/Makefile.in 2010-02-16 14:34:28.333117263 +0200 +@@ -34,7 +34,7 @@ + subdir = . + DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ +- ChangeLog INSTALL NEWS install-sh missing py-compile ++ ChangeLog INSTALL NEWS install-sh missing + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 + am__aclocal_m4_deps = $(top_srcdir)/configure.ac + am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ +diff -Nuar telepathy-python-0.15.15.orig/src/client/Makefile.in telepathy-python-0.15.15/src/client/Makefile.in +--- telepathy-python-0.15.15.orig/src/client/Makefile.in 2010-01-20 15:47:58.000000000 +0200 ++++ telepathy-python-0.15.15/src/client/Makefile.in 2010-02-16 14:38:54.061356515 +0200 +@@ -71,7 +71,6 @@ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' + am__installdirs = "$(DESTDIR)$(clientdir)" +-py_compile = $(top_srcdir)/py-compile + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + ACLOCAL = @ACLOCAL@ + AMTAR = @AMTAR@ +@@ -218,14 +217,7 @@ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(clientdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(clientdir)" || exit $$?; \ +- done || exit $$?; \ +- if test -n "$$dlist"; then \ +- if test -z "$(DESTDIR)"; then \ +- PYTHON=$(PYTHON) $(py_compile) --basedir "$(clientdir)" $$dlist; \ +- else \ +- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(clientdir)" $$dlist; \ +- fi; \ +- else :; fi ++ done || exit $$?; + + uninstall-clientPYTHON: + @$(NORMAL_UNINSTALL) +diff -Nuar telepathy-python-0.15.15.orig/src/Makefile.in telepathy-python-0.15.15/src/Makefile.in +--- telepathy-python-0.15.15.orig/src/Makefile.in 2010-01-20 15:47:58.000000000 +0200 ++++ telepathy-python-0.15.15/src/Makefile.in 2010-02-16 14:38:41.068107412 +0200 +@@ -79,7 +79,6 @@ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' + am__installdirs = "$(DESTDIR)$(generateddir)" \ + "$(DESTDIR)$(versiondir)" "$(DESTDIR)$(telepathydir)" +-py_compile = $(top_srcdir)/py-compile + RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive + AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ +@@ -288,14 +287,7 @@ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(generateddir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(generateddir)" || exit $$?; \ +- done || exit $$?; \ +- if test -n "$$dlist"; then \ +- if test -z "$(DESTDIR)"; then \ +- PYTHON=$(PYTHON) $(py_compile) --basedir "$(generateddir)" $$dlist; \ +- else \ +- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(generateddir)" $$dlist; \ +- fi; \ +- else :; fi ++ done || exit $$?; + + uninstall-nodist_generatedPYTHON: + @$(NORMAL_UNINSTALL) +@@ -326,14 +318,7 @@ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(versiondir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(versiondir)" || exit $$?; \ +- done || exit $$?; \ +- if test -n "$$dlist"; then \ +- if test -z "$(DESTDIR)"; then \ +- PYTHON=$(PYTHON) $(py_compile) --basedir "$(versiondir)" $$dlist; \ +- else \ +- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(versiondir)" $$dlist; \ +- fi; \ +- else :; fi ++ done || exit $$?; + + uninstall-nodist_versionPYTHON: + @$(NORMAL_UNINSTALL) +@@ -364,14 +349,7 @@ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(telepathydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(telepathydir)" || exit $$?; \ +- done || exit $$?; \ +- if test -n "$$dlist"; then \ +- if test -z "$(DESTDIR)"; then \ +- PYTHON=$(PYTHON) $(py_compile) --basedir "$(telepathydir)" $$dlist; \ +- else \ +- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(telepathydir)" $$dlist; \ +- fi; \ +- else :; fi ++ done || exit $$?; + + uninstall-telepathyPYTHON: + @$(NORMAL_UNINSTALL) +diff -Nuar telepathy-python-0.15.15.orig/src/server/Makefile.in telepathy-python-0.15.15/src/server/Makefile.in +--- telepathy-python-0.15.15.orig/src/server/Makefile.in 2010-01-20 15:47:58.000000000 +0200 ++++ telepathy-python-0.15.15/src/server/Makefile.in 2010-02-16 14:39:09.238088477 +0200 +@@ -71,7 +71,6 @@ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' + am__installdirs = "$(DESTDIR)$(serverdir)" +-py_compile = $(top_srcdir)/py-compile + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + ACLOCAL = @ACLOCAL@ + AMTAR = @AMTAR@ +@@ -222,14 +221,7 @@ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(serverdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(serverdir)" || exit $$?; \ +- done || exit $$?; \ +- if test -n "$$dlist"; then \ +- if test -z "$(DESTDIR)"; then \ +- PYTHON=$(PYTHON) $(py_compile) --basedir "$(serverdir)" $$dlist; \ +- else \ +- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(serverdir)" $$dlist; \ +- fi; \ +- else :; fi ++ done || exit $$?; + + uninstall-serverPYTHON: + @$(NORMAL_UNINSTALL) diff --git a/programming/language/python/telepathy-python/files/python-telepathy-no_double_errors-py.patch b/programming/language/python/telepathy-python/files/python-telepathy-no_double_errors-py.patch new file mode 100644 index 0000000000..69193d233a --- /dev/null +++ b/programming/language/python/telepathy-python/files/python-telepathy-no_double_errors-py.patch @@ -0,0 +1,18 @@ +diff --git a/src/Makefile.am b/src/Makefile.am +index 135f2f0..ede1fc3 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -13,10 +13,12 @@ telepathy_PYTHON = \ + spec_dir = $(top_srcdir)/spec + spec_files := $(patsubst $(spec_dir)%.xml,_generated%.py,$(wildcard $(spec_dir)/*.xml)) + ++# We leave _generated/errors.py out of here because there exists a ++# spec/errors.xml file, so that means there'll be a ++# _generated/errors.py in $(spec_files). See fd.o#32526 + BUILT_SOURCES = \ + _generated/interfaces.py \ + _generated/constants.py \ +- _generated/errors.py \ + _generated/__init__.py \ + $(spec_files) + diff --git a/programming/language/python/telepathy-python/files/telepathy-python-0.15.19-mkdir_p.patch b/programming/language/python/telepathy-python/files/telepathy-python-0.15.19-mkdir_p.patch new file mode 100644 index 0000000000..be4d9bfa71 --- /dev/null +++ b/programming/language/python/telepathy-python/files/telepathy-python-0.15.19-mkdir_p.patch @@ -0,0 +1,30 @@ +From 95f5183700cad0c713bc4f5757555b45ce173ed8 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev +Date: Sun, 24 Jun 2012 21:02:04 -0400 +Subject: [PATCH] Stop using obsolete $(mkdir_p) for automake-1.12 + compatibility + +$(mkdir_p) was declared obsolete in automake-1.10, deprecated in 1.12, +and removed in 1.13. + +https://bugs.freedesktop.org/show_bug.cgi?id=51392 +--- + src/Makefile.am | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index ede1fc3..154c56e 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -57,7 +57,7 @@ _generated/errors.py: $(tools_dir)/python-errors-generator.xsl $(wildcard $(spec + $(spec_dir)/all.xml + + _generated/__init__.py: +- $(AM_V_GEN)$(mkdir_p) $(dir $@) ++ $(AM_V_GEN)$(MKDIR_P) $(dir $@) + @echo "# Placeholder for package" > $@ + + _generated/%.py: $(tools_dir)/spec-to-python.xsl $(spec_dir)/%.xml +-- +1.7.8.6 + diff --git a/programming/language/python/telepathy-python/pspec.xml b/programming/language/python/telepathy-python/pspec.xml new file mode 100644 index 0000000000..be85f31682 --- /dev/null +++ b/programming/language/python/telepathy-python/pspec.xml @@ -0,0 +1,71 @@ + + + + + telepathy-python + http://telepathy.freedesktop.org/wiki + + PisiLinux Community + admins@pisilinux.org + + LGPLv2+ + library + Python libraries for Telepathy + telepathy-python is the Python libraries for use in Telepathy client and connection managers. + http://telepathy.freedesktop.org/releases/telepathy-python/telepathy-python-0.15.19.tar.gz + + libxslt-devel + + + telepathy-python-0.15.19-mkdir_p.patch + dont-compile-py.patch + python-telepathy-no_double_errors-py.patch + + + + + telepathy-python + + /usr/lib + /usr/share/doc + + + + + + 2015-11-22 + 0.15.19 + Rebuild + Alihan Öztürk + alihan@pisilinux.org + + + 2013-08-03 + 0.15.19 + Fix build + Marcin Bojara + marcin@pisilinux.org + + + 2013-06-16 + 0.15.19 + Fixed + Osman Erkan + osman.erkan@pisilinux.org + + + 2013-06-15 + 0.15.19 + Version bump + Aydın Demirel + aydin@demirel.web.tr + + + 2010-10-13 + 0.15.18 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/programming/language/python/telepathy-python/translations.xml b/programming/language/python/telepathy-python/translations.xml new file mode 100644 index 0000000000..628f8c9433 --- /dev/null +++ b/programming/language/python/telepathy-python/translations.xml @@ -0,0 +1,8 @@ + + + + telepathy-python + Telepathy için Python kitaplıkları + telepathy-pyhon Telepathy istemcileri ve bağlantı yöneticilerinde kullanılmak üzere tasarlanmış Python kitaplığıdır. + +