diff options
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/mypy/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/mypy/Manifest | 36 | ||||
-rw-r--r-- | dev-python/mypy/files/use-which.patch | 20 | ||||
-rw-r--r-- | dev-python/mypy/mypy-0.2.0-r1.ebuild | 48 |
4 files changed, 93 insertions, 19 deletions
diff --git a/dev-python/mypy/ChangeLog b/dev-python/mypy/ChangeLog index 42ad6b163d77..006d0baff8a3 100644 --- a/dev-python/mypy/ChangeLog +++ b/dev-python/mypy/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/mypy # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/mypy/ChangeLog,v 1.2 2015/06/07 14:03:36 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/mypy/ChangeLog,v 1.3 2015/06/07 19:26:29 alunduil Exp $ + +*mypy-0.2.0-r1 (07 Jun 2015) + + 07 Jun 2015; Alex Brandt <alunduil@gentoo.org> +files/use-which.patch, + +mypy-0.2.0-r1.ebuild: + add patch for mypy script to fix #551272 07 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml: Add github to remote-id in metadata.xml diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest index 6c5cfdb19603..44056eaea95b 100644 --- a/dev-python/mypy/Manifest +++ b/dev-python/mypy/Manifest @@ -1,26 +1,26 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 +AUX use-which.patch 580 SHA256 987fcfd65fff88c159669b303524a8fa58bddadf38416d61d40565927814c505 SHA512 fe9638105d92edea29f8b627912b5eea89e134ffab22a8879328b20264a6d5a66e823bafb0a0023604b06951ba9bb3dcd7bd5dbaab15bcd6ea770c298bdeafe6 WHIRLPOOL 26f50367cc28f4f7c3cfc8cfc43b4cfff5556e22b68be78d57fdcd34292cca6c9ba62d18319f84509f11b3e07957426cbebde39783106b329d58c1e6b353f147 DIST mypy-0.2.0.tar.gz 626604 SHA256 0c24f50509bdf3e0d9bd386a08ef4f11ee0114e1f5a9b2afeacbf9561cf022c1 SHA512 b03014abf152407c7629dba925aca6178fcdf57532f47c728edcb591a56942cda13e02122f405aa269e9b6303de1f4a9d5cbb2d5a5af6e90a808a3db94cca53f WHIRLPOOL 7d9f05ead0bfea78bdf228b0bb7c3519e8eaa70f52c00049963780f42e71e9f44168edb09d2e558f59b07a4d09912d1d6d3c8b11a2b9e47db77b2c06e56eb910 +EBUILD mypy-0.2.0-r1.ebuild 1053 SHA256 5a203993c1c617a29c377b3e75e51c69e41dc4f92a2d22267b80fb11a0f3a03a SHA512 40ce1cbf48cf1d56c86fafa86a6ea01ebb8194485fd30199879824a22303a61b9455d02dc8f3c4942206dc056531dff92a56a8679f59da1e92aab2e0a712adf5 WHIRLPOOL 6c5ea2a328551e09fde79c091ab048e67dd868160333cb76a6843023872f591bbdd2a5d2a28c1e2e4b1ca529afdf7786aa884888bdbc575da92f6c3acf75f0f5 EBUILD mypy-0.2.0.ebuild 938 SHA256 a29b9636ea28934a8af1bf163460b0d87734c8825731a777564567b272235ad6 SHA512 4ad7f68791044182a3278b4af8ea5e1280a96c4dd81420ed4df44605aa9e02079f9e4f8a7cf6e0fd252ac4df63a2aa365ffda7535f26a7c800ef6b1184491e54 WHIRLPOOL 6354c81e79221a9cf770332a94ed8965416977b11b8c021636e110ad371eccc29ce0711508047dbbd1c5a6106d62a18ac73edc10c532c221eede3e1ac4a86c0a -MISC ChangeLog 438 SHA256 cbea1bc2201b1811228b8cd2a92aeacd364a398f9c3808b138c9446a603bd823 SHA512 d9b6c5e5808d575e691381518967a53d9b519a6cbe0f021c9cafb646196e46e61b1c1a3263f934b3d3cb8134f7ab60b2385b5c67dd1a52bc596a27254bdc8ec2 WHIRLPOOL 29d3d40c8910fdb76b86962b6a0ba2ba083037abb99f87fec4ed3a2123eb38bcdea2e40f04e59e5bd15466eec79c7ff3391ff164e5e35d9da672055082f614a7 +MISC ChangeLog 614 SHA256 04ffb8aeefbfc4314611b1f4774e85c18e8ec285a9f5a1dae65be17f00ca3280 SHA512 866ce9c72aea6238d637a590d4cfe465e8e917a16e9f407f60ba4ea42bdbfc05189bd248c678e4362dbd4544916fcd59cca34e7ee45d208805c96210bbfad2da WHIRLPOOL d26334e9eaf03ee70e7895efc0811fc8e6dda934b319e40addf314f387de529076e1a938b9f50217d4a34c78b29e4c720bb09199413fb10e20423d08e51e4a6b MISC metadata.xml 357 SHA256 f3836693df03e3ef24aae232fcc8f2ccdfa11984f4127bf3f1da6dcfa29f45ca SHA512 922329cf5388f1f418e1d890c853550abf4a452effd9bc52fb5ff912f81148b8fd2dd51cb7b8e82b066b64c2b8124b8a3bfda8013366625c5b3aa8bae9284609 WHIRLPOOL 65f69eaedabf2e24017bd54a0cf0acd4be9d407bba41297c60dc9dfd6881983634df32757792a91f90bafb97d209312fddbda8c30e0d26c0d93e47788c15bc17 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0 +Version: GnuPG v2 -iQJ8BAEBCgBmBQJVdE85XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0QUU0N0I4NzFERUI0MTJFN0EyODE0NUFF -OTQwMkE3OUIwMzUyOUEyAAoJEOlAKnmwNSmivIUQAJAruyNu3YiEgYKwcU54NGj8 -dTHYN2EpuwLDo0XrhT2R9Q1uEM0u5eSha6Ynh/6iCyoCo0FxiGeTvFBJqKA+nkT/ -Z8tCtd8YA2l/1JZdTtxhnRjXG9Uc9Mbp5dgQs1DZ4t59nTeM81v/hXIiKFTylqJZ -4aVRgZegnuvQH2yiH7P79IFz/d5IbphtnSZqwpwHEttACCLNyuC44B7qQCgPZ3J9 -DStDxwTqa80XXcaUAKwB1xTTErn9ID+sMYHRN1qkq84HjpfJeNUJG5NIr9Pf6bu5 -7h9HI4XpvqRtisNkU7coCLmYZ7csBo9EaC16Vq7J8NUN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 +9ObQP5W4SmB32Yii9IWi +=8icJ -----END PGP SIGNATURE----- diff --git a/dev-python/mypy/files/use-which.patch b/dev-python/mypy/files/use-which.patch new file mode 100644 index 000000000000..bca26f03c76e --- /dev/null +++ b/dev-python/mypy/files/use-which.patch @@ -0,0 +1,20 @@ +diff --git a/scripts/mypy b/scripts/mypy +index e758f1f..5a06146 100755 +--- a/scripts/mypy ++++ b/scripts/mypy +@@ -45,14 +45,7 @@ def find_bin_directory() -> str: + + This is used by build to find stubs and other data files. + """ +- script = __file__ +- # Follow up to 5 symbolic links (cap to avoid cycles). +- for i in range(5): +- if os.path.islink(script): +- script = readlinkabs(script) +- else: +- break +- return os.path.dirname(script) ++ return os.path.dirname(shutil.which('mypy')) + + + def readlinkabs(link: str) -> str: diff --git a/dev-python/mypy/mypy-0.2.0-r1.ebuild b/dev-python/mypy/mypy-0.2.0-r1.ebuild new file mode 100644 index 000000000000..234349bbaa03 --- /dev/null +++ b/dev-python/mypy/mypy-0.2.0-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mypy/mypy-0.2.0-r1.ebuild,v 1.1 2015/06/07 19:26:29 alunduil Exp $ + +EAPI=5 +PYTHON_COMPAT=( python3_3 python3_4 ) + +inherit distutils-r1 vcs-snapshot + +DESCRIPTION="Optional static typing for Python" +HOMEPAGE="http://www.mypy-lang.org/" +SRC_URI="https://github.com/JukkaL/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples" + +DEPEND=" + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + ) +" +RDEPEND="" + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}"/use-which.patch + ) + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + "${PYTHON}" tests.py || die "tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + use examples && local EXAMPLES=( samples/. ) + + distutils-r1_python_install_all +} |