diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/editorconfig-core-py | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/editorconfig-core-py')
4 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/editorconfig-core-py/Manifest b/dev-python/editorconfig-core-py/Manifest new file mode 100644 index 000000000000..2b84215896ed --- /dev/null +++ b/dev-python/editorconfig-core-py/Manifest @@ -0,0 +1,2 @@ +DIST editorconfig-core-py-0.12.0.tar.gz 24801 BLAKE2B 10901b1595965139dbc3aa3227f335c2128b2ea83204ed88b0e799021f7c215fd13c3e2246cb9197ecb7c918aca2d6e9269d94298aa0665432ab091630a29dd6 SHA512 29c5f58bd7293052e4b1fbfbadcf4a148eb939558494d599bafd46151a4fb5af9cd07dcef477db9a709a0ea63dec0dd7e9d4071779f8ca6e3bd137268cc22f72 +DIST editorconfig-core-test-abb579e00f2deeede91cb485e53512efab9c6474.tar.gz 7900 BLAKE2B 9ebdb5e522948bc9e86ea84435ccaa11585a8a12f4cd6fe54c64d78917281c913568351767d8077623b1196d84206d1c2d0126a0510f70df484c1b55d829028b SHA512 ae5424b4926d6cb127cb3da473400ced4f7ccf224f7baa8bc5bde0317cc045bb7b99738a56efe5fd0e5a0fbe39b997b9fb1739d24713e7f83b58e987c5e56a32 diff --git a/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.0.ebuild b/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.0.ebuild new file mode 100644 index 000000000000..c9cfa0e96b43 --- /dev/null +++ b/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +TESTVER="abb579e00f2deeede91cb485e53512efab9c6474" +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 + +DESCRIPTION="Clone of EditorConfig core written in Python" +HOMEPAGE="https://editorconfig.org/" +SRC_URI="https://github.com/${PN%-core-py}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + https://github.com/${PN%-core-py}/${PN%-core-py}-core-test/archive/${TESTVER}.tar.gz -> ${PN%-core-py}-core-test-${TESTVER}.tar.gz + )" + +LICENSE="PYTHON BSD-4" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test cli" +RESTRICT="!test? ( test )" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + >dev-util/cmake-3.0 + ) + !<app-vim/editorconfig-vim-0.3.3-r1" + +src_prepare() { + if use test; then + mv "${WORKDIR}"/${PN%-core-py}-core-test-${TESTVER}/* "${S}"/tests || die + fi + + use cli || eapply "${FILESDIR}"/${PN}-0.12.0-no-cli.patch + + default + distutils-r1_src_prepare +} + +python_install() { + distutils-r1_python_install + #use cli || rm -f "${D}/${EPREFIX}"/usr/bin +} + +python_test() { + cmake -DPYTHON_EXECUTABLE="${PYTHON}" . || + die "tests failed to build with ${EPYTHON}" + ctest . || die "tests failed with ${EPYTHON}" +} diff --git a/dev-python/editorconfig-core-py/files/editorconfig-core-py-0.12.0-no-cli.patch b/dev-python/editorconfig-core-py/files/editorconfig-core-py-0.12.0-no-cli.patch new file mode 100644 index 000000000000..7d6fd31c3cc8 --- /dev/null +++ b/dev-python/editorconfig-core-py/files/editorconfig-core-py-0.12.0-no-cli.patch @@ -0,0 +1,16 @@ +diff --git a/setup.py b/setup.py +index 297e9cf..9702911 100644 +--- a/setup.py ++++ b/setup.py +@@ -10,11 +10,6 @@ setup( + license='LICENSE.txt', + description='EditorConfig File Locator and Interpreter for Python', + long_description=open('README.rst').read(), +- entry_points = { +- 'console_scripts': [ +- 'editorconfig = editorconfig.main:main', +- ] +- }, + classifiers=[ + 'Operating System :: OS Independent', + 'Programming Language :: Python', diff --git a/dev-python/editorconfig-core-py/metadata.xml b/dev-python/editorconfig-core-py/metadata.xml new file mode 100644 index 000000000000..4ff92aafe715 --- /dev/null +++ b/dev-python/editorconfig-core-py/metadata.xml @@ -0,0 +1,20 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> + <use> + <flag name="cli">Install command line interface as well as python library</flag> + </use> + <longdescription lang="en"> + EditorConfig Python Core provides the same functionality as the + EditorConfig C Core. EditorConfig Python core can be used as a + command line program or as an importable library. + </longdescription> + <upstream> + <remote-id type="github">editorconfig/editorconfig-core-test</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
