New package: python-curl-7.19.3.1 with 3.4 subpkg; replaces pycurl; revbump affected pkgs
urlgrabber: renamed to python-urlgrabber (python2-only)
This commit is contained in:
parent
b66a3dfa38
commit
96fe7d6513
|
@ -1,14 +0,0 @@
|
|||
# Template file for 'pycurl'
|
||||
pkgname=pycurl
|
||||
version=7.19.0
|
||||
revision=4
|
||||
build_style=python-module
|
||||
hostmakedepends="python-devel libcurl-devel"
|
||||
makedepends="openssl-devel libcurl-devel python-devel"
|
||||
pycompile_module="curl"
|
||||
short_desc="Python interface to the CURL library"
|
||||
homepage="http://pycurl.sourceforge.net/"
|
||||
license="LGPL-2.1/MIT"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
distfiles="http://pycurl.sourceforge.net/download/${pkgname}-${version}.tar.gz"
|
||||
checksum=eb782dfcc5a7c023539a077462b83c167e178128ee9f7201665b9fbb1a8b0642
|
|
@ -0,0 +1,74 @@
|
|||
# Template file for 'python-curl'
|
||||
pkgname=python-curl
|
||||
version=7.19.3.1
|
||||
revision=1
|
||||
wrksrc="pycurl-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="libcurl-devel python-devel python3.4-devel"
|
||||
makedepends="openssl-devel ${hostmakedepends}"
|
||||
depends="python curl"
|
||||
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"
|
||||
checksum=c0d673fe99a9de07239eabe77c798f1b043f60c02afaec1430ceaf59d7501a4f
|
||||
|
||||
CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
|
||||
post_extract() {
|
||||
cp -a ${wrksrc} /tmp/python2-build
|
||||
cp -a ${wrksrc} /tmp/python3.4-build
|
||||
mv /tmp/python{2,3.4}-build ${wrksrc}
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
cd ${wrksrc}/python2-build
|
||||
sed -i -e 's/"COPYING-LGPL", "COPYING-MIT",//' \
|
||||
-e 's/"share", "doc", PACKAGE/"share", "doc", "python-curl"/' setup.py
|
||||
|
||||
cd ${wrksrc}/python3.4-build
|
||||
find . -name '*.py' -exec sed -i -e 's|#! /usr/bin/env python|&3.4|' {} +
|
||||
sed -i -e 's/"COPYING-LGPL", "COPYING-MIT",//' \
|
||||
-e 's/"share", "doc", PACKAGE/"share", "doc", "python3.4-curl"/' setup.py
|
||||
}
|
||||
|
||||
do_build() {
|
||||
cd ${wrksrc}/python2-build
|
||||
python setup.py build
|
||||
|
||||
cd ${wrksrc}/python3.4-build
|
||||
python3.4 setup.py build
|
||||
}
|
||||
|
||||
do_install() {
|
||||
cd ${wrksrc}/python2-build
|
||||
python setup.py install --root=${DESTDIR}
|
||||
|
||||
cd ${wrksrc}/python3.4-build
|
||||
python3.4 setup.py install --root=${DESTDIR}
|
||||
}
|
||||
|
||||
post_install() {
|
||||
# install licenses
|
||||
vinstall COPYING-LGPL 644 usr/share/licenses/${pkgname}
|
||||
vinstall COPYING-MIT 644 usr/share/licenses/${pkgname}
|
||||
}
|
||||
|
||||
python3.4-curl_package() {
|
||||
depends="python3.4 curl"
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="curl"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
pkg_install() {
|
||||
vmove /usr/lib/python3.4
|
||||
vmove /usr/share/doc/python3.4-curl
|
||||
# install licenses
|
||||
cd ${wrksrc}
|
||||
vinstall COPYING-LGPL 644 usr/share/licenses/${pkgname}
|
||||
vinstall COPYING-MIT 644 usr/share/licenses/${pkgname}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
# Template file for 'python-urlgrabber'
|
||||
pkgname=python-urlgrabber
|
||||
version=3.10.1
|
||||
revision=1
|
||||
wrksrc="urlgrabber-${version}"
|
||||
build_style=python-module
|
||||
hostmakedepends="python python-curl"
|
||||
makedepends="${hostmakedepends}"
|
||||
depends="${makedepends}"
|
||||
replaces="urlgrabber>=0"
|
||||
noarch=yes
|
||||
pycompile_module="urlgrabber"
|
||||
short_desc="A high-level cross-protocol url-grabber (Python2)"
|
||||
homepage="http://urlgrabber.baseurl.org/"
|
||||
license="LGPL-2.1"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
distfiles="http://urlgrabber.baseurl.org/download/urlgrabber-${version}.tar.gz"
|
||||
checksum=06b13ff8d527dba3aee04069681b2c09c03117592d5485a80ae4b807cdf33476
|
|
@ -0,0 +1 @@
|
|||
python-curl
|
|
@ -1,14 +1,14 @@
|
|||
# Template file for 'system-config-printer'
|
||||
pkgname=system-config-printer
|
||||
version=1.4.4
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-udev-rules"
|
||||
make_build_args="udevhelperdir=/usr/lib/udev"
|
||||
make_install_args="udevhelperdir=/usr/lib/udev udevrulesdir=/usr/lib/udev/rules.d"
|
||||
hostmakedepends="pkg-config intltool xmlto desktop-file-utils"
|
||||
makedepends="gtk+3-devel cups-devel libusb-devel systemd-devel
|
||||
pycups python-dbus notify-python pycurl pysmbc python-gobject gir-freedesktop
|
||||
pycups python-dbus notify-python python-curl pysmbc python-gobject gir-freedesktop
|
||||
gnome-keyring"
|
||||
depends="python pycups python-dbus notify-python pycurl pysmbc python-gobject
|
||||
gir-freedesktop gnome-keyring"
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
# Template file for 'urlgrabber'
|
||||
pkgname=urlgrabber
|
||||
version=3.9.1
|
||||
revision=3
|
||||
build_style=python-module
|
||||
hostmakedepends="python pycurl"
|
||||
makedepends="${hostmakedepends}"
|
||||
depends="${hostmakedepends}"
|
||||
noarch="yes"
|
||||
pycompile_module="urlgrabber"
|
||||
short_desc="A high-level cross-protocol url-grabber and Python library"
|
||||
homepage="http://urlgrabber.baseurl.org/"
|
||||
license="LGPL-2.1"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
distfiles="http://urlgrabber.baseurl.org/download/$pkgname-$version.tar.gz"
|
||||
checksum=4437076c8708e5754ea04540e46c7f4f233734ee3590bb8a96389264fb0650d0
|
Loading…
Reference in New Issue