diff --git a/srcpkgs/chromaprint/template b/srcpkgs/chromaprint/template index 9323bcb18cc..4b0aad02fee 100644 --- a/srcpkgs/chromaprint/template +++ b/srcpkgs/chromaprint/template @@ -1,10 +1,11 @@ # Template file for 'chromaprint' pkgname=chromaprint version=1.1 -revision=2 +revision=3 distfiles="https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-${version}.tar.gz" checksum="6b14d7ea4964581b73bd3f8038c8857c01e446421c1ae99cbbf64de26b47cd12" build_style="cmake" +configure_args="-DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON" hostmakedepends="cmake" makedepends="ffmpeg-devel" maintainer="Steven R " diff --git a/srcpkgs/picard/template b/srcpkgs/picard/template new file mode 100644 index 00000000000..ccc3e27e55d --- /dev/null +++ b/srcpkgs/picard/template @@ -0,0 +1,15 @@ +# Template file for 'picard' +pkgname=picard +version=1.2 +revision=3 +build_style=python-module +pycompile_module="picard" +maintainer="Dominik Honnef " +hostmakedepends="python-devel" +makedepends="libdiscid-devel chromaprint-devel python-devel" +depends="python python-PyQt4 chromaprint libdiscid mutagen>=1.20" +license="GPL-2" +homepage="http://musicbrainz.org/doc/MusicBrainz_Picard" +short_desc="MusicBrainz's audio tagger" +distfiles="http://ftp.musicbrainz.org/pub/musicbrainz/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=a6f66bf4933521270e1f0e586ac7e067563a04aba6e98da5b5acc3fe21727a69 diff --git a/srcpkgs/python-PyQt4/template b/srcpkgs/python-PyQt4/template new file mode 100644 index 00000000000..60dc1cd3c15 --- /dev/null +++ b/srcpkgs/python-PyQt4/template @@ -0,0 +1,59 @@ +# Template file for 'python-PyQt4' +pkgname=python-PyQt4 +version=4.11.1 +revision=2 +wrksrc="PyQt-x11-gpl-${version}" +build_style= +maintainer="Dominik Honnef " +hostmakedepends="python-sip python3.4-sip python-devel python3.4-devel qt-qmake qt-devel>=4" +makedepends="${hostmakedepends}" +depends="python python-sip" +license="GPL" +homepage="http://www.riverbankcomputing.co.uk/software/pyqt/intro" +short_desc="Python2 bindings for the Qt toolkit" +distfiles="http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-${version}/PyQt-x11-gpl-${version}.tar.gz" +checksum="df9d7358d70748efa5b84fa3fe9e182a80c39ac590157daaabcc2618df176da3" + +_do_pyqt_build() { + local v=$1 tools=${2:-yes} suffix=$3 tools_flag + [[ "$tools" != "yes" ]] && tools_flag="--no-tools" + python${v} configure-ng.py \ + --confirm-license \ + --bindir="/usr/bin" \ + --sipdir="/usr/share/sip${v}" \ + --sip="/usr/bin/sip${v}" \ + --destdir="/usr/lib/python${v}/site-packages" \ + --assume-shared \ + $tools_flag \ + INCDIR="${XBPS_CROSS_BASE}/usr/include/python${v}${suffix}" \ + CC="${CC}" \ + CFLAGS="${CFLAGS}" \ + CXX="${CXX}" \ + CXXFLAGS="${CXXFLAGS}" \ + LINK="${CXX}" \ + LINK_SHLIB="${CXX}" \ + LFLAGS="${LDFLAGS}" \ + STRIP="" + + make $makejobs + make INSTALL_ROOT=${DESTDIR} install +} + +do_build() { + _do_pyqt_build 2.7 + _do_pyqt_build 3.4 no "m" +} + +do_install() { + true +} + +python3.4-PyQt4_package() { + depends="python3.4 python3.4-sip" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + mkdir -p ${PKGDESTDIR}/usr/{lib,share} + mv ${DESTDIR}/usr/lib/python3.4 ${PKGDESTDIR}/usr/lib/ + mv ${DESTDIR}/usr/share/sip3.4 ${PKGDESTDIR}/usr/share/ + } +} diff --git a/srcpkgs/python-pbr/template b/srcpkgs/python-pbr/template new file mode 100644 index 00000000000..2117206f1db --- /dev/null +++ b/srcpkgs/python-pbr/template @@ -0,0 +1,29 @@ +# Template file for 'python-pbr' +pkgname=python-pbr +version=0.8.2 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +python_versions="2.7 3.4" +build_style=python-module +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel" +depends="python" +pycompile_module="pbr" +short_desc="Python2 build reasonableness" +maintainer="Alessio Sergi " +homepage="https://pypi.python.org/pypi/pbr" +license="Apache-2.0" +distfiles="https://pypi.python.org/packages/source/p/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz" +checksum=eef2ace8d65d5902582cbc9ad3b2ecff0e86a6f90ad4837d8b17d568dd9dd20e + +python3.4-pbr_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="pbr" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python-sip/template b/srcpkgs/python-sip/template new file mode 100644 index 00000000000..758497d0b85 --- /dev/null +++ b/srcpkgs/python-sip/template @@ -0,0 +1,57 @@ +# Template file for 'python-sip' +pkgname=python-sip +version=4.16.2 +revision=2 +wrksrc="sip-${version}" +maintainer="Dominik Honnef " +hostmakedepends="python-devel python3.4-devel" +makedepends="${hostmakedepends}" +depends="python" +license="GPL" +homepage="http://www.riverbankcomputing.co.uk/software/sip/intro" +short_desc="Python extension module generator for C and C++ libraries" +distfiles="http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.2/sip-4.16.2.tar.gz" +checksum=a55a2324a46ab42e42ae57c52ef06583b17d25c987973fe2e7ff2e8a649294ce + +_do_sip_build() { + local v=$1 suffix=$2 + + python${v} configure.py \ + --bindir="/usr/bin" \ + --sipdir="/usr/share/sip${v}" \ + --destdir="/usr/lib/python${v}/site-packages" \ + --incdir="/usr/include/python${v}${suffix}" \ + INCDIR="${XBPS_CROSS_BASE}/usr/include/python${v}${suffix}" \ + CC="${CC}" \ + CFLAGS="${CFLAGS}" \ + CXX="${CXX}" \ + CXXFLAGS="${CXXFLAGS}" \ + LINK="${CXX}" \ + LINK_SHLIB="${CXX}" \ + LFLAGS="${LDFLAGS}" \ + STRIP="" + + make $makejobs + make DESTDIR=${DESTDIR} install + mv ${DESTDIR}/usr/bin/sip ${DESTDIR}/usr/bin/sip${v} +} + +do_build() { + _do_sip_build 2.7 + _do_sip_build 3.4 "m" +} + +do_install() { + ln -s /usr/bin/sip2.7 ${DESTDIR}/usr/bin/sip +} + +python3.4-sip_package() { + depends="python3.4" + pkg_install() { + sed -i -e "s|'/usr/bin/sip'|'/usr/bin/sip3.4'|g" ${DESTDIR}/usr/lib/python3.4/site-packages/sipconfig.py + mkdir -p ${PKGDESTDIR}/usr/{lib,bin,include} + mv ${DESTDIR}/usr/bin/sip3.4 ${PKGDESTDIR}/usr/bin/ + mv ${DESTDIR}/usr/lib/python3.4 ${PKGDESTDIR}/usr/lib/ + mv ${DESTDIR}/usr/include/python3.4m ${PKGDESTDIR}/usr/include/ + } +} diff --git a/srcpkgs/python-stevedore/template b/srcpkgs/python-stevedore/template new file mode 100644 index 00000000000..d2473ca186e --- /dev/null +++ b/srcpkgs/python-stevedore/template @@ -0,0 +1,29 @@ +# Template file for 'python-stevedore' +pkgname=python-stevedore +version=0.15 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +python_versions="2.7 3.4" +build_style=python-module +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel python-pbr python3.4-pbr" +depends="python" +pycompile_module="stevedore" +short_desc="Manage dynamic plugins for Python2 applications" +maintainer="Alessio Sergi " +homepage="https://git.openstack.org/cgit/openstack/stevedore" +license="Apache-2.0" +distfiles="https://pypi.python.org/packages/source/s/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz" +checksum=bec9269cbfa58de4f0849ec79bb7d54eeeed9df8b5fbfa1637fbc68062822847 + +python3.4-stevedore_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="stevedore" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python-virtualenv-clone/template b/srcpkgs/python-virtualenv-clone/template new file mode 100644 index 00000000000..cea962d53eb --- /dev/null +++ b/srcpkgs/python-virtualenv-clone/template @@ -0,0 +1,62 @@ +# Template file for 'python-virtualenv-clone' +pkgname=python-virtualenv-clone +version=0.2.5 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +python_versions="2.7 3.4" +build_style=python-module +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel" +depends="python python-setuptools" +pycompile_module="clonevirtualenv.py" +short_desc="Script to clone virtualenvs (Python2)" +maintainer="Alessio Sergi " +homepage="https://github.com/edwardgeorge/virtualenv-clone" +license="MIT" +distfiles="https://pypi.python.org/packages/source/v/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz" +checksum=7087ba4eb48acfd5209a3fd03e15d072f28742619127c98333057e32748d91c4 + +post_extract() { + cp -a ${wrksrc} /tmp/python2.7-build + cp -a ${wrksrc} /tmp/python3.4-build + mv /tmp/python{2.7,3.4}-build ${wrksrc} +} + +pre_build() { + cd ${wrksrc}/python3.4-build + sed -i 's,virtualenv-clone=,virtualenv-clone3=,' setup.py +} + +do_build() { + cd ${wrksrc}/python2.7-build + python setup.py build + + cd ${wrksrc}/python3.4-build + python3.4 setup.py build +} + +do_install() { + cd ${wrksrc}/python2.7-build + python setup.py install --root=${DESTDIR} + + cd ${wrksrc}/python3.4-build + python3.4 setup.py install --root=${DESTDIR} +} + +post_install() { + vlicense LICENSE +} + +python3.4-virtualenv-clone_package() { + noarch=yes + depends="python3.4 python3.4-setuptools" + pycompile_version="3.4" + pycompile_module="clonevirtualenv.py" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/bin/virtualenv-clone3 + vmove usr/lib/python3.4 + vlicense ${wrksrc}/LICENSE + } +} diff --git a/srcpkgs/python-virtualenv/template b/srcpkgs/python-virtualenv/template new file mode 100644 index 00000000000..0a64c2eba81 --- /dev/null +++ b/srcpkgs/python-virtualenv/template @@ -0,0 +1,64 @@ +# Template file for 'python-virtualenv' +pkgname=python-virtualenv +version=1.11.6 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +python_versions="2.7 3.4" +build_style=python-module +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel" +depends="python python-setuptools" +pycompile_module="virtualenv.py" +short_desc="Virtual Python2 environment builder" +maintainer="Alessio Sergi " +homepage="https://virtualenv.pypa.io/" +license="MIT" +distfiles="https://pypi.python.org/packages/source/v/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz" +checksum=3e7a4c151e2ee97f51db0215bfd2a073b04a91e9786df6cb67c916f16abe04f7 + +post_extract() { + cp -a ${wrksrc} /tmp/python2.7-build + cp -a ${wrksrc} /tmp/python3.4-build + mv /tmp/python{2.7,3.4}-build ${wrksrc} +} + +pre_build() { + cd ${wrksrc}/python3.4-build + sed -i 's,virtualenv=,virtualenv3=,' setup.py + sed -i 's,#!/usr/bin/env python,&3.4,' virtualenv.py +} + +do_build() { + cd ${wrksrc}/python2.7-build + python setup.py build + + cd ${wrksrc}/python3.4-build + python3.4 setup.py build +} + +do_install() { + cd ${wrksrc}/python2.7-build + python setup.py install --root=${DESTDIR} + + cd ${wrksrc}/python3.4-build + python3.4 setup.py install --root=${DESTDIR} +} + +post_install() { + vlicense LICENSE.txt LICENSE +} + +python3.4-virtualenv_package() { + noarch=yes + depends="python3.4 python3.4-setuptools" + pycompile_version="3.4" + pycompile_module="virtualenv.py" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/bin/virtualenv-3.4 + vmove usr/bin/virtualenv3 + vmove usr/lib/python3.4 + vlicense ${wrksrc}/LICENSE.txt LICENSE + } +} diff --git a/srcpkgs/python3.4-PyQt4 b/srcpkgs/python3.4-PyQt4 new file mode 120000 index 00000000000..fe02248deea --- /dev/null +++ b/srcpkgs/python3.4-PyQt4 @@ -0,0 +1 @@ +python-PyQt4 \ No newline at end of file diff --git a/srcpkgs/python3.4-pbr b/srcpkgs/python3.4-pbr new file mode 120000 index 00000000000..7d5e74920c1 --- /dev/null +++ b/srcpkgs/python3.4-pbr @@ -0,0 +1 @@ +python-pbr \ No newline at end of file diff --git a/srcpkgs/python3.4-sip b/srcpkgs/python3.4-sip new file mode 120000 index 00000000000..a934e10e92a --- /dev/null +++ b/srcpkgs/python3.4-sip @@ -0,0 +1 @@ +python-sip \ No newline at end of file diff --git a/srcpkgs/python3.4-stevedore b/srcpkgs/python3.4-stevedore new file mode 120000 index 00000000000..8b75fb5ae1b --- /dev/null +++ b/srcpkgs/python3.4-stevedore @@ -0,0 +1 @@ +python-stevedore \ No newline at end of file diff --git a/srcpkgs/python3.4-virtualenv b/srcpkgs/python3.4-virtualenv new file mode 120000 index 00000000000..29aed0017f5 --- /dev/null +++ b/srcpkgs/python3.4-virtualenv @@ -0,0 +1 @@ +python-virtualenv \ No newline at end of file diff --git a/srcpkgs/python3.4-virtualenv-clone b/srcpkgs/python3.4-virtualenv-clone new file mode 120000 index 00000000000..284592e2385 --- /dev/null +++ b/srcpkgs/python3.4-virtualenv-clone @@ -0,0 +1 @@ +python-virtualenv-clone \ No newline at end of file diff --git a/srcpkgs/virtualenvwrapper/template b/srcpkgs/virtualenvwrapper/template new file mode 100644 index 00000000000..b821ccc5bf6 --- /dev/null +++ b/srcpkgs/virtualenvwrapper/template @@ -0,0 +1,22 @@ +# Template file for 'virtualenvwrapper' +pkgname=virtualenvwrapper +version=4.3 +revision=1 +noarch=yes +wrksrc="${pkgname}-${version}" +build_style=python-module +hostmakedepends="python-setuptools" +makedepends="python-devel python-pbr" +depends="python python-virtualenv python3.4-virtualenv python-virtualenv-clone + python-stevedore" +pycompile_module="virtualenvwrapper" +short_desc="Enhancements to virtualenv" +maintainer="Alessio Sergi " +homepage="http://virtualenvwrapper.readthedocs.org/" +license="MIT" +distfiles="https://pypi.python.org/packages/source/v/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=514cbc22218347bf7b54bdbe49e1a5f550d2d53b1ad2491c10e91ddf48fb528f + +post_install() { + vlicense LICENSE +}