diff --git a/dev-lang/hy/Manifest b/dev-lang/hy/Manifest new file mode 100644 index 0000000..c429a82 --- /dev/null +++ b/dev-lang/hy/Manifest @@ -0,0 +1 @@ +DIST hy-1.0_alpha1.tar.gz 463320 BLAKE2B d6194038f66232ada4ffe4f59565a0895c44a4b3d0a442a9d35f148db29aad61e2a312372c90676abeadf995d6d5493a322a5aff42599f0de380449b9af8f74d SHA512 283d9474118e9dae9a58b7cf89127ff69ce6328659e7d8fffaefa2167598094cbca6b56eb3f3dafede81bb1569df1ae09a5834ad1133c6821576fe3fa3fca0b4 diff --git a/dev-lang/hy/files/hy-0.15.0-do-not-install-get_version.py.patch b/dev-lang/hy/files/hy-0.15.0-do-not-install-get_version.py.patch new file mode 100644 index 0000000..088b382 --- /dev/null +++ b/dev-lang/hy/files/hy-0.15.0-do-not-install-get_version.py.patch @@ -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, diff --git a/dev-lang/hy/hy-1.0_alpha1.ebuild b/dev-lang/hy/hy-1.0_alpha1.ebuild new file mode 100644 index 0000000..9ecb22f --- /dev/null +++ b/dev-lang/hy/hy-1.0_alpha1.ebuild @@ -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}" +} diff --git a/dev-lang/hy/hy-9999.ebuild b/dev-lang/hy/hy-9999.ebuild new file mode 100644 index 0000000..9ecb22f --- /dev/null +++ b/dev-lang/hy/hy-9999.ebuild @@ -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}" +} diff --git a/dev-lang/hy/metadata.xml b/dev-lang/hy/metadata.xml new file mode 100644 index 0000000..d7c5712 --- /dev/null +++ b/dev-lang/hy/metadata.xml @@ -0,0 +1,18 @@ + + + + + xgqt@protonmail.com + Maciej Barć + + + 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. + + + hylang/hy + +