diff options
Diffstat (limited to 'dev-python/pyhcl')
-rw-r--r-- | dev-python/pyhcl/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyhcl/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pyhcl/pyhcl-0.4.4.ebuild | 31 |
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/pyhcl/Manifest b/dev-python/pyhcl/Manifest new file mode 100644 index 000000000000..c976ce60a37a --- /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 000000000000..7887d0724a0e --- /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>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <maintainer type="person"> + <email>chutzpah@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 000000000000..3930cbe915e8 --- /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 +} |