mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-10 04:40:27 -04:00
Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
45 lines
813 B
Bash
45 lines
813 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Wrapper around re or regex that adds additional back references"
|
|
HOMEPAGE="
|
|
https://github.com/facelessuser/backrefs
|
|
https://pypi.org/project/backrefs
|
|
"
|
|
SRC_URI="https://github.com/facelessuser/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="doc"
|
|
|
|
DEPEND="
|
|
test? (
|
|
dev-python/mock[${PYTHON_USEDEP}]
|
|
dev-python/regex[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
BDEPEND="
|
|
doc? (
|
|
>=dev-python/mkdocs-material-2.2.5
|
|
dev-python/pyspelling
|
|
)
|
|
"
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
python_compile_all() {
|
|
default
|
|
if use doc; then
|
|
mkdocs build || die "failed to make docs"
|
|
HTML_DOCS="site"
|
|
fi
|
|
}
|