From e2d84e38284aeb9d522a7e935554340ddf0e4a6f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 15 Nov 2017 17:13:45 +0000 Subject: gentoo resync : 15.11.2017 --- dev-python/spyder/Manifest | 3 + dev-python/spyder/files/spyder-3.2.4-build.patch | 130 +++++++++++++++++++++++ dev-python/spyder/spyder-3.2.4.ebuild | 60 +++++++++++ 3 files changed, 193 insertions(+) create mode 100644 dev-python/spyder/files/spyder-3.2.4-build.patch create mode 100644 dev-python/spyder/spyder-3.2.4.ebuild (limited to 'dev-python/spyder') diff --git a/dev-python/spyder/Manifest b/dev-python/spyder/Manifest index b2caa4ec3ef9..b5cdfb06d2ef 100644 --- a/dev-python/spyder/Manifest +++ b/dev-python/spyder/Manifest @@ -1,9 +1,12 @@ AUX spyder-3.0.2-build.patch 6024 SHA256 e13de17f2700fc98df2bb391e6fc6fbc3a87070de1e33855f1a37854ca68ec3d SHA512 7c743a086f8abb99757731ef02c90042c57475c8ab07239ae75ddebd1aa1b1573dbd4e050dff4710fed38338687ca4be9d5eb0e7277c41334e8595d9a1907e41 WHIRLPOOL 952a98088ae1f7d93886666d5279d6a3abd0c32e7a94d464fee99ac3020391414412f32101a715ef1dd69adf1a043b8e90a7ebbc8f8908b7ee43ad4a8dca94d2 AUX spyder-3.2.3-build.patch 5706 SHA256 1ab0ab394d37f5d7f450cdbc929e52b875549af879cd192bdd51e6950c0dce25 SHA512 41fa116652af0b2a93e25e1c39c450c9bc5cc7bf76afde75e8b53845d7fa8be822c6763ca48ea4cbcb64e72cac927c832233bb681c9950a272da517234464123 WHIRLPOOL 2b7c4cd9a40c0b13b8f74b468b6f0ddc569aefc38424cdd88d54a0fcec110a91302a3c81c95993d5e5ce530dc9e3ea35dc499ef8c0456556ee3286a90f40a9a5 +AUX spyder-3.2.4-build.patch 5706 SHA256 1ab0ab394d37f5d7f450cdbc929e52b875549af879cd192bdd51e6950c0dce25 SHA512 41fa116652af0b2a93e25e1c39c450c9bc5cc7bf76afde75e8b53845d7fa8be822c6763ca48ea4cbcb64e72cac927c832233bb681c9950a272da517234464123 WHIRLPOOL 2b7c4cd9a40c0b13b8f74b468b6f0ddc569aefc38424cdd88d54a0fcec110a91302a3c81c95993d5e5ce530dc9e3ea35dc499ef8c0456556ee3286a90f40a9a5 DIST spyder-3.0.2.tar.gz 3207709 SHA256 c308cae5d963a7332548db2dd91ebf105263eb493ce208221a59ad77592399c1 SHA512 7f3723bd98876aa4769877327a93aa02510689708012afc72148c67acd91ab134501ae57471d9cf0e17c9e3892a541b7730a2392ace3c6525443058d0ed01612 WHIRLPOOL 5f1f278fa3c6a98b8d7050bb32e9186cd7053e21d9050bf92b29088154ea3494995bf9953e04d63db4c71ccc37d3a2cdd7e38222b1f82decc2b763144cdf3642 DIST spyder-3.2.3.tar.gz 3342954 SHA256 714c9b9941c1883c810bf87f34d6d46fc4458053e3d138d9e12435ea236b0dd2 SHA512 873a1a0c319fc6580dfbe7370dc5ca132d973b5baf75ba0b6cda228adb7fe7baf4fbdebf4d1984ed6f204c7d27b1bfc2c449199ab02aeb8caf9ebded738f3491 WHIRLPOOL 49729a844157bdd75ced53c1cdfea87cc5366590821f732334dab81bebf094f0d7f09095e88fe584b0d65434f61c71d2bcdb8da29f6af91781bcab1fb2e951e4 +DIST spyder-3.2.4.tar.gz 3345797 SHA256 638310e720248255395df0fdfe010d51f29509858742c8e9cd5e60f7c2791009 SHA512 46e89c68545695d1e64aaafdd2ed724b152a41088f1bfa645b8c66d8ae6bcc2d86e9830cd3f16edfb8027aad5786dfb67f2a8371839dd515df8ebe34446716e6 WHIRLPOOL 1148413058abf2f5d876eb01d8e6b07d79d038cc6c9ff9471c86b38a6b4f7f3d36688a0516ffe8d020463152a9108e7be507cf950cef500263ed7c98f1426554 EBUILD spyder-3.0.2-r3.ebuild 1677 SHA256 3fb3d64b911193d370daca27320ec78c7a069d05f6b6b796cb69cbc802bfa00e SHA512 94b33f77268021422d49b5022000f9589eeb5d4bbb8675bd5d4066e3577995df9802137914db06d9366d01cf7cfd7c1d0b3ba8b078b2035f7f3ecf50882dcc08 WHIRLPOOL c0bd49b0842cdda07719d8743e38fab14a0c14a86002f9b5ac0113ec1d34de56912f8cbd5e335c1971ea4d63a85d89618f22598b5b336038ecb9e84b176159d4 EBUILD spyder-3.2.3.ebuild 1721 SHA256 83d1a986f83e14b13563d2377c70ce3d46f1cb04bf4cd0be73b805a69b6da481 SHA512 e7dd7d4a25b96314e02f6b8c1d2e5928f7c9100444165f9c1303e67c14c7a164e0754f728d9521f5c324f815b20a9079727f00b7501e836b3ea97ffe5828cb4f WHIRLPOOL 29da6561bbd68515bba8dfa73bf318c31f041c33acad0884313a5591b20d33f2ed18226283c0298d00adf4a2a8bdf573eeae463bb54d5c46e2ca7ded2e14ffff +EBUILD spyder-3.2.4.ebuild 1721 SHA256 83d1a986f83e14b13563d2377c70ce3d46f1cb04bf4cd0be73b805a69b6da481 SHA512 e7dd7d4a25b96314e02f6b8c1d2e5928f7c9100444165f9c1303e67c14c7a164e0754f728d9521f5c324f815b20a9079727f00b7501e836b3ea97ffe5828cb4f WHIRLPOOL 29da6561bbd68515bba8dfa73bf318c31f041c33acad0884313a5591b20d33f2ed18226283c0298d00adf4a2a8bdf573eeae463bb54d5c46e2ca7ded2e14ffff MISC ChangeLog 4375 SHA256 dba1984e7377b06138f3a7ba2757fa996f97afef197ebaf9f03976c5f572cfab SHA512 6adef23f4811e6da6037b36bfe90878b080dafe5bcd29d61abb644cb7fd3ecd3023cd3571157af408d96038496863a8f0da907473b6345e7c0071d2de24ba6fe WHIRLPOOL edb3c2c76d70b2ddb086092fed1196a2181fe18fb15aae3df33d7ebd5885e549010784f4c893476ce3291762b3edf1e701c09e3b7683c642869d599ef544268d MISC ChangeLog-2015 7476 SHA256 f3322b577b0921df14db830283d466d9b801eb3a7a48115be0f2f967cc59bf3b SHA512 6bdec9455aae1be9144ae996595bcfcef91625bcafabd258c284cbc1469702098cdd84fa1442b25fed46eb1ddc2334b51f29a2947b4affbd5453161e4e6ad5fe WHIRLPOOL ad22b78763a665246a3c1de099512889d1d4286a8a345acf41f8335fd17536d8cbb5cf9f57946f1ddde921a73b392acd149c449afccc8850cf9bf9e1c0349932 MISC metadata.xml 825 SHA256 61551f0b10689505fd8890245cd36b1ba070f985cab0b102baf13066ae6a1d59 SHA512 d15dd90b0db7e1ee2718dcf4cf3aff509775bc72b0352ef401308b7fd78063792c02596e1f8fabbfc2f19e9016f670e396589411e5fe8609f020222ffa9ac4db WHIRLPOOL 94038d2609a392cde8b10507402ad9849c81abe6899d760197e00201f3e1112ec808707daa2da7c1f1abefbdf60e7aeba74bdcc95d0fdfad28b301a7ca2debdf diff --git a/dev-python/spyder/files/spyder-3.2.4-build.patch b/dev-python/spyder/files/spyder-3.2.4-build.patch new file mode 100644 index 000000000000..2a1fee52131b --- /dev/null +++ b/dev-python/spyder/files/spyder-3.2.4-build.patch @@ -0,0 +1,130 @@ +--- spyder-3.2.3.orig/setup.py 2017-08-29 00:42:56.000000000 +0200 ++++ spyder-3.2.3/setup.py 2017-09-16 20:57:08.610147911 +0200 +@@ -77,13 +77,7 @@ + def get_data_files(): + """Return data_files in a platform dependent manner""" + if sys.platform.startswith('linux'): +- if PY3: +- data_files = [('share/applications', ['scripts/spyder3.desktop']), +- ('share/pixmaps', ['img_src/spyder3.png']), +- ('share/metainfo', ['scripts/spyder3.appdata.xml'])] +- else: +- data_files = [('share/applications', ['scripts/spyder.desktop']), +- ('share/pixmaps', ['img_src/spyder.png'])] ++ data_files = [('share/pixmaps', ['img_src/spyder.png'])] + elif os.name == 'nt': + data_files = [('scripts', ['img_src/spyder.ico', + 'img_src/spyder_reset.ico'])] +@@ -106,102 +100,6 @@ + + + #============================================================================== +-# Make Linux detect Spyder desktop file +-#============================================================================== +-class MyInstallData(install_data): +- def run(self): +- install_data.run(self) +- if sys.platform.startswith('linux'): +- try: +- subprocess.call(['update-desktop-database']) +- except: +- print("ERROR: unable to update desktop database", +- file=sys.stderr) +-CMDCLASS = {'install_data': MyInstallData} +- +- +-#============================================================================== +-# Sphinx build (documentation) +-#============================================================================== +-def get_html_help_exe(): +- """Return HTML Help Workshop executable path (Windows only)""" +- if os.name == 'nt': +- hhc_base = r'C:\Program Files%s\HTML Help Workshop\hhc.exe' +- for hhc_exe in (hhc_base % '', hhc_base % ' (x86)'): +- if osp.isfile(hhc_exe): +- return hhc_exe +- else: +- return +- +-try: +- from sphinx import setup_command +- +- class MyBuild(build): +- user_options = [('no-doc', None, "Don't build Spyder documentation")] \ +- + build.user_options +- def __init__(self, *args, **kwargs): +- build.__init__(self, *args, **kwargs) +- self.no_doc = False +- def with_doc(self): +- setup_dir = os.path.dirname(os.path.abspath(__file__)) +- is_doc_dir = os.path.isdir(os.path.join(setup_dir, 'doc')) +- install_obj = self.distribution.get_command_obj('install') +- return (is_doc_dir and not self.no_doc and not install_obj.no_doc) +- sub_commands = build.sub_commands + [('build_doc', with_doc)] +- CMDCLASS['build'] = MyBuild +- +- +- class MyInstall(install): +- user_options = [('no-doc', None, "Don't build Spyder documentation")] \ +- + install.user_options +- def __init__(self, *args, **kwargs): +- install.__init__(self, *args, **kwargs) +- self.no_doc = False +- CMDCLASS['install'] = MyInstall +- +- +- class MyBuildDoc(setup_command.BuildDoc): +- def run(self): +- build = self.get_finalized_command('build') +- sys.path.insert(0, os.path.abspath(build.build_lib)) +- dirname = self.distribution.get_command_obj('build').build_purelib +- self.builder_target_dir = osp.join(dirname, 'spyder', 'doc') +- +- if not osp.exists(self.builder_target_dir): +- os.mkdir(self.builder_target_dir) +- +- hhc_exe = get_html_help_exe() +- self.builder = "html" if hhc_exe is None else "htmlhelp" +- +- try: +- setup_command.BuildDoc.run(self) +- except UnicodeDecodeError: +- print("ERROR: unable to build documentation because Sphinx "\ +- "do not handle source path with non-ASCII characters. "\ +- "Please try to move the source package to another "\ +- "location (path with *only* ASCII characters).", +- file=sys.stderr) +- sys.path.pop(0) +- +- # Building chm doc, if HTML Help Workshop is installed +- if hhc_exe is not None: +- fname = osp.join(self.builder_target_dir, 'Spyderdoc.chm') +- subprocess.call('"%s" %s' % (hhc_exe, fname), shell=True) +- if osp.isfile(fname): +- dest = osp.join(dirname, 'spyder') +- try: +- shutil.move(fname, dest) +- except shutil.Error: +- print("Unable to replace %s" % dest) +- shutil.rmtree(self.builder_target_dir) +- +- CMDCLASS['build_doc'] = MyBuildDoc +-except ImportError: +- print('WARNING: unable to build documentation because Sphinx '\ +- 'is not installed', file=sys.stderr) +- +- +-#============================================================================== + # Main scripts + #============================================================================== + # NOTE: the '[...]_win_post_install.py' script is installed even on non-Windows +@@ -261,8 +159,7 @@ + 'Programming Language :: Python :: 3', + 'Development Status :: 5 - Production/Stable', + 'Topic :: Scientific/Engineering', +- 'Topic :: Software Development :: Widget Sets'], +- cmdclass=CMDCLASS) ++ 'Topic :: Software Development :: Widget Sets']) + + + #============================================================================== diff --git a/dev-python/spyder/spyder-3.2.4.ebuild b/dev-python/spyder/spyder-3.2.4.ebuild new file mode 100644 index 000000000000..485bde91fcf7 --- /dev/null +++ b/dev-python/spyder/spyder-3.2.4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit eutils distutils-r1 + +DESCRIPTION="Python IDE with matlab-like features" +HOMEPAGE="https://github.com/spyder-ide/spyder/ https://pypi.python.org/pypi/spyder/ http://pythonhosted.org/spyder/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc hdf5" + +RDEPEND=" + dev-python/PyQt5[${PYTHON_USEDEP},svg,webkit] + dev-python/QtPy[${PYTHON_USEDEP},svg,webkit] + dev-python/qtconsole[${PYTHON_USEDEP}] + >=dev-python/rope-0.10.7[${PYTHON_USEDEP}] + dev-python/jedi[${PYTHON_USEDEP}] + dev-python/pyflakes[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/pylint[${PYTHON_USEDEP}] + dev-python/pep8[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/nbconvert[${PYTHON_USEDEP}] + >=dev-python/qtawesome-0.4.1[${PYTHON_USEDEP}] + dev-python/pickleshare[${PYTHON_USEDEP}] + dev-python/pyzmq[${PYTHON_USEDEP}] + dev-python/chardet[${PYTHON_USEDEP}] + >=dev-python/pycodestyle-2.3.0 + hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + app-arch/unzip" + +# Courtesy of Arfrever +PATCHES=( "${FILESDIR}"/${P}-build.patch ) + +python_compile_all() { + if use doc; then + sphinx-build doc doc/html || die "Generation of documentation failed" + fi +} + +python_install() { + distutils-r1_python_install + python_newscript scripts/${PN} ${PN}${EPYTHON:6:1} +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/html/. ) + distutils-r1_python_install_all + doicon spyder/images/spyder.svg + make_desktop_entry spyder Spyder spyder "Development;IDE" +} -- cgit v1.2.3