Updating blink, python-sipsimple and all required dependencies.

Porting everything from unstable to testing, since it doesn't require Python 2.6 anymore.
This commit is contained in:
Daniele 2011-07-03 09:26:05 +00:00
parent ef83843afc
commit 39f19b1666
12 changed files with 394 additions and 0 deletions

42
blink/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=blink
pkgver=20110702
pkgrel=1
pkgdesc="A state of the art, easy to use SIP client. You can use it with any SIP provider or its own fully-featured SIP service."
arch=('any')
url="http://icanblink.com/"
license=('GPL')
depends=('python2' 'pyqt' 'python-sipsimple')
makedepends=('darcs')
source=('blink.desktop')
md5sums=('1260b2ed4d21b24ee62ad1901087f8ac')
_darcstrunk="http://devel.ag-projects.com/repositories"
_darcsmod="blink-qt"
build() {
msg "Starting Darcs pull..."
cd "${srcdir}"
if [ -d "${_darcsmod}/_darcs" ]; then
(cd "${_darcsmod}" && darcs pull -a)
else
darcs get "${_darcstrunk}/${_darcsmod}" "${_darcsmod}"
fi
msg "Darcs pull done (or server timeout)."
}
package() {
cd "${srcdir}/${_darcsmod}"
python2 setup.py install --prefix=/usr --root="${pkgdir}"
install -Dm644 "${srcdir}/blink.desktop" "${pkgdir}/usr/share/applications/blink.desktop"
}
# vim:set ts=2 sw=2 et:

11
blink/blink.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Blink
GenericName=SIP client
Comment=A state of the art, easy to use SIP client
X-GNOME-FullName=Blink SIP client
Type=Application
Exec=blink
Icon=/usr/share/blink/icons/blink48.png
StartupNotify=false
Terminal=false
Categories=Qt;Network;Telephony;

View File

@ -0,0 +1,26 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-application
pkgver=1.2.8
pkgrel=1
pkgdesc="Collection of modules that are useful when building Python applications."
arch=('any')
license=('LGPL')
depends=('python2')
url="http://ag-projects.com/"
source=("http://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('c17364e42f821ca57aa7d3ba7da220d1')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --prefix=/usr --root="${pkgdir}" || return 1
}
# vim:set ts=2 sw=2 et:

26
python-cjson/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-cjson
pkgver=1.0.5
pkgrel=1
pkgdesc="Fast JSON encoder/decoder for Python."
arch=('i686' 'x86_64')
license=('LGPL')
depends=('python2')
url="http://pypi.python.org/pypi/python-cjson"
source=("http://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('4d55b66ecdf0300313af9d030d9644a3')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --prefix=/usr --root="${pkgdir}" || return 1
}
# vim:set ts=2 sw=2 et:

27
python-eventlet/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_pkgname=python-eventlet-0.8
pkgname=python-eventlet
pkgver=0.8.11
pkgrel=1
pkgdesc="Eventlet is a networking library written in Python."
arch=('any')
license=('LGPL')
depends=('python' 'python-greenlet')
url="http://wiki.secondlife.com/wiki/Eventlet"
source=("http://download.ag-projects.com/SipClient/${_pkgname}-${pkgver}.tar.gz")
md5sums=('7450420f50e0fa1b264ff9b6f9da4761')
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --prefix=/usr --root="${pkgdir}" || return 1
}
# vim:set ts=2 sw=2 et:

30
python-gnutls/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-gnutls
pkgver=1.2.1
pkgrel=1
pkgdesc="Python wrapper for the GNU TLS library."
arch=('any')
license=('LGPL')
depends=('python2')
url="http://ag-projects.com/"
source=("http://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('b02d29b47830bbd8aec0b13206c2800e')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --prefix=/usr --root="${pkgdir}" || return 1
# Replace an deprecated gnutls symbol name with a new one.
# See https://bugs.archlinux.org/task/24937 as a reference.
sed -i 's/gnutls_openpgp_privkey_sign_hash/gnutls_privkey_sign_hash/g' "${pkgdir}/usr/lib/python2.7/site-packages/gnutls/library/functions.py"
}
# vim:set ts=2 sw=2 et:

