Merge branch 'master' of github.com:voidlinux/xbps-packages

This commit is contained in:
Ypnose 2014-07-06 20:57:10 +02:00
commit e123839dd6
15 changed files with 345 additions and 1 deletions

View File

@ -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 <dev@styez.com>"

15
srcpkgs/picard/template Normal file
View File

@ -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 <dominik@honnef.co>"
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

View File

@ -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 <dominik@honnef.co>"
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/
}
}

View File

@ -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 <al3hex@gmail.com>"
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
}
}

View File

@ -0,0 +1,57 @@
# Template file for 'python-sip'
pkgname=python-sip
version=4.16.2
revision=2
wrksrc="sip-${version}"
maintainer="Dominik Honnef <dominik@honnef.co>"
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/
}
}

View File

@ -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 <al3hex@gmail.com>"
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
}
}

View File

@ -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 <al3hex@gmail.com>"
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
}
}

View File

@ -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 <al3hex@gmail.com>"
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
}
}

1
srcpkgs/python3.4-PyQt4 Symbolic link
View File

@ -0,0 +1 @@
python-PyQt4

1
srcpkgs/python3.4-pbr Symbolic link
View File

@ -0,0 +1 @@
python-pbr

1
srcpkgs/python3.4-sip Symbolic link
View File

@ -0,0 +1 @@
python-sip

1
srcpkgs/python3.4-stevedore Symbolic link
View File

@ -0,0 +1 @@
python-stevedore

View File

@ -0,0 +1 @@
python-virtualenv

View File

@ -0,0 +1 @@
python-virtualenv-clone

View File

@ -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 <al3hex@gmail.com>"
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
}