diff --git a/dev-python/pycups/Manifest b/dev-python/pycups/Manifest new file mode 100644 index 000000000..7c3e4a1b9 --- /dev/null +++ b/dev-python/pycups/Manifest @@ -0,0 +1,3 @@ +DIST pycups-1.9.73.tar.bz2 52732 BLAKE2B a6c9750970548ba85cdef4041f716491e9b0cf4273cb5381bca8e57deab457affaa62eccf74d36eb3f8b047e5142c952e56e7e624f85ed7959a769f568824f26 SHA512 ee893d64f1645b71805ac358c4a3cc594f6285f04272ff0558aa60cbc90fafdbac30b623ffcc3a6b739218d9fd7a6a6e1d8cb186a5582f2cc30a518ed4dde810 +EBUILD pycups-1.9.73-r3.ebuild 1188 BLAKE2B a26c79891d3b34516f99fe3e8dd223b5a9176e49427833ee2d3e80ee1d6d078e68450327c8a71db84982ac46aa248092e39528fd9c7c8fb52d6e5da2b7e63cd1 SHA512 8d954d8999e898c6825089ed249dfeb4ae13b357676d3ebdd5a3fc279d043ade9f03612640fc2542daaf08bc740f0169f0ec5aad76db81fbd3abf6054f099d64 +MISC metadata.xml 567 BLAKE2B e0f8590318ffd3bf0963973f947ade6be086cf99f5f09b49cbc6ecef7ce397aecffd3cb534339a3a86ae98b88da8c60619a610bb8eac9ec1ccebfdcbc329408b SHA512 63e388902a77c052d0944b84805ec0905598e7f0126eb67813e4c75f3a11a51c2ba8ae46e0f8c3bd64f5c96806e0784c23b2b3e35d3261aba65b267fd28f6c71 diff --git a/dev-python/pycups/metadata.xml b/dev-python/pycups/metadata.xml new file mode 100644 index 000000000..7ae4baef6 --- /dev/null +++ b/dev-python/pycups/metadata.xml @@ -0,0 +1,17 @@ + + + + + reavertm@gentoo.org + Maciej Mrozowski + + + printing@gentoo.org + Gentoo Printing Project + + + pycups + OpenPrinting/pycups + https://github.com/OpenPrinting/pycups/issues + + diff --git a/dev-python/pycups/pycups-1.9.73-r3.ebuild b/dev-python/pycups/pycups-1.9.73-r3.ebuild new file mode 100644 index 000000000..b22a23b65 --- /dev/null +++ b/dev-python/pycups/pycups-1.9.73-r3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit distutils-r1 + +DESCRIPTION="Python bindings for the CUPS API" +HOMEPAGE="http://cyberelk.net/tim/data/pycups/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ppc ppc64 ~sh sparc x86" +SLOT="0" +IUSE="doc examples" + +RDEPEND=" + net-print/cups +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${RDEPEND} +" + +# epydoc kinda sucks and supports python2 only (it's dead too), +# and since we're dealing with a binary module we need exact version +# match. therefore, docbuilding *requires* any python2 being enabled. + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_compile_all() { + if use doc; then + # we can't use Makefile since it relies on hardcoded paths + epydoc -o html --html cups || die "doc build failed" + HTML_DOCS=( html/. ) + fi +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +}