1 |
commit: 05f8d7b152e3077d0809de43e1b050ac00994a99 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 23 08:14:02 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 23 08:28:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05f8d7b1 |
7 |
|
8 |
dev-python/editorconfig-core-py: Bump to 0.12.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/editorconfig-core-py/Manifest | 1 + |
13 |
.../editorconfig-core-py-0.12.3.ebuild | 43 ++++++++++++++++++++++ |
14 |
2 files changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/editorconfig-core-py/Manifest b/dev-python/editorconfig-core-py/Manifest |
17 |
index 2b84215896e..5034dc7bbd9 100644 |
18 |
--- a/dev-python/editorconfig-core-py/Manifest |
19 |
+++ b/dev-python/editorconfig-core-py/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST editorconfig-core-py-0.12.0.tar.gz 24801 BLAKE2B 10901b1595965139dbc3aa3227f335c2128b2ea83204ed88b0e799021f7c215fd13c3e2246cb9197ecb7c918aca2d6e9269d94298aa0665432ab091630a29dd6 SHA512 29c5f58bd7293052e4b1fbfbadcf4a148eb939558494d599bafd46151a4fb5af9cd07dcef477db9a709a0ea63dec0dd7e9d4071779f8ca6e3bd137268cc22f72 |
22 |
+DIST editorconfig-core-py-0.12.3.tar.gz 19261 BLAKE2B 58cac122cfee19527bc45def7e923da50982de0e2cd443cf67dd824c050fb12352b85a5679815a701bc5b8d88a089a0a98280c364730086d01b80f119ad996a4 SHA512 005d0698c410c8865d177a1e891b5c51b15255f36303b116fddbbbc08e309d1d60ca3003d27e6fd8455e53c5956db0c29e298f22f4b10950e1f7c56c7c6e0ab3 |
23 |
DIST editorconfig-core-test-abb579e00f2deeede91cb485e53512efab9c6474.tar.gz 7900 BLAKE2B 9ebdb5e522948bc9e86ea84435ccaa11585a8a12f4cd6fe54c64d78917281c913568351767d8077623b1196d84206d1c2d0126a0510f70df484c1b55d829028b SHA512 ae5424b4926d6cb127cb3da473400ced4f7ccf224f7baa8bc5bde0317cc045bb7b99738a56efe5fd0e5a0fbe39b997b9fb1739d24713e7f83b58e987c5e56a32 |
24 |
|
25 |
diff --git a/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3.ebuild b/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1c0da663b09 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3.ebuild |
30 |
@@ -0,0 +1,43 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
37 |
+PYTHON_COMPAT=( python3_{6..9} ) |
38 |
+inherit cmake distutils-r1 |
39 |
+ |
40 |
+TESTVER="abb579e00f2deeede91cb485e53512efab9c6474" |
41 |
+DESCRIPTION="Clone of EditorConfig core written in Python" |
42 |
+HOMEPAGE="https://editorconfig.org/" |
43 |
+SRC_URI="https://github.com/${PN%-core-py}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
44 |
+ test? ( |
45 |
+ https://github.com/${PN%-core-py}/${PN%-core-py}-core-test/archive/${TESTVER}.tar.gz -> ${PN%-core-py}-core-test-${TESTVER}.tar.gz |
46 |
+ )" |
47 |
+ |
48 |
+LICENSE="PYTHON BSD-4" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="test" |
52 |
+RESTRICT="!test? ( test )" |
53 |
+ |
54 |
+RDEPEND="!<app-vim/editorconfig-vim-0.3.3-r1" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ if use test; then |
58 |
+ mv "${WORKDIR}"/${PN%-core-py}-core-test-${TESTVER}/* "${S}"/tests || die |
59 |
+ fi |
60 |
+ |
61 |
+ cmake_src_prepare |
62 |
+ distutils-r1_src_prepare |
63 |
+} |
64 |
+ |
65 |
+python_test() { |
66 |
+ local mycmakeargs=( |
67 |
+ -DPYTHON_EXECUTABLE="${PYTHON}" |
68 |
+ ) |
69 |
+ |
70 |
+ cmake_src_configure |
71 |
+ cmake_src_compile |
72 |
+ cmake_src_test |
73 |
+} |