Skip to content

Commit

Permalink
dev-python/markdown: Version bump to 2.6.8
Browse files Browse the repository at this point in the history
* EAPI 6
* Add py3.6 support
* Only build docs when USE="doc"
* Remove superfluous .txt files from
  generated documentation

Package-Manager: Portage-2.3.5, Repoman-2.3.2
  • Loading branch information
SoapGentoo committed Apr 29, 2017
1 parent 275184f commit 20c3a37
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-python/markdown/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ DIST Markdown-2.6.3.tar.gz 301441 SHA256 ad75fc03c45492eba3bc63645e1e6465f65523a
DIST Markdown-2.6.4.tar.gz 301632 SHA256 e436eee7aaf2a230ca3315034dd39e8a0fc27036708acaa3dd70625ec62a94ce SHA512 5fc4ada494880871833046ef9a115385542002e6ec104847353fb2638fce6e46f2bb54ff37bd7d43eb100a448dc424ac425937cadc9ec1d81ea9e70887d8e460 WHIRLPOOL ca0d39b8cbbc124a5a6a4324d627c66d717e1f4c4c43c09d9ff208a23b56b6de79ed7b5cf9a57a2c598a3f40810d4691d42dcbf48690c58d13f38adb8e318490
DIST Markdown-2.6.5.tar.gz 301781 SHA256 8d94cf6273606f76753fcb1324623792b3738c7612c2b180c85cc5e88642e560 SHA512 d966136a7184ada4eec70af661aba441694a8c4f59e57d59a28dfbc1649ca1e90cc1e4a29b354b3caf35362e1e0c96eeb3f46c68f82d7a898b76c08866d459d3 WHIRLPOOL 752414989f7b3ba04f4f4d8b9f855c9d64f816c61b4d6333e1b3c15b2aadf6579f1b1f0a686ca3eccfc3fcdaac8007c6655a0f331d795a8a0b07ef83dda2465c
DIST Markdown-2.6.6.tar.gz 302566 SHA256 9a292bb40d6d29abac8024887bcfc1159d7a32dc1d6f1f6e8d6d8e293666c504 SHA512 cbe9343130e5200f8b5a796e5b9948a27d2bc7896b664d6656827bc0b05abfa5204eefa5eed02afd361b58a72defcf237dc5fd3033586d4465d109b4429caaec WHIRLPOOL 79b46078b96d4bade5ac7bf2cc8f938d643392e8d49920a7767c74f4c7f44d11d00ac32c3f53494dfe75475666858b0480428b6dec69f1cfb05a54a9fcdedd82
DIST Markdown-2.6.8.tar.gz 307330 SHA256 0ac8a81e658167da95d063a9279c9c1b2699f37c7c4153256a458b3a43860e33 SHA512 85c1a16ebb50af79f378eb2fa936342df6174a4f597a74fee6d0495ef2bc4c7c8337463799e427cb6788b3429e400309958b5c4784f536593047ab2e47ac7c23 WHIRLPOOL a7472b1feb23db0b6fbf8826979d1f82ad6e84dd6d33b66e4bfba9c2914ff10ec278d444aa8ab740d1d290cb1bd6682cb4f6e9cedf66c5cae8d0a5f96cfd4804
Original file line number Diff line number Diff line change
@@ -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
53 changes: 53 additions & 0 deletions dev-python/markdown/markdown-2.6.8.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright 1999-2017 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="
http://www.freewisdom.org/projects/python-markdown
https://pypi.python.org/pypi/Markdown
https://pythonhosted.org/Markdown/
https://github.com/waylan/Python-Markdown"
SRC_URI="mirror://pypi/M/${PN^}/${P^}.tar.gz"

LICENSE="|| ( BSD GPL-2 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~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}"
}

0 comments on commit 20c3a37

Please sign in to comment.