From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CA670139694 for ; Mon, 15 May 2017 09:47:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30640E0D46; Mon, 15 May 2017 09:47:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E64B0E0D46 for ; Mon, 15 May 2017 09:47:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E3E8A3416DC for ; Mon, 15 May 2017 09:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 520B6745D for ; Mon, 15 May 2017 09:47:25 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1494841632.3e3402c2423ef877d21b943876f82a6110bdedc5.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/rdflib/Manifest dev-python/rdflib/rdflib-4.2.2.ebuild X-VCS-Directories: dev-python/rdflib/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 3e3402c2423ef877d21b943876f82a6110bdedc5 X-VCS-Branch: master Date: Mon, 15 May 2017 09:47:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e68f83bf-d5a9-4f35-9245-87b46525f635 X-Archives-Hash: 119be671bbb92ada0fd73fb8879560e5 commit: 3e3402c2423ef877d21b943876f82a6110bdedc5 Author: Lars Wendler gentoo org> AuthorDate: Mon May 15 09:11:05 2017 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon May 15 09:47:12 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e3402c2 dev-python/rdflib: Bump to version 4.2.2 Package-Manager: Portage-2.3.5, Repoman-2.3.2 dev-python/rdflib/Manifest | 1 + dev-python/rdflib/rdflib-4.2.2.ebuild | 88 +++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/dev-python/rdflib/Manifest b/dev-python/rdflib/Manifest index cdb4182e954..b64e32fe1fa 100644 --- a/dev-python/rdflib/Manifest +++ b/dev-python/rdflib/Manifest @@ -1 +1,2 @@ DIST rdflib-4.2.1.tar.gz 889467 SHA256 eb02bd235606ef3b26e213da3e576557a6392ce103efd8c6c8ff1e08321608c8 SHA512 49145f80a9e027847523faed059c16ec1de358bb9d8fc3ab4fd3bf95a88dd181986b1785deedf6e837cf0b064bd74ab8e27fbb5581e33310353da3546ae7b016 WHIRLPOOL 010bb4cf7c544b9a3f28636182b6c1821f390066bfe3de59f58fb7cfd8d809d8b0b5f256134b9c5091327c7ba6319be02135d6ea8a6d8b37772e212f000c3ba7 +DIST rdflib-4.2.2.tar.gz 905094 SHA256 da1df14552555c5c7715d8ce71c08f404c988c58a1ecd38552d0da4fc261280d SHA512 efc24d8ce1080e59950cecc9c779ae0d63673c8690f74db1772f6c2dbf24d6f4de5214d5870a074bffe549b42d8d5f5d131df29bbfd174b763ae1f843aec7d5c WHIRLPOOL f270e89354e601b17a91fb415a01f44ddaf90fec71e71997007f72db15275cae17bb4f2e45e2aacc852d748beda2907e5dc48c930c12632bf5846af335d7ac09 diff --git a/dev-python/rdflib/rdflib-4.2.2.ebuild b/dev-python/rdflib/rdflib-4.2.2.ebuild new file mode 100644 index 00000000000..2e188fc2ed8 --- /dev/null +++ b/dev-python/rdflib/rdflib-4.2.2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +PYTHON_REQ_USE="sqlite?,threads(+)" + +# The usual required for tests +DISTUTILS_IN_SOURCE_BUILD=1 + +inherit distutils-r1 + +DESCRIPTION="RDF library containing a triple store and parser/serializer" +HOMEPAGE="https://github.com/RDFLib/rdflib https://pypi.python.org/pypi/rdflib" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc berkdb examples mysql redland sqlite test" + +RDEPEND=" + dev-python/isodate[${PYTHON_USEDEP}] + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}] + berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysql-python[$(python_gen_usedep python2_7)] ) + redland? ( dev-libs/redland-bindings[python,$(python_gen_usedep python2_7)] )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/sparql-wrapper[${PYTHON_USEDEP}] + >=dev-python/nose-1.3.1-r1[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # Upstream manufactured .pyc files which promptly break distutils' src_test + find -name "*.py[oc~]" -delete || die + + # Bug 358189; take out tests that attempt to connect to the network + sed -e "/'--with-doctest',/d" -e "/'--doctest-extension=.doctest',/d" \ + -e "/'--doctest-tests',/d" -i run_tests.py || die + + sed -e "s: 'sphinx.ext.intersphinx',::" -i docs/conf.py || die + + # doc build requires examples folder at the upper level of docs + if use doc; then + cd docs || die + ln -sf ../examples . || die + cd ../ || die + fi + + distutils-r1_python_prepare_all +} + +python_compile_all() { + # https://github.com/RDFLib/rdflib/issues/510 + if use doc; then + einfo ""; einfo "Several warnings and Errors present in the build" + einfo "For a complete build, it is required to install" + einfo "github.com/gjhiggins/n3_pygments_lexer and" + einfo "github.com/gjhiggins/sparql_pygments_lexer" + einfo "outside portage via pip or by cloning. These have not been" + einfo "given a tagged release by the author and are not in portage" + einfo "" + emake -C docs html + fi +} + +python_test() { + # the default; nose with: --where=./ does not work for python3 + if python_is_python3; then + pushd "${BUILD_DIR}/src/" > /dev/null + "${PYTHON}" ./run_tests.py || die "Tests failed under ${EPYTHON}" + popd > /dev/null + else + "${PYTHON}" ./run_tests.py || die "Tests failed under ${EPYTHON}" + fi +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + if use examples ; then + docinto examples + dodoc -r examples/. + fi + + distutils-r1_python_install_all +}