Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pkgcore/
Date: Fri, 30 Sep 2022 15:41:46
Message-Id: 1664552494.e5c9521427a3f3a6590baefbd181a8c310b1413c.arthurzam@gentoo
1 commit: e5c9521427a3f3a6590baefbd181a8c310b1413c
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 15:36:31 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 15:41:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5c95214
7
8 sys-apps/pkgcore: add 0.12.15
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 sys-apps/pkgcore/Manifest | 1 +
13 sys-apps/pkgcore/pkgcore-0.12.15.ebuild | 56 +++++++++++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/sys-apps/pkgcore/Manifest b/sys-apps/pkgcore/Manifest
17 index 8931e719f425..e7e6b34fff24 100644
18 --- a/sys-apps/pkgcore/Manifest
19 +++ b/sys-apps/pkgcore/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pkgcore-0.12.13.tar.gz 625121 BLAKE2B add4e54c9d92570f4a4e9dad1af45f7c10e4fa48a312f1dd07b24bede5bf796d523d0a8b8d069234e92db5cf64bfb2911c57e5161ebdb7325bfb336237066b73 SHA512 26267f8ac2c79408467a20decd5fa5b12c075269b3bec155f185349186d920b5273ad1666879ac59caf08af022c2395fe737e2d51f26f9674996767bfbfb9bc6
22 DIST pkgcore-0.12.14.tar.gz 623778 BLAKE2B 2ac96b45f1aa7b480e5c721c6d354b9b248f1c9111302a1734e33884ada2e7cd62900f6a2162f445f36576beed8fb866952c29728d2084feef7ee492d75b8724 SHA512 760e4491b8613c37e6b88fbded67494a314789fddb78729c7833b7d1678559618c42d9fa10d0c58af1fc9e659766e26b2d9d6d98bf7e90654a2991569defcbff
23 +DIST pkgcore-0.12.15.tar.gz 623988 BLAKE2B cea8187ec5f02990b5501c0d1d97a1d228de58c78e2be733074f312f1d3a1016722a0a7765b8c4284381082144164f39691c1118e6f5b509e76cf86fb9c410ff SHA512 cc70b9e0afda4958d7dd3889276f3cb3eb3873c3e866c862330ca4e935e022d742bb0e218b09a0ef584a411ef4924ae45da65db9d28147263a578157dae67c7f
24
25 diff --git a/sys-apps/pkgcore/pkgcore-0.12.15.ebuild b/sys-apps/pkgcore/pkgcore-0.12.15.ebuild
26 new file mode 100644
27 index 000000000000..f1cb1a254268
28 --- /dev/null
29 +++ b/sys-apps/pkgcore/pkgcore-0.12.15.ebuild
30 @@ -0,0 +1,56 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +inherit distutils-r1
39 +
40 +if [[ ${PV} == *9999 ]] ; then
41 + EGIT_REPO_URI="https://github.com/pkgcore/pkgcore.git"
42 + inherit git-r3
43 +else
44 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
45 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +fi
47 +
48 +DESCRIPTION="a framework for package management"
49 +HOMEPAGE="https://github.com/pkgcore/pkgcore"
50 +
51 +LICENSE="BSD MIT"
52 +SLOT="0"
53 +
54 +RDEPEND="
55 + >=app-shells/bash-5.0
56 + dev-python/lxml[${PYTHON_USEDEP}]
57 +"
58 +if [[ ${PV} == *9999 ]]; then
59 + RDEPEND+=" ~dev-python/snakeoil-9999[${PYTHON_USEDEP}]"
60 +else
61 + RDEPEND+=" >=dev-python/snakeoil-0.10.0[${PYTHON_USEDEP}]"
62 +fi
63 +BDEPEND="
64 + test? (
65 + >=dev-python/pytest-6[${PYTHON_USEDEP}]
66 + dev-vcs/git
67 + )
68 +"
69 +
70 +distutils_enable_tests setup.py
71 +
72 +src_test() {
73 + # With PYTHONDONTWRITEBYTECODE=, python will try rebuild all sorts of modules.
74 + # https://bugs.gentoo.org/840266
75 + local -x SANDBOX_PREDICT=${SANDBOX_PREDICT}
76 + addpredict /
77 +
78 + local -x PYTHONDONTWRITEBYTECODE=
79 + distutils-r1_src_test
80 +}
81 +
82 +python_install_all() {
83 + local DOCS=( NEWS.rst )
84 + [[ ${PV} == *9999 ]] || doman man/*
85 + distutils-r1_python_install_all
86 +}