mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
python-mechanize: add python3 subpackage
This commit is contained in:
parent
5d4eb49f4e
commit
f950c72f72
2 changed files with 16 additions and 4 deletions
|
@ -1,14 +1,14 @@
|
||||||
# Template file for 'python-mechanize'
|
# Template file for 'python-mechanize'
|
||||||
pkgname=python-mechanize
|
pkgname=python-mechanize
|
||||||
version=0.4.3
|
version=0.4.3
|
||||||
revision=1
|
revision=2
|
||||||
archs=noarch
|
archs=noarch
|
||||||
wrksrc="mechanize-${version}"
|
wrksrc="mechanize-${version}"
|
||||||
build_style=python2-module
|
build_style=python-module
|
||||||
pycompile_module="mechanize"
|
pycompile_module="mechanize"
|
||||||
hostmakedepends="python-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
depends="python python-html5lib"
|
depends="python python-html5lib"
|
||||||
short_desc="Stateful programmatic web browsing in Python"
|
short_desc="Stateful programmatic web browsing (Python2)"
|
||||||
maintainer="Farhad Shahbazi <grauwolf@geekosphere.org>"
|
maintainer="Farhad Shahbazi <grauwolf@geekosphere.org>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://github.com/python-mechanize/mechanize"
|
homepage="https://github.com/python-mechanize/mechanize"
|
||||||
|
@ -18,3 +18,14 @@ checksum=7c452a3eed7f83a13674027a58a4afe57ca67630d252a789ac1c15dcd55d310c
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
python3-mechanize_package() {
|
||||||
|
archs=noarch
|
||||||
|
depends="python3 python3-html5lib"
|
||||||
|
pycompile_module="mechanize"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3*
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-mechanize
Symbolic link
1
srcpkgs/python3-mechanize
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-mechanize
|
Loading…
Add table
Reference in a new issue