27
python-greenlet/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-greenlet
pkgver=0.4.1
pkgrel=1
pkgdesc="The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called \"tasklets\"."
arch=('i686' 'x86_64')
license=('LGPL')
depends=('python2')
makedepends=('setuptools')
url="http://bitbucket.org/ambroff/greenlet"
source=("http://download.ag-projects.com/SipClient/${pkgname}-${pkgver}.tar.gz")
md5sums=('06038bf679b534dd820ef7b02c657152')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --prefix=/usr --root="${pkgdir}" || return 1
}
# vim:set ts=2 sw=2 et:

39
python-msrplib/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-msrplib
pkgver=20110629
pkgrel=1
pkgdesc="Client library for MSRP protocol and its relay extension (RFC 4975 and RFC4976)."
arch=('any')
url="http://msrprelay.org"
license=('LGPL')
depends=('python2')
makedepends=('darcs')
_darcstrunk="http://devel.ag-projects.com/repositories"
_darcsmod="python-msrplib"
build() {
msg "Starting Darcs pull..."
cd "${srcdir}"
if [ -d "${_darcsmod}/_darcs" ]; then
(cd "${_darcsmod}" && darcs pull -a)
else
darcs get "${_darcstrunk}/${_darcsmod}" "${_darcsmod}"
fi
msg "Darcs pull done (or server timeout)."
}
package() {
cd "${srcdir}/${_darcsmod}"
python2 setup.py install --prefix=/usr --root="${pkgdir}"
}
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,39 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-sipclients
pkgver=20110702
pkgrel=1
pkgdesc="Clients used to test the SIP SIMPLE Client library."
arch=('any')
url="http://sipsimpleclient.com/"
license=('LGPL')
depends=('python-sipsimple')
makedepends=('darcs')
_darcstrunk="http://devel.ag-projects.com/repositories"
_darcsmod="sipclients"
build() {
msg "Starting Darcs pull..."
cd "${srcdir}"
if [ -d "${_darcsmod}/_darcs" ]; then
(cd "${_darcsmod}" && darcs pull -a)
else
darcs get "${_darcstrunk}/${_darcsmod}" "${_darcsmod}"
fi
msg "Darcs pull done (or server timeout)."
}
package() {
cd "${srcdir}/${_darcsmod}"
python2 setup.py install --prefix=/usr --root="${pkgdir}" || return 1
}
# vim:set ts=2 sw=2 et:

54
python-sipsimple/PKGBUILD Normal file
View File

