Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pkgcore/
Date: Thu, 19 Sep 2019 05:05:01
Message-Id: 1568869469.d49307618eceb1adda3fd6c6f0f4b64153c156bf.radhermit@gentoo
1 commit: d49307618eceb1adda3fd6c6f0f4b64153c156bf
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 19 04:48:46 2019 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 19 05:04:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4930761
7
8 sys-apps/pkgcore: version bump to 0.10.4
9
10 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
11
12 sys-apps/pkgcore/Manifest | 1 +
13 sys-apps/pkgcore/pkgcore-0.10.4.ebuild | 53 ++++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/sys-apps/pkgcore/Manifest b/sys-apps/pkgcore/Manifest
17 index 44c8d258ae2..ed521da46ec 100644
18 --- a/sys-apps/pkgcore/Manifest
19 +++ b/sys-apps/pkgcore/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pkgcore-0.10.3.tar.gz 644700 BLAKE2B f59e772898ae9e0cb379e31663b5716bdfdeb9d0aa71eacb835e76e92cd3c77b52cd0ec9ca709e1d6f54d7ee54aba700ebcf0eab95257faeafad7ea382e5b4ff SHA512 28bd95f7e4c478409b81662a6e4b012ce8cf5f019158d003321cffb5f0418ec84d62ac0b738d42fea46ab49402b7d98f909e6473be439e0e0a02f1dc662109e0
22 +DIST pkgcore-0.10.4.tar.gz 643418 BLAKE2B 69903503aba6a5baae82a3bbe10ded087c11bf16f14e30d2880132afa9c9b10671c2e44e28269275e926fc881df72b44c2e7c30506ecd0ba5f54df56444fa78a SHA512 f31c639a2260ccdbb6acba878658a1af7f58e2a239fc6faa8329a16543be74440e6eb437b93316bd871c6aa471b75dad5396702d39c1d577de4671cdccd18954
23 DIST pkgcore-0.9.7.tar.gz 592202 BLAKE2B fa16380e89ad2fb2a05d8f08387c3cfa2203b4e6faad3fc4758d572eb08d6c64f781eef8c2d56151f1facec3a202325d4c4a271a1a3ced88df7371f2af75dbf3 SHA512 cb996fd35a8e4e73acfacf1942d498932ec092a282397bd41df72eea26b6d08c15e01b96ece8ebb6876e84281d85d4f8ef81e1f2ef107adff1b984ee592d6a6f
24
25 diff --git a/sys-apps/pkgcore/pkgcore-0.10.4.ebuild b/sys-apps/pkgcore/pkgcore-0.10.4.ebuild
26 new file mode 100644
27 index 00000000000..670df92a2cf
28 --- /dev/null
29 +++ b/sys-apps/pkgcore/pkgcore-0.10.4.ebuild
30 @@ -0,0 +1,53 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python3_{6,7} )
36 +DISTUTILS_IN_SOURCE_BUILD=1
37 +inherit distutils-r1
38 +
39 +if [[ ${PV} == *9999 ]] ; then
40 + EGIT_REPO_URI="https://github.com/pkgcore/pkgcore.git"
41 + inherit git-r3
42 +else
43 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
44 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +fi
46 +
47 +DESCRIPTION="a framework for package management"
48 +HOMEPAGE="https://github.com/pkgcore/pkgcore"
49 +
50 +LICENSE="BSD MIT"
51 +SLOT="0"
52 +IUSE="doc test"
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
56 +if [[ ${PV} == *9999 ]]; then
57 + RDEPEND+=" ~dev-python/snakeoil-9999[${PYTHON_USEDEP}]"
58 +else
59 + RDEPEND+=" >=dev-python/snakeoil-0.8.3[${PYTHON_USEDEP}]"
60 +fi
61 +DEPEND="${RDEPEND}
62 + dev-python/setuptools[${PYTHON_USEDEP}]
63 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
64 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
65 +"
66 +
67 +python_compile_all() {
68 + local esetup_args=( $(usex doc "--enable-html-docs" "") )
69 + # only build man pages for live ebuilds if doc USE flag is enabled
70 + [[ ${PV} == *9999 ]] && esetup_args+=( $(usex doc "--enable-man-pages" "") )
71 + esetup.py build "${esetup_args[@]}"
72 +}
73 +
74 +python_test() {
75 + esetup.py test
76 +}
77 +
78 +python_install_all() {
79 + esetup.py install_docs \
80 + --docdir="${ED%/}/usr/share/doc/${PF}" \
81 + --mandir="${ED%/}/usr/share/man"
82 + distutils-r1_python_install_all
83 +}