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 00255138334 for ; Wed, 10 Jul 2019 20:14:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D2DAE0843; Wed, 10 Jul 2019 20:14:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F3391E0843 for ; Wed, 10 Jul 2019 20:14:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 8A739347697 for ; Wed, 10 Jul 2019 20:14:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B79E6D5 for ; Wed, 10 Jul 2019 20:14:04 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1562789615.b84728e6967d5fe54c62cf73ae51fff582d42483.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/votrify/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/votrify/Manifest app-misc/votrify/metadata.xml app-misc/votrify/votrify-1.ebuild X-VCS-Directories: app-misc/votrify/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b84728e6967d5fe54c62cf73ae51fff582d42483 X-VCS-Branch: master Date: Wed, 10 Jul 2019 20:14:04 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7d0f8a32-4172-4f54-999c-4d9aa010e089 X-Archives-Hash: 1fab04a2b35d27dbd771bd636bae635b commit: b84728e6967d5fe54c62cf73ae51fff582d42483 Author: Michał Górny gentoo org> AuthorDate: Wed Jul 10 20:13:30 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jul 10 20:13:35 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b84728e6 app-misc/votrify: Package the election verification tool Signed-off-by: Michał Górny gentoo.org> app-misc/votrify/Manifest | 1 + app-misc/votrify/metadata.xml | 8 ++++++++ app-misc/votrify/votrify-1.ebuild | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/app-misc/votrify/Manifest b/app-misc/votrify/Manifest new file mode 100644 index 00000000000..20f81a5828d --- /dev/null +++ b/app-misc/votrify/Manifest @@ -0,0 +1 @@ +DIST votrify-1.tar.gz 6936 BLAKE2B 7c9a5668842c5b1783e5c8b2341d42aa21257b96a82210c16e44bee8f71b690c7dba5acf48a39beff0189106db1fe141ef1ec30d68f25573a19a53c12618d346 SHA512 14fdb4ee185d96f416b47df7b29175cebc6e003aca7c1faf927b258f7dbe39b7ed69c4defb25900c6856b6e9abde3b03a69ca02152755d8532708b6cfb7f51a0 diff --git a/app-misc/votrify/metadata.xml b/app-misc/votrify/metadata.xml new file mode 100644 index 00000000000..0319eec4c8b --- /dev/null +++ b/app-misc/votrify/metadata.xml @@ -0,0 +1,8 @@ + + + + + mgorny@gentoo.org + Michał Górny + + diff --git a/app-misc/votrify/votrify-1.ebuild b/app-misc/votrify/votrify-1.ebuild new file mode 100644 index 00000000000..f067073ac0c --- /dev/null +++ b/app-misc/votrify/votrify-1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit python-single-r1 + +DESCRIPTION="Tool for community verification of Gentoo elections" +HOMEPAGE="https://github.com/mgorny/votrify" +SRC_URI="https://github.com/mgorny/votrify/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="app-misc/gentoo-elections" + +src_configure() { + # update default location for election scripts + sed -i -e "s^os.path.dirname(__file__)^'${EPREFIX}/usr/lib'^" \ + make-confirmation.py || die + + # update script names + sed -i -e 's:\(./\)\?\(make-confirmation\|verify-confirmations\).py:votrify-\2:g' \ + README.rst || die + + python_fix_shebang *.py +} + +src_install() { + newbin make-confirmation.py votrify-make-confirmation + newbin verify-confirmations.py votrify-verify-confirmations + einstalldocs +}