mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
python-curl: rebuild against libressl-2.2.1
This commit is contained in:
parent
6b6f6fa272
commit
c300c11771
1 changed files with 3 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-curl'
|
# Template file for 'python-curl'
|
||||||
pkgname=python-curl
|
pkgname=python-curl
|
||||||
version=7.19.5.1
|
version=7.19.5.1
|
||||||
revision=3
|
revision=4
|
||||||
wrksrc="pycurl-${version}"
|
wrksrc="pycurl-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
|
@ -17,18 +17,8 @@ checksum=6e9770f80459757f73bd71af82fbb29cd398b38388cdf1beab31ea91a331bc6c
|
||||||
|
|
||||||
CFLAGS="-fno-strict-aliasing"
|
CFLAGS="-fno-strict-aliasing"
|
||||||
|
|
||||||
_doc_install() {
|
pre_build() {
|
||||||
vmkdir usr/share/doc/${pkgname}
|
sed -i "/setup_args\['data_files'\] = /d" setup.py
|
||||||
vcopy "examples AUTHORS ChangeLog README.rst RELEASE-NOTES.rst" usr/share/doc/${pkgname}
|
|
||||||
# install licenses
|
|
||||||
vlicense COPYING-LGPL
|
|
||||||
vlicense COPYING-MIT
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
|
||||||
# remove documentation as installed by setup.py
|
|
||||||
rm -rf ${DESTDIR}/usr/share/doc
|
|
||||||
_doc_install
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-curl_package() {
|
python3.4-curl_package() {
|
||||||
|
@ -37,8 +27,5 @@ python3.4-curl_package() {
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
cd ${wrksrc}
|
|
||||||
find . -name '*.py' -exec sed -i -e 's,#! /usr/bin/env python,&3.4,' {} +
|
|
||||||
_doc_install
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue