aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-django-haystack/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-30 01:24:17 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-09-03 15:42:53 +0000
commita736b39378773f8d0c1c8c7077e9b405fe74ffe7 (patch)
treede88b4da2d804175df9b229571323a21be5a8f75 /main/py3-django-haystack/APKBUILD
parentb5202342f84c55de16af82354bb215b49d42952e (diff)
downloadaports-a736b39378773f8d0c1c8c7077e9b405fe74ffe7.tar.gz
aports-a736b39378773f8d0c1c8c7077e9b405fe74ffe7.tar.bz2
aports-a736b39378773f8d0c1c8c7077e9b405fe74ffe7.tar.xz
main/py3-django-haystack: drop py2
Diffstat (limited to 'main/py3-django-haystack/APKBUILD')
-rw-r--r--main/py3-django-haystack/APKBUILD35
1 files changed, 15 insertions, 20 deletions
diff --git a/main/py3-django-haystack/APKBUILD b/main/py3-django-haystack/APKBUILD
index 89ae5fad74..f3e5cafd70 100644
--- a/main/py3-django-haystack/APKBUILD
+++ b/main/py3-django-haystack/APKBUILD
@@ -1,34 +1,29 @@
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
-pkgname=py-django-haystack
+pkgname=py3-django-haystack
pkgver=2.8.1
-pkgrel=1
+pkgrel=0
pkgdesc="Modular search for Django"
-url=http://haystacksearch.org/
-arch=noarch
-license=BSD
-depends="py-django py-setuptools"
+options="!check" # requires unpackaged pysolr and whoosh
+url="https://github.com/django-haystack/django-haystack"
+arch="noarch"
+license="BSD-3-Clause"
+depends="py3-django py3-setuptools"
source="https://files.pythonhosted.org/packages/source/d/django-haystack/django-haystack-$pkgver.tar.gz"
-_builddir=$srcdir/django-haystack-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/django-haystack-$pkgver"
+
+replaces="py-django-haystack" # Backwards compatibility
+provides="py-django-haystack=$pkgver-r$pkgrel" # Backwards compatibility
build() {
- cd "$_builddir"
- python2 setup.py build
+ cd "$builddir"
+ python3 setup.py build
}
package() {
- cd "$_builddir"
- python2 setup.py install --root "$pkgdir"
+ cd "$builddir"
+ python3 setup.py install --root "$pkgdir"
}
sha512sums="019defd304334657f5a4ef849fedcf2915800c816f4ff7a53d68a61f5506fc4b94dc43fffda2a4d4ce105a55ac37076e73edcc1ae4acd1c85240320e0af2f069 django-haystack-2.8.1.tar.gz"