commit:     7c58030db10a17c8e1cd79a282ef147c52e689b4
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 21 20:53:57 2021 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Feb 21 20:53:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c58030d

dev-python/pyhcl: HCL configuration parser for python

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-python/pyhcl/Manifest           |  1 +
 dev-python/pyhcl/metadata.xml       | 12 ++++++++++++
 dev-python/pyhcl/pyhcl-0.4.4.ebuild | 31 +++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+)

diff --git a/dev-python/pyhcl/Manifest b/dev-python/pyhcl/Manifest
new file mode 100644
index 00000000000..c976ce60a37
--- /dev/null
+++ b/dev-python/pyhcl/Manifest
@@ -0,0 +1 @@
+DIST pyhcl-0.4.4.tar.gz 58400 BLAKE2B 
89ce8ba1eff577d9b4c7a86931e305f94ad7633b83c27f44352658ec2a12e48fd0cb05619e4afd97e4f2d78a9f4dba5c082a0d5703060b629880a3d193d9b4ee
 SHA512 
7c5e2b611d1198a0e6c667b8fda868231bdd25da822d634a34c076fea655a7ea2999fc827de8484992efcf52b6b843871713a83e3be7787003c90f05e3e7ddf6

diff --git a/dev-python/pyhcl/metadata.xml b/dev-python/pyhcl/metadata.xml
new file mode 100644
index 00000000000..7887d0724a0
--- /dev/null
+++ b/dev-python/pyhcl/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+                               <maintainer type="person">
+                                       <email>willi...@gentoo.org</email>
+                                               <name>William Hubbs</name>
+                                                       </maintainer>
+                               <maintainer type="person">
+                                       <email>chutz...@gentoo.org</email>
+                                               <name>Patrick McLean</name>
+                                                       </maintainer>
+                                                               </pkgmetadata>

diff --git a/dev-python/pyhcl/pyhcl-0.4.4.ebuild 
b/dev-python/pyhcl/pyhcl-0.4.4.ebuild
new file mode 100644
index 00000000000..3930cbe915e
--- /dev/null
+++ b/dev-python/pyhcl/pyhcl-0.4.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+# This value is obtained by running the following on the checked out
+# tag:
+# git describe --tags --long
+LONG_VERSION=0.4.4-0-g314cd32
+PYTHON_COMPAT=( python3_8 )
+inherit distutils-r1
+
+DESCRIPTION="HCL configuration parser for python"
+HOMEPAGE="https://github.com/virtuald/pyhcl";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/virtuald/pyhcl.git";
+else
+       SRC_URI="https://github.com/virtuald/pyhcl/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MPL-2.0"
+SLOT="0"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       distutils-r1_python_prepare_all
+       printf '__version__ = "%s"\n' "${LONG_VERSION}" > src/hcl/version.py || 
die
+}

Reply via email to