diff options
Diffstat (limited to 'dev-python/pycairo')
-rw-r--r-- | dev-python/pycairo/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pycairo/pycairo-1.24.0.ebuild | 61 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/pycairo/Manifest b/dev-python/pycairo/Manifest index e3e83152855e..0b3c578beab1 100644 --- a/dev-python/pycairo/Manifest +++ b/dev-python/pycairo/Manifest @@ -1,4 +1,6 @@ AUX pycairo-1.23.0-fix-sphinx.patch 1052 BLAKE2B bba925ab52ebf9605d74240c2398b27d2accc0b7837416eff8c0577ca5842e6033fd7df9ec98f8230eb6bff9ab2bd8036f8809879e7941d951cc358517f4dcda SHA512 f5fe48770fbfc8eba2f354f09e18e2d20cfe3ea69c4e3ba0c66634cbcc491b583dcb937cb12d85ade1b13c37760ee0cdfbc74f02bc928cdde11efab73cfcf134 DIST pycairo-1.23.0.tar.gz 344623 BLAKE2B e0551e2d4259d509f3165682b11852f28f0df93e6befcd398ef95bc5f0eed0818dc72a05a9b085148d4369e9b3283bc4d91ce032c6c88a3b15962c83eb03db57 SHA512 fc0cc878cc716a6a2baf89a193facfcd89970c884afd3bb9d7fbecf42894ddd191988a8f0fe79100786509f17fbe4f1990eca33a5299414b2df2539d66de5abf +DIST pycairo-1.24.0.tar.gz 344850 BLAKE2B f1469254ccfcb96ee5e39af49fcae575717e2f0e9a3dc74a13408306b5c94f4557a9c6d6a448541cb1f6dd27781e484b37d5ea9f230dc87f9d3370fac31dfdba SHA512 bbc160bc9c3c9365018c680f6a69347bc222cdaec10ea48d18aedd0341048df74973d3299d783662adf02b414874824660da10943d88f64c30451d3fdccc63fb EBUILD pycairo-1.23.0.ebuild 1294 BLAKE2B ac60d557e8fcf399a6772fae488716b969831bfef9048d20642e6afbac68f407174f08476cbed15e6445eb31d4cb4cdfec94166b7573c419c7d98a3e10749943 SHA512 1754cccce33a1010d7ec40396531c8a820ea0148379141bcb3dd794d80cd8187e465bde71429452e1ccdb4cc3faed2a8e51b024327bbb982be41c4c8bdb50d50 +EBUILD pycairo-1.24.0.ebuild 1244 BLAKE2B af59f5dbde8e0b18be0bcf8d6cb2dff2aea21f43984434a081e120fc22f86e2dde31d79c168d9ba5d6bfb25796b604c1729f29e6aae0131722a084a24661747b SHA512 d125788503f1b355065a84257dd2a46bbadbc95a79eb6af4a58c62f0dce3f3d81a301d6e938c7e89ebebff74c194461c5a3f338ee9f5a01be14ffbd3f4a5c5ec MISC metadata.xml 368 BLAKE2B 5e0f85e23bc56113927d28072c7178d27fc058b1e90851150c55e9e713edb96dd5daa79df8423f6719032538c9448d8afa9b750961bd82a5bcfae2d5e228c6b6 SHA512 c1e81ed2f535c8050f18950a57b71aa871b965c57d1e5ca8e8a4c48ecd643bc9ec326e046c1aea9f3f41124b9fe765a0b9b46a541c28f325cae7038cea66d086 diff --git a/dev-python/pycairo/pycairo-1.24.0.ebuild b/dev-python/pycairo/pycairo-1.24.0.ebuild new file mode 100644 index 000000000000..bd565080043a --- /dev/null +++ b/dev-python/pycairo/pycairo-1.24.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python bindings for the cairo library" +HOMEPAGE=" + https://www.cairographics.org/pycairo/ + https://github.com/pygobject/pycairo/ + https://pypi.org/project/pycairo/ +" +SRC_URI=" + https://github.com/pygobject/${PN}/releases/download/v${PV}/${P}.tar.gz +" + +LICENSE="|| ( LGPL-2.1 MPL-1.1 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="examples" + +BDEPEND=" + virtual/pkgconfig + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + >=x11-libs/cairo-1.15.10[svg(+)] +" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" + +distutils_enable_sphinx docs \ + dev-python/sphinx-rtd-theme +distutils_enable_tests pytest + +python_test() { + esetup.py build_tests + epytest +} + +python_install() { + distutils-r1_python_install \ + install_pkgconfig --pkgconfigdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig" +} + +python_install_all() { + if use examples; then + dodoc -r examples + fi + + distutils-r1_python_install_all +} |