summaryrefslogtreecommitdiff
path: root/dev-python/sip
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/sip')
-rw-r--r--dev-python/sip/Manifest7
-rw-r--r--dev-python/sip/metadata.xml2
-rw-r--r--dev-python/sip/sip-4.19.25-r1.ebuild93
-rw-r--r--dev-python/sip/sip-5.5.0-r2.ebuild (renamed from dev-python/sip/sip-5.5.0-r1.ebuild)6
-rw-r--r--dev-python/sip/sip-6.1.1.ebuild6
5 files changed, 106 insertions, 8 deletions
diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest
index 0cfd0eba7b86..ae6a3c4220e2 100644
--- a/dev-python/sip/Manifest
+++ b/dev-python/sip/Manifest
@@ -2,7 +2,8 @@ AUX sip-4.18-darwin.patch 1187 BLAKE2B a3cd0418de90e7377bc2ae1206f4620c6be379a3b
DIST sip-4.19.25.tar.gz 1056384 BLAKE2B f92e105e6b30e871aea2883dc9cd459e4032fb139a9eaff153a3412a66b39df4d7ac985711a2693aee83195ff3850ae648bee4102f7fc3cc30d09885799f2b98 SHA512 60fb4133c68869bf0993144978b4847d94a0f9c7b477f64a346ea133cfe35bc11820204ab327dcf9a929b6f65a26d16cc7efbce65e49967c3347b39376e57001
DIST sip-5.5.0.tar.gz 1108126 BLAKE2B 59f0323b3befd7ebb89461e93e1e7e5707d11b2882bd524a45f3a6ba8d8a3c792aff5580027255812f6a3fa0854febeb418690fa6106efb21aab1610d66ef911 SHA512 0122beab575239cdb3b1430dc53a7f74175e3fbb3e113bcafced122ffbc4bd3d339b64a672ac1319ea14cd540b5877c2bcfeb7f8821fe8a3c8ba3ce9744bf803
DIST sip-6.1.1.tar.gz 1441692 BLAKE2B 89a350be3e8c87cb76ec4222f0ab753213f324bc4573bee82bc4d014e8984d9d47a6f384793f618d090620a9efa2cfb906070a7d99312a29cac715ec98d97f15 SHA512 94e413c3af4dcac9cbd1eef368f4e88c0b3bfe1ad8b97f4a6ec39af1a448fdf1d79f3c845cf8c9b0ed78b04f2a18d176d750a39d13a47f9122e575d034ed88b4
+EBUILD sip-4.19.25-r1.ebuild 2274 BLAKE2B 6c6b9eda1e03e05a1e92da561a4ab208ebf80b9b546c8bfa0e1a68830d8e6889a1fcd5dfef10c2d184aa8dae55c14b46f1bf281bf5ba87ce80f256f12be6174b SHA512 8fa6edfef0535f920e2fbdc08db3c705d27abdbef4442f72ff7ce796de967190cd7aff0bbc710f3bbf9c481aa984ea44afa7fd6a4131405266dc07200277f3a7
EBUILD sip-4.19.25.ebuild 2266 BLAKE2B 0c407d5662f9b4a52c6609f26f2af147c9f545408d85f4b0ff3607858057f5c8d8e2fdf9b43638037289b1dc7378c77667894b046a37e62d2268e7af635b5ef9 SHA512 ed0d96b98948b38564c61e95d25546306891652fcc2cacfb47fa9d6e535595a4146a82458943cbbc5ed02f58283ebc9ef338c39bd806e3e79114a3e34633bf51
-EBUILD sip-5.5.0-r1.ebuild 768 BLAKE2B 1167c83fe9bf2cc9c2677e7a6cfdd0153ae8fc1f5da12d03752d8939f6d7356d403bf84dede443c3c2e4235f581f841172fe97dbf76c871c750960c5141b3b17 SHA512 30451b2c80746626dd2c7986471bf9d46a39f2c8f0ee00920d58ac26f721aabf0fe8d75757db8e7c7df75f0dfa7c59365eb569337878c26c03a4496997e7c093
-EBUILD sip-6.1.1.ebuild 768 BLAKE2B 1167c83fe9bf2cc9c2677e7a6cfdd0153ae8fc1f5da12d03752d8939f6d7356d403bf84dede443c3c2e4235f581f841172fe97dbf76c871c750960c5141b3b17 SHA512 30451b2c80746626dd2c7986471bf9d46a39f2c8f0ee00920d58ac26f721aabf0fe8d75757db8e7c7df75f0dfa7c59365eb569337878c26c03a4496997e7c093
-MISC metadata.xml 642 BLAKE2B 496a8870b0d30bc0587fb4729dc592eb335a8f7323106f8559a01980e25bd3efcc23ebdebb4a5ae9b1ac2c1397f41b2e48d21daa16b89265531112e5ebd7822f SHA512 d2e0e0b142a3cdb3f7f279c9c16100ba7a720c1d1348282ac4aeaf9541d6a351495a22eeb2e1f60f1dd3ee7998da2624a09b47abcd57093f0e273d797215f8cc
+EBUILD sip-5.5.0-r2.ebuild 866 BLAKE2B 308d448276991b3e1453c2d3778bf14032b68c20d5e33f790a59f5a7438af4ee55f4a6abc1095cf6881f228b9ca6ad9fb0e719cb107c385d37623275afc8a902 SHA512 6ac95eb688c009cd805d475268f8871742bbe2826e697c2ea436f49dbdc817416411c645f8310c92addf5d65de39dc8b2c7943abaefda3cf2ac50d737f6d2d69
+EBUILD sip-6.1.1.ebuild 866 BLAKE2B 308d448276991b3e1453c2d3778bf14032b68c20d5e33f790a59f5a7438af4ee55f4a6abc1095cf6881f228b9ca6ad9fb0e719cb107c385d37623275afc8a902 SHA512 6ac95eb688c009cd805d475268f8871742bbe2826e697c2ea436f49dbdc817416411c645f8310c92addf5d65de39dc8b2c7943abaefda3cf2ac50d737f6d2d69
+MISC metadata.xml 638 BLAKE2B fc7e45529b0822365db27d281febae466f128ddf88223eea8fd2dedc2c4107e0a91a2784bdac69e7ecda930a76e25c5ad80cf3c6d8ef326737cc47e12a571ec3 SHA512 a603d5a00a8315fcf19b860a45660c76c3f4b47199983d2a0ac73ef1d1617afc7c56f67e2ff1c60bfe3fe644aad57ddf47e55ea2fc400fd9851c3a010fcb4cee
diff --git a/dev-python/sip/metadata.xml b/dev-python/sip/metadata.xml
index 6368b9eb51f5..1217d9356984 100644
--- a/dev-python/sip/metadata.xml
+++ b/dev-python/sip/metadata.xml
@@ -10,7 +10,7 @@
<email>phil@riverbankcomputing.com</email>
<name>Phil Thompson</name>
</maintainer>
- <changelog>https://www.riverbankcomputing.com/hg/sip/raw-file/tip/NEWS</changelog>
+ <changelog>https://www.riverbankcomputing.com/hg/sip/file/tip/NEWS</changelog>
<doc>https://www.riverbankcomputing.com/static/Docs/sip/</doc>
<bugs-to>mailto:pyqt@riverbankcomputing.com</bugs-to>
<remote-id type="pypi">sip</remote-id>
diff --git a/dev-python/sip/sip-4.19.25-r1.ebuild b/dev-python/sip/sip-4.19.25-r1.ebuild
new file mode 100644
index 000000000000..6c1abd79157a
--- /dev/null
+++ b/dev-python/sip/sip-4.19.25-r1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit python-r1 toolchain-funcs
+
+DESCRIPTION="Python bindings generator for C/C++ libraries"
+HOMEPAGE="https://www.riverbankcomputing.com/software/sip/"
+
+MY_P=${PN}-${PV/_pre/.dev}
+if [[ ${PV} == *_pre* ]]; then
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz"
+else
+ SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${PN}/${PV}/${MY_P}.tar.gz"
+fi
+S=${WORKDIR}/${MY_P}
+
+# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h
+SLOT="0/12"
+LICENSE="|| ( GPL-2 GPL-3 SIP )"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-4.18-darwin.patch )
+
+src_prepare() {
+ # Sub-slot sanity check
+ local sub_slot=${SLOT#*/}
+ local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h || die)
+ if [[ ${sub_slot} != ${sip_api_major_nr} ]]; then
+ eerror
+ eerror "Ebuild sub-slot (${sub_slot}) does not match SIP_API_MAJOR_NR (${sip_api_major_nr})"
+ eerror "Please update SLOT variable as follows:"
+ eerror " SLOT=\"${SLOT%%/*}/${sip_api_major_nr}\""
+ eerror
+ die "sub-slot sanity check failed"
+ fi
+
+ default
+}
+
+src_configure() {
+ configuration() {
+ local incdir=$(python_get_includedir)
+ local myconf=(
+ "${EPYTHON}"
+ "${S}"/configure.py
+ --sysroot="${ESYSROOT}/usr"
+ --bindir="${EPREFIX}/usr/bin"
+ --destdir="$(python_get_sitedir)"
+ --incdir="${incdir#${SYSROOT}}"
+ --no-dist-info
+ AR="$(tc-getAR) cqs"
+ CC="$(tc-getCC)"
+ CFLAGS="${CFLAGS}"
+ CFLAGS_RELEASE=
+ CXX="$(tc-getCXX)"
+ CXXFLAGS="${CXXFLAGS}"
+ CXXFLAGS_RELEASE=
+ LINK="$(tc-getCXX)"
+ LINK_SHLIB="$(tc-getCXX)"
+ LFLAGS="${LDFLAGS}"
+ LFLAGS_RELEASE=
+ RANLIB=
+ STRIP=
+ )
+ echo "${myconf[@]}"
+ "${myconf[@]}" || die
+ }
+ python_foreach_impl run_in_build_dir configuration
+}
+
+src_compile() {
+ python_foreach_impl run_in_build_dir default
+}
+
+src_install() {
+ installation() {
+ emake DESTDIR="${D}" install
+ python_optimize
+ }
+ python_foreach_impl run_in_build_dir installation
+
+ einstalldocs
+ use doc && dodoc -r doc/html
+}
diff --git a/dev-python/sip/sip-5.5.0-r1.ebuild b/dev-python/sip/sip-5.5.0-r2.ebuild
index 26eee4168c33..4441c9dae792 100644
--- a/dev-python/sip/sip-5.5.0-r1.ebuild
+++ b/dev-python/sip/sip-5.5.0-r2.ebuild
@@ -3,11 +3,11 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7..10} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Python bindings generator for C/C++ libraries"
-HOMEPAGE="https://www.riverbankcomputing.com/software/sip/"
+HOMEPAGE="https://www.riverbankcomputing.com/software/sip/ https://pypi.org/project/sip/"
MY_P=${PN}-${PV/_pre/.dev}
if [[ ${PV} == *_pre* ]]; then
@@ -15,12 +15,14 @@ if [[ ${PV} == *_pre* ]]; then
else
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
fi
+S=${WORKDIR}/${MY_P}
SLOT="5"
LICENSE="|| ( GPL-2 GPL-3 SIP )"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
RDEPEND="
+ !<dev-python/sip-4.19.25-r1[${PYTHON_USEDEP}]
!=dev-python/sip-5.5.0-r0[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/toml[${PYTHON_USEDEP}]
diff --git a/dev-python/sip/sip-6.1.1.ebuild b/dev-python/sip/sip-6.1.1.ebuild
index 26eee4168c33..4441c9dae792 100644
--- a/dev-python/sip/sip-6.1.1.ebuild
+++ b/dev-python/sip/sip-6.1.1.ebuild
@@ -3,11 +3,11 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7..10} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Python bindings generator for C/C++ libraries"
-HOMEPAGE="https://www.riverbankcomputing.com/software/sip/"
+HOMEPAGE="https://www.riverbankcomputing.com/software/sip/ https://pypi.org/project/sip/"
MY_P=${PN}-${PV/_pre/.dev}
if [[ ${PV} == *_pre* ]]; then
@@ -15,12 +15,14 @@ if [[ ${PV} == *_pre* ]]; then
else
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
fi
+S=${WORKDIR}/${MY_P}
SLOT="5"
LICENSE="|| ( GPL-2 GPL-3 SIP )"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
RDEPEND="
+ !<dev-python/sip-4.19.25-r1[${PYTHON_USEDEP}]
!=dev-python/sip-5.5.0-r0[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/toml[${PYTHON_USEDEP}]