dev-lang/hy: new pkg; add 1.0_alpha1 and live

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
Maciej Barć 2021-04-19 22:32:14 +02:00
parent 5107977527
commit 873ee69918
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
5 changed files with 149 additions and 0 deletions

1
dev-lang/hy/Manifest Normal file
View File

@ -0,0 +1 @@
DIST hy-1.0_alpha1.tar.gz 463320 BLAKE2B d6194038f66232ada4ffe4f59565a0895c44a4b3d0a442a9d35f148db29aad61e2a312372c90676abeadf995d6d5493a322a5aff42599f0de380449b9af8f74d SHA512 283d9474118e9dae9a58b7cf89127ff69ce6328659e7d8fffaefa2167598094cbca6b56eb3f3dafede81bb1569df1ae09a5834ad1133c6821576fe3fa3fca0b4

View File

@ -0,0 +1,22 @@
Don't install get_version.py
This reverts commit 7361b37a7580bb5caaf7696b7bff5954042fd52b.
This file is not used at runtime, and the way it was installed violated FHS.
---
setup.py | 3 ---
1 file changed, 3 deletions(-)
--- a/setup.py
+++ b/setup.py
@@ -58,9 +58,6 @@ def run(self):
'hy.core': ['*.hy', '__pycache__/*'],
'hy.extra': ['*.hy', '__pycache__/*'],
},
- data_files=[
- ('get_version', ['get_version.py'])
- ],
author="Paul Tagliamonte",
author_email="tag@pault.ag",
long_description=long_description,

View File

@ -0,0 +1,54 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS="rdepend"
PYTHON_COMPAT=( python3_{8,9} )
inherit distutils-r1
DESCRIPTION="A LISP dialect running in python"
HOMEPAGE="http://hylang.org/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hylang/${PN}.git"
else
MY_PV="${PV/_alpha/a}"
SRC_URI="https://github.com/hylang/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${MY_PV}"
fi
# tests fail
RESTRICT="mirror test"
# RESTRICT="
# !test? ( test )
# mirror
# "
# L
LICENSE="MIT"
SLOT="0"
IUSE="test"
RDEPEND="
>=dev-python/astor-0.7.1[${PYTHON_USEDEP}]
>=dev-python/clint-0.4[${PYTHON_USEDEP}]
>=dev-python/funcparserlib-0.3.6[${PYTHON_USEDEP}]
>=dev-python/rply-0.7.6[${PYTHON_USEDEP}]
dev-python/flake8[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
)
"
PATCHES=( "${FILESDIR}/${PN}-0.15.0-do-not-install-get_version.py.patch" )
python_test() {
nosetests -vv || die "Tests failed under ${EPYTHON}"
}

View File

@ -0,0 +1,54 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS="rdepend"
PYTHON_COMPAT=( python3_{8,9} )
inherit distutils-r1
DESCRIPTION="A LISP dialect running in python"
HOMEPAGE="http://hylang.org/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hylang/${PN}.git"
else
MY_PV="${PV/_alpha/a}"
SRC_URI="https://github.com/hylang/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${MY_PV}"
fi
# tests fail
RESTRICT="mirror test"
# RESTRICT="
# !test? ( test )
# mirror
# "
# L
LICENSE="MIT"
SLOT="0"
IUSE="test"
RDEPEND="
>=dev-python/astor-0.7.1[${PYTHON_USEDEP}]
>=dev-python/clint-0.4[${PYTHON_USEDEP}]
>=dev-python/funcparserlib-0.3.6[${PYTHON_USEDEP}]
>=dev-python/rply-0.7.6[${PYTHON_USEDEP}]
dev-python/flake8[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
)
"
PATCHES=( "${FILESDIR}/${PN}-0.15.0-do-not-install-get_version.py.patch" )
python_test() {
nosetests -vv || die "Tests failed under ${EPYTHON}"
}

18
dev-lang/hy/metadata.xml Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@protonmail.com</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
Lisp and Python should love each other. Let's make it happen.
Hy is a Lisp dialect that's embedded in Python. Since Hy transforms
its Lisp code into Python abstract syntax tree (AST) objects,
you have the whole beautiful world of Python at your fingertips,
in Lisp form.
</longdescription>
<upstream>
<remote-id type="github">hylang/hy</remote-id>
</upstream>
</pkgmetadata>