diff --git a/dev-python/mkdocs-pdf-export-plugin/Manifest b/dev-python/mkdocs-pdf-export-plugin/Manifest index 295ee5e..c1a3c71 100644 --- a/dev-python/mkdocs-pdf-export-plugin/Manifest +++ b/dev-python/mkdocs-pdf-export-plugin/Manifest @@ -1,3 +1,3 @@ DIST mkdocs-pdf-export-plugin-0.3.0.tar.gz 6037 BLAKE2B aac4b1bf6f6c6c5d2d4f7c6bfdc78f7673b28deb3c4476ca4d8ac7b444790caea59628b81a55a281d1021a350eb57ab6b972a3cd0bf5e10d5c9179feffad9c9a SHA512 34b8c024fada86c6d95d0e0dc2f4d68bd8deb8e7162a36e8db20803bec9b2b237b80007d50c39da99293f50032a63184a3ccf750eaebb93c2a8544ef99c32f5d -EBUILD mkdocs-pdf-export-plugin-0.3.0.ebuild 475 BLAKE2B a7fa44b6d8d5346130d6b618885f770d14150df1d52cb4a2ad1f9f7ef5f494ce8fbad443b9e559d4fa22719609f10927a89b2fc95862a188ba29cd0b77580022 SHA512 9d7e3dc8b99b03b8495d2bf4d0a34627cec2509da464f930a439c92b57bb4335ab7cbe6f8a6e7148e4ba3e2d1737404e7a1a99cb9692c7c473024987ba1e115b +EBUILD mkdocs-pdf-export-plugin-0.3.0.ebuild 620 BLAKE2B 527c263662c86f9732aac477d188529ba2e975a965b2fc584853786587e9a8205a34294f510882702b56a3a74fbfe4f9d4516c762f31041e4bfe9e9d3f37731d SHA512 221f5b6e91075f1cc8efbc1a835c8006e8a79295039839b7f709405e6f6ac7524e03e0034ce16b6530a52da8997daff4b930225efe8fb92bece7f3a59c89d565 MISC metadata.xml 226 BLAKE2B 4ed57bf1bde92de237c2230c3b438090df447d667f4d8d1178cdecf347d3c3010874febb43e5da8fec3d6c610d9077affd8c0fc7fb4a56a29f59bd1409ddfaca SHA512 6c0e15e104c04fc0da93ada6fb18f6e2e42c164ddc89108ee9f59e619841eebf63999a2c14002cd4e15bbd488c04355e13ff98de117324eccb9ace625b3affc2 diff --git a/dev-python/mkdocs-pdf-export-plugin/mkdocs-pdf-export-plugin-0.3.0.ebuild b/dev-python/mkdocs-pdf-export-plugin/mkdocs-pdf-export-plugin-0.3.0.ebuild index 838c8c3..57801da 100644 --- a/dev-python/mkdocs-pdf-export-plugin/mkdocs-pdf-export-plugin-0.3.0.ebuild +++ b/dev-python/mkdocs-pdf-export-plugin/mkdocs-pdf-export-plugin-0.3.0.ebuild @@ -15,5 +15,11 @@ SLOT="0" KEYWORDS="amd64" IUSE="" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" -RDEPEND="" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/weasyprint-0.42[${PYTHON_USEDEP}] + >=dev-python/beautifulsoup-4.6.3[${PYTHON_USEDEP}] +" +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] +" diff --git a/dev-python/weasyprint/Manifest b/dev-python/weasyprint/Manifest new file mode 100644 index 0000000..d97412f --- /dev/null +++ b/dev-python/weasyprint/Manifest @@ -0,0 +1,3 @@ +DIST WeasyPrint-0.42.3.tar.gz 399972 BLAKE2B add2edbb9f6198659375561eaed55c92972d57be8ef5729e1e6e617035f034fe0fe0a6884b4a46783ea236893d64cd07e6a3c417b35dbbbee96a4d0fdda2bba9 SHA512 d6007934c301904308bd4821626d6a7bb504268c5c71a31f7486faebb3dd649fad18774737cab39eb13a0916635bb58eba2c8432c72cc5a461cea2a5d874b1ee +EBUILD weasyprint-0.42.3.ebuild 1468 BLAKE2B 589e6474546b05b2cd38542d2ff1c4415e526d4f5e08f2ea250b7e67e521de2e35a4f89e74a1ba94c7be7512e7c6872c2631aef6c142c86af93484e45043f74f SHA512 cc74288870f66a25436b7d1aa6e78dddf833bd4a8b7dd736096e6e12f31cbdce325ef8002c098233c73f7c14ac13f11dc022cffb7c0bf58bfe130c5cf2613def +MISC metadata.xml 381 BLAKE2B 422f89ba40bf25e47d53fa91f51ed8b12c5f37a7befd16a2cc2d78335b0dc472180c5e46c6bf890e7a30fc7936e672737e931867097e21a781819fd7ee644e94 SHA512 92ccf545a50a97d2f2cf6f85a6986525ea787d6534682b5fbdd1f0395ed7e938c4e341f5897a663b185d2b2755d4123132b8ec36866b44f2615f08d607a14398 diff --git a/dev-python/weasyprint/metadata.xml b/dev-python/weasyprint/metadata.xml new file mode 100644 index 0000000..7cda8fd --- /dev/null +++ b/dev-python/weasyprint/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + WeasyPrint + Kozea/WeasyPrint + + diff --git a/dev-python/weasyprint/weasyprint-0.42.3.ebuild b/dev-python/weasyprint/weasyprint-0.42.3.ebuild new file mode 100644 index 0000000..fce99c1 --- /dev/null +++ b/dev-python/weasyprint/weasyprint-0.42.3.ebuild @@ -0,0 +1,53 @@ +# 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} ) + +RESTRICT="test" + +inherit distutils-r1 + +DESCRIPTION="Visual rendering engine for HTML and CSS that can export to PDF" +MY_PN="WeasyPrint" +MY_P="${MY_PN}-${PV}" +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" +HOMEPAGE="http://weasyprint.org https://github.com/Kozea/WeasyPrint" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="jpeg jpeg2k test tiff" + +# Note: specific subslot of pango since it inlines some of pango headers. +RDEPEND=" + x11-libs/cairo + x11-libs/gdk-pixbuf[jpeg?,jpeg2k?,tiff?] + x11-libs/pango:0/0 + >=dev-python/cairocffi-0.5[${PYTHON_USEDEP}] + >=dev-python/cffi-0.6:=[${PYTHON_USEDEP}] + >=dev-python/cssselect2-0.1[${PYTHON_USEDEP}] + >=dev-python/html5lib-0.999999999[${PYTHON_USEDEP}] + >=dev-python/lxml-3.0[${PYTHON_USEDEP}] + >=dev-python/pyphen-0.8[${PYTHON_USEDEP}] + >=dev-python/tinycss2-0.5[${PYTHON_USEDEP}] + >=media-gfx/cairosvg-1.0.20[${PYTHON_USEDEP}] + >=dev-python/pdfrw-0.4[${PYTHON_USEDEP}] +" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/pytest-flake8[${PYTHON_USEDEP}] + dev-python/pytest-isort[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + media-fonts/ahem + ) +" + +S="${WORKDIR}/${MY_P}" + +python_test() { + py.test || die "testsuite failed under ${EPYTHON}" +}