commit:     b84728e6967d5fe54c62cf73ae51fff582d42483
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 10 20:13:30 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>mgo...@gentoo.org</email>
+               <name>Michał Górny</name>
+       </maintainer>
+</pkgmetadata>

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
+}

Reply via email to