Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
J0WI
aports
Commits
f5814737
Commit
f5814737
authored
8 years ago
by
Jakub Jirutka
Committed by
Carlo Landmeter
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
main/py-lxml: add py2/py3 subpackages
parent
efb2b385
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/py-lxml/APKBUILD
+29
-9
29 additions, 9 deletions
main/py-lxml/APKBUILD
with
29 additions
and
9 deletions
main/py-lxml/APKBUILD
+
29
−
9
View file @
f5814737
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname
=
py-lxml
pkgname
=
py-lxml
_pkgname
=
lxml
_pkgname
=
lxml
pkgver
=
3.6.0
pkgver
=
3.6.0
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"Python LXML Library"
pkgdesc
=
"Python LXML Library"
url
=
"http://lxml.de/"
url
=
"http://lxml.de/"
arch
=
"
all
"
arch
=
"
noarch
"
license
=
"BSD"
license
=
"BSD"
depends
=
""
depends
=
""
makedepends
=
"python-dev libxml2-dev libxslt-dev py-setuptools"
makedepends
=
"python
2-dev python3
-dev libxml2-dev libxslt-dev py-setuptools"
install
=
"
"
subpackages
=
"py2-
$_pkgname
:_py2 py3-
$_pkgname
:_py3
"
source
=
"https://files.pythonhosted.org/packages/source/
${
_pkgname
:0:1
}
/
$_pkgname
/
$_pkgname
-
$pkgver
.tar.gz"
source
=
"https://files.pythonhosted.org/packages/source/
${
_pkgname
:0:1
}
/
$_pkgname
/
$_pkgname
-
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
_builddir
=
"
$srcdir
"
/
$_pkgname
-
$pkgver
build
()
{
build
()
{
cd
"
$_builddir
"
cd
"
$builddir
"
python setup.py build
||
return
1
python2 setup.py build
||
return
1
python3 setup.py build
}
}
package
()
{
package
()
{
cd
"
$_builddir
"
mkdir
-p
"
$pkgdir
"
python setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
||
return
1
}
_py2
()
{
replaces
=
"
$pkgname
"
_py python2
}
_py3
()
{
_py python3
}
_py
()
{
local
python
=
"
$1
"
pkgdesc
=
"
$pkgdesc
(for
$python
)"
arch
=
"all"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
}
}
md5sums
=
"5957cc384bd6e83934be35c057ec03b6 lxml-3.6.0.tar.gz"
md5sums
=
"5957cc384bd6e83934be35c057ec03b6 lxml-3.6.0.tar.gz"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment