mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
This commit updates $license variable in all APKBUILDs to comply with short names specified by SPDX version 3.0 [1] where possible. It was done using find-and-replace method on substrings inside $license variables. Only license names were updated, not "expressions" specifying relation between the licenses (e.g. "X and Y", "X or Y", "X and (Y or Z)") or exceptions (e.g. "X with exceptions"). Many licenses have a version or multiple variants, e.g. MPL-2.0, BSD-2-Clause, BSD-3-Clause. However, $license in many aports do not contain license version or variant. Since there's no way how to infer this information just from abuild, it were left without the variant suffix or version, i.e. non SPDX compliant. GNU licenses (AGPL, GFDL, GPL, LGPL) are especially complicated. They exist in two variants: -only (formerly e.g. GPL-2.0) and -or-later (formerly e.g. GPL-2.0+). We did not systematically noted distinguish between these variants, so GPL-2.0, GPL2, GPLv2 etc. may mean GPL-2.0-only or GPL-2.0-or-later. Thus GNU licenses without "+" (e.g. GPL2+) were left without the variant suffix, i.e. non SPDX compliant. Note: This commit just fixes format of the license names, no verification has been done if the specified license information is actually correct! [1]: https://spdx.org/licenses/
55 lines
1.4 KiB
Text
55 lines
1.4 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=py-django-debug-toolbar
|
|
pkgver=1.9.1
|
|
pkgrel=0
|
|
pkgdesc="Configurable set of panels that display various debug information about the current request/response"
|
|
url="https://github.com/jazzband/django-debug-toolbar"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py-django py-sqlparse"
|
|
makedepends="python2-dev python3-dev py-setuptools"
|
|
options="!check" #no testsuite
|
|
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/django-debug-toolbar/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/django-debug-toolbar-$pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py --quiet build
|
|
python3 setup.py --quiet build
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
mkdir -p "$pkgdir"/usr/bin
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
python2 tests.py
|
|
python3 tests.py
|
|
}
|
|
|
|
_py2() {
|
|
depends="${depends//py-/py2-}"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
depends="${depends//py-/py3-}"
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
local pyver="${1:6:1}"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
depends="$depends $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py --quiet install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
sha512sums="8c3b51ad0e60b152dff8527be3f902f3f95140abc2e4f09a93740d83ec06cb1f3917119874fbd9a62c33d996cb09483a80ae6e71da623794e10a0c98f7b78ed0 py-django-debug-toolbar-1.9.1.tar.gz"
|