2014-06-24 13:13:13 +02:00
|
|
|
# Template file for 'python-curl'
|
|
|
|
pkgname=python-curl
|
2015-01-08 08:01:04 +01:00
|
|
|
version=7.19.5.1
|
|
|
|
revision=1
|
2014-06-24 13:13:13 +02:00
|
|
|
wrksrc="pycurl-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
2014-06-27 10:33:14 +02:00
|
|
|
hostmakedepends="python-devel python3.4-devel"
|
2014-07-14 17:37:37 +02:00
|
|
|
makedepends="libressl-devel libcurl-devel ${hostmakedepends}"
|
2014-06-24 13:13:13 +02:00
|
|
|
replaces="pycurl>=0"
|
|
|
|
pycompile_module="curl"
|
|
|
|
short_desc="Python2 interface to cURL library"
|
|
|
|
homepage="http://pycurl.sourceforge.net/"
|
|
|
|
license="LGPL-2.1, MIT"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
distfiles="http://pycurl.sourceforge.net/download/pycurl-${version}.tar.gz"
|
2015-01-08 08:01:04 +01:00
|
|
|
checksum=6e9770f80459757f73bd71af82fbb29cd398b38388cdf1beab31ea91a331bc6c
|
2014-06-24 13:13:13 +02:00
|
|
|
|
2014-06-27 10:33:14 +02:00
|
|
|
CFLAGS="-fno-strict-aliasing"
|
2014-06-24 13:13:13 +02:00
|
|
|
|
2014-06-27 10:01:47 +02:00
|
|
|
_doc_install() {
|
2014-08-20 20:30:17 +02:00
|
|
|
vmkdir usr/share/doc/${pkgname}
|
|
|
|
vcopy "examples AUTHORS ChangeLog README.rst RELEASE-NOTES.rst" usr/share/doc/${pkgname}
|
2014-06-24 13:13:13 +02:00
|
|
|
# install licenses
|
2014-08-20 20:30:17 +02:00
|
|
|
vlicense COPYING-LGPL
|
|
|
|
vlicense COPYING-MIT
|
2014-06-24 13:13:13 +02:00
|
|
|
}
|
|
|
|
|
2014-06-27 10:01:47 +02:00
|
|
|
post_install() {
|
|
|
|
# remove documentation as installed by setup.py
|
|
|
|
rm -rf ${DESTDIR}/usr/share/doc
|
|
|
|
_doc_install
|
|
|
|
}
|
|
|
|
|
2014-06-24 13:13:13 +02:00
|
|
|
python3.4-curl_package() {
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="curl"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
2014-08-20 20:30:17 +02:00
|
|
|
vmove usr/lib/python3.4
|
2014-06-24 13:13:13 +02:00
|
|
|
cd ${wrksrc}
|
2014-06-27 10:01:47 +02:00
|
|
|
find . -name '*.py' -exec sed -i -e 's,#! /usr/bin/env python,&3.4,' {} +
|
|
|
|
_doc_install
|
2014-06-24 13:13:13 +02:00
|
|
|
}
|
|
|
|
}
|