From d1e66d356b6ee6fa95e13e1cc9e9a2ac77d11631 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 14 Dec 2014 15:38:15 +0100 Subject: [PATCH] New package: python-astroid-1.3.2 --- srcpkgs/python-astroid/template | 33 +++++++++++++++++++++++++++++++++ srcpkgs/python3.4-astroid | 1 + 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/python-astroid/template create mode 120000 srcpkgs/python3.4-astroid diff --git a/srcpkgs/python-astroid/template b/srcpkgs/python-astroid/template new file mode 100644 index 00000000000..8cd1bb04020 --- /dev/null +++ b/srcpkgs/python-astroid/template @@ -0,0 +1,33 @@ +# Template file for 'python-astroid' +pkgname=python-astroid +version=1.3.2 +revision=1 +noarch=yes +wrksrc="astroid-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python-logilab-common python-six" +pycompile_module="astroid" +short_desc="Abstract syntax tree for Python2" +maintainer="Alessio Sergi " +homepage="https://bitbucket.org/logilab/astroid" +license="GPL-2, LGPL-2.1" +distfiles="${PYPI_SITE}/a/astroid/astroid-${version}.tar.gz" +checksum=9d1f1803958238e93f2c17e1b38cecfa5bcca40c1bbb99aea80fe10c596f45c1 + +post_install() { + # no tests + rm -rf ${DESTDIR}/usr/lib/python*/site-packages/astroid/tests +} + +python3.4-astroid_package() { + noarch=yes + depends="python3.4-logilab-common python3.4-six" + pycompile_version="3.4" + pycompile_module="astroid" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-astroid b/srcpkgs/python3.4-astroid new file mode 120000 index 00000000000..8ab3dd7a4e8 --- /dev/null +++ b/srcpkgs/python3.4-astroid @@ -0,0 +1 @@ +python-astroid \ No newline at end of file