dev-python/pymdown-extensions: new package

Package-Manager: Portage-2.3.96, Repoman-2.3.21
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2020-03-27 17:58:38 +01:00
parent ac4b9b8949
commit 38b3dbe3d3
4 changed files with 77 additions and 14 deletions

View File

@@ -1 +1,2 @@
DIST pymdown-extensions-6.3.0.tar.gz 551554 BLAKE2B 718c2d98f077dac38049b458a7430e6e9d13c6516e09990c6e2acc89516ebc9717dd48e5449fd49a0f5fcdfccc55649893a6f857f62fa19edb3db3313aeac773 SHA512 08f679e242205bba9cd98de1ffc492b97c5e568ac5246cfc9a88346240058413a5b532ebd9df45fa6e973dc2d40543fe17460eaf456d88140c426f7f42045384
DIST pymdown-extensions-7.0.0_rc1.tar.gz 576517 BLAKE2B 3987fdce82860776f38ee72cec1fb74cfac12360e6913b9b6ad5b069b0a4320f062ccf3e24755a5fb4e56e96e6bd6981c17efa0eef2b9692537abd82ba388f96 SHA512 467bacc0921e02c04a3209000f65e3600c23408a13ee49bff6fd96fd7b2426ae8a76562d832eaf45a087f98453e54f5294555ece9b42fca0499b57a0f2ebd9f0

View File

@@ -2,8 +2,12 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrewammerlaan@riseup.net</email>
<name>Andrew Ammerlaan</name>
</maintainer>
<maintainer type="person">
<email>andrewammerlaan@riseup.net</email>
<name>Andrew Ammerlaan</name>
</maintainer>
<upstream>
<remote-id type="github">facelessuser/pymdown-extensions</remote-id>
<remote-id type="pypi">pymdown-extensions</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -3,12 +3,15 @@
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
DESCRIPTION="Extensions for Python Markdown."
HOMEPAGE="https://github.com/facelessuser/pymdown-extensions"
HOMEPAGE="
https://github.com/facelessuser/pymdown-extensions
https://pypi.org/project/pymdown-extensions
"
SRC_URI="https://github.com/facelessuser/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
@@ -18,16 +21,21 @@ KEYWORDS="~amd64 ~x86"
# Docs require pymdownx.tabbed which is in master on github atm
# but not in the 6.3.0 release tarballs for some reason
#IUSE="doc"
#REQUIRED_USE="x86? ( !doc )"
#
#BDEPEND="doc? (
# dev-python/mkdocs-material
# dev-python/mkdocs-git-revision-date-localized-plugin )"
RDEPEND=">=dev-python/markdown-3.2[${PYTHON_USEDEP}]"
DEPEND="test? ( dev-python/pyyaml[${PYTHON_USEDEP}] )"
# doc? (
# dev-python/mkdocs-git-revision-date-localized-plugin[${PYTHON_USEDEP}]
# dev-python/mkdocs-material[${PYTHON_USEDEP}]
# dev-python/pymdown-lexers[${PYTHON_USEDEP}]
# dev-python/pyspelling[${PYTHON_USEDEP}]
# )
DEPEND="
${RDEPEND}
test? (
dev-python/pyyaml[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
MYPV="${PV/_/}"
DESCRIPTION="Extensions for Python Markdown."
HOMEPAGE="
https://github.com/facelessuser/pymdown-extensions
https://pypi.org/project/pymdown-extensions
"
SRC_URI="https://github.com/facelessuser/${PN}/archive/${MYPV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND=">=dev-python/markdown-3.2[${PYTHON_USEDEP}]"
BDEPEND="
doc? (
dev-python/mkdocs-git-revision-date-localized-plugin[${PYTHON_USEDEP}]
dev-python/mkdocs-material[${PYTHON_USEDEP}]
dev-python/pymdown-lexers[${PYTHON_USEDEP}]
dev-python/pyspelling[${PYTHON_USEDEP}]
)
"
DEPEND="
${RDEPEND}
test? (
dev-python/pyyaml[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_compile_all() {
default
if use doc; then
mkdocs build || die "failed to make docs"
HTML_DOCS="site"
fi
}