summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-07-10 22:13:30 +0200
committerMichał Górny <mgorny@gentoo.org>2019-07-10 22:13:35 +0200
commitb84728e6967d5fe54c62cf73ae51fff582d42483 (patch)
tree04728e753986162e788726b60619f0b77c7822b4 /app-misc/votrify
parentapp-misc/gentoo-elections: Package the election data (diff)
downloadgentoo-b84728e6967d5fe54c62cf73ae51fff582d42483.tar.gz
gentoo-b84728e6967d5fe54c62cf73ae51fff582d42483.tar.bz2
gentoo-b84728e6967d5fe54c62cf73ae51fff582d42483.zip
app-misc/votrify: Package the election verification tool
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-misc/votrify')
-rw-r--r--app-misc/votrify/Manifest1
-rw-r--r--app-misc/votrify/metadata.xml8
-rw-r--r--app-misc/votrify/votrify-1.ebuild36
3 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/votrify/Manifest b/app-misc/votrify/Manifest
new file mode 100644
index 000000000000..20f81a5828d4
--- /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 000000000000..0319eec4c8be
--- /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>mgorny@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 000000000000..f067073ac0cc
--- /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
+}