attic: unbreak and fix cross build

Only the development version of attic requires cython to build.
This commit is contained in:
Alessio Sergi 2014-11-07 17:17:45 +01:00
parent 9412829c9b
commit 3f57e47623
1 changed files with 11 additions and 5 deletions

View File

@ -1,17 +1,23 @@
# Template file for 'attic' # Template file for 'attic'
pkgname=attic pkgname=attic
version=0.13 version=0.13
revision=2 revision=3
wrksrc=Attic-$version wrksrc="Attic-$version"
build_style=python-module build_style=python-module
hostmakedepends="python3.4-setuptools Cython" hostmakedepends="python3.4-setuptools python3.4-devel libressl-devel"
makedepends="python3.4-devel libressl-devel acl-devel" makedepends="${hostmakedepends/python3.4-setuptools/} acl-devel"
depends="python3.4-msgpack"
python_versions="3.4" python_versions="3.4"
pycompile_module="attic" pycompile_module="attic"
depends="python3.4 python3.4-msgpack"
short_desc="A deduplicating backup program for efficient and secure backups" short_desc="A deduplicating backup program for efficient and secure backups"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>" maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
homepage="https://attic-backup.org/" homepage="https://attic-backup.org/"
license="BSD" license="BSD"
distfiles="${PYPI_SITE}/A/Attic/Attic-$version.tar.gz" distfiles="${PYPI_SITE}/A/Attic/Attic-$version.tar.gz"
checksum=fe34a48998d876686987dc926f6cf78e337bff8ea1c120ecf240ff4fe970673f checksum=fe34a48998d876686987dc926f6cf78e337bff8ea1c120ecf240ff4fe970673f
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i "s|\(possible_openssl_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py
fi
}