Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
alpine
aports
Commits
74916032
Commit
74916032
authored
5 years ago
by
Leo
Committed by
Natanael Copa
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
main/py3-httplib2: drop py2
parent
f4f778e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/py3-httplib2/APKBUILD
+11
-37
11 additions, 37 deletions
main/py3-httplib2/APKBUILD
with
11 additions
and
37 deletions
main/py3-httplib2/APKBUILD
+
11
−
37
View file @
74916032
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname
=
py-httplib2
pkgname
=
py
3
-httplib2
_pkgname
=
httplib2
pkgver
=
0.13.1
pkgrel
=
0
pkgdesc
=
"Python HTTP client library"
pkgrel
=
1
pkgdesc
=
"Python
3
HTTP client library"
url
=
"https://github.com/httplib2/httplib2"
arch
=
"noarch"
license
=
"MIT"
make
depends
=
"python
2-dev python3-dev py-setuptools
"
subpackages
=
"py2-
${
_pkgname
}
:_py2 py3-
${
_pkgname
}
:_py3
"
depends
=
"python
3
"
makedepends
=
"py3-setuptools
"
source
=
"https://files.pythonhosted.org/packages/source/
${
_pkgname
:0:1
}
/
$_pkgname
/
$_pkgname
-
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
prepare
()
{
default_prepare
local
python
;
for
python
in
python2 python3
;
do
cp
-r
"
$builddir
"
"
$builddir
-
$python
"
done
}
replaces
=
"py-httplib2"
# Backwards compatibility
provides
=
"py-httplib2=
$pkgver
-r
$pkgrel
"
# Backwards compatibility
build
()
{
local
python
;
for
python
in
python2 python3
;
do
cd
"
$builddir
"
-
$python
$python
setup.py build
done
cd
"
$builddir
"
python3 setup.py build
}
package
()
{
mkdir
-p
"
$pkgdir
"
}
_py2
()
{
replaces
=
"
$pkgname
"
depends
=
"
${
depends
//py-/py2-
}
"
_py python2
}
_py3
()
{
depends
=
"
${
depends
//py-/py3-
}
"
_py python3
}
_py
()
{
local
python
=
"
$1
"
pkgdesc
=
"
$pkgdesc
(for
$python
)"
depends
=
"
$depends
$python
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
-
$python
$python
setup.py
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
cd
"
$builddir
"
python3 setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
}
sha512sums
=
"c82e51481235d57660a7c93a639512c6b38bde60392f6da8e24b28f6083b54580d87f450bc333d5429fc2824cb0e367e3f9982ea97325a72c4289bec19fdc5e9 httplib2-0.13.1.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