diff options
-rw-r--r-- | dev-python/sip/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/sip/Manifest | 31 | ||||
-rw-r--r-- | dev-python/sip/sip-4.9999.ebuild | 112 |
3 files changed, 134 insertions, 16 deletions
diff --git a/dev-python/sip/ChangeLog b/dev-python/sip/ChangeLog index dacd9288ecb5..31ece88a8964 100644 --- a/dev-python/sip/ChangeLog +++ b/dev-python/sip/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/sip # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/ChangeLog,v 1.312 2015/07/22 03:21:29 pesa Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/ChangeLog,v 1.313 2015/07/29 16:49:15 pesa Exp $ + +*sip-4.9999 (29 Jul 2015) + + 29 Jul 2015; Davide Pesavento <pesa@gentoo.org> +sip-4.9999.ebuild: + Import live ebuild from qt overlay. *sip-4.16.9 (22 Jul 2015) diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest index f65b83f7eadb..0a19d436ffb9 100644 --- a/dev-python/sip/Manifest +++ b/dev-python/sip/Manifest @@ -8,24 +8,25 @@ DIST sip-4.16.9.tar.gz 957858 SHA256 dbe173aa566e26ca0bb5bcbc1d30ef780f416267bb3 EBUILD sip-4.16.2.ebuild 2959 SHA256 72d3382457916f7193ce80ce88bb053428e8752f049e990f97e30bbb2e0da221 SHA512 63ee075f777e6aba549de94f5c5454501f0546e6b674498a9b4cef56c90b422f8157982aa68098594ece41b2fbf2676843b485bb24e725dd95a41243785c5ee0 WHIRLPOOL abac0936c5f313da0130a6b4d358c789f773c39ad8b8ab69346571dbf24e740d337d3c2e67840424db650c768c364f3f7cceec0e48346d7b62f4934af18d3f84 EBUILD sip-4.16.8.ebuild 2891 SHA256 7bf831cf24613b5341477b7a5affcadea4510816f54e3ab19e0a495cd19445aa SHA512 5cb317f4393c2df46390444b6796f69e01a48727e9c14aef9b43018611e1cbbe54f8ea96ac38272c57d883611b2821a06a1dbc1388d346ffe7dc53c762d2b3a1 WHIRLPOOL 4d620c744cd33fb760d9c3a25661ce400f1d925fbbab77253bd1e6a40fc9d05b357f17bd6d6f1a9e2b8d3d81a14c76c3719aca1ddbbc46ea1285634ec5f26c12 EBUILD sip-4.16.9.ebuild 2921 SHA256 8ce86b94f689d11948486a90cae8491f2a24c3cc67fc77233ddbcad9b32a2de5 SHA512 68dbf97685a961a8090f1834e99d38a927eb3a59498b96719aa222f21e0aebed8223d20208deadd59d242f561b43f544013a9a86ab6c897d12cc5e9c26adcf7c WHIRLPOOL 549cf19fc46dccf8c35e95a5eafcca9f2d1708f04493456d426c76ebfd536c317b006cc10d088f198fff16b47aa9b7c50d1789e5c862ba363ab110a90a743799 -MISC ChangeLog 37231 SHA256 ba15760a781079f26dad796e93778853475852f22a0d062a0317b8f0e7ed106d SHA512 514e8ebf170859829bd2d254eb6f4a21bd65e256f4d40bcb69cee0063a6e95947c808a850d985af7855187d037f4c70efd97b35524e3fbb742c94976b62c216b WHIRLPOOL a9060ce7593c39abd00d90274c5881dd0279c9cfcc241f6699f10a7906220e0cf4860feffa167e9490a1a349703cd38ffadc732d01b9a744278f8bbea7af372a +EBUILD sip-4.9999.ebuild 2854 SHA256 9a9b08071ad900ba22f6f5f8027f40f32be3502369da4e4db5f524bb0558b47a SHA512 4581c6a33552eba9e7a72dc31b3988b596bebfcb3822b96b1d78c6398bbf15e4d62948917802dcdf9b1a7e60a7c4e7920c31b506cb08048c54eb5ff387b10e9a WHIRLPOOL d16bc8bcabaecf1b79332a64427b083c677b5be82c52d68c814ec841f3238488c34e408437703bdd42511509524b10995746d8d903b96b48be2d2c602479def3 +MISC ChangeLog 37367 SHA256 fc1966ed5165fe9e2ba99ed017aff5f51b45b7f0eee6c5f4546b0b80f1cd1591 SHA512 9707759357f2f2d311639981d39f2defffd54c5b23a8026b35658df795b4f1eb54636571eac16232f7d016a43c35a55a1d83d72e7ef33979b25bf37e4f86197c WHIRLPOOL ab629f767768db1b10d9bb9d51f3ad65421143cb8a2d48156eae6bace05e1d80e543434cd53e7fb1bf79efcdce8be2c83ee5e891d63f02371d09e453b326dd18 MISC metadata.xml 450 SHA256 0cc9ae9aaf8d033bba396b2a9a139124b3990d753e8f8b6acfaf33ea99f78089 SHA512 8f81d9f3261e99e6a6b2e8d41166269494fd32f6bcc974f8bb5de27a9f5aa193354a422a60cbca1ba102eba5695bd9b66e9223c847cfc2451348c80a7973e783 WHIRLPOOL d5d8d0cf127b05f2a06588a1b58503414afb025b27e4630b5d387a46454e784d90aec19ae96260aa3715bb6361033597a479170c2526d7f4d8b10d4d3fe13918 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1 -iQJ8BAEBCABmBQJVrww6XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +iQJ8BAEBCABmBQJVuQQMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4N0Y5QkIzRDgwM0JERkYzMTc5RTI1MjhE -QURFRDZCMjY3MUNCNTdEAAoJENre1rJnHLV9/ZMQAILIIHFpUoujutvFp9GwtEk8 -4lNhcNZtqE978TTudRM+6hbiMp3UnbY5jCNIsNUxg0vyMXEnmEvrBhtSXaFTWLOs -1WmAbF9j2IMu7YZvMbbRKKM0lQIHeRmMmckJaQ5DOjS2J3SWkJK9zW+lhM/MR3Aa -/kNEWuVsCc8TFXb1pEKwPiyKuIPa5+GmOFOVMnNgkqCC1A7OZc7GWjsWDVOTalFA -MrnvztPPDwSIeaVpDPk3cKDy0oMO/8vgSvx9vbO8k+mraAxhW+6P8gZ6q17k/YZa -Mpihftb/DN4VlAMnsKl/T6wb+scEr9+pLM6N2OGEe5oTWOJlFu/xTAM8ImQ54IBF -/G8N3asHNRm5MHFas/Brmg1dUPLTyP19sx6kdb/HZ4+PrK5RtKRzNtzNfnO7mhIo -2jRs7uVddT9GyYYAPv0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sip-4.9999.ebuild new file mode 100644 index 000000000000..509d03b7d0a1 --- /dev/null +++ b/dev-python/sip/sip-4.9999.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/sip-4.9999.ebuild,v 1.1 2015/07/29 16:49:15 pesa Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit eutils python-r1 toolchain-funcs + +DESCRIPTION="Python extension module generator for C and C++ libraries" +HOMEPAGE="http://www.riverbankcomputing.com/software/sip/intro https://pypi.python.org/pypi/SIP" +LICENSE="|| ( GPL-2 GPL-3 SIP )" + +if [[ ${PV} == *9999* ]]; then + # live version from mercurial repo + EHG_REPO_URI="http://www.riverbankcomputing.com/hg/sip" + inherit mercurial +elif [[ ${PV} == *_pre* ]]; then + # development snapshot + HG_REVISION= + MY_P=${PN}-${PV%_pre*}-snapshot-${HG_REVISION} + SRC_URI="http://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" + S=${WORKDIR}/${MY_P} +else + # official release + SRC_URI="mirror://sourceforge/pyqt/${P}.tar.gz" +fi + +# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h.in +SLOT="0/11" +KEYWORDS="" +IUSE="debug doc" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND}" +[[ ${PV} == *9999* ]] && DEPEND+=" + sys-devel/bison + sys-devel/flex + doc? ( dev-python/sphinx[$(python_gen_usedep 'python2*')] ) +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +[[ ${PV} == *9999* ]] && REQUIRED_USE+=" + || ( $(python_gen_useflags 'python2*') ) +" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.15.5-darwin.patch + + if [[ ${PV} == *9999* ]]; then + python_setup 'python2*' + "${PYTHON}" build.py prepare || die + if use doc; then + "${PYTHON}" build.py doc || die + fi + fi + + # 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.in) + 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 +} + +src_configure() { + configuration() { + local myconf=( + "${PYTHON}" + "${S}"/configure.py + --destdir="$(python_get_sitedir)" + --incdir="$(python_get_includedir)" + $(use debug && echo --debug) + 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 + + dodoc ChangeLog NEWS + use doc && dodoc -r doc/html +} |