summaryrefslogtreecommitdiff
path: root/dev-util/pkgdev
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/pkgdev')
-rw-r--r--dev-util/pkgdev/Manifest2
-rw-r--r--dev-util/pkgdev/metadata.xml11
-rw-r--r--dev-util/pkgdev/pkgdev-9999.ebuild56
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-util/pkgdev/Manifest b/dev-util/pkgdev/Manifest
new file mode 100644
index 000000000000..fb899bbdcc3f
--- /dev/null
+++ b/dev-util/pkgdev/Manifest
@@ -0,0 +1,2 @@
+EBUILD pkgdev-9999.ebuild 1250 BLAKE2B 57ff9a8e6d25ad8c7e8ebb63a213fe31656ffd19fe21d255c7384b801cb649bbf247ed9e06a6f6f6866dfda398837e4d293aafe1ddf94534e52654b60d70caf6 SHA512 d6c56880df065e97fd30331ad0881ca533695b4dc55fc3d876faa000c8d31968ecb387e6fed6b4dfc88f26ba0da85bc6887b7980e1adab44730c3c7743ee3abd
+MISC metadata.xml 318 BLAKE2B 857b4e6e454663321e0c8f2b9083246459e751c4a1b0c7d900935274efcb63e82379e66984639e41a1adddb32cb995d4ccc99e910f76f3bf19d543d82520b1ef SHA512 40feecfb7907213bad0ee60f17e748aebbc4df381f59bfa47f3a5c9938917b032a37dce6650be4d60e695c17356290a7be984e1d235d219749b11d73d2fa2f6e
diff --git a/dev-util/pkgdev/metadata.xml b/dev-util/pkgdev/metadata.xml
new file mode 100644
index 000000000000..cac3fc36e45a
--- /dev/null
+++ b/dev-util/pkgdev/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">pkgcore/pkgdev</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/pkgdev/pkgdev-9999.ebuild b/dev-util/pkgdev/pkgdev-9999.ebuild
new file mode 100644
index 000000000000..6a425ed841c9
--- /dev/null
+++ b/dev-util/pkgdev/pkgdev-9999.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..9} )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit distutils-r1
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/pkgcore/pkgdev.git"
+ inherit git-r3
+else
+ KEYWORDS="~amd64"
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="pkgcore-based git QA tool"
+HOMEPAGE="https://github.com/pkgcore/pkgdev"
+
+LICENSE="BSD MIT"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]] ; then
+ # https://github.com/pkgcore/pkgdev/blob/main/requirements/dev.txt
+ RDEPEND="
+ ~dev-python/snakeoil-9999[${PYTHON_USEDEP}]
+ ~dev-util/pkgcheck-9999[${PYTHON_USEDEP}]
+ dev-vcs/git
+ ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]
+ "
+fi
+
+# Releases (in future): https://github.com/pkgcore/pkgdev/blob/main/requirements/install.txt
+
+distutils_enable_sphinx doc
+distutils_enable_tests pytest
+
+python_install_all() {
+ # We'll generate man pages ourselves
+ # Revisit when a release is made
+ # to pregenerate them, making USE=doc
+ # for generating the real HTML docs only.
+ if use doc ; then
+ cd doc || die
+ emake man
+ doman _build/man/*
+ fi
+
+ cd .. || die
+
+ # HTML pages only
+ sphinx_compile_all
+
+ distutils-r1_python_install_all
+}