diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/mwlib-rl | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/mwlib-rl')
-rw-r--r-- | dev-python/mwlib-rl/Manifest | 2 | ||||
-rw-r--r-- | dev-python/mwlib-rl/files/0.14.3-use-system-fonts.patch | 13 | ||||
-rw-r--r-- | dev-python/mwlib-rl/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/mwlib-rl/mwlib-rl-0.14.5.ebuild | 61 | ||||
-rw-r--r-- | dev-python/mwlib-rl/mwlib-rl-0.14.6.ebuild | 61 |
5 files changed, 149 insertions, 0 deletions
diff --git a/dev-python/mwlib-rl/Manifest b/dev-python/mwlib-rl/Manifest new file mode 100644 index 000000000000..5fd8f029777e --- /dev/null +++ b/dev-python/mwlib-rl/Manifest @@ -0,0 +1,2 @@ +DIST mwlib.rl-0.14.5.zip 4239803 SHA256 dddf9603ea0ca5aa87890217709eb5a5b16baeca547db3daad43c3ace73b6bc1 SHA512 a874b4aa6318a86d47cdf1f44d66e8a52d4504b2e05ca2b8f365a31a613840c04aac79addedc8ce4df7f3059e6a9a25ba933d1b94c636cc3cdf74a8e0f6e63ec WHIRLPOOL d85e9187d01412000376a2b8a1047d474f37b463c752a3beebe6720059617c576ae32f8535d7a6f9d4871c1ea148ded5fdc3cf9a6f1dc56c7ec8ec1ec9a4e780 +DIST mwlib.rl-0.14.6.tar.gz 4018190 SHA256 12862d1bd1344cb326dc24a0a6a8dd4a95589bcd8f66cef7a0f6b016b7307108 SHA512 35c32b2c63f6a614002104ddc77827ee11c02e86b77cf9aca8520a1cdbe43a86a7efe093bface1e67a9dfcafc1e48e208a945c170d5aa5041c23e2b61c37e066 WHIRLPOOL 1770a1f001ed3643d8c3415a0d4bfd7b3213a87694edbbb5b6b54495a5b96da28c32b3ae47711db01c55e0a697f87469cf2b507e97ffa9f633d2bf0a10f930df diff --git a/dev-python/mwlib-rl/files/0.14.3-use-system-fonts.patch b/dev-python/mwlib-rl/files/0.14.3-use-system-fonts.patch new file mode 100644 index 000000000000..bf6bea78057b --- /dev/null +++ b/dev-python/mwlib-rl/files/0.14.3-use-system-fonts.patch @@ -0,0 +1,13 @@ +diff --git a/mwlib/rl/fontconfig.py b/mwlib/rl/fontconfig.py +index fdf5cba..ab792df 100755 +--- a/mwlib/rl/fontconfig.py ++++ b/mwlib/rl/fontconfig.py +@@ -14,7 +14,7 @@ from reportlab.pdfbase import pdfmetrics + from reportlab.pdfbase.ttfonts import TTFont + from reportlab.pdfbase.cidfonts import UnicodeCIDFont + +-font_paths = [os.path.dirname(mwlib.fonts.__file__), ++font_paths = ['/usr/share/fonts', + os.path.expanduser('~/mwlibfonts/') + ] + diff --git a/dev-python/mwlib-rl/metadata.xml b/dev-python/mwlib-rl/metadata.xml new file mode 100644 index 000000000000..afa512415f69 --- /dev/null +++ b/dev-python/mwlib-rl/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <upstream> + <remote-id type="pypi">mwlib.rl</remote-id> + <remote-id type="github">pediapress/mwlib.rl</remote-id> + </upstream> + <use> + <flag name="pdftk">Enable support for <pkg>app-text/pdftk</pkg>, required to generate TOCs</flag> + </use> +</pkgmetadata> diff --git a/dev-python/mwlib-rl/mwlib-rl-0.14.5.ebuild b/dev-python/mwlib-rl/mwlib-rl-0.14.5.ebuild new file mode 100644 index 000000000000..d8c650bfc3e5 --- /dev/null +++ b/dev-python/mwlib-rl/mwlib-rl-0.14.5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Generate pdfs from mediawiki markup" +HOMEPAGE="http://code.pediapress.com/wiki/wiki http://pypi.python.org/pypi/mwlib.rl" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test pdftk" + +RDEPEND=">=dev-python/mwlib-0.15.8-r1[${PYTHON_USEDEP}] + >=dev-python/mwlib-ext-0.12.4-r1[${PYTHON_USEDEP}] + >=dev-python/pygments-1.4[${PYTHON_USEDEP}] + dev-python/simplejson[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + media-fonts/freefont + || ( media-gfx/graphicsmagick[imagemagick] media-gfx/imagemagick ) + pdftk? ( app-text/pdftk )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + app-arch/unzip + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/0.14.3-use-system-fonts.patch" ) +DOCS=( example-mwlib.config README.rst ) + +python_prepare_all() { + rm -r mwlib/fonts/freefont || die "removing bundled fonts failed" + distutils-r1_python_prepare_all +} + +python_test() { + py.test || die "tests failed under ${EPYTHON}" +} + +pkg_postinst() { + elog "If you need extended/non-lating rendering support, please install the" + elog "corresponding font packages:" + elog " - media-fonts/libertine-ttf" + elog " - media-fonts/sil-ezra" + elog " - media-fonts/farsi-fonts" + elog " - media-fonts/arphicfonts" + elog " - media-fonts/unfonts" + # TODO: need the following packages as well: + # ttf-indic-fonts ttf-gfs-artemisia ttf-thai-arundina +} diff --git a/dev-python/mwlib-rl/mwlib-rl-0.14.6.ebuild b/dev-python/mwlib-rl/mwlib-rl-0.14.6.ebuild new file mode 100644 index 000000000000..a77f6f022667 --- /dev/null +++ b/dev-python/mwlib-rl/mwlib-rl-0.14.6.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Generate pdfs from mediawiki markup" +HOMEPAGE="http://code.pediapress.com/code/ http://pypi.python.org/pypi/mwlib.rl https://github.com/pediapress/mwlib.rl/" +SRC_URI="https://github.com/pediapress/mwlib.rl/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test pdftk" + +RDEPEND=">=dev-python/mwlib-0.15.8-r1[${PYTHON_USEDEP}] + >=dev-python/mwlib-ext-0.12.4-r1[${PYTHON_USEDEP}] + >=dev-python/pygments-1.4[${PYTHON_USEDEP}] + dev-python/simplejson[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + media-fonts/freefont + || ( media-gfx/graphicsmagick[imagemagick] media-gfx/imagemagick ) + pdftk? ( app-text/pdftk )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + app-arch/unzip + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/0.14.3-use-system-fonts.patch" ) +DOCS=( example-mwlib.config README.rst ) + +python_prepare_all() { + rm -r mwlib/fonts/freefont || die "removing bundled fonts failed" + distutils-r1_python_prepare_all +} + +python_test() { + py.test || die "tests failed under ${EPYTHON}" +} + +pkg_postinst() { + elog "If you need extended/non-lating rendering support, please install the" + elog "corresponding font packages:" + elog " - media-fonts/libertine-ttf" + elog " - media-fonts/sil-ezra" + elog " - media-fonts/farsi-fonts" + elog " - media-fonts/arphicfonts" + elog " - media-fonts/unfonts" + # TODO: need the following packages as well: + # ttf-indic-fonts ttf-gfs-artemisia ttf-thai-arundina +} |