From 13cb50803ea4ac4dd07d1b344e842517971f2cc2 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 6 Jun 2014 10:56:23 +0200 Subject: [PATCH] python-Pygments: build python3 module too --- srcpkgs/python-Pygments/template | 19 +++++++++++++++---- srcpkgs/python3-Pygments | 1 + 2 files changed, 16 insertions(+), 4 deletions(-) create mode 120000 srcpkgs/python3-Pygments diff --git a/srcpkgs/python-Pygments/template b/srcpkgs/python-Pygments/template index daed40dbda..6b70ef80e2 100644 --- a/srcpkgs/python-Pygments/template +++ b/srcpkgs/python-Pygments/template @@ -1,16 +1,27 @@ # Template file for 'python-Pygments' pkgname=python-Pygments version=1.6 -revision=1 +revision=2 wrksrc="Pygments-${version}" build_style=python-module -makedepends="python-devel python-distribute" +hostmakedepends="python-distribute python3-distribute" +makedepends="python-devel python3-devel" +depends="python>=2.7" +python_versions="2.7 3.3" noarch="yes" pycompile_module="pygments" -depends="python>=2.7 python-distribute" -short_desc="Python syntax highlighter" +short_desc="Python2 syntax highlighter" maintainer="Juan RP " homepage="http://pygments.org/" license="BSD" distfiles="http://pypi.python.org/packages/source/P/Pygments/Pygments-${version}.tar.gz" checksum=799ed4caf77516e54440806d8d9cd82a7607dfdf4e4fb643815171a4b5c921c0 + +python3-Pygments_package() { + noarch="yes" + depends="python3" + short_desc="${short_desc//Python2/Python3}" + pkg_install() { + vmove /usr/lib/python3.3 + } +} diff --git a/srcpkgs/python3-Pygments b/srcpkgs/python3-Pygments new file mode 120000 index 0000000000..60428a1bfb --- /dev/null +++ b/srcpkgs/python3-Pygments @@ -0,0 +1 @@ +python-Pygments \ No newline at end of file