diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-02-13 07:54:31 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-02-13 07:54:31 +0000 |
| commit | 62d72e0fc03ab51e3a385ddb2e370181287ebe97 (patch) | |
| tree | 3fb5e97f54054c6728ad3a9413ca08845202cd7f /dev-python/editorconfig | |
| parent | 357efd0ee03652004a6eda2453f7f34bea4799a2 (diff) | |
| download | baldeagleos-repo-62d72e0fc03ab51e3a385ddb2e370181287ebe97.tar.gz baldeagleos-repo-62d72e0fc03ab51e3a385ddb2e370181287ebe97.tar.xz baldeagleos-repo-62d72e0fc03ab51e3a385ddb2e370181287ebe97.zip | |
Adding metadata
Diffstat (limited to 'dev-python/editorconfig')
| -rw-r--r-- | dev-python/editorconfig/Manifest | 4 | ||||
| -rw-r--r-- | dev-python/editorconfig/editorconfig-0.12.3-r1.ebuild | 54 | ||||
| -rw-r--r-- | dev-python/editorconfig/editorconfig-0.12.4.ebuild | 56 | ||||
| -rw-r--r-- | dev-python/editorconfig/metadata.xml | 22 |
4 files changed, 136 insertions, 0 deletions
diff --git a/dev-python/editorconfig/Manifest b/dev-python/editorconfig/Manifest new file mode 100644 index 000000000000..29650a3e2684 --- /dev/null +++ b/dev-python/editorconfig/Manifest @@ -0,0 +1,4 @@ +DIST editorconfig-core-py-0.12.3.tar.gz 19261 BLAKE2B 58cac122cfee19527bc45def7e923da50982de0e2cd443cf67dd824c050fb12352b85a5679815a701bc5b8d88a089a0a98280c364730086d01b80f119ad996a4 SHA512 005d0698c410c8865d177a1e891b5c51b15255f36303b116fddbbbc08e309d1d60ca3003d27e6fd8455e53c5956db0c29e298f22f4b10950e1f7c56c7c6e0ab3 +DIST editorconfig-core-py-0.12.4.gh.tar.gz 19411 BLAKE2B f1cbcce704efb9a185ff25e2fe800156a02288be389a3908579fbf4ec0131f79fc9a453040d4259fc050e1aa94cfc68f557580c86ca8d7fb65582c32d7a1c6af SHA512 12eea18d0af84eea6f71658781c9f9b58e3490db7056ddc5eae3e0ce3413635eac995e0fdef33a7fe6e2d60649e95a67034a53f304faa38f6022d86fee135464 +DIST editorconfig-core-test-abb579e00f2deeede91cb485e53512efab9c6474.gh.tar.gz 7900 BLAKE2B 9ebdb5e522948bc9e86ea84435ccaa11585a8a12f4cd6fe54c64d78917281c913568351767d8077623b1196d84206d1c2d0126a0510f70df484c1b55d829028b SHA512 ae5424b4926d6cb127cb3da473400ced4f7ccf224f7baa8bc5bde0317cc045bb7b99738a56efe5fd0e5a0fbe39b997b9fb1739d24713e7f83b58e987c5e56a32 +DIST editorconfig-core-test-abb579e00f2deeede91cb485e53512efab9c6474.tar.gz 7900 BLAKE2B 9ebdb5e522948bc9e86ea84435ccaa11585a8a12f4cd6fe54c64d78917281c913568351767d8077623b1196d84206d1c2d0126a0510f70df484c1b55d829028b SHA512 ae5424b4926d6cb127cb3da473400ced4f7ccf224f7baa8bc5bde0317cc045bb7b99738a56efe5fd0e5a0fbe39b997b9fb1739d24713e7f83b58e987c5e56a32 diff --git a/dev-python/editorconfig/editorconfig-0.12.3-r1.ebuild b/dev-python/editorconfig/editorconfig-0.12.3-r1.ebuild new file mode 100644 index 000000000000..08302078cdf7 --- /dev/null +++ b/dev-python/editorconfig/editorconfig-0.12.3-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +inherit cmake distutils-r1 + +MY_P=editorconfig-core-py-${PV} +TESTVER="abb579e00f2deeede91cb485e53512efab9c6474" +DESCRIPTION="Clone of EditorConfig core written in Python" +HOMEPAGE="https://editorconfig.org/" +SRC_URI=" + https://github.com/editorconfig/editorconfig-core-py/archive/v${PV}.tar.gz + -> ${MY_P}.tar.gz + test? ( + https://github.com/editorconfig/editorconfig-core-test/archive/${TESTVER}.tar.gz + -> editorconfig-core-test-${TESTVER}.tar.gz + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="PYTHON BSD-4" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cli test" +RESTRICT="!test? ( test )" + +RDEPEND=" + !<app-vim/editorconfig-vim-0.3.3-r1 + cli? ( !app-text/editorconfig-core-c[cli] ) +" + +src_prepare() { + if use test; then + mv "${WORKDIR}"/editorconfig-core-test-${TESTVER}/* "${S}"/tests || die + fi + if ! use cli; then + sed -i -e '/editorconfig\.__main__/d' setup.py || die + fi + + cmake_src_prepare + distutils-r1_src_prepare +} + +python_test() { + local mycmakeargs=( + -DPYTHON_EXECUTABLE="${PYTHON}" + ) + + cmake_src_configure + cmake_src_compile + cmake_src_test +} diff --git a/dev-python/editorconfig/editorconfig-0.12.4.ebuild b/dev-python/editorconfig/editorconfig-0.12.4.ebuild new file mode 100644 index 000000000000..0634a0070c13 --- /dev/null +++ b/dev-python/editorconfig/editorconfig-0.12.4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit cmake distutils-r1 + +MY_P=editorconfig-core-py-${PV} +TESTVER="abb579e00f2deeede91cb485e53512efab9c6474" +DESCRIPTION="Clone of EditorConfig core written in Python" +HOMEPAGE="https://editorconfig.org/" +SRC_URI=" + https://github.com/editorconfig/editorconfig-core-py/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz + test? ( + https://github.com/editorconfig/editorconfig-core-test/archive/${TESTVER}.tar.gz + -> editorconfig-core-test-${TESTVER}.gh.tar.gz + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="PYTHON BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cli test" +RESTRICT="!test? ( test )" + +RDEPEND=" + !<app-vim/editorconfig-vim-0.3.3-r1 + cli? ( !app-text/editorconfig-core-c[cli] ) +" + +src_prepare() { + if use test; then + mv "${WORKDIR}"/editorconfig-core-test-${TESTVER}/* "${S}"/tests || die + fi + if ! use cli; then + sed -i -e '/editorconfig\.__main__/d' setup.py || die + fi + + cmake_src_prepare + distutils-r1_src_prepare +} + +python_test() { + local mycmakeargs=( + -DPYTHON_EXECUTABLE="${PYTHON}" + ) + + cmake_src_configure + cmake_src_compile + cmake_src_test +} diff --git a/dev-python/editorconfig/metadata.xml b/dev-python/editorconfig/metadata.xml new file mode 100644 index 000000000000..0bd2cac23588 --- /dev/null +++ b/dev-python/editorconfig/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <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> + + <use> + <flag name="cli">Install command line interface as well as python library</flag> + </use> + <origin>gentoo-staging</origin> +</pkgmetadata>
\ No newline at end of file |
