diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2013-07-01 11:30:23 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2013-07-01 11:30:23 +0000 |
commit | 372936e20e184040bf73dc554fe79c1791f621f4 (patch) | |
tree | 70e10d99e1d25d95464a8a75bfd15ca9ed6651e1 /dev-python | |
parent | Fixed #406433 and #475196, many thanks to Julian Ospald <hasufell@gentoo.org> (diff) | |
download | historical-372936e20e184040bf73dc554fe79c1791f621f4.tar.gz historical-372936e20e184040bf73dc554fe79c1791f621f4.tar.bz2 historical-372936e20e184040bf73dc554fe79c1791f621f4.zip |
Initial commit, required by recent mwlib/mediawiki to get working pdf-generation solution.
Package-Manager: portage-2.1.11.63/cvs/Linux x86_64
Manifest-Sign-Key: 0x1E0CA85F!
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/mwlib-rl/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/mwlib-rl/Manifest | 21 | ||||
-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 | 11 | ||||
-rw-r--r-- | dev-python/mwlib-rl/mwlib-rl-0.14.3.ebuild | 61 |
5 files changed, 116 insertions, 0 deletions
diff --git a/dev-python/mwlib-rl/ChangeLog b/dev-python/mwlib-rl/ChangeLog new file mode 100644 index 000000000000..cadb1e51e487 --- /dev/null +++ b/dev-python/mwlib-rl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/mwlib-rl +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib-rl/ChangeLog,v 1.1 2013/07/01 11:30:22 dev-zero Exp $ + +*mwlib-rl-0.14.3 (01 Jul 2013) + + 01 Jul 2013; Tiziano Müller <dev-zero@gentoo.org> + +files/0.14.3-use-system-fonts.patch, +metadata.xml, +mwlib-rl-0.14.3.ebuild: + Initial commit, required by recent mwlib/mediawiki to get working pdf- + generation solution. diff --git a/dev-python/mwlib-rl/Manifest b/dev-python/mwlib-rl/Manifest new file mode 100644 index 000000000000..d16505bafbc1 --- /dev/null +++ b/dev-python/mwlib-rl/Manifest @@ -0,0 +1,21 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX 0.14.3-use-system-fonts.patch 470 SHA256 75f7162a37afe36e3760e89b99967f760647474dc2c5d42aae5a3be194dc712c SHA512 f8e7c884d2b0cfd017a28b2ccd8b9995deb99b1db54016336df53014c9a63266543d815a6460b010245d54662f8f89db106ecde6244cb5b3f57fdac00903fbba WHIRLPOOL e7056034b59fe742b486a279e07924e2a310024c882c3e5c565bd966ff8e34907a85903a85611a6564a7c2988538520122452d9b29735b299c25bd87b9cc2a5e +DIST mwlib.rl-0.14.3.zip 4155684 SHA256 a867c88d51a703fc084dafd8a996f9ceaa0a4655f3acddfab82b9fbc2c2148bc SHA512 34fcbd696fcb2a5914be00a31ae49ca51a51efabd875e9133c36053872df69eec4f6d2ef4bae82ff34856a394fa5bdf1501a7a7510269b7ab02314c408c1cfbb WHIRLPOOL 16a6f441349f094613a4493d3bfb7d5dca4d68b347a7923b3e9025e1b3e7a505a6ae4c8850963df36d96d6873bee31acbbf04549625b70feb54810c3cc9fd168 +EBUILD mwlib-rl-0.14.3.ebuild 1821 SHA256 bad4cc04e781acfa3359e390f718a6f754a78479564272a0a9dc920dc4dfcf22 SHA512 22ae7e941b6581f24706a637e764ad5433b17a638647edf163c082703c6b6c51917391bfb2515c80829dd672a9cef468534933df0314c38aab7b1ae47f2e38f0 WHIRLPOOL 4b6201de67d20437ab0f5e3e6a4c1c65fc1adba14994b2ee03433199d02384f18b24dbe186e3c43f3caef5d54baa3a8a0a4b7a1b2ce94887de4f50eee9ddd77f +MISC ChangeLog 474 SHA256 06a37b3bafe179dc623b5f820036860abb74e34eb4c22ad8c07a3b58fee003a5 SHA512 82395c75b664bbbc07e1a8d0b9a565bcb839872f45fc00b106b7f8cef954a8b9db5488237316a7a676b4e448dfafa81e5e3a81a62d313797f3d6904c849bb0a5 WHIRLPOOL c9ca25de1e02c353e456eb2db6f59c8dead5f200363f6c6e1a2dfac8764565939739fd6da3b5a6a96808b5cf0a060df6ae10e64ce8f6f5a997d504a54a2856c8 +MISC metadata.xml 346 SHA256 1189aaefc37f4c8daea523fd87eacd2ccdc44f8a3fdfa45acb9b1ec63218e01e SHA512 ed50d0efb0dcf94f002a6fd85005f1209361d65ab010dde8b6177f89d9a407bb550a077b96d091df182e20faaf305f92aa0d3334faee14d64cda13bce85bb091 WHIRLPOOL b55c65c63d46cd6fc4bf86796ff00afb8a19658a7071d5930199a51d670dd22e4f6ed3cfed9eb6dea4bec860c5e371c8690c9d5570c8bd7452b0addcf25e9051 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQF8BAEBCABmBQJR0WhPXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RjI0QTQ0MjI1OURBNzI4MEIyREExRkQx +RTdDRkM3NzFFMENBODVGAAoJEB58/HceDKhfjNIIAJUEoq9a9NFilj9bbhLd1iuK +OU2ikuTGhD5dy+xCn1OFgmQjGGRRujYQyLdiv//OcBYB/fe/XugV2SucWlbcbxbe +hcoG9xxwyeIITcTsse6XKr7Pd3V7Ex+t7xyVvvXKYRTXIxeIWm61hoclEU8pzfYx +/GJLMo9BrMUxS5pjtREn3qbid8hwWKedsqdQfLcXoyZfgmgsc10kdio/7BclHZYb +lUij92p7U/fsL4v2mNIavHbPvTT8rJne4H5tyKdDm844pWhF7O6OvjVoGrEw8n+I +RUHTC3kAkwWLVFxl8VENh47wtjj5dVo/+4W5U9gTe39Zd998zLrex4MGeJ3bEpQ= +=u5Yg +-----END PGP SIGNATURE----- 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..35972941f838 --- /dev/null +++ b/dev-python/mwlib-rl/metadata.xml @@ -0,0 +1,11 @@ +<?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> + </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.3.ebuild b/dev-python/mwlib-rl/mwlib-rl-0.14.3.ebuild new file mode 100644 index 000000000000..74ee126d64ea --- /dev/null +++ b/dev-python/mwlib-rl/mwlib-rl-0.14.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib-rl/mwlib-rl-0.14.3.ebuild,v 1.1 2013/07/01 11:30:22 dev-zero Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_6,2_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}] dev-python/imaging[${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}/${PV}-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 +} + +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 +} |