@ -0,0 +1,54 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-sipsimple
pkgver=20110702
pkgrel=1
pkgdesc="SIP SIMPLE Client SDK is a Software Development Kit for easy development of SIP end-points that support rich media like Audio, Instant Messaging, File Transfers, Desktop Sharing and Presence."
arch=('i686' 'x86_64')
license=('LGPL')
depends=('python2' 'openssl' 'gnutls>=2.4.1' 'libxml2>=2.6.32' 'libxslt>=1.1.24' 'python-gnutls>=1.1.9' 'python-application>=1.2.5' 'python-lxml>=2.1.2' 'python-eventlet>=0.8.11' 'python-cjson>=1.0.5' 'python-cython>=0.12.1' 'python-dnspython>=1.6.0' 'twisted>=8.1.0' 'zope-interface>=3.3.1' 'python-imaging>=1.1.6' 'python-dateutil>=1.4' 'python-msrplib' 'python-xcaplib')
makedepends=('setuptools>=0.6c9' 'subversion' 'darcs')
optdepends=('python-sipclients: command line programs to test the SIP SIMPLE Client library')
url="http://sipsimpleclient.com/"
source=('fix-verbose-compilation-and-retry-compiling.patch')
md5sums=('670e7176886b4eb42d7ad931961834f6')
_darcstrunk="http://devel.ag-projects.com/repositories"
_darcsmod="python-sipsimple"
build() {
msg "Starting Darcs pull..."
cd "${srcdir}"
if [ -d "${_darcsmod}/_darcs" ]; then
(cd "${_darcsmod}" && darcs pull -a)
else
darcs get "${_darcstrunk}/${_darcsmod}" "${_darcsmod}"
fi
msg "Darcs pull done (or server timeout)."
cd "${srcdir}/${_darcsmod}"
#
# Enable a verbose build of PJSIP.
#
patch -Np0 -i "${srcdir}/fix-verbose-compilation-and-retry-compiling.patch"
python2 setup.py build_ext --pjsip-clean-compile --pjsip-disable-assertions
}
package() {
cd "${srcdir}/${_darcsmod}"
python2 setup.py install --prefix=/usr --root="${pkgdir}"
#
# Fix an incorrect module name.
#
sed -i 's/backports.weakref/weakref/g' "${pkgdir}/usr/lib/python2.7/site-packages/sipsimple/configuration/__init__.py"
}
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,34 @@
--- setup_pjsip.py 2011-05-11 20:19:56.581641264 +0000
+++ setup_pjsip_patched.py 2011-05-11 20:39:57.993622405 +0000
@@ -154,7 +154,7 @@
self.svn_dir = os.path.join(self.pjsip_build_dir or self.build_temp, "pjsip")
if not os.path.exists(self.svn_dir):
log.info("Fetching PJSIP from SVN repository")
- distutils_exec_process(["svn", "co", "-r", self.pjsip_svn_revision, self.pjsip_svn_repo, self.svn_dir], True, input='t'+os.linesep)
+ distutils_exec_process(["svn", "co", "-r", self.pjsip_svn_revision, self.pjsip_svn_repo, self.svn_dir], False, input='t'+os.linesep)
new_svn_rev = get_svn_revision(self.svn_dir)
svn_updated = True
else:
@@ -246,7 +246,7 @@
env['LDFLAGS'] = "-Lc:/openssl/lib/MinGW"
distutils_exec_process(["bash", "configure"], True, cwd=self.svn_dir, env=env)
else:
- distutils_exec_process(["./configure"], True, cwd=self.svn_dir, env=env)
+ distutils_exec_process(["./configure"], False, cwd=self.svn_dir, env=env)
if "#define PJSIP_HAS_TLS_TRANSPORT 1\n" not in open(os.path.join(self.svn_dir, "pjsip", "include", "pjsip", "sip_autoconf.h")).readlines():
os.remove(os.path.join(self.svn_dir, "build.mak"))
raise DistutilsError("PJSIP TLS support was disabled, OpenSSL development files probably not present on this system")
@@ -284,7 +284,12 @@
def compile_pjsip(self):
log.info("Compiling PJSIP")
- distutils_exec_process([get_make_cmd()], True, cwd=self.svn_dir)
+ compiling_ok = False
+ while not compiling_ok:
+ try:
+ distutils_exec_process([get_make_cmd()], False, cwd=self.svn_dir)
+ compiling_ok = True
+ except: pass
def cython_sources(self, sources, extension):
if extension.name == "sipsimple.core._core":

39
python-xcaplib/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
#
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-xcaplib
pkgver=20110629
pkgrel=1
pkgdesc="Client for managing full or partial XML documents on XCAP servers (RFC 4825)."
arch=('any')
url="http://openxcap.org/"
license=('LGPL')
depends=('python2')
makedepends=('darcs')
_darcstrunk="http://devel.ag-projects.com/repositories"
_darcsmod="python-xcaplib"
build() {
msg "Starting Darcs pull..."
cd "${srcdir}"
if [ -d "${_darcsmod}/_darcs" ]; then
(cd "${_darcsmod}" && darcs pull -a)
else
darcs get "${_darcstrunk}/${_darcsmod}" "${_darcsmod}"
fi
msg "Darcs pull done (or server timeout)."
}
package() {
cd "${srcdir}/${_darcsmod}"
python2 setup.py install --prefix=/usr --root="${pkgdir}" || return 1
}
# vim:set ts=2 sw=2 et: