summaryrefslogtreecommitdiff
path: root/dev-python/whoosh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/whoosh
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/whoosh')
-rw-r--r--dev-python/whoosh/Manifest8
-rw-r--r--dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch13
-rw-r--r--dev-python/whoosh/metadata.xml23
-rw-r--r--dev-python/whoosh/whoosh-2.6.0.ebuild50
-rw-r--r--dev-python/whoosh/whoosh-2.7.4.ebuild52
5 files changed, 146 insertions, 0 deletions
diff --git a/dev-python/whoosh/Manifest b/dev-python/whoosh/Manifest
new file mode 100644
index 000000000000..708490b380fd
--- /dev/null
+++ b/dev-python/whoosh/Manifest
@@ -0,0 +1,8 @@
+AUX whoosh-2.7.4-tests-specify-utf8.patch 319 SHA256 52074f656750897d33fbf3609df86ee257b728009f99ad99aa63b3c25dfa1f5e SHA512 53dc8336ac9895659d92001cb22137011d9da753c299bc3fecd34ed6b42f0f169967dfd41b0403462e54e62af1f6390c58386a91a89ddc880a4fe0a4e05ce14b WHIRLPOOL cc7af539e06078f74e80df8c8e3202d569e3faa8c4be232594fd59915af0d297ad5825b848d1fa6dd263e3c040eb227d30fcabfe6631d6b7f28fdabd6022c988
+DIST Whoosh-2.6.0.zip 1193541 SHA256 7de7bc4d00a6d051dbb360b48eb7f3cd002373d87252fb0b284a3c9c453a7677 SHA512 e50e47ec0d1c65ad3c7d657586f5380a1be748945c1ce964305fa68b99379f0da676faef6f0ca45ef151df7be71150601162ee966f3aaf84047a20bca36f7e37 WHIRLPOOL c42e9760833db7186f3df5946f6dd071288cfccf2eaefba95520a2415ca377c49cf74307b3fa2c9e655f134b086ae637e5db06330248b4a27e12175920f3c7b8
+DIST Whoosh-2.7.4.tar.gz 968741 SHA256 7ca5633dbfa9e0e0fa400d3151a8a0c4bec53bd2ecedc0a67705b17565c31a83 SHA512 7cdefdcf52b704ffe50c00718c42677e2ddfe879f81ad2d14b580b0e026cc0ebb6b9ddc99d8709eaff4eb9b83f654b042c8792821e1ed90aa85cfa6f82845074 WHIRLPOOL 2f077eb84fc89ff03babdd7adb25bf04ca03811a21f9ac987854c158fdd0b31f25d30ad59c9299a2da4b7ed982e2d292eeab781c10c9062e878ac0f8454115ed
+EBUILD whoosh-2.6.0.ebuild 1261 SHA256 4d6c2690ba9b55c883213c8febd5ad374d7dc9919ae43ae8d8414c69720ba398 SHA512 cf20005fa97994ea30cfae70c5291b4f9db04fb23fe3606394e3daadc191c910e58b737d8f3fe22cac0ad5940e31dfcf40e061b68ed9da490e36ba2d3a7dd359 WHIRLPOOL 282b7ccd1c69c26a2956e06f36d5a00187986e7616ed457a410583cc7e28db742ce7861ab2c445eb4b6b4eb3da2fe73f525c8a5f928e30c921f42397c332b908
+EBUILD whoosh-2.7.4.ebuild 1457 SHA256 cc5a9ba86c56ce3202c6ea9dc44f7475da8c9cb462a733a3ad612a7aef70ef53 SHA512 0c428a2b4b60b92879af258f884b5a264e402abd13e0c77525f358edf314498285305116a98532f7369a312c311016aba3fabfae783578f196cc2f9f5bf4475c WHIRLPOOL 15f520b52f0ee49defdde3f67f955d850479f4306ae91af5bde1cadaf6154cba4c0b13ea03d04689872d6ab69cfbf81158b2086f72a7f9dbed642c4b6482bf8e
+MISC ChangeLog 4117 SHA256 b4048239fa20832d62bc75dcb0a75185109a7a6e300d5f71cf32831cb241501d SHA512 30af56e50107a9d8560b28a05b7da637d6a8d098f497e4e895675bb0481e175231e90105855bf8f3380713f184d75040c1e8ecc74ae042e679c8e297e24744af WHIRLPOOL c09301c9d43ba59bacb45fa0671e2e56fe9327fb53486c356c65d25f0a71e1c4fb58b04a435836ce9dea9acfb604a55481b589cab3b2512fe39dfb9f26f95e33
+MISC ChangeLog-2015 6706 SHA256 acf5d0db3e6890fefe81256f6d29f03ab55d9fc36fe5197fa328918e7939c5df SHA512 c6b9a857d51f3a04689b1d9483c9d615ea138f20e0cded92c949e31ff2aa1c99fc02945377d76334d6d255c9b1cbd36cb00673efc373ae667ddb79f643b0dbae WHIRLPOOL 643b884e1f1adad6caf119bafae28588b78888d7f7849b72d996ea7c7d186db00bbcea31410f9e79b05af3851fd6fef2979524839ed4decbba0a99ec6db57a7a
+MISC metadata.xml 817 SHA256 e7239eee69d44587d1028ec9720d23c472a35726ac950ad637e454d234b198ce SHA512 b9c1def2c09a31740729aed91c02a3382c9b8f10d9f959c0c80f41ac4822ac5ad3b2c7c998e244f91e64581c17c4d52a7264f679b44a9981587c053bc3b576ed WHIRLPOOL 702c19193d23e737cb438aa4756e088b39c953ce1ca05a998ec6e02778eaeb5d71af7a197cf81e51babe946059e5401443db798339014f5ac8de86fa024e7825
diff --git a/dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch b/dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch
new file mode 100644
index 000000000000..94636c199a4c
--- /dev/null
+++ b/dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch
@@ -0,0 +1,13 @@
+Python 2 requires specifying the file encoding
+See also:
+https://www.python.org/dev/peps/pep-0263/
+https://bugs.gentoo.org/show_bug.cgi?id=608324
+
+--- a/tests/test_reading.py
++++ b/tests/test_reading.py
+@@ -1,3 +1,5 @@
++# -*- coding: utf-8 -*-
++
+ from __future__ import with_statement
+ import random, threading, time
+
diff --git a/dev-python/whoosh/metadata.xml b/dev-python/whoosh/metadata.xml
new file mode 100644
index 000000000000..8582f22d6e39
--- /dev/null
+++ b/dev-python/whoosh/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <longdescription lang="en">
+ Whoosh is a fast, featureful full-text indexing and searching
+ library implemented in pure Python. Programmers can use it to
+ easily add search functionality to their applications and websites.
+ Every part of how Whoosh works can be extended or replaced to meet
+ your needs exactly.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">Whoosh</remote-id>
+ <remote-id type="bitbucket">mchaput/whoosh</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/whoosh/whoosh-2.6.0.ebuild b/dev-python/whoosh/whoosh-2.6.0.ebuild
new file mode 100644
index 000000000000..8b6cf2e997a8
--- /dev/null
+++ b/dev-python/whoosh/whoosh-2.6.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+
+MY_PN="Whoosh"
+
+inherit distutils-r1
+
+DESCRIPTION="Fast, pure-Python full text indexing, search and spell checking library"
+HOMEPAGE="https://bitbucket.org/mchaput/whoosh/wiki/Home/ https://pypi.python.org/pypi/Whoosh/"
+SRC_URI="mirror://pypi/W/${MY_PN}/${MY_PN}-${PV}.zip"
+
+DEPEND="app-arch/unzip
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc test"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+python_prepare_all() {
+ # (backport from upstream)
+ sed -i -e '/cmdclass/s:pytest:PyTest:' setup.py || die
+
+ # Prevent un-needed download during build
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ # https://bitbucket.org/mchaput/whoosh/issue/403/
+ use doc && sphinx-build -b html -c docs/source/ docs/source/ docs/source/build/html
+}
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ local DOCS=( README.txt )
+ use doc && local HTML_DOCS=( docs/source/build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/whoosh/whoosh-2.7.4.ebuild b/dev-python/whoosh/whoosh-2.7.4.ebuild
new file mode 100644
index 000000000000..84eb8b1dc2cf
--- /dev/null
+++ b/dev-python/whoosh/whoosh-2.7.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Fast, pure-Python full text indexing, search and spell checking library"
+HOMEPAGE="https://bitbucket.org/mchaput/whoosh/wiki/Home/ https://pypi.python.org/pypi/Whoosh/"
+SRC_URI="mirror://pypi/W/${PN^}/${P^}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ~ppc ~ppc64 x86 ~x64-solaris"
+IUSE="doc test"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+S="${WORKDIR}/${P^}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.7.4-tests-specify-utf8.patch
+)
+
+python_prepare_all() {
+ # (backport from upstream)
+ sed -i -e '/cmdclass/s:pytest:PyTest:' setup.py || die
+
+ # Prevent un-needed download during build
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ # https://bitbucket.org/mchaput/whoosh/issue/403/
+ if use doc; then
+ sphinx-build -b html -c docs/source/ docs/source/ docs/source/build/html || die
+ HTML_DOCS=( docs/source/build/html/. )
+ fi
+}
+
+python_test() {
+ # https://bitbucket.org/mchaput/whoosh/issue/412/tarball-of-whoosh-270-pypi-missing-english
+ # tarball missing a file english-words.10.gz which when added sees all tests pass.
+ esetup.py test
+}