Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgdev/
Date: Mon, 26 Sep 2022 15:15:35
Message-Id: 1664205320.74d89f839f658bb109e84584b2d8c9c848c92f1a.arthurzam@gentoo
1 commit: 74d89f839f658bb109e84584b2d8c9c848c92f1a
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 26 14:26:31 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 26 15:15:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74d89f83
7
8 dev-util/pkgdev: drop 0.2.1-r2
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-util/pkgdev/pkgdev-0.2.1-r2.ebuild | 87 ----------------------------------
13 1 file changed, 87 deletions(-)
14
15 diff --git a/dev-util/pkgdev/pkgdev-0.2.1-r2.ebuild b/dev-util/pkgdev/pkgdev-0.2.1-r2.ebuild
16 deleted file mode 100644
17 index 44be5d07be53..000000000000
18 --- a/dev-util/pkgdev/pkgdev-0.2.1-r2.ebuild
19 +++ /dev/null
20 @@ -1,87 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=8
25 -
26 -# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-pkgdev-docs
27 -# Set to 1 if prebuilt, 0 if not
28 -# (the construct below is to allow overriding from env for script)
29 -PKGDEV_DOCS_PREBUILT=${PKGDEV_DOCS_PREBUILT:-1}
30 -PKGDEV_DOCS_PREBUILT_DEV=sam
31 -PKGDEV_DOCS_VERSION=$(ver_cut 1-3)
32 -# Default to generating docs (inc. man pages) if no prebuilt; overridden later
33 -PKGDEV_DOCS_USEFLAG="+doc"
34 -
35 -PYTHON_COMPAT=( python3_{8..10} )
36 -DISTUTILS_IN_SOURCE_BUILD=1
37 -inherit distutils-r1
38 -
39 -if [[ ${PV} == *9999 ]] ; then
40 - PKGDEV_DOCS_PREBUILT=0
41 -
42 - EGIT_REPO_URI="https://github.com/pkgcore/pkgdev.git"
43 - inherit git-r3
44 -else
45 - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 -
47 - if [[ ${PKGDEV_DOCS_PREBUILT} == 1 ]] ; then
48 - SRC_URI+=" !doc? ( https://dev.gentoo.org/~${PKGDEV_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${PKGDEV_DOCS_VERSION}-docs.tar.xz )"
49 - fi
50 -
51 - KEYWORDS="amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv sparc x86 ~x64-macos"
52 -fi
53 -
54 -DESCRIPTION="Collection of tools for Gentoo development"
55 -HOMEPAGE="https://github.com/pkgcore/pkgdev"
56 -
57 -LICENSE="BSD MIT"
58 -SLOT="0"
59 -
60 -[[ ${PKGDEV_DOCS_PREBUILT} == 1 ]] && PKGDEV_DOCS_USEFLAG="doc"
61 -
62 -IUSE="${PKGDEV_DOCS_USEFLAG}"
63 -
64 -if [[ ${PV} == *9999 ]] ; then
65 - # https://github.com/pkgcore/pkgdev/blob/main/requirements/dev.txt
66 - RDEPEND="
67 - ~dev-python/snakeoil-9999[${PYTHON_USEDEP}]
68 - ~dev-util/pkgcheck-9999[${PYTHON_USEDEP}]
69 - ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]
70 - "
71 -else
72 - # https://github.com/pkgcore/pkgdev/blob/main/requirements/install.txt
73 - RDEPEND="
74 - >=dev-python/snakeoil-0.9.6[${PYTHON_USEDEP}]
75 - >=dev-util/pkgcheck-0.10.0[${PYTHON_USEDEP}]
76 - >=sys-apps/pkgcore-0.12.0[${PYTHON_USEDEP}]
77 - "
78 -fi
79 -
80 -# Uses pytest but we want to use the setup.py runner to get generated modules
81 -BDEPEND+="test? ( dev-python/pytest )"
82 -RDEPEND+="dev-vcs/git"
83 -
84 -PATCHES=(
85 - "${FILESDIR}"/${P}-fix-signoff-example.patch
86 -)
87 -
88 -distutils_enable_sphinx doc
89 -distutils_enable_tests setup.py
90 -
91 -python_compile_all() {
92 - use doc && emake -C doc man
93 -
94 - # HTML pages only
95 - sphinx_compile_all
96 -}
97 -
98 -python_install_all() {
99 - # If USE=doc, there'll be newly generated docs which we install instead.
100 - if use doc ; then
101 - doman doc/_build/man/*
102 - elif ! use doc && [[ ${PKGDEV_DOCS_PREBUILT} == 1 ]] ; then
103 - doman "${WORKDIR}"/${PN}-${PKGDEV_DOCS_VERSION}-docs/man/*.[0-8]
104 - fi
105 -
106 - distutils-r1_python_install_all
107 -}