mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/pycairo: Drop old
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
DIST py2cairo-1.10.0.tar.bz2 402070 SHA256 d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431 SHA512 cb3d54de9af4134460ce731da8166a3127a642c8a2e6184109437ddec115cd55b8dd2413a5c81700277bfe2f22fcfe268db4f3ba0f7649751e85bb34295f79fc WHIRLPOOL 60b57d55b27f06acd62714ac6ad7973ab973d42995fb536ae800263a2e8c7451a24ccafd96fe30f5bfa26e1ae218934d4fafaafec3e9666a39b33c78672407e2
|
||||
DIST pycairo-1.10.0.tar.bz2 246556 SHA256 9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be SHA512 a03db6f04cea504985f390b0734042390f491f32ae2bee1299dabbafd369fde36bb506ebb941d22bbc11b0d008c4f758baeacf309a7336880529455092db829f WHIRLPOOL e779d56d67ef18bbd052d81acb38d8b610ca4bbf787f4b0e3982633de55ff54d6dfa3e5ce1957321fba09f0ec2d12ce12057335de9d5ff3f84c2bc0530415e76
|
||||
DIST pycairo-1.13.1.tar.gz 123690 SHA256 d8f58de67ddd01eda9e5112de57599b7d0154d71c9474821e98866c228794641 SHA512 705979aec5166d1e750ddf2938934edb18d5093e340d9e604a70dc02499ec478db7b0c84572f7ff287139c1b3982a31a254c36641123aee183b3053efe299d59 WHIRLPOOL 307e052d632a4591b67776b62ea173b647273151411bb8bfa9cc4d6dd066dbba30b3ea2bd1b066f6c91fe0a7275e76d1a6c0ebcb15c9113ab28a3ceec04e59fa
|
||||
DIST pycairo-1.15.0.tar.gz 167963 SHA256 b469b782ffabeeeb5973b64ee55e993521f32ac658b24baccbcd3f939c4f44f8 SHA512 e27f1b31225fe6eba7722a412a4eb9c591a3ce4887ba5a7edb738f757efa8372c1e2cd6ecd52386c350bb5058d8fa1806ee1d5ecabc2377d1934ded29b8592c9 WHIRLPOOL fcd5764ba1f71513ae164555eea081f21565c03ebd2a48cf89adfe29b3f7b3bdd364b5b19f403e5ade3109beddfc81bfbcd25666285dec1a2833c11e8559f249
|
||||
DIST pycairo-1.15.1.tar.gz 175924 SHA256 987d392270247343595d37591f80639ed902fce7e30bd2f944cb1b0a9093553d SHA512 931b6ca704fcae501b7671dd6cd964746951e08b5d09dc7118e3ff5c3c1f8aba9d211efe7867b77bb30f14f4700f888c7ed297ec5e8afca06d3d7327835c8e1f WHIRLPOOL 3d85ebebfab81a9447e4073f00f77ad0dc204f7f18799cec37b1afde50831faaa8fb01a713548917fa6dc80f7a165a4a032c92224cf09c9837b0b6e47e7bb973
|
||||
DIST pycairo-1.15.2.tar.gz 176051 SHA256 a66f30c457736f682162e7b3a33bc5e8915c0f3b31ef9bdb4edf43c81935c914 SHA512 ce0ee0b1775eac75eaee9eddcd9dda21d99a6327bac55e0d2e15ce3a8a1869e4d44c59eada1725ba3cdda16fac4ce33a7c350ffdae3892dac85c5e70033e3ee1 WHIRLPOOL 89d8f9a97c3cd7d5d1b2360641ff361dfca0f2567d01fdc96035f57f5389f49249976c341ff5995d9af515c52171a1e5d0ab222b07d00e4020579b3d35a08a2a
|
||||
DIST pycairo-1.15.3.tar.gz 177056 SHA256 8642e36cef66acbfc02760d2b40c716f5f183d073fb063ba28fd29a14044719d SHA512 1fc75d193eacb976f2e5a594aa07409a0f80ccb21921065c1794961143785eed48be1966d2d2d3e2d0428f9b4e956994dd851d21f3c3cb91fbc27b007a901ce8 WHIRLPOOL e9248366c8eb541bc70ad73c9c6eea995a2527d189584a1ec6f6b835fdeae57d1aa63e2deaa9f790042d0670e7d07af8867b111ac107b53befd354c3cfc70ca1
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
PYTHON_REQ_USE='threads(+)'
|
||||
|
||||
inherit eutils python-r1 waf-utils toolchain-funcs
|
||||
|
||||
PYCAIRO_PYTHON2_VERSION="${PV}"
|
||||
PYCAIRO_PYTHON3_VERSION="${PV}"
|
||||
|
||||
DESCRIPTION="Python bindings for the cairo library"
|
||||
HOMEPAGE="http://cairographics.org/pycairo/ https://pypi.python.org/pypi/pycairo"
|
||||
SRC_URI="http://cairographics.org/releases/py2cairo-${PYCAIRO_PYTHON2_VERSION}.tar.bz2
|
||||
http://cairographics.org/releases/pycairo-${PYCAIRO_PYTHON3_VERSION}.tar.bz2"
|
||||
|
||||
# LGPL-3 for pycairo 1.10.0.
|
||||
# || ( LGPL-2.1 MPL-1.1 ) for pycairo 1.8.10.
|
||||
LICENSE="LGPL-3 || ( LGPL-2.1 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples +svg test xcb"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Note: xpyb is used as the C header, not Python modules
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
>=x11-libs/cairo-1.10.0[svg?,xcb?]
|
||||
xcb? ( x11-libs/xpyb )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
|
||||
pushd "${WORKDIR}/pycairo-${PYCAIRO_PYTHON3_VERSION}" > /dev/null
|
||||
rm -f src/config.h || die
|
||||
epatch "${FILESDIR}/${PN}-1.10.0-svg_check.patch"
|
||||
epatch "${FILESDIR}/${PN}-1.10.0-xpyb.patch"
|
||||
epatch "${FILESDIR}/${PN}-1.10.0-waf-unpack.patch"
|
||||
epatch "${FILESDIR}"/py2cairo-1.10.0-ppc-darwin.patch
|
||||
popd > /dev/null
|
||||
|
||||
pushd "${WORKDIR}/py2cairo-${PYCAIRO_PYTHON2_VERSION}" > /dev/null
|
||||
rm -f src/config.h || die
|
||||
epatch "${FILESDIR}/py2cairo-1.10.0-svg_check.patch"
|
||||
epatch "${FILESDIR}/py2cairo-1.10.0-xpyb.patch"
|
||||
epatch "${FILESDIR}"/py2cairo-1.10.0-ppc-darwin.patch
|
||||
popd > /dev/null
|
||||
|
||||
preparation() {
|
||||
if python_is_python3; then
|
||||
cp -r -l "${WORKDIR}/pycairo-${PYCAIRO_PYTHON3_VERSION}" "${BUILD_DIR}" || die
|
||||
pushd "${BUILD_DIR}" > /dev/null
|
||||
wafdir="$(./waf unpack)"
|
||||
pushd "${wafdir}" > /dev/null
|
||||
epatch "${FILESDIR}/${PN}-1.10.0-waf-py3_4.patch"
|
||||
popd > /dev/null
|
||||
popd > /dev/null
|
||||
else
|
||||
cp -r -l "${WORKDIR}/py2cairo-${PYCAIRO_PYTHON2_VERSION}" "${BUILD_DIR}" || die
|
||||
fi
|
||||
}
|
||||
python_foreach_impl preparation
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if ! use svg; then
|
||||
export PYCAIRO_DISABLE_SVG=1
|
||||
fi
|
||||
|
||||
if ! use xcb; then
|
||||
export PYCAIRO_DISABLE_XPYB=1
|
||||
fi
|
||||
|
||||
tc-export PKG_CONFIG
|
||||
# Also export the var with the slightly diff name that waf uses for no good reason.
|
||||
export PKGCONFIG=${PKG_CONFIG}
|
||||
|
||||
# Added by grobian:
|
||||
# If WAF_BINARY is an absolute path, the configure is different and fails to
|
||||
# find Python.h due to a compiler misconfiguration. If WAF_BINARY is just
|
||||
# ./waf or python waf, it works fine. Hooray for reinvented buildsystems
|
||||
|
||||
# floppym:
|
||||
# pycairo and py2cairo bundle different versions of waf (bug 447856)
|
||||
WAF_BINARY="./waf"
|
||||
python_foreach_impl run_in_build_dir waf-utils_src_configure --nopyc --nopyo
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_foreach_impl run_in_build_dir waf-utils_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
test_installation() {
|
||||
./waf install --destdir="${T}/tests/${BUILD_DIR}"
|
||||
PYTHONPATH="${T}/tests/${BUILD_DIR}$(python_get_sitedir)" py.test -v
|
||||
}
|
||||
python_foreach_impl run_in_build_dir test_installation
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl run_in_build_dir waf-utils_src_install
|
||||
|
||||
dodoc AUTHORS NEWS README
|
||||
|
||||
if use doc; then
|
||||
pushd doc/_build/html > /dev/null || die
|
||||
dohtml -r [a-z]* _static
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r examples/*
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fix install_names; next to waf producing dylibs (not bundles) and
|
||||
# calling them .bundle, it also has no idea what it should do to create
|
||||
# proper ones (dylibs)
|
||||
fix_darwin_install_names() {
|
||||
local x="$(python_get_sitedir)/cairo/_cairo.bundle"
|
||||
install_name_tool -id "${x}" "${ED}${x}"
|
||||
}
|
||||
python_foreach_impl fix_darwin_install_names
|
||||
fi
|
||||
}
|
||||
|
||||
run_in_build_dir() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
"$@"
|
||||
popd > /dev/null || die
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
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"
|
||||
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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples test xcb"
|
||||
|
||||
# Note: xpyb is used as the C header, not Python modules
|
||||
RDEPEND="
|
||||
>=x11-libs/cairo-1.12.0[svg,xcb?]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
xcb? ( $(python_gen_cond_dep '>=x11-libs/xpyb-1.3' 'python2*') )
|
||||
doc? ( dev-python/sphinx )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# Fix pkgconfig path
|
||||
sed -i -e "/libdir =/s:\"lib\":\"$(get_libdir)\":" setup.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
local enable_xpyb
|
||||
python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
|
||||
|
||||
esetup.py build ${enable_xpyb}
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local enable_xpyb
|
||||
[[ ${EPYTHON} == python2* ]] && enable_xpyb=$(usex xcb "--enable-xpyb" "")
|
||||
|
||||
esetup.py test ${enable_xpyb}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/. )
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
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"
|
||||
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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples test xcb"
|
||||
|
||||
# Note: xpyb is used as the C header, not Python modules
|
||||
RDEPEND="
|
||||
>=x11-libs/cairo-1.13.1[svg,xcb?]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
xcb? ( $(python_gen_cond_dep '>=x11-libs/xpyb-1.3' 'python2*') )
|
||||
doc? ( dev-python/sphinx )
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# Fix pkgconfig path
|
||||
sed -i -e "/libdir =/s:\"lib\":\"$(get_libdir)\":" setup.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
local enable_xpyb
|
||||
python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
|
||||
|
||||
esetup.py build ${enable_xpyb}
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local enable_xpyb
|
||||
python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
|
||||
|
||||
esetup.py test ${enable_xpyb}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/. )
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
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"
|
||||
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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples test xcb"
|
||||
|
||||
# Note: xpyb is used as the C header, not Python modules
|
||||
RDEPEND="
|
||||
>=x11-libs/cairo-1.13.1[svg,xcb?]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
xcb? ( $(python_gen_cond_dep '>=x11-libs/xpyb-1.3' 'python2*') )
|
||||
doc? ( dev-python/sphinx )
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# Fix pkgconfig path
|
||||
sed -i -e "/libdir =/s:\"lib\":\"$(get_libdir)\":" setup.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
local enable_xpyb
|
||||
python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
|
||||
|
||||
esetup.py build ${enable_xpyb}
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local enable_xpyb
|
||||
python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
|
||||
|
||||
esetup.py test ${enable_xpyb}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/. )
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
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"
|
||||
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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples test xcb"
|
||||
|
||||
# Note: xpyb is used as the C header, not Python modules
|
||||
RDEPEND="
|
||||
>=x11-libs/cairo-1.13.1[svg,xcb?]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
xcb? ( $(python_gen_cond_dep '>=x11-libs/xpyb-1.3' 'python2*') )
|
||||
doc? ( dev-python/sphinx )
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# Fix pkgconfig path
|
||||
sed -i -e "/libdir =/s:\"lib\":\"$(get_libdir)\":" setup.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
local enable_xpyb
|
||||
python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
|
||||
|
||||
esetup.py build ${enable_xpyb}
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local enable_xpyb
|
||||
python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
|
||||
|
||||
esetup.py test ${enable_xpyb}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/. )
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Reference in New Issue
Block a user