diff --git a/srcpkgs/python-BeautifulSoup4/template b/srcpkgs/python-BeautifulSoup4/template new file mode 100644 index 00000000000..7e37d1eec89 --- /dev/null +++ b/srcpkgs/python-BeautifulSoup4/template @@ -0,0 +1,32 @@ +# Template file for 'python-BeautifulSoup4' +pkgname=python-BeautifulSoup4 +version=4.3.2 +revision=1 +noarch=yes +wrksrc="beautifulsoup4-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python" +pycompile_module="bs4" +short_desc="Python2 HTML/XML parser" +maintainer="Alessio Sergi " +homepage="http://www.crummy.com/software/BeautifulSoup/" +license="MIT" +distfiles="https://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-${version}.tar.gz" +checksum=a2b29bd048ca2fe54a046b29770964738872a9747003a371344a93eedf7ad58e + +pre_build() { + sed -i "s,'bs4.tests',," setup.py +} + +python3.4-BeautifulSoup4_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="bs4" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-BeautifulSoup4 b/srcpkgs/python3.4-BeautifulSoup4 new file mode 120000 index 00000000000..3b3f906dbe7 --- /dev/null +++ b/srcpkgs/python3.4-BeautifulSoup4 @@ -0,0 +1 @@ +python-BeautifulSoup4 \ No newline at end of file