Added package for markdown-2.6.11.
This commit is contained in:
parent
e0a4659264
commit
d477df9dfb
4
dev-python/markdown/Manifest
Normal file
4
dev-python/markdown/Manifest
Normal file
|
@ -0,0 +1,4 @@
|
|||
AUX markdown-2.6.8-dont-build-docs-default.patch 387 BLAKE2B d3ecf07d57d8aae13ecb686ac289d4938ec8e50d643020ccac13b147a5b018a75b32f10ead2dc2bedba309ab6ae3107346ff43155959fdf3e1053e0a9fa13cb8 SHA512 71f7534ce557e061c4f09b9a78aa05fd1e3f16f44c55d5597fa4901c0349f7ec7d0093eab655950812e2cab6d607377d2a15a6583009cb90ae32659c6949cfff
|
||||
DIST Markdown-2.6.11.tar.gz 274132 BLAKE2B 0d14d308c97d925db83d71f3b9be5622e77ee4a159fced15c811390b39950e81bff9ffc567f32e878cbc44014640ab0a2f596258cfd0dce6b66029105cec7370 SHA512 4e7dd3e04f181fa2751a359aede301fb29a23b9af74867ff9d1d0fdd051dcd16d04a5891e37aff0b309649c5fd13363802ec7e10fc33896e9453991efcab4a66
|
||||
EBUILD markdown-2.6.11.ebuild 1418 BLAKE2B 069ef2bc83d4b18c1a6195e3375c6f86c2e457053dca13f9cc79d5cb02df13ebfebc5103bcecf38dd17b9bb730c12268a24ad67a2c1e4036cef4c0eaf05ae472 SHA512 07330b30f8deab9074d00cb60c5248767535a80d2591833f299db5777427e56ffc68a78fb309ee7fd8ed2de6d1cdbb030823696a2786f7f6cf9447e3d011ad52
|
||||
MISC metadata.xml 465 BLAKE2B 8eadaf9d2733b1b3d93a389b0009652eecc3a0c3b6347ada4f27d99bd69b0de1be199eb1da7854655b8814a946f40a711e8fc092b22b214c18dc696dd3c0222a SHA512 4c9a52b62e49040fde94cc2d3d9edf88c42d085639d893fb81d119b8c216100f912e2725a1bbb31b1136b505ef8102f560989289da5aadc6c8f433f0186da44c
|
|
@ -0,0 +1,14 @@
|
|||
Don't build docs by default, which causes issues when trying
|
||||
to remove .txt files, as they will be readded on installing.
|
||||
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -204,7 +204,7 @@
|
||||
|
||||
def initialize_options(self):
|
||||
build.initialize_options(self)
|
||||
- self.no_build_docs = False
|
||||
+ self.no_build_docs = True
|
||||
|
||||
def has_docs(self):
|
||||
return not self.no_build_docs
|
52
dev-python/markdown/markdown-2.6.11.ebuild
Normal file
52
dev-python/markdown/markdown-2.6.11.ebuild
Normal file
|
@ -0,0 +1,52 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python implementation of the markdown markup language"
|
||||
HOMEPAGE="
|
||||
https://python-markdown.github.io/
|
||||
https://pypi.org/project/Markdown/
|
||||
https://github.com/Python-Markdown/markdown"
|
||||
SRC_URI="mirror://pypi/M/${PN^}/${P^}.tar.gz"
|
||||
|
||||
LICENSE="|| ( BSD GPL-2 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc test pygments"
|
||||
|
||||
DEPEND="
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/pytidylib[${PYTHON_USEDEP}]
|
||||
)"
|
||||
# source cites pytidylib however from testruns it appears optional
|
||||
RDEPEND="pygments? ( dev-python/pygments[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${P^}"
|
||||
PATCHES=(
|
||||
# build system always builds docs
|
||||
"${FILESDIR}"/${PN}-2.6.8-dont-build-docs-default.patch
|
||||
)
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
esetup.py build_docs
|
||||
HTML_DOCS=( "${BUILD_DIR}"/docs/. )
|
||||
|
||||
# remove .txt files
|
||||
find "${BUILD_DIR}"/docs -name '*.txt' -delete || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -r -l run-tests.py tests "${BUILD_DIR}"/ || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
"${EPYTHON}" run-tests.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
15
dev-python/markdown/metadata.xml
Normal file
15
dev-python/markdown/metadata.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="pygments">Enable fancy pygments support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="pypi">Markdown</remote-id>
|
||||
<remote-id type="github">waylan/Python-Markdown</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in a new issue