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 B73D413832F for ; Tue, 9 Aug 2016 09:44:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44FB021C06D; Tue, 9 Aug 2016 09:44:38 +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 AEF1221C06D for ; Tue, 9 Aug 2016 09:44:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A9BDA340924 for ; Tue, 9 Aug 2016 09:44:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 729061B9B for ; Tue, 9 Aug 2016 09:44:33 +0000 (UTC) From: "Patrick Lauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick Lauer" Message-ID: <1470735866.2933e856e1d7d6206e034d6fa9080bfaae1e4411.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/elasticsearch-curator/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/elasticsearch-curator/Manifest dev-python/elasticsearch-curator/elasticsearch-curator-4.0.5.ebuild X-VCS-Directories: dev-python/elasticsearch-curator/ X-VCS-Committer: patrick X-VCS-Committer-Name: Patrick Lauer X-VCS-Revision: 2933e856e1d7d6206e034d6fa9080bfaae1e4411 X-VCS-Branch: master Date: Tue, 9 Aug 2016 09:44:33 +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: 9351d9c4-089a-4690-81d6-d94ed0dc98fa X-Archives-Hash: 22e7da0ddfd1b9a7b0555bcddf444308 commit: 2933e856e1d7d6206e034d6fa9080bfaae1e4411 Author: Patrick Lauer gentoo org> AuthorDate: Tue Aug 9 09:37:31 2016 +0000 Commit: Patrick Lauer gentoo org> CommitDate: Tue Aug 9 09:44:26 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2933e856 dev-python/elasticsearch-curator: Bump Package-Manager: portage-2.3.0 dev-python/elasticsearch-curator/Manifest | 1 + .../elasticsearch-curator-4.0.5.ebuild | 112 +++++++++++++++++++++ 2 files changed, 113 insertions(+) diff --git a/dev-python/elasticsearch-curator/Manifest b/dev-python/elasticsearch-curator/Manifest index cdec9a8..75b34aa 100644 --- a/dev-python/elasticsearch-curator/Manifest +++ b/dev-python/elasticsearch-curator/Manifest @@ -2,3 +2,4 @@ DIST elasticsearch-2.2.1.tar.gz 29424648 SHA256 7d43d18a8ee8d715d827ed26b4ff3d93 DIST elasticsearch-2.3.3.tar.gz 27542289 SHA256 5fe0a6887432bb8a8d3de2e79c9b81c83cfa241e6440f0f0379a686657789165 SHA512 d3899d2f45128d218693ed2a0f9210ec6ce5fe4101d543b46edaaadceeb6768fe3cf04bf161ad09b38629bada74368133727dd735ef11132fffe81aabe0ef88b WHIRLPOOL 5f51b0c1a913a60073c212c9ee06b024b0ca50bbf7857f2ce1883ab51bbb8295c51c1c2d4e7fd98b5dc9db65cd753fd282a0eccf7568fad6608b3529f5e9ea36 DIST elasticsearch-curator-3.5.1.tar.gz 93121 SHA256 3b578c1d8a88da22501a79346792288478f3191d75058e4c43d05fc261c9b874 SHA512 59ddc5feb575f626afcbce9c80b113827d9752bb4ba1bc8f7e7f110f8be661314dbf0421310cb07ce1b15c9d6dba2f181718befb5cfa93803ad5e63226ac9556 WHIRLPOOL 8b0529116cf735cb45872073a7668bdb94e0e61306bcbd6d3609a73616f75f74747847cbf8a860d5727fe3f475ab59c66f1382a04d543cdb3c22de4edfd068e2 DIST elasticsearch-curator-4.0.1.tar.gz 107792 SHA256 a7aa6a48f93a35d005f174a87ee05115230bc0b84994367e01c21873aedd519f SHA512 d948d38b3b17e046a139f3bea1c9a9a927bef2621477689b897e0845211bcb3c35507c7661a0801361933a72b01868553fb84ecc9aefa5e5fc363a4f516e63cb WHIRLPOOL 44edb992ec6e8194b4696c18c6d4d5ac4cc3a0d9fe488a15ee6d693a6fc4f32585411e74a46e64864baba57327dd8ed60da8ea30deb2666c9feaf2f5efcf7ed0 +DIST elasticsearch-curator-4.0.5.tar.gz 110573 SHA256 84f9df5fb19e59e734b224cba35d7c48c6dbdbe6317d8274276f5ad81cfbfd12 SHA512 08270cd53510e4356e1f01bb27c9202dcf2ac7d66c9852c2bc5d93de7c701802f67bf0b0117d4a155b9a930a4842d021a08f85436007654a812e47a0de8d870d WHIRLPOOL a80fdbdd30d82d1b189eba97e07779a6c632f58a5d242aef8fc3a450be0c93c64ec02651793fea8475936934f6ea8ed227d18c22f32e9a9d7d5e8506e9c2679e diff --git a/dev-python/elasticsearch-curator/elasticsearch-curator-4.0.5.ebuild b/dev-python/elasticsearch-curator/elasticsearch-curator-4.0.5.ebuild new file mode 100644 index 0000000..688fdb5 --- /dev/null +++ b/dev-python/elasticsearch-curator/elasticsearch-curator-4.0.5.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +MY_PN="curator" +ES_VERSION="2.3.3" + +inherit distutils-r1 + +DESCRIPTION="Tending time-series indices in Elasticsearch" +HOMEPAGE="https://github.com/elasticsearch/curator" +SRC_URI="https://github.com/elasticsearch/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz )" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + >=dev-python/elasticsearch-py-2.3.0[${PYTHON_USEDEP}] + =dev-python/click-3.3[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.8.3[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}] + test? ( ${RDEPEND} + || ( virtual/jre:1.8 virtual/jre:1.7 ) + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/nosexcover[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +python_test() { + ES="${WORKDIR}/elasticsearch-${ES_VERSION}" + ES_PORT="25123" + ES_LOG="${ES}/logs/elasticsearch.log" + PID="${ES}/elasticsearch.pid" + + # run Elasticsearch instance on custom port + sed -i "s/# http.port: 9200/http.port: ${ES_PORT}/g; \ + s/# cluster.name: my-application/cluster.name: gentoo-es-curator-test/g" \ + ${ES}/config/elasticsearch.yml + + # Elasticsearch 1.6+ needs to set path.repo + grep -q "^path.repo" "${ES}/config/elasticsearch.yml" + if [ $? -ne 0 ]; then + echo "path.repo: /" >> "${ES}/config/elasticsearch.yml" + fi + + # start local instance of elasticsearch + ${ES}/bin/elasticsearch -d -p ${PID} + + for i in {1..10}; do + grep -q "started" ${ES_LOG} 2> /dev/null + if [ $? -eq 0 ]; then + einfo "Elasticsearch started" + eend 0 + break + elif grep -q 'BindException\[Address already in use\]' "${ES_LOG}" 2>/dev/null; then + eend 1 + eerror "Elasticsearch already running" + die "Cannot start Elasticsearch for tests" + else + einfo "Waiting for Elasticsearch" + eend 1 + sleep 2 + continue + fi + done + + export TEST_ES_SERVER="localhost:${ES_PORT}" + esetup.py test + + pkill -F ${PID} +} + +python_prepare_all() { + # avoid downloading from net + sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + cd docs || die + emake man $(usex doc html "") +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + doman docs/_build/man/* + distutils-r1_python_install_all +} + +pkg_postinst() { + ewarn "" + ewarn "For Python 3 support information please read: http://click.pocoo.org/3/python3/" + ewarn "" + ewarn "Example usage on Python 3:" + ewarn "export LC_ALL=en_US.UTF-8" + ewarn "export LANG=en_US.UTF-8" + ewarn "curator ..." +}