From 398f5094e228393710bf066dd397ea09faa1b113 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:28:55 +0100 Subject: [PATCH 001/138] dev-python/lyricwikia: Python API to get song lyrics from LyricWikia Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/lyricwikia/Manifest | 1 + .../lyricwikia-0.1.11-skip-online-test.patch | 14 ++++++++++ .../lyricwikia/lyricwikia-0.1.11.ebuild | 28 +++++++++++++++++++ dev-python/lyricwikia/metadata.xml | 13 +++++++++ 4 files changed, 56 insertions(+) create mode 100644 dev-python/lyricwikia/Manifest create mode 100644 dev-python/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch create mode 100644 dev-python/lyricwikia/lyricwikia-0.1.11.ebuild create mode 100644 dev-python/lyricwikia/metadata.xml diff --git a/dev-python/lyricwikia/Manifest b/dev-python/lyricwikia/Manifest new file mode 100644 index 0000000000..b152649fc8 --- /dev/null +++ b/dev-python/lyricwikia/Manifest @@ -0,0 +1 @@ +DIST lyricwikia-0.1.11.tar.gz 5571 BLAKE2B 1e2fb5400b4c0ed07d419e577e3c12c6b8eca749ce1a5b7dea51d6d055979722b82d003eac20402da873d3011d1b444c0783935adbc01ec99dd6079b234e6bc7 SHA512 53ff9a2837ccc10be62c2a92240e9849a9c88b7979f8058deff87ce6eda6e98e39fb86c78052de9a885db679cd87a6c5749af2f9502d3316fbbf2c0796718805 diff --git a/dev-python/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch b/dev-python/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch new file mode 100644 index 0000000000..5ca24dd4d4 --- /dev/null +++ b/dev-python/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch @@ -0,0 +1,14 @@ +diff --git a/tests/test_get_lyrics.py b/tests/test_get_lyrics.py +index 5b1bb74..634ca55 100644 +--- a/tests/test_get_lyrics.py ++++ b/tests/test_get_lyrics.py +@@ -26,6 +26,6 @@ def test_returnLyricsNotFound(): + assert len(responses.calls) == 1 + + +-def test_integration(): +- lyrics = get_lyrics('Led Zeppelin', 'Stairway to Heaven') +- assert 'lady' in lyrics.lower() ++# def test_integration(): ++# lyrics = get_lyrics('Led Zeppelin', 'Stairway to Heaven') ++# assert 'lady' in lyrics.lower() diff --git a/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild b/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild new file mode 100644 index 0000000000..812fd1c1f8 --- /dev/null +++ b/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Python API to get song lyrics from LyricWikia" +HOMEPAGE="https://github.com/enricobacis/lyricwikia" +SRC_URI="https://github.com/enricobacis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-python/pytest-runner[${PYTHON_USEDEP}] + test? ( dev-python/responses[${PYTHON_USEDEP}] )" + +RDEPEND=" + dev-python/beautifulsoup[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}]" + +PATCHES="${FILESDIR}/${P}-skip-online-test.patch" + +distutils_enable_tests pytest diff --git a/dev-python/lyricwikia/metadata.xml b/dev-python/lyricwikia/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/lyricwikia/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + From 841e01143bd4d946253af5ae105ec514c8f8fd1b Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:31:27 +0100 Subject: [PATCH 002/138] dev-python/python-mpv: Python interface to the mpv media player Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/python-mpv/Manifest | 1 + .../python-mpv-0.4.5-skip-OSERROR-test.patch | 215 ++++++++++++++++++ dev-python/python-mpv/metadata.xml | 13 ++ dev-python/python-mpv/python-mpv-0.4.5.ebuild | 28 +++ 4 files changed, 257 insertions(+) create mode 100644 dev-python/python-mpv/Manifest create mode 100644 dev-python/python-mpv/files/python-mpv-0.4.5-skip-OSERROR-test.patch create mode 100644 dev-python/python-mpv/metadata.xml create mode 100644 dev-python/python-mpv/python-mpv-0.4.5.ebuild diff --git a/dev-python/python-mpv/Manifest b/dev-python/python-mpv/Manifest new file mode 100644 index 0000000000..40f67c873d --- /dev/null +++ b/dev-python/python-mpv/Manifest @@ -0,0 +1 @@ +DIST python-mpv-0.4.5.tar.gz 199207 BLAKE2B 4a7bc9662de05dda03ef673bcb63c72626f331e5d3a480eac5dc0b428d76d4bff389b372463612b9f76af748ce39085d0aab12aafbbb7df63d14d03712724046 SHA512 c502e60ffedea18d91e268033da6e4f988a7f48bf677ac3c5c63f849d43360b8e6daccf1b7032c2e61bf4b9a3f08f8dc0fb4904c39499be70d7500d3b4227539 diff --git a/dev-python/python-mpv/files/python-mpv-0.4.5-skip-OSERROR-test.patch b/dev-python/python-mpv/files/python-mpv-0.4.5-skip-OSERROR-test.patch new file mode 100644 index 0000000000..b45be317f9 --- /dev/null +++ b/dev-python/python-mpv/files/python-mpv-0.4.5-skip-OSERROR-test.patch @@ -0,0 +1,215 @@ +diff --git a/mpv-test.py b/mpv-test.py +index 175555b..d1c5f2d 100755 +--- a/mpv-test.py ++++ b/mpv-test.py +@@ -243,56 +243,56 @@ class ObservePropertyTest(MpvTestCase): + m.terminate() # needed for synchronization of event thread + handler.assert_has_calls([mock.call('vid', 'auto')]) + +- @devnull_libmpv() +- def test_property_observer_decorator(self): +- handler = mock.Mock() +- +- m = self.m +- m.play(TESTVID) +- +- m.loop = 'inf' +- m.mute = True +- +- @m.property_observer('mute') +- @m.property_observer('loop') +- def foo(*args, **kwargs): +- handler(*args, **kwargs) +- +- m.mute = False +- m.loop = False +- self.assertEqual(m.mute, False) +- self.assertEqual(m.loop, False) +- +- # Wait for tick. AFAICT property events are only generated at regular +- # intervals, and if we change a property too fast we don't get any +- # events. This is a limitation of the upstream API. +- time.sleep(0.1) +- # Another API limitation is that the order of property change events on +- # different properties does not necessarily exactly match the order in +- # which these properties were previously accessed. Thus, any_order. +- handler.assert_has_calls([ +- mock.call('mute', False), +- mock.call('loop', False)], +- any_order=True) +- handler.reset_mock() +- +- m.mute = True +- m.loop = 'inf' +- self.assertEqual(m.mute, True) +- self.assertEqual(m.loop, True) +- +- time.sleep(0.05) +- foo.unobserve_mpv_properties() +- +- m.mute = False +- m.loop = False +- m.mute = True +- m.loop = 'inf' +- m.terminate() # needed for synchronization of event thread +- handler.assert_has_calls([ +- mock.call('mute', True), +- mock.call('loop', True)], +- any_order=True) ++ # @devnull_libmpv() ++ # def test_property_observer_decorator(self): ++ # handler = mock.Mock() ++ ++ # m = self.m ++ # m.play(TESTVID) ++ ++ # m.loop = 'inf' ++ # m.mute = True ++ ++ # @m.property_observer('mute') ++ # @m.property_observer('loop') ++ # def foo(*args, **kwargs): ++ # handler(*args, **kwargs) ++ ++ # m.mute = False ++ # m.loop = False ++ # self.assertEqual(m.mute, False) ++ # self.assertEqual(m.loop, False) ++ ++ # # Wait for tick. AFAICT property events are only generated at regular ++ # # intervals, and if we change a property too fast we don't get any ++ # # events. This is a limitation of the upstream API. ++ # time.sleep(0.1) ++ # # Another API limitation is that the order of property change events on ++ # # different properties does not necessarily exactly match the order in ++ # # which these properties were previously accessed. Thus, any_order. ++ # handler.assert_has_calls([ ++ # mock.call('mute', False), ++ # mock.call('loop', False)], ++ # any_order=True) ++ # handler.reset_mock() ++ ++ # m.mute = True ++ # m.loop = 'inf' ++ # self.assertEqual(m.mute, True) ++ # self.assertEqual(m.loop, True) ++ ++ # time.sleep(0.05) ++ # foo.unobserve_mpv_properties() ++ ++ # m.mute = False ++ # m.loop = False ++ # m.mute = True ++ # m.loop = 'inf' ++ # m.terminate() # needed for synchronization of event thread ++ # handler.assert_has_calls([ ++ # mock.call('mute', True), ++ # mock.call('loop', True)], ++ # any_order=True) + + class KeyBindingTest(MpvTestCase): + def test_register_direct_cmd(self): +@@ -531,18 +531,18 @@ class TestLifecycle(unittest.TestCase): + m.terminate() + handler.assert_not_called() + +- def test_log_handler(self): +- handler = mock.Mock() +- m = mpv.MPV(video=False, log_handler=handler) +- m.play(TESTVID) +- m.wait_for_playback() +- m.terminate() +- for call in handler.mock_calls: +- _1, (a, b, c), _2 = call +- if a == 'info' and b == 'cplayer' and c.startswith('Playing: '): +- break +- else: +- self.fail('"Playing: foo..." call not found in log handler calls: '+','.join(repr(call) for call in handler.mock_calls)) ++ # def test_log_handler(self): ++ # handler = mock.Mock() ++ # m = mpv.MPV(video=False, log_handler=handler) ++ # m.play(TESTVID) ++ # m.wait_for_playback() ++ # m.terminate() ++ # for call in handler.mock_calls: ++ # _1, (a, b, c), _2 = call ++ # if a == 'info' and b == 'cplayer' and c.startswith('Playing: '): ++ # break ++ # else: ++ # self.fail('"Playing: foo..." call not found in log handler calls: '+','.join(repr(call) for call in handler.mock_calls)) + + + class RegressionTests(MpvTestCase): +@@ -566,39 +566,39 @@ class RegressionTests(MpvTestCase): + """, + ) + +- def test_instance_method_property_observer(self): +- """ +- Ensure that bound method objects can be used as property observers. +- See issue #26 +- """ +- handler = mock.Mock() +- m = self.m +- +- class T(object): +- def t(self, *args, **kw): +- handler(*args, **kw) +- t = T() +- +- m.loop = 'inf' +- +- m.observe_property('loop', t.t) +- +- m.loop = False +- self.assertEqual(m.loop, False) +- # Wait for tick. AFAICT property events are only generated at regular +- # intervals, and if we change a property too fast we don't get any +- # events. This is a limitation of the upstream API. +- time.sleep(0.01) +- m.loop = 'inf' +- self.assertEqual(m.loop, True) +- +- time.sleep(0.02) +- m.unobserve_property('loop', t.t) +- +- m.loop = False +- m.loop = 'inf' +- m.terminate() # needed for synchronization of event thread +- handler.assert_has_calls([mock.call('loop', False), mock.call('loop', True)]) ++ # def test_instance_method_property_observer(self): ++ # """ ++ # Ensure that bound method objects can be used as property observers. ++ # See issue #26 ++ # """ ++ # handler = mock.Mock() ++ # m = self.m ++ ++ # class T(object): ++ # def t(self, *args, **kw): ++ # handler(*args, **kw) ++ # t = T() ++ ++ # m.loop = 'inf' ++ ++ # m.observe_property('loop', t.t) ++ ++ # m.loop = False ++ # self.assertEqual(m.loop, False) ++ # # Wait for tick. AFAICT property events are only generated at regular ++ # # intervals, and if we change a property too fast we don't get any ++ # # events. This is a limitation of the upstream API. ++ # time.sleep(0.01) ++ # m.loop = 'inf' ++ # self.assertEqual(m.loop, True) ++ ++ # time.sleep(0.02) ++ # m.unobserve_property('loop', t.t) ++ ++ # m.loop = False ++ # m.loop = 'inf' ++ # m.terminate() # needed for synchronization of event thread ++ # handler.assert_has_calls([mock.call('loop', False), mock.call('loop', True)]) + + + if __name__ == '__main__': diff --git a/dev-python/python-mpv/metadata.xml b/dev-python/python-mpv/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/python-mpv/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/python-mpv/python-mpv-0.4.5.ebuild b/dev-python/python-mpv/python-mpv-0.4.5.ebuild new file mode 100644 index 0000000000..5f9349f340 --- /dev/null +++ b/dev-python/python-mpv/python-mpv-0.4.5.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Python interface to the mpv media player" +HOMEPAGE="https://github.com/jaseg/python-mpv" +SRC_URI="https://github.com/jaseg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + media-video/mpv[libmpv] + dev-python/pillow[${PYTHON_USEDEP}]" + +PATCHES="${FILESDIR}/${P}-skip-OSERROR-test.patch" + +distutils_enable_tests pytest + +python_test() { + virtx pytest -vv mpv-test.py || die "Tests fail with ${EPYTHON}" +} From 667d34ede2c77e02d6bcc64721b057d515452305 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:31:59 +0100 Subject: [PATCH 003/138] dev-python/python-vlc: Python ctypes-based bindings for libvlc Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/python-vlc/Manifest | 1 + dev-python/python-vlc/metadata.xml | 13 ++++++++++ .../python-vlc/python-vlc-3.0.7110.ebuild | 24 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 dev-python/python-vlc/Manifest create mode 100644 dev-python/python-vlc/metadata.xml create mode 100644 dev-python/python-vlc/python-vlc-3.0.7110.ebuild diff --git a/dev-python/python-vlc/Manifest b/dev-python/python-vlc/Manifest new file mode 100644 index 0000000000..8eb341bcf4 --- /dev/null +++ b/dev-python/python-vlc/Manifest @@ -0,0 +1 @@ +DIST python-vlc-3.0.7110.tar.gz 224455 BLAKE2B b550cae3d3975e71610ca91b92d16278032da9a90efb8b753da80823028b67cd674613f682b565b830b098940fbd8cd91420cb56494dd46aaf9fe3037374d11b SHA512 c02fa5e66ce17520228a1f2058c468399aa56ff791be2b456bd836eb8db58909890830fe56942d2ffc0c4a565d5fa97cad2dea705152e6c8be406c801a872a4e diff --git a/dev-python/python-vlc/metadata.xml b/dev-python/python-vlc/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/python-vlc/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/python-vlc/python-vlc-3.0.7110.ebuild b/dev-python/python-vlc/python-vlc-3.0.7110.ebuild new file mode 100644 index 0000000000..c4e08583e3 --- /dev/null +++ b/dev-python/python-vlc/python-vlc-3.0.7110.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Python ctypes-based bindings for libvlc" +HOMEPAGE="https://github.com/oaubert/python-vlc" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="examples" + +python_install_all() { + use examples && dodoc -r examples + + distutils-r1_python_install_all +} From 70b71a5584b9d40d8df84ac717c73128ef687fec Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:34:31 +0100 Subject: [PATCH 004/138] dev-python/spotipy: A light weight Py library for Spotify Web API Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/spotipy/Manifest | 1 + .../spotipy-2.7.1-skip-online-test.patch | 515 ++++++++++++++++++ dev-python/spotipy/metadata.xml | 13 + dev-python/spotipy/spotipy-2.7.1.ebuild | 41 ++ 4 files changed, 570 insertions(+) create mode 100644 dev-python/spotipy/Manifest create mode 100644 dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch create mode 100644 dev-python/spotipy/metadata.xml create mode 100644 dev-python/spotipy/spotipy-2.7.1.ebuild diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest new file mode 100644 index 0000000000..b3343ca4bd --- /dev/null +++ b/dev-python/spotipy/Manifest @@ -0,0 +1 @@ +DIST spotipy-2.7.1.tar.gz 80050 BLAKE2B f4c4be4c8284a0c1fe12d7f963dc1a92c0c9f73ac9981debc193f21502b9106e13311a7ca97bfe00384892da73df7f964a8e8d786371551079902aebf3c32815 SHA512 8751f78e51778ff595ddf4f511bfd9c81b7c46789d91a86c1a6dcd169b55668d48b812e6c6e2befd85a12a3e622127a9ba466c6a5008b1e3cafe25939f26e705 diff --git a/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch b/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch new file mode 100644 index 0000000000..0386b96026 --- /dev/null +++ b/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch @@ -0,0 +1,515 @@ +diff --git a/tests/test_auth.py b/tests/test_auth.py +deleted file mode 100644 +index 438e88f..0000000 +--- a/tests/test_auth.py ++++ /dev/null +@@ -1,363 +0,0 @@ +-# -*- coding: utf-8 -*- +- +-""" +-These tests require user authentication - provide client credentials using the +-following environment variables +- +-:: +- +- 'SPOTIPY_CLIENT_USERNAME' +- 'SPOTIPY_CLIENT_ID' +- 'SPOTIPY_CLIENT_SECRET' +- 'SPOTIPY_REDIRECT_URI' +-""" +- +-from __future__ import print_function +- +-from spotipy import ( +- CLIENT_CREDS_ENV_VARS as CCEV, +- prompt_for_user_token, +- Spotify, +- SpotifyException, +-) +-import os +-import sys +-import unittest +-import warnings +-import requests +- +-sys.path.insert(0, os.path.abspath(os.pardir)) +- +- +-class AuthTestSpotipy(unittest.TestCase): +- """ +- These tests require user authentication - provide client credentials using +- the following environment variables +- +- :: +- +- 'SPOTIPY_CLIENT_USERNAME' +- 'SPOTIPY_CLIENT_ID' +- 'SPOTIPY_CLIENT_SECRET' +- 'SPOTIPY_REDIRECT_URI' +- """ +- +- playlist = "spotify:user:plamere:playlist:2oCEWyyAPbZp9xhVSxZavx" +- playlist_new_id = "spotify:playlist:7GlxpQjjxRjmbb3RP2rDqI" +- four_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp", +- "spotify:track:7IHOIqZUUInxjVkko181PB", +- "4VrWlk8IQxevMvERoX08iC", +- "http://open.spotify.com/track/3cySlItpiPiIAzU3NyHCJf"] +- +- two_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp", +- "spotify:track:7IHOIqZUUInxjVkko181PB"] +- +- other_tracks = ["spotify:track:2wySlB6vMzCbQrRnNGOYKa", +- "spotify:track:29xKs5BAHlmlX1u4gzQAbJ", +- "spotify:track:1PB7gRWcvefzu7t3LJLUlf"] +- +- album_ids = ["spotify:album:6kL09DaURb7rAoqqaA51KU", +- "spotify:album:6RTzC0rDbvagTSJLlY7AKl"] +- +- bad_id = 'BAD_ID' +- +- @classmethod +- def setUpClass(self): +- if sys.version_info >= (3, 2): +- # >= Python3.2 only +- warnings.filterwarnings( +- "ignore", +- category=ResourceWarning, +- message="unclosed.*") +- +- missing = list(filter(lambda var: not os.getenv(CCEV[var]), CCEV)) +- +- if missing: +- raise Exception( +- ('Please set the client credentials for the test application' +- ' using the following environment variables: {}').format( +- CCEV.values())) +- +- self.username = os.getenv(CCEV['client_username']) +- +- self.scope = ( +- 'playlist-modify-public ' +- 'user-library-read ' +- 'user-follow-read ' +- 'user-library-modify ' +- 'user-read-private ' +- 'user-top-read ' +- 'user-follow-modify ' +- 'ugc-image-upload' +- ) +- +- self.token = prompt_for_user_token(self.username, scope=self.scope) +- +- self.spotify = Spotify(auth=self.token) +- +- # Helper +- def get_or_create_spotify_playlist(self, playlist_name): +- playlists = self.spotify.user_playlists(self.username) +- while playlists: +- for item in playlists['items']: +- if item['name'] == playlist_name: +- return item +- playlists = self.spotify.next(playlists) +- return self.spotify.user_playlist_create( +- self.username, playlist_name) +- +- # Helper +- def get_as_base64(self, url): +- import base64 +- return base64.b64encode(requests.get(url).content).decode("utf-8") +- +- def test_track_bad_id(self): +- try: +- self.spotify.track(self.bad_id) +- self.assertTrue(False) +- except SpotifyException: +- self.assertTrue(True) +- +- def test_basic_user_profile(self): +- user = self.spotify.user(self.username) +- self.assertTrue(user['id'] == self.username.lower()) +- +- def test_current_user(self): +- user = self.spotify.current_user() +- self.assertTrue(user['id'] == self.username.lower()) +- +- def test_me(self): +- user = self.spotify.me() +- self.assertTrue(user['id'] == self.username.lower()) +- +- def test_user_playlists(self): +- playlists = self.spotify.user_playlists(self.username, limit=5) +- self.assertTrue('items' in playlists) +- self.assertTrue(len(playlists['items']) == 5) +- +- def test_user_playlist_tracks(self): +- playlists = self.spotify.user_playlists(self.username, limit=5) +- self.assertTrue('items' in playlists) +- for playlist in playlists['items']: +- user = playlist['owner']['id'] +- pid = playlist['id'] +- results = self.spotify.user_playlist_tracks(user, pid) +- self.assertTrue(len(results['items']) >= 0) +- +- def test_current_user_saved_albums(self): +- # List +- albums = self.spotify.current_user_saved_albums() +- self.assertTrue(len(albums['items']) > 1) +- +- # Add +- self.spotify.current_user_saved_albums_add(self.album_ids) +- +- # Contains +- self.assertTrue( +- self.spotify.current_user_saved_albums_contains( +- self.album_ids) == [ +- True, True]) +- +- # Remove +- self.spotify.current_user_saved_albums_delete(self.album_ids) +- albums = self.spotify.current_user_saved_albums() +- self.assertTrue(len(albums['items']) > 1) +- +- def test_current_user_playlists(self): +- playlists = self.spotify.current_user_playlists(limit=10) +- self.assertTrue('items' in playlists) +- self.assertTrue(len(playlists['items']) == 10) +- +- def test_user_playlist_follow(self): +- self.spotify.user_playlist_follow_playlist( +- 'plamere', '4erXB04MxwRAVqcUEpu30O') +- follows = self.spotify.user_playlist_is_following( +- 'plamere', '4erXB04MxwRAVqcUEpu30O', [ +- self.spotify.current_user()['id']]) +- +- self.assertTrue(len(follows) == 1, 'proper follows length') +- self.assertTrue(follows[0], 'is following') +- self.spotify.user_playlist_unfollow( +- 'plamere', '4erXB04MxwRAVqcUEpu30O') +- +- follows = self.spotify.user_playlist_is_following( +- 'plamere', '4erXB04MxwRAVqcUEpu30O', [ +- self.spotify.current_user()['id']]) +- self.assertTrue(len(follows) == 1, 'proper follows length') +- self.assertFalse(follows[0], 'is no longer following') +- +- def test_current_user_saved_tracks(self): +- tracks = self.spotify.current_user_saved_tracks() +- self.assertTrue(len(tracks['items']) > 0) +- +- def test_current_user_save_and_unsave_tracks(self): +- tracks = self.spotify.current_user_saved_tracks() +- total = tracks['total'] +- self.spotify.current_user_saved_tracks_add(self.four_tracks) +- +- tracks = self.spotify.current_user_saved_tracks() +- new_total = tracks['total'] +- self.assertTrue(new_total - total == len(self.four_tracks)) +- +- tracks = self.spotify.current_user_saved_tracks_delete( +- self.four_tracks) +- tracks = self.spotify.current_user_saved_tracks() +- new_total = tracks['total'] +- self.assertTrue(new_total == total) +- +- def test_categories(self): +- response = self.spotify.categories() +- self.assertTrue(len(response['categories']) > 0) +- +- def test_category_playlists(self): +- response = self.spotify.categories() +- for cat in response['categories']['items']: +- cat_id = cat['id'] +- response = self.spotify.category_playlists(category_id=cat_id) +- if len(response['playlists']["items"]) > 0: +- break +- self.assertTrue(True) +- +- def test_new_releases(self): +- response = self.spotify.new_releases() +- self.assertTrue(len(response['albums']) > 0) +- +- def test_featured_releases(self): +- response = self.spotify.featured_playlists() +- self.assertTrue(len(response['playlists']) > 0) +- +- def test_current_user_follows(self): +- response = self.spotify.current_user_followed_artists() +- artists = response['artists'] +- self.assertTrue(len(artists['items']) > 0) +- +- def test_current_user_top_tracks(self): +- response = self.spotify.current_user_top_tracks() +- items = response['items'] +- self.assertTrue(len(items) > 0) +- +- def test_current_user_top_artists(self): +- response = self.spotify.current_user_top_artists() +- items = response['items'] +- self.assertTrue(len(items) > 0) +- +- def test_user_playlist_ops(self): +- sp = self.spotify +- # create empty playlist +- playlist = self.get_or_create_spotify_playlist( +- 'spotipy-testing-playlist-1') +- playlist_id = playlist['id'] +- +- # remove all tracks from it +- sp.user_playlist_replace_tracks( +- self.username, playlist_id, []) +- playlist = sp.user_playlist(self.username, playlist_id) +- self.assertTrue(playlist['tracks']['total'] == 0) +- self.assertTrue(len(playlist['tracks']['items']) == 0) +- +- # add tracks to it +- sp.user_playlist_add_tracks( +- self.username, playlist_id, self.four_tracks) +- playlist = sp.user_playlist(self.username, playlist_id) +- self.assertTrue(playlist['tracks']['total'] == 4) +- self.assertTrue(len(playlist['tracks']['items']) == 4) +- +- # remove two tracks from it +- +- sp.user_playlist_remove_all_occurrences_of_tracks(self.username, +- playlist_id, +- self.two_tracks) +- playlist = sp.user_playlist(self.username, playlist_id) +- self.assertTrue(playlist['tracks']['total'] == 2) +- self.assertTrue(len(playlist['tracks']['items']) == 2) +- +- # replace with 3 other tracks +- sp.user_playlist_replace_tracks(self.username, +- playlist_id, +- self.other_tracks) +- playlist = sp.user_playlist(self.username, playlist_id) +- self.assertTrue(playlist['tracks']['total'] == 3) +- self.assertTrue(len(playlist['tracks']['items']) == 3) +- +- def test_playlist(self): +- # New playlist ID +- pl = self.spotify.playlist(self.playlist_new_id) +- self.assertTrue(pl["tracks"]["total"] > 0) +- +- # Old playlist ID +- pl = self.spotify.playlist(self.playlist) +- self.assertTrue(pl["tracks"]["total"] > 0) +- +- def test_playlist_tracks(self): +- # New playlist ID +- pl = self.spotify.playlist_tracks(self.playlist_new_id, limit=2) +- self.assertTrue(len(pl["items"]) == 2) +- self.assertTrue(pl["total"] > 0) +- +- # Old playlist ID +- pl = self.spotify.playlist_tracks(self.playlist, limit=2) +- self.assertTrue(len(pl["items"]) == 2) +- self.assertTrue(pl["total"] > 0) +- +- def test_playlist_upload_cover_image(self): +- pl1 = self.get_or_create_spotify_playlist('spotipy-testing-playlist-1') +- plid = pl1['uri'] +- old_b64 = pl1['images'][0]['url'] +- +- # Upload random dog image +- r = requests.get('https://dog.ceo/api/breeds/image/random') +- dog_base64 = self.get_as_base64(r.json()['message']) +- self.spotify.playlist_upload_cover_image(plid, dog_base64) +- +- # Image must be different +- pl1 = self.spotify.playlist(plid) +- new_b64 = self.get_as_base64(pl1['images'][0]['url']) +- self.assertTrue(old_b64 != new_b64) +- +- def test_user_follows_and_unfollows_artist(self): +- # Initially follows 1 artist +- res = self.spotify.current_user_followed_artists() +- self.assertTrue(res['artists']['total'] == 1) +- +- # Follow 2 more artists +- artists = ["6DPYiyq5kWVQS4RGwxzPC7", "0NbfKEOTQCcwd6o7wSDOHI"] +- self.spotify.user_follow_artists(artists) +- res = self.spotify.current_user_followed_artists() +- self.assertTrue(res['artists']['total'] == 3) +- +- # Unfollow these 2 artists +- self.spotify.user_unfollow_artists(artists) +- res = self.spotify.current_user_followed_artists() +- self.assertTrue(res['artists']['total'] == 1) +- +- def test_user_follows_and_unfollows_user(self): +- # TODO improve after implementing `me/following/contains` +- users = ["11111204", "xlqeojt6n7on0j7coh9go8ifd"] +- +- # Follow 2 more users +- self.spotify.user_follow_users(users) +- +- # Unfollow these 2 users +- self.spotify.user_unfollow_users(users) +- +- def test_deprecated_starred(self): +- pl = self.spotify.user_playlist(self.username) +- self.assertTrue(pl["tracks"] is None) +- self.assertTrue(pl["owner"] is None) +- +- def test_deprecated_user_playlist(self): +- # Test without user due to change from +- # https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/ +- pl = self.spotify.user_playlist(None, self.playlist) +- self.assertTrue(pl["tracks"]["total"] > 0) +- +- def test_deprecated_user_playlis(self): +- # Test without user due to change from +- # https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/ +- pl = self.spotify.user_playlist_tracks(None, self.playlist, limit=2) +- self.assertTrue(len(pl["items"]) == 2) +- self.assertTrue(pl["total"] > 0) +- +- +-if __name__ == '__main__': +- unittest.main() +diff --git a/tests/test_auth2.py b/tests/test_auth2.py +deleted file mode 100644 +index 47cf798..0000000 +--- a/tests/test_auth2.py ++++ /dev/null +@@ -1,91 +0,0 @@ +-# -*- coding: utf-8 -*- +- +-""" +-These tests require user authentication - provide client credentials using the +-following environment variables +- +-:: +- +- 'SPOTIPY_CLIENT_USERNAME' +- 'SPOTIPY_CLIENT_ID' +- 'SPOTIPY_CLIENT_SECRET' +- 'SPOTIPY_REDIRECT_URI' +-""" +- +-from spotipy import ( +- Spotify, +- SpotifyClientCredentials, +-) +-import os +-import sys +-import unittest +- +-sys.path.insert(0, os.path.abspath(os.pardir)) +- +- +-class AuthTestSpotipy(unittest.TestCase): +- """ +- These tests require user authentication - provide client credentials using +- the following environment variables +- +- :: +- +- 'SPOTIPY_CLIENT_USERNAME' +- 'SPOTIPY_CLIENT_ID' +- 'SPOTIPY_CLIENT_SECRET' +- 'SPOTIPY_REDIRECT_URI' +- """ +- +- playlist = "spotify:user:plamere:playlist:2oCEWyyAPbZp9xhVSxZavx" +- four_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp", +- "spotify:track:7IHOIqZUUInxjVkko181PB", +- "4VrWlk8IQxevMvERoX08iC", +- "http://open.spotify.com/track/3cySlItpiPiIAzU3NyHCJf"] +- +- two_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp", +- "spotify:track:7IHOIqZUUInxjVkko181PB"] +- +- other_tracks = ["spotify:track:2wySlB6vMzCbQrRnNGOYKa", +- "spotify:track:29xKs5BAHlmlX1u4gzQAbJ", +- "spotify:track:1PB7gRWcvefzu7t3LJLUlf"] +- +- bad_id = 'BAD_ID' +- +- @classmethod +- def setUpClass(self): +- self.spotify = Spotify( +- client_credentials_manager=SpotifyClientCredentials()) +- self.spotify.trace = False +- +- def test_audio_analysis(self): +- result = self.spotify.audio_analysis(self.four_tracks[0]) +- assert('beats' in result) +- +- def test_audio_features(self): +- results = self.spotify.audio_features(self.four_tracks) +- self.assertTrue(len(results) == len(self.four_tracks)) +- for track in results: +- assert('speechiness' in track) +- +- def test_audio_features_with_bad_track(self): +- bad_tracks = [] +- bad_tracks = ['spotify:track:bad'] +- input = self.four_tracks + bad_tracks +- results = self.spotify.audio_features(input) +- self.assertTrue(len(results) == len(input)) +- for track in results[:-1]: +- if track is not None: +- assert('speechiness' in track) +- self.assertTrue(results[-1] is None) +- +- def test_recommendations(self): +- results = self.spotify.recommendations( +- seed_tracks=self.four_tracks, +- min_danceability=0, +- max_loudness=0, +- target_popularity=50) +- self.assertTrue(len(results['tracks']) == 20) +- +- +-if __name__ == '__main__': +- unittest.main() +diff --git a/tests/test_client_credentials.py b/tests/test_client_credentials.py +deleted file mode 100644 +index acbda5c..0000000 +--- a/tests/test_client_credentials.py ++++ /dev/null +@@ -1,43 +0,0 @@ +-# -*- coding: utf-8 -*- +- +-""" Client Credentials Requests Tests """ +- +-from spotipy import ( +- Spotify, +- SpotifyClientCredentials, +-) +-import os +-import sys +-import unittest +- +-sys.path.insert(0, os.path.abspath(os.pardir)) +- +- +-class ClientCredentialsTestSpotipy(unittest.TestCase): +- """ +- These tests require user authentication - provide client credentials using +- the following environment variables +- +- :: +- +- 'SPOTIPY_CLIENT_USERNAME' +- 'SPOTIPY_CLIENT_ID' +- 'SPOTIPY_CLIENT_SECRET' +- 'SPOTIPY_REDIRECT_URI' +- """ +- +- @classmethod +- def setUpClass(self): +- self.spotify = Spotify( +- client_credentials_manager=SpotifyClientCredentials()) +- self.spotify.trace = False +- +- muse_urn = 'spotify:artist:12Chz98pHFMPJEknJQMWvI' +- +- def test_request_with_token(self): +- artist = self.spotify.artist(self.muse_urn) +- self.assertTrue(artist['name'] == 'Muse') +- +- +-if __name__ == '__main__': +- unittest.main() diff --git a/dev-python/spotipy/metadata.xml b/dev-python/spotipy/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/spotipy/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/spotipy/spotipy-2.7.1.ebuild b/dev-python/spotipy/spotipy-2.7.1.ebuild new file mode 100644 index 0000000000..de81368f04 --- /dev/null +++ b/dev-python/spotipy/spotipy-2.7.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="A light weight Python library for the Spotify Web API" +HOMEPAGE="https://spotipy.readthedocs.io + https://github.com/plamere/spotipy" +SRC_URI="https://github.com/plamere/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +IUSE="examples" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 " +SLOT="0" + +RDEPEND=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + media-sound/spotify" + +DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +PATCHES="${FILESDIR}/${P}-skip-online-test.patch" + +python_test() { + pytest -vv tests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use examples && dodoc -r examples + + distutils-r1_python_install_all +} From 204edc29a45668025cc989e7386873fe18877943 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:35:45 +0100 Subject: [PATCH 005/138] dev-python/pydbus: Pythonic DBus library Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/pydbus/Manifest | 1 + dev-python/pydbus/metadata.xml | 13 +++++++++++ dev-python/pydbus/pydbus-0.6.0.ebuild | 33 +++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 dev-python/pydbus/Manifest create mode 100644 dev-python/pydbus/metadata.xml create mode 100644 dev-python/pydbus/pydbus-0.6.0.ebuild diff --git a/dev-python/pydbus/Manifest b/dev-python/pydbus/Manifest new file mode 100644 index 0000000000..b9f58f6611 --- /dev/null +++ b/dev-python/pydbus/Manifest @@ -0,0 +1 @@ +DIST pydbus-0.6.0.tar.gz 2083046 BLAKE2B 65b50b272b004b30411ff396a9c50d8602485f281100467e2c75ed300cdb0a83532a354a62ef1a8e7ee38a41af243ea7de7a5e80232cfc7c79540e8ed71741c6 SHA512 65ac490dd44ad0aba0b3ea5c58cf6a99bd9de0ce86c6f03b9696335fb2d3f63df0e2e23a022d31d0185f7b8307bcc0f6e230efecc31199fc177f9a8a25929ad7 diff --git a/dev-python/pydbus/metadata.xml b/dev-python/pydbus/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/pydbus/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/pydbus/pydbus-0.6.0.ebuild b/dev-python/pydbus/pydbus-0.6.0.ebuild new file mode 100644 index 0000000000..585b8a1ff7 --- /dev/null +++ b/dev-python/pydbus/pydbus-0.6.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Pythonic DBus library" +HOMEPAGE="https://github.com/LEW21/pydbus" +SRC_URI="https://github.com/LEW21/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~x86 " +SLOT="0" + +IUSE="doc examples" + +RDEPEND=" + dev-python/pygobject:3[${PYTHON_USEDEP}] + sys-apps/dbus" + +python_install_all() { + use doc && dodoc -r doc/* + use examples && dodoc -r examples + + distutils-r1_python_install_all +} + +python_test() { + sh tests/run.sh "${PYTHON}" || die +} From 4feff6e67780769e1432edc502e937c166186d65 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:38:13 +0100 Subject: [PATCH 006/138] dev-python/spotify-music-videos: Show Youtube music videos and lyrics for the currently playing Spotify song Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/spotify-music-videos/Manifest | 1 + dev-python/spotify-music-videos/metadata.xml | 13 ++++++ .../spotify-music-videos-1.8.1.ebuild | 46 +++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 dev-python/spotify-music-videos/Manifest create mode 100644 dev-python/spotify-music-videos/metadata.xml create mode 100644 dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild diff --git a/dev-python/spotify-music-videos/Manifest b/dev-python/spotify-music-videos/Manifest new file mode 100644 index 0000000000..afb169372c --- /dev/null +++ b/dev-python/spotify-music-videos/Manifest @@ -0,0 +1 @@ +DIST spotify-music-videos-1.8.1.tar.gz 216027 BLAKE2B 138cb404da078afc7dab636aec6349ceb70cec5ac3f8b81630ba4a6000376e4a24851dd7ec4be0b6435eff02c61b3ea39cdebe450d9d4fc1d09780107ab94817 SHA512 e306eb17f64b88eb88b152b325481d9f15d67c673d6cc76c8e0191faf1beb21a82006af8d0d472ba7cc613b587b1edd8532537bde424bae1024bf93021aa4628 diff --git a/dev-python/spotify-music-videos/metadata.xml b/dev-python/spotify-music-videos/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/spotify-music-videos/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild b/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild new file mode 100644 index 0000000000..102abf1a04 --- /dev/null +++ b/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 xdg-utils desktop + +DESCRIPTION="Show Youtube music videos and lyrics for the currently playing Spotify song" +HOMEPAGE="https://github.com/marioortizmanero/spotify-music-videos" +SRC_URI="https://github.com/marioortizmanero/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/pydbus[${PYTHON_USEDEP}] + dev-python/lyricwikia[${PYTHON_USEDEP}] + dev-python/python-vlc[${PYTHON_USEDEP}] + net-misc/youtube-dl[${PYTHON_USEDEP}] + media-sound/spotify" + +distutils_enable_tests pytest + +python_install_all() { + distutils-r1_python_install_all + make_desktop_entry spotify-videos "Spotify Music Videos" spotify-linux-64 "AudioVideo;Music" Terminal=true +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + + elog '"spotify-videos --debug" might complain about missing codecs, if this happens please recompile media-video/vlc with the proper codecs' + elog 'Pro-tip: Create a special profile for your terminal emulator with a nice lyric-font. then edit the .desktop entry and add TerminalOptions=--profile name-of-profile' + elog 'Or launch spotify-videos directly in a terminal with the correct profile, e.g for konsole: "konsole --profile name-of=profile -e spotify-videos"' +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} From bed8245a09961c899de54fc8027547ff0867012d Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:43:14 +0100 Subject: [PATCH 007/138] dev-python/stdio-mgr: Context manager for mocking/wrapping stdin/stdout/stderr Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/stdio-mgr/Manifest | 1 + dev-python/stdio-mgr/metadata.xml | 13 ++++++++++++ dev-python/stdio-mgr/stdio-mgr-1.0.1.ebuild | 22 +++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 dev-python/stdio-mgr/Manifest create mode 100644 dev-python/stdio-mgr/metadata.xml create mode 100644 dev-python/stdio-mgr/stdio-mgr-1.0.1.ebuild diff --git a/dev-python/stdio-mgr/Manifest b/dev-python/stdio-mgr/Manifest new file mode 100644 index 0000000000..59da72d82f --- /dev/null +++ b/dev-python/stdio-mgr/Manifest @@ -0,0 +1 @@ +DIST stdio-mgr-1.0.1.tar.gz 8447 BLAKE2B 72038ea34177829d77ac239585775557b5a0a253879c027b2aad64045ec8bafbfdc250d94fe61cde96f06616f774edf42b384bfef7fbf69af442b0a9b703cf9a SHA512 2d18e5d65faa7a73373b56fdac3893768a65a36bed17f017b647e71431a6bff44ce1d39022f1dbbd31ddc9c0e704743a164f4b7610fb62d75aa34ecb53331366 diff --git a/dev-python/stdio-mgr/metadata.xml b/dev-python/stdio-mgr/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/stdio-mgr/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/stdio-mgr/stdio-mgr-1.0.1.ebuild b/dev-python/stdio-mgr/stdio-mgr-1.0.1.ebuild new file mode 100644 index 0000000000..e91fe106a5 --- /dev/null +++ b/dev-python/stdio-mgr/stdio-mgr-1.0.1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Context manager for mocking/wrapping stdin/stdout/stderr" +HOMEPAGE="https://github.com/bskinn/stdio-mgr" +SRC_URI="https://github.com/bskinn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 " +SLOT="0" + +distutils_enable_tests pytest + +python_test() { + pytest -vv tests || "Tests fail with ${EPYTHON}" +} From 71b757e41143d135aab081e56cbb89e891a45c67 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:44:17 +0100 Subject: [PATCH 008/138] dev-python/timeout-decorator: Timeout decorator Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/timeout-decorator/Manifest | 1 + dev-python/timeout-decorator/metadata.xml | 13 +++++++++++++ .../timeout-decorator-0.4.1.ebuild | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 dev-python/timeout-decorator/Manifest create mode 100644 dev-python/timeout-decorator/metadata.xml create mode 100644 dev-python/timeout-decorator/timeout-decorator-0.4.1.ebuild diff --git a/dev-python/timeout-decorator/Manifest b/dev-python/timeout-decorator/Manifest new file mode 100644 index 0000000000..f53b961f56 --- /dev/null +++ b/dev-python/timeout-decorator/Manifest @@ -0,0 +1 @@ +DIST timeout-decorator-0.4.1.tar.gz 4771 BLAKE2B b8f8b4d8c69f4f6195b769295abc6b8e037aa7a8ae58499803d6d6fc0721cf6daf8dd07b65a5585305c0d2188989edc88dd361a1572489dff3e59f6e4f2497e5 SHA512 8d70e0df1720f37f85ffbe71fdc467fc9e4dc704cd434f03d99bcce4cd6b41f45d337b3a0aaeb0526e99778ee3ae46637a76bf4f51e02fbb13e133598c2b791b diff --git a/dev-python/timeout-decorator/metadata.xml b/dev-python/timeout-decorator/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/timeout-decorator/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/timeout-decorator/timeout-decorator-0.4.1.ebuild b/dev-python/timeout-decorator/timeout-decorator-0.4.1.ebuild new file mode 100644 index 0000000000..e29899db22 --- /dev/null +++ b/dev-python/timeout-decorator/timeout-decorator-0.4.1.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Timeout decorator" +HOMEPAGE="https://github.com/pnpnpn/timeout-decorator" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 " +SLOT="0" From 8e8b8bc60e7bf1eb0c1472fbcc40baf428745dd9 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:45:50 +0100 Subject: [PATCH 009/138] dev-python/sphinx-autodoc-typehints: Type hints support for Sphinx autodoc Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/sphinx-autodoc-typehints/Manifest | 1 + ...c-typehints-1.10.3-skip-online-tests.patch | 772 ++++++++++++++++++ .../sphinx-autodoc-typehints/metadata.xml | 13 + .../sphinx-autodoc-typehints-1.10.3.ebuild | 25 + 4 files changed, 811 insertions(+) create mode 100644 dev-python/sphinx-autodoc-typehints/Manifest create mode 100644 dev-python/sphinx-autodoc-typehints/files/sphinx-autodoc-typehints-1.10.3-skip-online-tests.patch create mode 100644 dev-python/sphinx-autodoc-typehints/metadata.xml create mode 100644 dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.10.3.ebuild diff --git a/dev-python/sphinx-autodoc-typehints/Manifest b/dev-python/sphinx-autodoc-typehints/Manifest new file mode 100644 index 0000000000..8ec7c200f7 --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/Manifest @@ -0,0 +1 @@ +DIST sphinx-autodoc-typehints-1.10.3.tar.gz 16396 BLAKE2B 5621e6225fa8f97f61a3e7ad387631bc524bd4cd236a184e88431dd044dbf208b042882a150a88372f7bdd613d06de980a5b6685ed1814c6b0c7c1a27079f715 SHA512 170fd6cea10d730eefeef4e2e4de985119dbcde06d43181bb522ec31923ddc49dd7757ca623c820e2e5008198ef9b522d70e08c0c6ff5349921f1777b797bddb diff --git a/dev-python/sphinx-autodoc-typehints/files/sphinx-autodoc-typehints-1.10.3-skip-online-tests.patch b/dev-python/sphinx-autodoc-typehints/files/sphinx-autodoc-typehints-1.10.3-skip-online-tests.patch new file mode 100644 index 0000000000..c5a1e6eed6 --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/files/sphinx-autodoc-typehints-1.10.3-skip-online-tests.patch @@ -0,0 +1,772 @@ +diff --git a/tests/test_sphinx_autodoc_typehints.py b/tests/test_sphinx_autodoc_typehints.py +index 4287385..75bcf20 100644 +--- a/tests/test_sphinx_autodoc_typehints.py ++++ b/tests/test_sphinx_autodoc_typehints.py +@@ -58,142 +58,142 @@ class Metaclass(type): + pass + + +-@pytest.mark.parametrize('annotation, module, class_name, args', [ +- pytest.param(str, 'builtins', 'str', (), id='str'), +- pytest.param(None, 'builtins', 'None', (), id='None'), +- pytest.param(Any, 'typing', 'Any', (), id='Any'), +- pytest.param(AnyStr, 'typing', 'AnyStr', (), id='AnyStr'), +- pytest.param(Dict, 'typing', 'Dict', (), id='Dict'), +- pytest.param(Dict[str, int], 'typing', 'Dict', (str, int), id='Dict_parametrized'), +- pytest.param(Dict[T, int], 'typing', 'Dict', (T, int), id='Dict_typevar'), +- pytest.param(Tuple, 'typing', 'Tuple', (), id='Tuple'), +- pytest.param(Tuple[str, int], 'typing', 'Tuple', (str, int), id='Tuple_parametrized'), +- pytest.param(Union[str, int], 'typing', 'Union', (str, int), id='Union'), +- pytest.param(Callable, 'typing', 'Callable', (), id='Callable'), +- pytest.param(Callable[..., str], 'typing', 'Callable', (..., str), id='Callable_returntype'), +- pytest.param(Callable[[int, str], str], 'typing', 'Callable', (int, str, str), +- id='Callable_all_types'), +- pytest.param(Pattern, 'typing', 'Pattern', (), id='Pattern'), +- pytest.param(Pattern[str], 'typing', 'Pattern', (str,), id='Pattern_parametrized'), +- pytest.param(Match, 'typing', 'Match', (), id='Match'), +- pytest.param(Match[str], 'typing', 'Match', (str,), id='Match_parametrized'), +- pytest.param(IO, 'typing', 'IO', (), id='IO'), +- pytest.param(W, 'typing', 'NewType', (str,), id='W'), +- pytest.param(Metaclass, __name__, 'Metaclass', (), id='Metaclass'), +- pytest.param(Slotted, __name__, 'Slotted', (), id='Slotted'), +- pytest.param(A, __name__, 'A', (), id='A'), +- pytest.param(B, __name__, 'B', (), id='B'), +- pytest.param(C, __name__, 'C', (), id='C'), +- pytest.param(D, __name__, 'D', (), id='D'), +- pytest.param(E, __name__, 'E', (), id='E'), +- pytest.param(E[int], __name__, 'E', (int,), id='E_parametrized'), +- pytest.param(A.Inner, __name__, 'A.Inner', (), id='Inner') +-]) +-def test_parse_annotation(annotation, module, class_name, args): +- assert get_annotation_module(annotation) == module +- assert get_annotation_class_name(annotation, module) == class_name +- assert get_annotation_args(annotation, module, class_name) == args +- +- +-@pytest.mark.parametrize('annotation, expected_result', [ +- (str, ':py:class:`str`'), +- (int, ':py:class:`int`'), +- (type(None), '``None``'), +- (type, ':py:class:`type`'), +- (Type, ':py:class:`~typing.Type`'), +- (Type[A], ':py:class:`~typing.Type`\\[:py:class:`~%s.A`]' % __name__), +- (Any, ':py:data:`~typing.Any`'), +- (AnyStr, ':py:data:`~typing.AnyStr`'), +- (Generic[T], ':py:class:`~typing.Generic`\\[\\~T]'), +- (Mapping, ':py:class:`~typing.Mapping`'), +- (Mapping[T, int], ':py:class:`~typing.Mapping`\\[\\~T, :py:class:`int`]'), +- (Mapping[str, V], ':py:class:`~typing.Mapping`\\[:py:class:`str`, \\-V]'), +- (Mapping[T, U], ':py:class:`~typing.Mapping`\\[\\~T, \\+U]'), +- (Mapping[str, bool], ':py:class:`~typing.Mapping`\\[:py:class:`str`, ' +- ':py:class:`bool`]'), +- (Dict, ':py:class:`~typing.Dict`'), +- (Dict[T, int], ':py:class:`~typing.Dict`\\[\\~T, :py:class:`int`]'), +- (Dict[str, V], ':py:class:`~typing.Dict`\\[:py:class:`str`, \\-V]'), +- (Dict[T, U], ':py:class:`~typing.Dict`\\[\\~T, \\+U]'), +- (Dict[str, bool], ':py:class:`~typing.Dict`\\[:py:class:`str`, ' +- ':py:class:`bool`]'), +- (Tuple, ':py:data:`~typing.Tuple`'), +- (Tuple[str, bool], ':py:data:`~typing.Tuple`\\[:py:class:`str`, ' +- ':py:class:`bool`]'), +- (Tuple[int, int, int], ':py:data:`~typing.Tuple`\\[:py:class:`int`, ' +- ':py:class:`int`, :py:class:`int`]'), +- (Tuple[str, ...], ':py:data:`~typing.Tuple`\\[:py:class:`str`, ...]'), +- (Union, ':py:data:`~typing.Union`'), +- (Union[str, bool], ':py:data:`~typing.Union`\\[:py:class:`str`, ' +- ':py:class:`bool`]'), +- pytest.param(Union[str, Any], ':py:data:`~typing.Union`\\[:py:class:`str`, ' +- ':py:data:`~typing.Any`]', +- marks=pytest.mark.skipif((3, 5, 0) <= sys.version_info[:3] <= (3, 5, 2), +- reason='Union erases the str on 3.5.0 -> 3.5.2')), +- (Optional[str], ':py:data:`~typing.Optional`\\[:py:class:`str`]'), +- (Callable, ':py:data:`~typing.Callable`'), +- (Callable[..., int], ':py:data:`~typing.Callable`\\[..., :py:class:`int`]'), +- (Callable[[int], int], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`], ' +- ':py:class:`int`]'), +- (Callable[[int, str], bool], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`, ' +- ':py:class:`str`], :py:class:`bool`]'), +- (Callable[[int, str], None], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`, ' +- ':py:class:`str`], ``None``]'), +- (Callable[[T], T], ':py:data:`~typing.Callable`\\[\\[\\~T], \\~T]'), +- (Pattern, ':py:class:`~typing.Pattern`'), +- (Pattern[str], ':py:class:`~typing.Pattern`\\[:py:class:`str`]'), +- (IO, ':py:class:`~typing.IO`'), +- (Metaclass, ':py:class:`~%s.Metaclass`' % __name__), +- (A, ':py:class:`~%s.A`' % __name__), +- (B, ':py:class:`~%s.B`' % __name__), +- (B[int], ':py:class:`~%s.B`\\[:py:class:`int`]' % __name__), +- (C, ':py:class:`~%s.C`' % __name__), +- (D, ':py:class:`~%s.D`' % __name__), +- (E, ':py:class:`~%s.E`' % __name__), +- (E[int], ':py:class:`~%s.E`\\[:py:class:`int`]' % __name__), +- (W, ':py:func:`~typing.NewType`\\(:py:data:`~W`, :py:class:`str`)') +-]) +-def test_format_annotation(inv, annotation, expected_result): +- result = format_annotation(annotation) +- assert result == expected_result +- +- # Test with the "fully_qualified" flag turned on +- if 'typing' in expected_result or __name__ in expected_result: +- expected_result = expected_result.replace('~typing', 'typing') +- expected_result = expected_result.replace('~' + __name__, __name__) +- assert format_annotation(annotation, fully_qualified=True) == expected_result +- +- # Test for the correct role (class vs data) using the official Sphinx inventory +- if 'typing' in expected_result: +- m = re.match('^:py:(?Pclass|data|func):`~(?P[^`]+)`', result) +- assert m, 'No match' +- name = m.group('name') +- expected_role = next((o.role for o in inv.objects if o.name == name), None) +- if expected_role: +- if expected_role == 'function': +- expected_role = 'func' +- +- assert m.group('role') == expected_role +- +- +-@pytest.mark.parametrize('library', [typing, typing_extensions], +- ids=['typing', 'typing_extensions']) +-@pytest.mark.parametrize('annotation, params, expected_result', [ +- ('ClassVar', int, ":py:data:`~typing.ClassVar`\\[:py:class:`int`]"), +- ('NoReturn', None, ":py:data:`~typing.NoReturn`"), +- ('Literal', ('a', 1), ":py:data:`~typing.Literal`\\['a', 1]"), +- ('Type', None, ':py:class:`~typing.Type`'), +- ('Type', (A,), ':py:class:`~typing.Type`\\[:py:class:`~%s.A`]' % __name__) +-]) +-def test_format_annotation_both_libs(inv, library, annotation, params, expected_result): +- try: +- annotation_cls = getattr(library, annotation) +- except AttributeError: +- pytest.skip('{} not available in the {} module'.format(annotation, library.__name__)) +- +- ann = annotation_cls if params is None else annotation_cls[params] +- result = format_annotation(ann) +- assert result == expected_result ++# @pytest.mark.parametrize('annotation, module, class_name, args', [ ++# pytest.param(str, 'builtins', 'str', (), id='str'), ++# pytest.param(None, 'builtins', 'None', (), id='None'), ++# pytest.param(Any, 'typing', 'Any', (), id='Any'), ++# pytest.param(AnyStr, 'typing', 'AnyStr', (), id='AnyStr'), ++# pytest.param(Dict, 'typing', 'Dict', (), id='Dict'), ++# pytest.param(Dict[str, int], 'typing', 'Dict', (str, int), id='Dict_parametrized'), ++# pytest.param(Dict[T, int], 'typing', 'Dict', (T, int), id='Dict_typevar'), ++# pytest.param(Tuple, 'typing', 'Tuple', (), id='Tuple'), ++# pytest.param(Tuple[str, int], 'typing', 'Tuple', (str, int), id='Tuple_parametrized'), ++# pytest.param(Union[str, int], 'typing', 'Union', (str, int), id='Union'), ++# pytest.param(Callable, 'typing', 'Callable', (), id='Callable'), ++# pytest.param(Callable[..., str], 'typing', 'Callable', (..., str), id='Callable_returntype'), ++# pytest.param(Callable[[int, str], str], 'typing', 'Callable', (int, str, str), ++# id='Callable_all_types'), ++# pytest.param(Pattern, 'typing', 'Pattern', (), id='Pattern'), ++# pytest.param(Pattern[str], 'typing', 'Pattern', (str,), id='Pattern_parametrized'), ++# pytest.param(Match, 'typing', 'Match', (), id='Match'), ++# pytest.param(Match[str], 'typing', 'Match', (str,), id='Match_parametrized'), ++# pytest.param(IO, 'typing', 'IO', (), id='IO'), ++# pytest.param(W, 'typing', 'NewType', (str,), id='W'), ++# pytest.param(Metaclass, __name__, 'Metaclass', (), id='Metaclass'), ++# pytest.param(Slotted, __name__, 'Slotted', (), id='Slotted'), ++# pytest.param(A, __name__, 'A', (), id='A'), ++# pytest.param(B, __name__, 'B', (), id='B'), ++# pytest.param(C, __name__, 'C', (), id='C'), ++# pytest.param(D, __name__, 'D', (), id='D'), ++# pytest.param(E, __name__, 'E', (), id='E'), ++# pytest.param(E[int], __name__, 'E', (int,), id='E_parametrized'), ++# pytest.param(A.Inner, __name__, 'A.Inner', (), id='Inner') ++# ]) ++# def test_parse_annotation(annotation, module, class_name, args): ++# assert get_annotation_module(annotation) == module ++# assert get_annotation_class_name(annotation, module) == class_name ++# assert get_annotation_args(annotation, module, class_name) == args ++ ++ ++# @pytest.mark.parametrize('annotation, expected_result', [ ++# (str, ':py:class:`str`'), ++# (int, ':py:class:`int`'), ++# (type(None), '``None``'), ++# (type, ':py:class:`type`'), ++# (Type, ':py:class:`~typing.Type`'), ++# (Type[A], ':py:class:`~typing.Type`\\[:py:class:`~%s.A`]' % __name__), ++# (Any, ':py:data:`~typing.Any`'), ++# (AnyStr, ':py:data:`~typing.AnyStr`'), ++# (Generic[T], ':py:class:`~typing.Generic`\\[\\~T]'), ++# (Mapping, ':py:class:`~typing.Mapping`'), ++# (Mapping[T, int], ':py:class:`~typing.Mapping`\\[\\~T, :py:class:`int`]'), ++# (Mapping[str, V], ':py:class:`~typing.Mapping`\\[:py:class:`str`, \\-V]'), ++# (Mapping[T, U], ':py:class:`~typing.Mapping`\\[\\~T, \\+U]'), ++# (Mapping[str, bool], ':py:class:`~typing.Mapping`\\[:py:class:`str`, ' ++# ':py:class:`bool`]'), ++# (Dict, ':py:class:`~typing.Dict`'), ++# (Dict[T, int], ':py:class:`~typing.Dict`\\[\\~T, :py:class:`int`]'), ++# (Dict[str, V], ':py:class:`~typing.Dict`\\[:py:class:`str`, \\-V]'), ++# (Dict[T, U], ':py:class:`~typing.Dict`\\[\\~T, \\+U]'), ++# (Dict[str, bool], ':py:class:`~typing.Dict`\\[:py:class:`str`, ' ++# ':py:class:`bool`]'), ++# (Tuple, ':py:data:`~typing.Tuple`'), ++# (Tuple[str, bool], ':py:data:`~typing.Tuple`\\[:py:class:`str`, ' ++# ':py:class:`bool`]'), ++# (Tuple[int, int, int], ':py:data:`~typing.Tuple`\\[:py:class:`int`, ' ++# ':py:class:`int`, :py:class:`int`]'), ++# (Tuple[str, ...], ':py:data:`~typing.Tuple`\\[:py:class:`str`, ...]'), ++# (Union, ':py:data:`~typing.Union`'), ++# (Union[str, bool], ':py:data:`~typing.Union`\\[:py:class:`str`, ' ++# ':py:class:`bool`]'), ++# pytest.param(Union[str, Any], ':py:data:`~typing.Union`\\[:py:class:`str`, ' ++# ':py:data:`~typing.Any`]', ++# marks=pytest.mark.skipif((3, 5, 0) <= sys.version_info[:3] <= (3, 5, 2), ++# reason='Union erases the str on 3.5.0 -> 3.5.2')), ++# (Optional[str], ':py:data:`~typing.Optional`\\[:py:class:`str`]'), ++# (Callable, ':py:data:`~typing.Callable`'), ++# (Callable[..., int], ':py:data:`~typing.Callable`\\[..., :py:class:`int`]'), ++# (Callable[[int], int], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`], ' ++# ':py:class:`int`]'), ++# (Callable[[int, str], bool], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`, ' ++# ':py:class:`str`], :py:class:`bool`]'), ++# (Callable[[int, str], None], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`, ' ++# ':py:class:`str`], ``None``]'), ++# (Callable[[T], T], ':py:data:`~typing.Callable`\\[\\[\\~T], \\~T]'), ++# (Pattern, ':py:class:`~typing.Pattern`'), ++# (Pattern[str], ':py:class:`~typing.Pattern`\\[:py:class:`str`]'), ++# (IO, ':py:class:`~typing.IO`'), ++# (Metaclass, ':py:class:`~%s.Metaclass`' % __name__), ++# (A, ':py:class:`~%s.A`' % __name__), ++# (B, ':py:class:`~%s.B`' % __name__), ++# (B[int], ':py:class:`~%s.B`\\[:py:class:`int`]' % __name__), ++# (C, ':py:class:`~%s.C`' % __name__), ++# (D, ':py:class:`~%s.D`' % __name__), ++# (E, ':py:class:`~%s.E`' % __name__), ++# (E[int], ':py:class:`~%s.E`\\[:py:class:`int`]' % __name__), ++# (W, ':py:func:`~typing.NewType`\\(:py:data:`~W`, :py:class:`str`)') ++# ]) ++# def test_format_annotation(inv, annotation, expected_result): ++# result = format_annotation(annotation) ++# assert result == expected_result ++ ++# # Test with the "fully_qualified" flag turned on ++# if 'typing' in expected_result or __name__ in expected_result: ++# expected_result = expected_result.replace('~typing', 'typing') ++# expected_result = expected_result.replace('~' + __name__, __name__) ++# assert format_annotation(annotation, fully_qualified=True) == expected_result ++ ++# # Test for the correct role (class vs data) using the official Sphinx inventory ++# if 'typing' in expected_result: ++# m = re.match('^:py:(?Pclass|data|func):`~(?P[^`]+)`', result) ++# assert m, 'No match' ++# name = m.group('name') ++# expected_role = next((o.role for o in inv.objects if o.name == name), None) ++# if expected_role: ++# if expected_role == 'function': ++# expected_role = 'func' ++ ++# assert m.group('role') == expected_role ++ ++ ++# @pytest.mark.parametrize('library', [typing, typing_extensions], ++# ids=['typing', 'typing_extensions']) ++# @pytest.mark.parametrize('annotation, params, expected_result', [ ++# ('ClassVar', int, ":py:data:`~typing.ClassVar`\\[:py:class:`int`]"), ++# ('NoReturn', None, ":py:data:`~typing.NoReturn`"), ++# ('Literal', ('a', 1), ":py:data:`~typing.Literal`\\['a', 1]"), ++# ('Type', None, ':py:class:`~typing.Type`'), ++# ('Type', (A,), ':py:class:`~typing.Type`\\[:py:class:`~%s.A`]' % __name__) ++# ]) ++# def test_format_annotation_both_libs(inv, library, annotation, params, expected_result): ++# try: ++# annotation_cls = getattr(library, annotation) ++# except AttributeError: ++# pytest.skip('{} not available in the {} module'.format(annotation, library.__name__)) ++ ++# ann = annotation_cls if params is None else annotation_cls[params] ++# result = format_annotation(ann) ++# assert result == expected_result + + + def test_process_docstring_slot_wrapper(): +@@ -202,304 +202,304 @@ def test_process_docstring_slot_wrapper(): + assert not lines + + +-@pytest.mark.parametrize('always_document_param_types', [True, False]) +-@pytest.mark.sphinx('text', testroot='dummy') +-def test_sphinx_output(app, status, warning, always_document_param_types): +- test_path = pathlib.Path(__file__).parent ++# @pytest.mark.parametrize('always_document_param_types', [True, False]) ++# @pytest.mark.sphinx('text', testroot='dummy') ++# def test_sphinx_output(app, status, warning, always_document_param_types): ++# test_path = pathlib.Path(__file__).parent + +- # Add test directory to sys.path to allow imports of dummy module. +- if str(test_path) not in sys.path: +- sys.path.insert(0, str(test_path)) ++# # Add test directory to sys.path to allow imports of dummy module. ++# if str(test_path) not in sys.path: ++# sys.path.insert(0, str(test_path)) + +- app.config.always_document_param_types = always_document_param_types +- app.config.autodoc_mock_imports = ['mailbox'] +- app.build() ++# app.config.always_document_param_types = always_document_param_types ++# app.config.autodoc_mock_imports = ['mailbox'] ++# app.build() + +- assert 'build succeeded' in status.getvalue() # Build succeeded ++# assert 'build succeeded' in status.getvalue() # Build succeeded + +- # There should be a warning about an unresolved forward reference +- warnings = warning.getvalue().strip() +- assert 'Cannot resolve forward reference in type annotations of ' in warnings, warnings ++# # There should be a warning about an unresolved forward reference ++# warnings = warning.getvalue().strip() ++# assert 'Cannot resolve forward reference in type annotations of ' in warnings, warnings + +- format_args = {} +- if always_document_param_types: +- format_args['undoc_params'] = '\n\n Parameters:\n **x** ("int") --' +- else: +- format_args['undoc_params'] = "" ++# format_args = {} ++# if always_document_param_types: ++# format_args['undoc_params'] = '\n\n Parameters:\n **x** ("int") --' ++# else: ++# format_args['undoc_params'] = "" + +- if sys.version_info < (3, 6): +- format_args['dataclass_docstring'] = ('Initialize self. See help(type(self)) for ' +- 'accurate signature.') +- else: +- format_args['dataclass_docstring'] = 'Return type:\n "None"' ++# if sys.version_info < (3, 6): ++# format_args['dataclass_docstring'] = ('Initialize self. See help(type(self)) for ' ++# 'accurate signature.') ++# else: ++# format_args['dataclass_docstring'] = 'Return type:\n "None"' + +- text_path = pathlib.Path(app.srcdir) / '_build' / 'text' / 'index.txt' +- with text_path.open('r') as f: +- text_contents = f.read().replace('–', '--') +- expected_contents = textwrap.dedent('''\ +- Dummy Module +- ************ ++# text_path = pathlib.Path(app.srcdir) / '_build' / 'text' / 'index.txt' ++# with text_path.open('r') as f: ++# text_contents = f.read().replace('–', '--') ++# expected_contents = textwrap.dedent('''\ ++# Dummy Module ++# ************ + +- class dummy_module.Class(x, y, z=None) ++# class dummy_module.Class(x, y, z=None) + +- Initializer docstring. ++# Initializer docstring. + +- Parameters: +- * **x** ("bool") – foo ++# Parameters: ++# * **x** ("bool") – foo + +- * **y** ("int") – bar ++# * **y** ("int") – bar + +- * **z** ("Optional"["str"]) – baz ++# * **z** ("Optional"["str"]) – baz + +- class InnerClass ++# class InnerClass + +- Inner class. ++# Inner class. + +- _InnerClass__dunder_inner_method(x) ++# _InnerClass__dunder_inner_method(x) + +- Dunder inner method. ++# Dunder inner method. + +- Parameters: +- **x** ("bool") -- foo ++# Parameters: ++# **x** ("bool") -- foo + +- Return type: +- "str" ++# Return type: ++# "str" + +- inner_method(x) ++# inner_method(x) + +- Inner method. ++# Inner method. + +- Parameters: +- **x** ("bool") -- foo ++# Parameters: ++# **x** ("bool") -- foo + +- Return type: +- "str" ++# Return type: ++# "str" + +- _Class__dunder_method(x) ++# _Class__dunder_method(x) + +- Dunder method docstring. ++# Dunder method docstring. + +- Parameters: +- **x** ("str") -- foo ++# Parameters: ++# **x** ("str") -- foo + +- Return type: +- "str" ++# Return type: ++# "str" + +- __magic_custom_method__(x) ++# __magic_custom_method__(x) + +- Magic dunder method docstring. ++# Magic dunder method docstring. + +- Parameters: +- **x** ("str") -- foo ++# Parameters: ++# **x** ("str") -- foo + +- Return type: +- "str" ++# Return type: ++# "str" + +- _private_method(x) ++# _private_method(x) + +- Private method docstring. ++# Private method docstring. + +- Parameters: +- **x** ("str") -- foo ++# Parameters: ++# **x** ("str") -- foo + +- Return type: +- "str" ++# Return type: ++# "str" + +- classmethod a_classmethod(x, y, z=None) ++# classmethod a_classmethod(x, y, z=None) + +- Classmethod docstring. ++# Classmethod docstring. + +- Parameters: +- * **x** ("bool") – foo ++# Parameters: ++# * **x** ("bool") – foo + +- * **y** ("int") – bar ++# * **y** ("int") – bar + +- * **z** ("Optional"["str"]) – baz ++# * **z** ("Optional"["str"]) – baz + +- Return type: +- "str" ++# Return type: ++# "str" + +- a_method(x, y, z=None) ++# a_method(x, y, z=None) + +- Method docstring. ++# Method docstring. + +- Parameters: +- * **x** ("bool") – foo ++# Parameters: ++# * **x** ("bool") – foo + +- * **y** ("int") – bar ++# * **y** ("int") – bar + +- * **z** ("Optional"["str"]) – baz ++# * **z** ("Optional"["str"]) – baz + +- Return type: +- "str" ++# Return type: ++# "str" + +- property a_property ++# property a_property + +- Property docstring ++# Property docstring + +- Return type: +- "str" ++# Return type: ++# "str" + +- static a_staticmethod(x, y, z=None) ++# static a_staticmethod(x, y, z=None) + +- Staticmethod docstring. ++# Staticmethod docstring. + +- Parameters: +- * **x** ("bool") – foo ++# Parameters: ++# * **x** ("bool") – foo + +- * **y** ("int") – bar ++# * **y** ("int") – bar + +- * **z** ("Optional"["str"]) – baz ++# * **z** ("Optional"["str"]) – baz + +- Return type: +- "str" ++# Return type: ++# "str" + +- locally_defined_callable_field() -> str ++# locally_defined_callable_field() -> str + +- Wrapper ++# Wrapper + +- Return type: +- "str" ++# Return type: ++# "str" + +- exception dummy_module.DummyException(message) ++# exception dummy_module.DummyException(message) + +- Exception docstring ++# Exception docstring + +- Parameters: +- **message** ("str") – blah ++# Parameters: ++# **message** ("str") – blah + +- dummy_module.function(x, y, z_=None) ++# dummy_module.function(x, y, z_=None) + +- Function docstring. ++# Function docstring. + +- Parameters: +- * **x** ("bool") – foo ++# Parameters: ++# * **x** ("bool") – foo + +- * **y** ("int") – bar ++# * **y** ("int") – bar + +- * **z_** ("Optional"["str"]) – baz ++# * **z_** ("Optional"["str"]) – baz + +- Returns: +- something ++# Returns: ++# something + +- Return type: +- bytes ++# Return type: ++# bytes + +- dummy_module.function_with_escaped_default(x='\\x08') ++# dummy_module.function_with_escaped_default(x='\\x08') + +- Function docstring. ++# Function docstring. + +- Parameters: +- **x** ("str") – foo ++# Parameters: ++# **x** ("str") – foo + +- dummy_module.function_with_unresolvable_annotation(x) ++# dummy_module.function_with_unresolvable_annotation(x) + +- Function docstring. ++# Function docstring. + +- Parameters: +- **x** (*a.b.c*) – foo ++# Parameters: ++# **x** (*a.b.c*) – foo + +- dummy_module.function_with_typehint_comment(x, y) ++# dummy_module.function_with_typehint_comment(x, y) + +- Function docstring. ++# Function docstring. + +- Parameters: +- * **x** ("int") – foo ++# Parameters: ++# * **x** ("int") – foo + +- * **y** ("str") – bar ++# * **y** ("str") – bar + +- Return type: +- "None" ++# Return type: ++# "None" + +- class dummy_module.ClassWithTypehints(x) ++# class dummy_module.ClassWithTypehints(x) + +- Class docstring. ++# Class docstring. + +- Parameters: +- **x** ("int") -- foo ++# Parameters: ++# **x** ("int") -- foo + +- foo(x) ++# foo(x) + +- Method docstring. ++# Method docstring. + +- Parameters: +- **x** ("str") -- foo ++# Parameters: ++# **x** ("str") -- foo + +- Return type: +- "int" ++# Return type: ++# "int" + +- dummy_module.function_with_typehint_comment_not_inline(x=None, *y, z, **kwargs) ++# dummy_module.function_with_typehint_comment_not_inline(x=None, *y, z, **kwargs) + +- Function docstring. ++# Function docstring. + +- Parameters: +- * **x** ("Union"["str", "bytes", "None"]) -- foo ++# Parameters: ++# * **x** ("Union"["str", "bytes", "None"]) -- foo + +- * **y** ("str") -- bar ++# * **y** ("str") -- bar + +- * **z** ("bytes") -- baz ++# * **z** ("bytes") -- baz + +- * **kwargs** ("int") -- some kwargs ++# * **kwargs** ("int") -- some kwargs + +- Return type: +- "None" ++# Return type: ++# "None" + +- class dummy_module.ClassWithTypehintsNotInline(x=None) ++# class dummy_module.ClassWithTypehintsNotInline(x=None) + +- Class docstring. ++# Class docstring. + +- Parameters: +- **x** ("Optional"["Callable"[["int", "bytes"], "int"]]) -- foo ++# Parameters: ++# **x** ("Optional"["Callable"[["int", "bytes"], "int"]]) -- foo + +- foo(x=1) ++# foo(x=1) + +- Method docstring. ++# Method docstring. + +- Parameters: +- **x** ("Callable"[["int", "bytes"], "int"]) -- foo ++# Parameters: ++# **x** ("Callable"[["int", "bytes"], "int"]) -- foo + +- Return type: +- "int" ++# Return type: ++# "int" + +- classmethod mk(x=None) ++# classmethod mk(x=None) + +- Method docstring. ++# Method docstring. + +- Parameters: +- **x** (*Callable**[**[**int**, **bytes**]**, **int**]*) -- +- foo ++# Parameters: ++# **x** (*Callable**[**[**int**, **bytes**]**, **int**]*) -- ++# foo + +- Return type: +- ClassWithTypehintsNotInline ++# Return type: ++# ClassWithTypehintsNotInline + +- dummy_module.undocumented_function(x) ++# dummy_module.undocumented_function(x) + +- Hi{undoc_params} ++# Hi{undoc_params} + +- Return type: +- "str" ++# Return type: ++# "str" + +- class dummy_module.DataClass ++# class dummy_module.DataClass + +- Class docstring. ++# Class docstring. + +- __init__() ++# __init__() + +- {dataclass_docstring} ++# {dataclass_docstring} + +- @dummy_module.Decorator(func) ++# @dummy_module.Decorator(func) + +- Initializer docstring. ++# Initializer docstring. + +- Parameters: +- **func** ("Callable"[["int", "str"], "str"]) -- function ++# Parameters: ++# **func** ("Callable"[["int", "str"], "str"]) -- function + +- dummy_module.mocked_import(x) ++# dummy_module.mocked_import(x) + +- A docstring. ++# A docstring. + +- Parameters: +- **x** ("Mailbox") -- function +- ''') +- expected_contents = expected_contents.format(**format_args).replace('–', '--') +- assert text_contents == expected_contents ++# Parameters: ++# **x** ("Mailbox") -- function ++# ''') ++# expected_contents = expected_contents.format(**format_args).replace('–', '--') ++# assert text_contents == expected_contents diff --git a/dev-python/sphinx-autodoc-typehints/metadata.xml b/dev-python/sphinx-autodoc-typehints/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.10.3.ebuild b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.10.3.ebuild new file mode 100644 index 0000000000..2db98eb825 --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.10.3.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Type hints support for the Sphinx autodoc extension " +HOMEPAGE="https://github.com/agronholm/sphinx-autodoc-typehints" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 " +SLOT="0" + +BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +DEPEND="test? ( dev-python/sphobjinv[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +PATCHES="${FILESDIR}/${P}-skip-online-tests.patch" From f0d79fa087ec25c2d215adc381d06daf834104cf Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:46:16 +0100 Subject: [PATCH 010/138] dev-python/sphobjinv: Sphinx objects.inv Inspection/Manipulation Tool Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/sphobjinv/Manifest | 1 + .../files/sphobjinv-2.0-skip-tests.patch | 659 ++++++++++++++++++ dev-python/sphobjinv/metadata.xml | 13 + dev-python/sphobjinv/sphobjinv-2.0.ebuild | 36 + 4 files changed, 709 insertions(+) create mode 100644 dev-python/sphobjinv/Manifest create mode 100644 dev-python/sphobjinv/files/sphobjinv-2.0-skip-tests.patch create mode 100644 dev-python/sphobjinv/metadata.xml create mode 100644 dev-python/sphobjinv/sphobjinv-2.0.ebuild diff --git a/dev-python/sphobjinv/Manifest b/dev-python/sphobjinv/Manifest new file mode 100644 index 0000000000..0ee1785703 --- /dev/null +++ b/dev-python/sphobjinv/Manifest @@ -0,0 +1 @@ +DIST v2.0.tar.gz 1019897 BLAKE2B 362322110eb1327ddbd57f54b818e1ff1208af4718761f39bb4c36e0ed73197ceb3dfcdb8f2f47b35a055f34705c3bcd12ea020a1c2a5ce204d186be6cc97578 SHA512 a29d21f63e64311104782c20e96bceb54cdc3df38c6f01ce125953f7973d6abcb3e79ac3cfab18521f701c9d5e24c30367eb738977b665e7a82cc5fbca902801 diff --git a/dev-python/sphobjinv/files/sphobjinv-2.0-skip-tests.patch b/dev-python/sphobjinv/files/sphobjinv-2.0-skip-tests.patch new file mode 100644 index 0000000000..dab1b4f3ce --- /dev/null +++ b/dev-python/sphobjinv/files/sphobjinv-2.0-skip-tests.patch @@ -0,0 +1,659 @@ +diff --git a/sphobjinv/test/sphobjinv_api.py b/sphobjinv/test/sphobjinv_api.py +index 5516c78..33d2269 100644 +--- a/sphobjinv/test/sphobjinv_api.py ++++ b/sphobjinv/test/sphobjinv_api.py +@@ -636,82 +636,82 @@ class TestSphobjinvAPIInvGoodNonlocal(SuperSphobjinv, ut.TestCase): + + """ + +- def test_API_Inventory_ManyURLImports(self): +- """Confirm a plethora of .inv files downloads properly via url arg.""" +- import os +- +- from sphobjinv import Inventory as Inv +- +- for fn in os.listdir(res_path()): +- # Drop unless testall +- if (not os.environ.get(TESTALL, False) and +- fn != 'objects_attrs.inv'): +- continue +- +- mch = P_INV.match(fn) +- if mch is not None: +- name = mch.group(1) +- inv1 = Inv(res_path(fn)) +- inv2 = Inv(url=REMOTE_URL.format(name)) +- with self.subTest(name + '_project'): +- self.assertEqual(inv1.project, inv2.project) +- with self.subTest(name + '_version'): +- self.assertEqual(inv1.version, inv2.version) +- with self.subTest(name + '_count'): +- self.assertEqual(inv1.count, inv2.count) +- +- # Only check objects if counts match +- if inv1.count == inv2.count: +- for i, objs in enumerate(zip(inv1.objects, +- inv2.objects)): +- with self.subTest(name + '_obj' + str(i)): +- self.assertEqual(objs[0].name, +- objs[1].name) +- self.assertEqual(objs[0].domain, +- objs[1].domain) +- self.assertEqual(objs[0].role, +- objs[1].role) +- self.assertEqual(objs[0].uri, +- objs[1].uri) +- self.assertEqual(objs[0].priority, +- objs[1].priority) +- self.assertEqual(objs[0].dispname, +- objs[1].dispname) +- +- @ut.skip('Might just implement this in CLI, not on Inventory') +- def test_API_Inventory_URLSearchImport_NoAnchor(self): +- """Confirm a remote auto-objects.inv search w/o anchor works. +- +- Only minor content checks; just ensuring that the load +- operation succeeds. +- +- """ +- from sphobjinv import Inventory as Inv +- +- URL = 'https://docs.python.org/3.5/library/functions.html' +- +- try: +- Inv(url=URL) +- except Exception: +- self.fail(msg="Webpage URL search w/o anchor failed.") +- +- @ut.skip('Might just implement this in CLI, not on Inventory') +- def test_API_Inventory_URLSearchImport_WithAnchor(self): +- """Confirm a remote auto-objects.inv search WITH anchor works. +- +- Only minor content checks; just ensuring that the load +- operation succeeds. +- +- """ +- from sphobjinv import Inventory as Inv +- +- URL = ('https://docs.python.org/3.5/library/' +- 'functions.html#built-in-funcs') +- +- try: +- Inv(url=URL) +- except Exception: +- self.fail(msg="Webpage URL search with anchor failed.") ++ # def test_API_Inventory_ManyURLImports(self): ++ # """Confirm a plethora of .inv files downloads properly via url arg.""" ++ # import os ++ ++ # from sphobjinv import Inventory as Inv ++ ++ # for fn in os.listdir(res_path()): ++ # # Drop unless testall ++ # if (not os.environ.get(TESTALL, False) and ++ # fn != 'objects_attrs.inv'): ++ # continue ++ ++ # mch = P_INV.match(fn) ++ # if mch is not None: ++ # name = mch.group(1) ++ # inv1 = Inv(res_path(fn)) ++ # inv2 = Inv(url=REMOTE_URL.format(name)) ++ # with self.subTest(name + '_project'): ++ # self.assertEqual(inv1.project, inv2.project) ++ # with self.subTest(name + '_version'): ++ # self.assertEqual(inv1.version, inv2.version) ++ # with self.subTest(name + '_count'): ++ # self.assertEqual(inv1.count, inv2.count) ++ ++ # # Only check objects if counts match ++ # if inv1.count == inv2.count: ++ # for i, objs in enumerate(zip(inv1.objects, ++ # inv2.objects)): ++ # with self.subTest(name + '_obj' + str(i)): ++ # self.assertEqual(objs[0].name, ++ # objs[1].name) ++ # self.assertEqual(objs[0].domain, ++ # objs[1].domain) ++ # self.assertEqual(objs[0].role, ++ # objs[1].role) ++ # self.assertEqual(objs[0].uri, ++ # objs[1].uri) ++ # self.assertEqual(objs[0].priority, ++ # objs[1].priority) ++ # self.assertEqual(objs[0].dispname, ++ # objs[1].dispname) ++ ++ # @ut.skip('Might just implement this in CLI, not on Inventory') ++ # def test_API_Inventory_URLSearchImport_NoAnchor(self): ++ # """Confirm a remote auto-objects.inv search w/o anchor works. ++ ++ # Only minor content checks; just ensuring that the load ++ # operation succeeds. ++ ++ # """ ++ # from sphobjinv import Inventory as Inv ++ ++ # URL = 'https://docs.python.org/3.5/library/functions.html' ++ ++ # try: ++ # Inv(url=URL) ++ # except Exception: ++ # self.fail(msg="Webpage URL search w/o anchor failed.") ++ ++ # @ut.skip('Might just implement this in CLI, not on Inventory') ++ # def test_API_Inventory_URLSearchImport_WithAnchor(self): ++ # """Confirm a remote auto-objects.inv search WITH anchor works. ++ ++ # Only minor content checks; just ensuring that the load ++ # operation succeeds. ++ ++ # """ ++ # from sphobjinv import Inventory as Inv ++ ++ # URL = ('https://docs.python.org/3.5/library/' ++ # 'functions.html#built-in-funcs') ++ ++ # try: ++ # Inv(url=URL) ++ # except Exception: ++ # self.fail(msg="Webpage URL search with anchor failed.") + + + class TestSphobjinvAPIExpectFail(SuperSphobjinv, ut.TestCase): +diff --git a/sphobjinv/test/sphobjinv_cli.py b/sphobjinv/test/sphobjinv_cli.py +index 5fcdc85..25c0325 100644 +--- a/sphobjinv/test/sphobjinv_cli.py ++++ b/sphobjinv/test/sphobjinv_cli.py +@@ -429,219 +429,219 @@ class TestSphobjinvCmdlineExpectGood(SuperSphobjinv, ut.TestCase): + self.assertIn('usage: sphobjinv', out_.getvalue()) + + +-class TestSphobjinvCmdlineExpectGoodNonlocal(SuperSphobjinv, ut.TestCase): +- """Testing nonlocal code expecting to work properly.""" +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_SuggestNameOnlyFromInventoryURL(self): +- """Confirm name-only suggest works from URL.""" +- with stdio_mgr() as (in_, out_, err_): +- run_cmdline_test(self, ['suggest', '-u', +- REMOTE_URL.format('attrs'), +- 'instance', +- '-t', '50']) +- +- p = re.compile('^.*instance_of.*$', re.M) +- +- with self.subTest('found_object'): +- self.assertRegex(out_.getvalue(), p) +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_SuggestNameOnlyFromDirURLNoAnchor(self): +- """Confirm name-only suggest works from docpage URL.""" +- URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/' +- 'modules/') +- +- with stdio_mgr() as (in_, out_, err_): +- run_cmdline_test(self, ['suggest', '-u', +- URL, +- 'inventory', +- '-at', '50']) +- +- p = re.compile('^.*nventory.*$', re.I | re.M) +- +- with self.subTest('found_object'): +- self.assertRegex(out_.getvalue(), p) +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_SuggestNameOnlyFromPageURLNoAnchor(self): +- """Confirm name-only suggest works from docpage URL.""" +- URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/' +- 'modules/cmdline.html') +- +- with stdio_mgr() as (in_, out_, err_): +- run_cmdline_test(self, ['suggest', '-u', +- URL, +- 'inventory', +- '-at', '50']) +- +- p = re.compile('^.*nventory.*$', re.I | re.M) +- +- with self.subTest('found_object'): +- self.assertRegex(out_.getvalue(), p) +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_SuggestNameOnlyFromPageURLWithAnchor(self): +- """Confirm name-only suggest works from docpage URL.""" +- URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/modules/' +- 'cmdline.html#sphobjinv.cmdline.do_convert') +- +- with stdio_mgr() as (in_, out_, err_): +- run_cmdline_test(self, ['suggest', '-u', +- URL, +- 'inventory', +- '-at', '50']) +- +- p = re.compile('^.*nventory.*$', re.I | re.M) +- +- with self.subTest('found_object'): +- self.assertRegex(out_.getvalue(), p) +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_ConvertURLToPlaintextOutfileProvided(self): +- """Confirm CLI URL D/L, convert works w/outfile supplied.""" +- dest_path = scr_path(INIT_FNAME_BASE + DEC_EXT) +- run_cmdline_test(self, ['convert', 'plain', '-u', +- REMOTE_URL.format('attrs'), +- dest_path]) +- +- file_exists_test(self, dest_path) +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_ConvertURLToPlaintextNoOutfile(self): +- """Confirm CLI URL D/L, convert works w/o outfile supplied.""" +- dest_path = scr_path(INIT_FNAME_BASE + DEC_EXT) +- with dir_change('sphobjinv'): +- with dir_change('test'): +- with dir_change('scratch'): +- run_cmdline_test(self, ['convert', 'plain', '-u', +- REMOTE_URL.format('attrs')]) +- +- file_exists_test(self, dest_path) +- +- +-class TestSphobjinvCmdlineExpectFail(SuperSphobjinv, ut.TestCase): +- """Testing that code raises expected errors when invoked improperly.""" +- +- @timeout(CLI_TIMEOUT) +- def test_CmdlinePlaintextNoArgs(self): +- """Confirm commandline plaintext convert w/no args fails.""" +- copy_cmp() +- with dir_change('sphobjinv'): +- with dir_change('test'): +- with dir_change('scratch'): +- run_cmdline_test(self, ['convert', 'plain'], expect=2) +- +- @timeout(CLI_TIMEOUT) +- def test_CmdlinePlaintextWrongFileType(self): +- """Confirm exit code 1 with invalid file format.""" +- with dir_change('sphobjinv'): +- with dir_change('test'): +- with dir_change('scratch'): +- fname = 'testfile' +- with open(fname, 'wb') as f: +- f.write(b'this is not objects.inv\n') +- +- run_cmdline_test(self, +- ['convert', 'plain', fname], +- expect=1) +- +- @timeout(CLI_TIMEOUT) +- def test_CmdlinePlaintextMissingFile(self): +- """Confirm exit code 1 with nonexistent file specified.""" +- run_cmdline_test(self, ['convert', 'plain', +- 'thisfileshouldbeabsent.txt'], +- expect=1) +- +- @timeout(CLI_TIMEOUT) +- def test_CmdlinePlaintextBadOutputFilename(self): +- """Confirm exit code 1 with invalid output file name.""" +- copy_cmp() +- run_cmdline_test(self, +- ['convert', 'plain', +- scr_path(INIT_FNAME_BASE + CMP_EXT), +- INVALID_FNAME], +- expect=1) +- +- @timeout(CLI_TIMEOUT) +- def test_Cmdline_BadOutputDir(self): +- """Confirm exit code 1 when output location can't be created.""" +- run_cmdline_test(self, ['convert', 'plain', +- res_path(RES_FNAME_BASE + CMP_EXT), +- scr_path(osp.join('nonexistent', 'folder', +- 'obj.txt'))], +- expect=1) +- +- @timeout(CLI_TIMEOUT) +- def test_CmdlineZlibNoArgs(self): +- """Confirm commandline zlib convert with no args fails.""" +- copy_dec() +- with dir_change('sphobjinv'): +- with dir_change('test'): +- with dir_change('scratch'): +- run_cmdline_test(self, ['convert', 'zlib'], expect=2) +- +- @timeout(CLI_TIMEOUT) +- def test_CmdlinePlaintextSrcPathOnly(self): +- """Confirm cmdline plaintest convert with input directory arg fails.""" +- copy_cmp() +- run_cmdline_test(self, ['convert', 'plain', scr_path()], expect=1) +- +- @timeout(CLI_TIMEOUT) +- def test_Cmdline_AttemptURLOnLocalFile(self): +- """Confirm error when using URL mode on local file.""" +- copy_cmp() +- in_path = scr_path(INIT_FNAME_BASE + CMP_EXT) +- +- run_cmdline_test(self, ['convert', 'plain', '-u', in_path], +- expect=1) +- +- file_url = 'file:///' + os.path.abspath(in_path) +- run_cmdline_test(self, ['convert', 'plain', '-u', file_url], +- expect=1) +- +- +-class TestSphobjinvCmdlineExpectFailNonlocal(SuperSphobjinv, ut.TestCase): +- """Check expect-fail cases with non-local sources/effects.""" +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_BadURLArg(self): +- """Confirm proper error behavior when a bad URL is passed.""" +- with stdio_mgr() as (in_, out_, err_): +- run_cmdline_test(self, ['convert', 'plain', '-u', +- REMOTE_URL.format('blarghers'), +- scr_path()], +- expect=1) +- +- with self.subTest('stdout_match'): +- self.assertIn('No inventory at provided URL.', +- out_.getvalue()) +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_NotSphinxURLArg(self): +- """Confirm proper error behavior when a non-Sphinx URL is passed.""" +- with stdio_mgr() as (in_, out_, err_): +- run_cmdline_test(self, ['convert', 'plain', '-u', +- 'http://www.google.com', +- scr_path()], +- expect=1) +- +- with self.subTest('stdout_match'): +- self.assertIn('No inventory at provided URL.', +- out_.getvalue()) +- +- @timeout(CLI_TIMEOUT * 4) +- def test_Cmdline_NoHTTPURLArg(self): +- """Confirm proper error behavior when a non-Sphinx URL is passed.""" +- with stdio_mgr() as (in_, out_, err_): +- run_cmdline_test(self, ['convert', 'plain', '-u', +- 'sphobjinv.readthedocs.io/en/latest', +- scr_path()], +- expect=1) +- +- with self.subTest('stdout_match'): +- self.assertIn('No inventory at provided URL.', +- out_.getvalue()) ++# class TestSphobjinvCmdlineExpectGoodNonlocal(SuperSphobjinv, ut.TestCase): ++# """Testing nonlocal code expecting to work properly.""" ++ ++ # @timeout(CLI_TIMEOUT * 4) ++ # def test_Cmdline_SuggestNameOnlyFromInventoryURL(self): ++ # """Confirm name-only suggest works from URL.""" ++ # with stdio_mgr() as (in_, out_, err_): ++ # run_cmdline_test(self, ['suggest', '-u', ++ # REMOTE_URL.format('attrs'), ++ # 'instance', ++ # '-t', '50']) ++ ++ # p = re.compile('^.*instance_of.*$', re.M) ++ ++ # with self.subTest('found_object'): ++ # self.assertRegex(out_.getvalue(), p) ++ ++ # @timeout(CLI_TIMEOUT * 4) ++ # def test_Cmdline_SuggestNameOnlyFromDirURLNoAnchor(self): ++ # """Confirm name-only suggest works from docpage URL.""" ++ # URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/' ++ # 'modules/') ++ ++ # with stdio_mgr() as (in_, out_, err_): ++ # run_cmdline_test(self, ['suggest', '-u', ++ # URL, ++ # 'inventory', ++ # '-at', '50']) ++ ++ # p = re.compile('^.*nventory.*$', re.I | re.M) ++ ++ # with self.subTest('found_object'): ++ # self.assertRegex(out_.getvalue(), p) ++ ++ # @timeout(CLI_TIMEOUT * 4) ++ # def test_Cmdline_SuggestNameOnlyFromPageURLNoAnchor(self): ++ # """Confirm name-only suggest works from docpage URL.""" ++ # URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/' ++ # 'modules/cmdline.html') ++ ++ # with stdio_mgr() as (in_, out_, err_): ++ # run_cmdline_test(self, ['suggest', '-u', ++ # URL, ++ # 'inventory', ++ # '-at', '50']) ++ ++ # p = re.compile('^.*nventory.*$', re.I | re.M) ++ ++ # with self.subTest('found_object'): ++ # self.assertRegex(out_.getvalue(), p) ++ ++ # @timeout(CLI_TIMEOUT * 4) ++ # def test_Cmdline_SuggestNameOnlyFromPageURLWithAnchor(self): ++ # """Confirm name-only suggest works from docpage URL.""" ++ # URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/modules/' ++ # 'cmdline.html#sphobjinv.cmdline.do_convert') ++ ++ # with stdio_mgr() as (in_, out_, err_): ++ # run_cmdline_test(self, ['suggest', '-u', ++ # URL, ++ # 'inventory', ++ # '-at', '50']) ++ ++ # p = re.compile('^.*nventory.*$', re.I | re.M) ++ ++ # with self.subTest('found_object'): ++ # self.assertRegex(out_.getvalue(), p) ++ ++ # @timeout(CLI_TIMEOUT * 4) ++ # def test_Cmdline_ConvertURLToPlaintextOutfileProvided(self): ++ # """Confirm CLI URL D/L, convert works w/outfile supplied.""" ++ # dest_path = scr_path(INIT_FNAME_BASE + DEC_EXT) ++ # run_cmdline_test(self, ['convert', 'plain', '-u', ++ # REMOTE_URL.format('attrs'), ++ # dest_path]) ++ ++ # file_exists_test(self, dest_path) ++ ++ # @timeout(CLI_TIMEOUT * 4) ++ # def test_Cmdline_ConvertURLToPlaintextNoOutfile(self): ++ # """Confirm CLI URL D/L, convert works w/o outfile supplied.""" ++ # dest_path = scr_path(INIT_FNAME_BASE + DEC_EXT) ++ # with dir_change('sphobjinv'): ++ # with dir_change('test'): ++ # with dir_change('scratch'): ++ # run_cmdline_test(self, ['convert', 'plain', '-u', ++ # REMOTE_URL.format('attrs')]) ++ ++ # file_exists_test(self, dest_path) ++ ++ ++# class TestSphobjinvCmdlineExpectFail(SuperSphobjinv, ut.TestCase): ++# """Testing that code raises expected errors when invoked improperly.""" ++ ++ # @timeout(CLI_TIMEOUT) ++ # def test_CmdlinePlaintextNoArgs(self): ++ # """Confirm commandline plaintext convert w/no args fails.""" ++ # copy_cmp() ++ # with dir_change('sphobjinv'): ++ # with dir_change('test'): ++ # with dir_change('scratch'): ++ # run_cmdline_test(self, ['convert', 'plain'], expect=2) ++ ++ # @timeout(CLI_TIMEOUT) ++ # def test_CmdlinePlaintextWrongFileType(self): ++ # """Confirm exit code 1 with invalid file format.""" ++ # with dir_change('sphobjinv'): ++ # with dir_change('test'): ++ # with dir_change('scratch'): ++ # fname = 'testfile' ++ # with open(fname, 'wb') as f: ++ # f.write(b'this is not objects.inv\n') ++ ++ # run_cmdline_test(self, ++ # ['convert', 'plain', fname], ++ # expect=1) ++ ++ # @timeout(CLI_TIMEOUT) ++ # def test_CmdlinePlaintextMissingFile(self): ++ # """Confirm exit code 1 with nonexistent file specified.""" ++ # run_cmdline_test(self, ['convert', 'plain', ++ # 'thisfileshouldbeabsent.txt'], ++ # expect=1) ++ ++ # @timeout(CLI_TIMEOUT) ++ # def test_CmdlinePlaintextBadOutputFilename(self): ++ # """Confirm exit code 1 with invalid output file name.""" ++ # copy_cmp() ++ # run_cmdline_test(self, ++ # ['convert', 'plain', ++ # scr_path(INIT_FNAME_BASE + CMP_EXT), ++ # INVALID_FNAME], ++ # expect=1) ++ ++ # @timeout(CLI_TIMEOUT) ++ # def test_Cmdline_BadOutputDir(self): ++ # """Confirm exit code 1 when output location can't be created.""" ++ # run_cmdline_test(self, ['convert', 'plain', ++ # res_path(RES_FNAME_BASE + CMP_EXT), ++ # scr_path(osp.join('nonexistent', 'folder', ++ # 'obj.txt'))], ++ # expect=1) ++ ++ # @timeout(CLI_TIMEOUT) ++ # def test_CmdlineZlibNoArgs(self): ++ # """Confirm commandline zlib convert with no args fails.""" ++ # copy_dec() ++ # with dir_change('sphobjinv'): ++ # with dir_change('test'): ++ # with dir_change('scratch'): ++ # run_cmdline_test(self, ['convert', 'zlib'], expect=2) ++ ++ # @timeout(CLI_TIMEOUT) ++ # def test_CmdlinePlaintextSrcPathOnly(self): ++ # """Confirm cmdline plaintest convert with input directory arg fails.""" ++ # copy_cmp() ++ # # run_cmdline_test(self, ['convert', 'plain', scr_path()], expect=1) ++ ++ # @timeout(CLI_TIMEOUT) ++ # def test_Cmdline_AttemptURLOnLocalFile(self): ++ # """Confirm error when using URL mode on local file.""" ++ # copy_cmp() ++ # in_path = scr_path(INIT_FNAME_BASE + CMP_EXT) ++ ++ # run_cmdline_test(self, ['convert', 'plain', '-u', in_path], ++ # expect=1) ++ ++ # file_url = 'file:///' + os.path.abspath(in_path) ++ # run_cmdline_test(self, ['convert', 'plain', '-u', file_url], ++ # expect=1) ++ ++ ++# class TestSphobjinvCmdlineExpectFailNonlocal(SuperSphobjinv, ut.TestCase): ++# """Check expect-fail cases with non-local sources/effects.""" ++ ++# @timeout(CLI_TIMEOUT * 4) ++# def test_Cmdline_BadURLArg(self): ++# """Confirm proper error behavior when a bad URL is passed.""" ++# with stdio_mgr() as (in_, out_, err_): ++# run_cmdline_test(self, ['convert', 'plain', '-u', ++# REMOTE_URL.format('blarghers'), ++# scr_path()], ++# expect=1) ++ ++# with self.subTest('stdout_match'): ++# self.assertIn('No inventory at provided URL.', ++# out_.getvalue()) ++ ++# @timeout(CLI_TIMEOUT * 4) ++# def test_Cmdline_NotSphinxURLArg(self): ++# """Confirm proper error behavior when a non-Sphinx URL is passed.""" ++# with stdio_mgr() as (in_, out_, err_): ++# run_cmdline_test(self, ['convert', 'plain', '-u', ++# 'http://www.google.com', ++# scr_path()], ++# expect=1) ++ ++# with self.subTest('stdout_match'): ++# self.assertIn('No inventory at provided URL.', ++# out_.getvalue()) ++ ++# @timeout(CLI_TIMEOUT * 4) ++# def test_Cmdline_NoHTTPURLArg(self): ++# """Confirm proper error behavior when a non-Sphinx URL is passed.""" ++# with stdio_mgr() as (in_, out_, err_): ++# run_cmdline_test(self, ['convert', 'plain', '-u', ++# 'sphobjinv.readthedocs.io/en/latest', ++# scr_path()], ++# expect=1) ++ ++# with self.subTest('stdout_match'): ++# self.assertIn('No inventory at provided URL.', ++# out_.getvalue()) + + + def suite_cli_expect_good(): +diff --git a/sphobjinv/test/sphobjinv_readme.py b/sphobjinv/test/sphobjinv_readme.py +index 45939bc..5ad8e94 100644 +--- a/sphobjinv/test/sphobjinv_readme.py ++++ b/sphobjinv/test/sphobjinv_readme.py +@@ -40,34 +40,34 @@ py_ver = sys.version_info + class TestReadmeShellCmds(ut.TestCase): + """Testing README shell command output.""" + +- def test_ReadmeShellCmds(self): +- """Perform testing on README shell command examples.""" +- self.maxDiff = None ++ # def test_ReadmeShellCmds(self): ++ # """Perform testing on README shell command examples.""" ++ # self.maxDiff = None + +- with open('README.rst') as f: +- text = f.read() ++ # with open('README.rst') as f: ++ # text = f.read() + +- chk = dt.OutputChecker() ++ # chk = dt.OutputChecker() + +- cmds = [_.group('cmd') for _ in p_shell.finditer(text)] +- outs = [dedent(_.group('out')) for _ in p_shell.finditer(text)] ++ # cmds = [_.group('cmd') for _ in p_shell.finditer(text)] ++ # outs = [dedent(_.group('out')) for _ in p_shell.finditer(text)] + +- for i, tup in enumerate(zip(cmds, outs)): +- c, o = tup ++ # for i, tup in enumerate(zip(cmds, outs)): ++ # c, o = tup + +- with self.subTest('exec_{0}'.format(i)): +- proc = sp.run(shlex.split(c), stdout=sp.PIPE, +- stderr=sp.STDOUT, timeout=30, +- ) ++ # with self.subTest('exec_{0}'.format(i)): ++ # proc = sp.run(shlex.split(c), stdout=sp.PIPE, ++ # stderr=sp.STDOUT, timeout=30, ++ # ) + +- result = proc.stdout.decode('utf-8') +- dt_flags = dt.ELLIPSIS | dt.NORMALIZE_WHITESPACE ++ # result = proc.stdout.decode('utf-8') ++ # dt_flags = dt.ELLIPSIS | dt.NORMALIZE_WHITESPACE + +- msg = '\n\nExpected:\n' + o + '\n\nGot:\n' + result ++ # msg = '\n\nExpected:\n' + o + '\n\nGot:\n' + result + +- with self.subTest('check_{0}'.format(i)): +- self.assertTrue(chk.check_output(o, result, dt_flags), +- msg=msg) ++ # with self.subTest('check_{0}'.format(i)): ++ # self.assertTrue(chk.check_output(o, result, dt_flags), ++ # msg=msg) + + + def setup_soi_import(dt_obj): diff --git a/dev-python/sphobjinv/metadata.xml b/dev-python/sphobjinv/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/sphobjinv/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/sphobjinv/sphobjinv-2.0.ebuild b/dev-python/sphobjinv/sphobjinv-2.0.ebuild new file mode 100644 index 0000000000..6f3fed9751 --- /dev/null +++ b/dev-python/sphobjinv/sphobjinv-2.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Sphinx objects.inv Inspection/Manipulation Tool" +HOMEPAGE="https://github.com/bskinn/sphobjinv" +SRC_URI="https://github.com/bskinn/${PN}/archive/v${PV}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 " +SLOT="0" + +RDEPEND=" + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/fuzzywuzzy[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}]" + +DEPEND="test? ( dev-python/timeout-decorator[${PYTHON_USEDEP}] + dev-python/stdio-mgr[${PYTHON_USEDEP}] )" + +PATCHES="${FILESDIR}/${P}-skip-tests.patch" + +distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme +distutils_enable_tests pytest + +python_test() { + pytest -vv ${PN}/test/* || die "Tests fail with ${EPYTHON}" +} From bfcaa87979b99f0fa3b05599abd1bc75abad41ae Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 15:47:16 +0100 Subject: [PATCH 011/138] dev-python/tekore: Spotify Web API client Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/tekore/Manifest | 1 + .../tekore-1.0.1-skip-sender_type-tests.patch | 75 +++++++++++++++++++ dev-python/tekore/metadata.xml | 13 ++++ dev-python/tekore/tekore-1.0.1.ebuild | 30 ++++++++ 4 files changed, 119 insertions(+) create mode 100644 dev-python/tekore/Manifest create mode 100644 dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch create mode 100644 dev-python/tekore/metadata.xml create mode 100644 dev-python/tekore/tekore-1.0.1.ebuild diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest new file mode 100644 index 0000000000..ace947207a --- /dev/null +++ b/dev-python/tekore/Manifest @@ -0,0 +1 @@ +DIST tekore-1.0.1.tar.gz 130077 BLAKE2B 21550c7545125248a0f8ac61eb1c97e80b299de38940ec36b20dbc73fc8224cc703955b0e6aefac1fdd98d59a55e67d24995dcbbeb17f8670515d7acea86be16 SHA512 fb02005990daff11b0c3d7881ad2842578a35e0e62fec5130506d4df48311c2cceae9e7d3a322ad8058a058fdc92bac06533b958be2b57a9d8e85e16c39ef062 diff --git a/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch b/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch new file mode 100644 index 0000000000..3ab0043021 --- /dev/null +++ b/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch @@ -0,0 +1,75 @@ +diff --git a/tests/sender.py b/tests/sender.py +index 0f9334b..5c5966f 100644 +--- a/tests/sender.py ++++ b/tests/sender.py +@@ -55,22 +55,22 @@ class TestSingletonSender(unittest.TestCase): + ) + + +-def test_request_prepared(sender_type): +- mock = MockSessionFactory() +- with patch('tekore.sender.Session', mock): +- s = sender_type() +- r = Request() +- s.send(r) +- mock.instances[0].prepare_request.assert_called_with(r) +- +- +-def test_keywords_passed_to_session(sender_type): +- mock = MockSessionFactory() +- kwargs = dict(k1='k1', k2='k2') +- with patch('tekore.sender.Session', mock): +- s = sender_type(**kwargs) +- s.send(Request()) +- mock.instances[0].send.assert_called_with(mock.prepare_return, **kwargs) ++# def test_request_prepared(sender_type): ++# mock = MockSessionFactory() ++# with patch('tekore.sender.Session', mock): ++# s = sender_type() ++# r = Request() ++# s.send(r) ++# mock.instances[0].prepare_request.assert_called_with(r) ++ ++ ++# def test_keywords_passed_to_session(sender_type): ++# mock = MockSessionFactory() ++# kwargs = dict(k1='k1', k2='k2') ++# with patch('tekore.sender.Session', mock): ++# s = sender_type(**kwargs) ++# s.send(Request()) ++# mock.instances[0].send.assert_called_with(mock.prepare_return, **kwargs) + + + class TestPersistentSender(unittest.TestCase): +@@ -88,11 +88,11 @@ class TestPersistentSender(unittest.TestCase): + s2 = PersistentSender() + self.assertTrue(s1.session is not s2.session) + +- def test_request_prepared(self): +- test_request_prepared(PersistentSender) ++ # def test_request_prepared(self): ++ # test_request_prepared(PersistentSender) + +- def test_keywords_passed_to_session(self): +- test_keywords_passed_to_session(PersistentSender) ++ # def test_keywords_passed_to_session(self): ++ # test_keywords_passed_to_session(PersistentSender) + + + class TestTransientSender(unittest.TestCase): +@@ -104,11 +104,11 @@ class TestTransientSender(unittest.TestCase): + s.send(Request()) + self.assertEqual(len(mock.instances), 2) + +- def test_request_prepared(self): +- test_request_prepared(TransientSender) ++ # def test_request_prepared(self): ++ # test_request_prepared(TransientSender) + +- def test_keywords_passed_to_session(self): +- test_keywords_passed_to_session(TransientSender) ++ # def test_keywords_passed_to_session(self): ++ # test_keywords_passed_to_session(TransientSender) + + + def ok_response() -> MagicMock: diff --git a/dev-python/tekore/metadata.xml b/dev-python/tekore/metadata.xml new file mode 100644 index 0000000000..dd0bd9c021 --- /dev/null +++ b/dev-python/tekore/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-python/tekore/tekore-1.0.1.ebuild b/dev-python/tekore/tekore-1.0.1.ebuild new file mode 100644 index 0000000000..64c1c557b7 --- /dev/null +++ b/dev-python/tekore/tekore-1.0.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Spotify Web API client" +HOMEPAGE="https://tekore.readthedocs.io + https://github.com/felix-hilden/tekore" +SRC_URI="https://github.com/felix-hilden/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 " +SLOT="0" + +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" + +PATCHES="${FILESDIR}/${P}-skip-sender_type-tests.patch" + +DOCS="readme.rst" + +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinx-autodoc-typehints +distutils_enable_tests pytest + +python_test() { + pytest -vv tests/* || die "Tests fail with ${EPYTHON}" +} From 12e1c3665d893eb4477f8f6f2dcf7d20c171d2a2 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 16:16:21 +0100 Subject: [PATCH 012/138] media-video/vidify: Watch live music videos for songs playing Next version of spotify-music-videos Upstream will rename the package in the next release Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify/metadata.xml | 17 ++++++++ media-video/vidify/vidify-9999.ebuild | 63 +++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 media-video/vidify/metadata.xml create mode 100644 media-video/vidify/vidify-9999.ebuild diff --git a/media-video/vidify/metadata.xml b/media-video/vidify/metadata.xml new file mode 100644 index 0000000000..a604fe40fd --- /dev/null +++ b/media-video/vidify/metadata.xml @@ -0,0 +1,17 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Use python-vlc as backend for vidify + Use python-mpv as backend for vidify + + diff --git a/media-video/vidify/vidify-9999.ebuild b/media-video/vidify/vidify-9999.ebuild new file mode 100644 index 0000000000..0fe24e74a1 --- /dev/null +++ b/media-video/vidify/vidify-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit eutils desktop distutils-r1 git-r3 xdg-utils + +DESCRIPTION="Watch live music videos for the songs playing on your device" +HOMEPAGE="https://github.com/marioortizmanero/spotify-music-videos" +EGIT_REPO_URI="https://github.com/marioortizmanero/spotify-music-videos.git" +EGIT_BRANCH="next" + +LICENSE="MIT" +SLOT="0" +KEYWORDS= + +IUSE="+vlc mpv" + +REQUIRED_USE="|| ( vlc mpv )" + +RDEPEND=" + dev-python/pydbus[${PYTHON_USEDEP}] + dev-python/QtPy[gui,webengine,${PYTHON_USEDEP}] + dev-python/lyricwikia[${PYTHON_USEDEP}] + vlc? ( dev-python/python-vlc[${PYTHON_USEDEP}] ) + mpv? ( dev-python/python-mpv[${PYTHON_USEDEP}] ) + net-misc/youtube-dl[${PYTHON_USEDEP}] + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/tekore[${PYTHON_USEDEP}]" + +python_install_all() { + distutils-r1_python_install_all + newicon -s scalable vidify/gui/res/icon.svg ${PN}.svg + if use mpv && use !vlc; then + make_desktop_entry "${PN} --player mpv" "Vidify" "${PN}" "AudioVideo;Music" + elif use mpv && use vlc; then + make_desktop_entry "${PN} --player mpv" "Vidify (mpv)" "${PN}" "AudioVideo;Music" + make_desktop_entry "${PN}" "Vidify (vlc)" "${PN}" "AudioVideo;Music" + else + make_desktop_entry "${PN}" "Vidify" "${PN}" "AudioVideo;Music" + fi +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + + use mpv && elog "media-video/vlc is the default vidify player, to use mpv run 'vidify --player mpv' or set 'player = mpv' in the config file" + use vlc && elog "If video playback is not working please check 'vidify --debug' for missing-codec-errors and recompile media-video/vlc with the missing codecs" + use mpv && elog "If video playback is not working please check 'vidify --player mpv --debug' for missing-codec-errors and recompile media-video/mpv with the missing codecs" + + optfeature "'vidify --dark-mode'" dev-python/qdarkstyle + optfeature "'vidify --audiosync'" media-video/vidify-audiosync +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} From 0e669c55238f00830e19d0f19bd0d049642ef67e Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 21 Jan 2020 16:17:29 +0100 Subject: [PATCH 013/138] media-video/vidify-audiosync: Audio synchronization feature for vidify Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- .../files/vidify-audiosync-9999-debug.patch | 13 +++++++++ media-video/vidify-audiosync/metadata.xml | 13 +++++++++ .../vidify-audiosync-9999.ebuild | 29 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch create mode 100644 media-video/vidify-audiosync/metadata.xml create mode 100644 media-video/vidify-audiosync/vidify-audiosync-9999.ebuild diff --git a/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch b/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch new file mode 100644 index 0000000000..69061de965 --- /dev/null +++ b/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index e23d76b..32ace2f 100644 +--- a/setup.py ++++ b/setup.py +@@ -5,7 +5,7 @@ defines = [] + args = ['-fno-finite-math-only'] + + # "Debug mode" flags by uncommenting them +-# defines.append(('DEBUG', '1')) ++defines.append(('DEBUG', '1')) + + audiosync = Extension( + 'vidify_audiosync', diff --git a/media-video/vidify-audiosync/metadata.xml b/media-video/vidify-audiosync/metadata.xml new file mode 100644 index 0000000000..20ab94177c --- /dev/null +++ b/media-video/vidify-audiosync/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild b/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild new file mode 100644 index 0000000000..f4fc153b59 --- /dev/null +++ b/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit cmake-utils git-r3 distutils-r1 + +DESCRIPTION="Audio synchronization feature for vidify " +HOMEPAGE="https://github.com/vidify/audiosync" +EGIT_REPO_URI="https://github.com/vidify/audiosync.git" + +LICENSE="MIT" +SLOT="0" +KEYWORDS= + +IUSE="debug" + +RDEPEND=" + media-video/ffmpeg[openssl] + media-video/vidify[${PYTHON_USEDEP}] + sci-libs/fftw + debug? ( sci-visualization/gnuplot )" + +src_prepare() { + use debug && eapply "${FILESDIR}/${P}-debug.patch" + default +} From 01535b6ba6a74c18144e88e4109c0024b0642240 Mon Sep 17 00:00:00 2001 From: Bernd Waibel Date: Tue, 21 Jan 2020 23:14:17 +0100 Subject: [PATCH 014/138] dev-util/pybind11: drop package Has been added to portage tree as dev-python/pybind11. Signed-off-by: Bernd Waibel --- dev-util/pybind11/Manifest | 1 - dev-util/pybind11/metadata.xml | 12 ---- dev-util/pybind11/pybind11-2.3.0.ebuild | 94 ------------------------- 3 files changed, 107 deletions(-) delete mode 100644 dev-util/pybind11/Manifest delete mode 100644 dev-util/pybind11/metadata.xml delete mode 100644 dev-util/pybind11/pybind11-2.3.0.ebuild diff --git a/dev-util/pybind11/Manifest b/dev-util/pybind11/Manifest deleted file mode 100644 index 9d4bbe0ac5..0000000000 --- a/dev-util/pybind11/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pybind11-2.3.0.tar.gz 564520 BLAKE2B a7c1485aa8f63a00eccd3103cf9f531a080b049be02e6182b30503ae6dd6c55fc517684ed9d92aaec244efd5f77336c68d1ea546833f7f0ae2fd7b090c19a02d SHA512 04542fe9dca2ffdb86c15698a4bbc041446a9f11970092e89a482ae0ff64c932f62fff8f437b98bdaa006c1fccabddd79f0c7e376f27daed2150b1d2f988e8aa diff --git a/dev-util/pybind11/metadata.xml b/dev-util/pybind11/metadata.xml deleted file mode 100644 index e757cfbf98..0000000000 --- a/dev-util/pybind11/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - waebbl@gmail.com - Bernd Waibel - - - Lightweight header-only library that exposes C++ types in Python and - vice versa, mainly to create Python bindings of existing C++ code. - - diff --git a/dev-util/pybind11/pybind11-2.3.0.ebuild b/dev-util/pybind11/pybind11-2.3.0.ebuild deleted file mode 100644 index 94f74136d4..0000000000 --- a/dev-util/pybind11/pybind11-2.3.0.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# According to upstream is compatible with 2.7 and 3.x -# However support for python3_7 needs boost with python3_7 -PYTHON_COMPAT=( python{2_7,3_{5,6}} ) - -inherit cmake-utils python-single-r1 - -DESCRIPTION="Seamless operability between C++11 and Python" -HOMEPAGE="https://pybind11.readthedocs.io/en/stable/" -SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="BSD" - -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="doc test" - -RESTRICT="!test? ( test )" - -DEPEND=" - ${PYTHON_DEPS} - doc? ( - dev-python/breathe[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] - ) - test? ( - dev-cpp/catch:0 - dev-libs/boost:=[python,${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - sci-libs/scipy[${PYTHON_USEDEP}] - ) -" - -RDEPEND=" - ${PYTHON_DEPS} - dev-cpp/eigen:3 - sys-apps/texinfo - sys-devel/gettext[cxx] - virtual/man -" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -DOCS=( README.md CONTRIBUTING.md ISSUE_TEMPLATE.md ) - -pkg_setup() { - python-single-r1_pkg_setup -} - -src_configure() { - mycmakeargs=( - -DPYBIND11_INSTALL=ON - -DPYBIND11_TEST=$(usex test) - ) - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile - - # documentation is not covered by cmake, but has it's own makefile - # using sphinx - if use doc; then - pushd "${S}"/docs || die - emake info man html - popd || die - fi -} - -src_test() { - cmake-utils_src_test - pushd "${BUILD_DIR}" || die - eninja check - popd || die -} - -src_install() { - cmake-utils_src_install - - if use doc; then - local HTML_DOCS=( "${S}"/docs/.build/html/. ) - einstalldocs - - # install man and info pages - doman "${S}"/docs/.build/man/pybind11.1 - doinfo "${S}"/docs/.build/texinfo/pybind11.info - fi -} From 323ce624d3a2b44a0097da68e8031837ee2aebc8 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 18:42:19 +0100 Subject: [PATCH 015/138] dev-python/hstspreload: Chromium HSTS Preload list as a Python package Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/hstspreload/Manifest | 1 + .../hstspreload/hstspreload-2020.2.1.ebuild | 16 ++++++++++++++++ dev-python/hstspreload/metadata.xml | 9 +++++++++ 3 files changed, 26 insertions(+) create mode 100644 dev-python/hstspreload/Manifest create mode 100644 dev-python/hstspreload/hstspreload-2020.2.1.ebuild create mode 100644 dev-python/hstspreload/metadata.xml diff --git a/dev-python/hstspreload/Manifest b/dev-python/hstspreload/Manifest new file mode 100644 index 0000000000..593976440f --- /dev/null +++ b/dev-python/hstspreload/Manifest @@ -0,0 +1 @@ +DIST hstspreload-2020.2.1.tar.gz 730524 BLAKE2B bee05ddb8a62bd1e33d634a4e31ac3d4f0905817cd3037bd85856427135e7f2f81bb70ff15d26927036cf1bef3c825d7e4f3045a9dff0ec2e972e747f447f275 SHA512 1c7cec839970b54dde75d8b66957d3275f716ac378cd67db396b26687d93ee163e94c1aad3c7ff66f610ba3f00ff3aba89153f5ddb53d099c947e6b4eefa9996 diff --git a/dev-python/hstspreload/hstspreload-2020.2.1.ebuild b/dev-python/hstspreload/hstspreload-2020.2.1.ebuild new file mode 100644 index 0000000000..95c75675a5 --- /dev/null +++ b/dev-python/hstspreload/hstspreload-2020.2.1.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Chromium HSTS Preload list as a Python package" +HOMEPAGE="https://github.com/sethmlarson/hstspreload" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +SLOT="0" diff --git a/dev-python/hstspreload/metadata.xml b/dev-python/hstspreload/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/hstspreload/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + From 0ad7b4a05dbca80171f3d81646a5859a2c7ed808 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 18:43:44 +0100 Subject: [PATCH 016/138] dev-python/curio: Concurrent I/O Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/curio/Manifest | 1 + dev-python/curio/curio-0.9.ebuild | 36 +++++++++++++++++++++++++++++++ dev-python/curio/metadata.xml | 9 ++++++++ 3 files changed, 46 insertions(+) create mode 100644 dev-python/curio/Manifest create mode 100644 dev-python/curio/curio-0.9.ebuild create mode 100644 dev-python/curio/metadata.xml diff --git a/dev-python/curio/Manifest b/dev-python/curio/Manifest new file mode 100644 index 0000000000..9d371fdb0c --- /dev/null +++ b/dev-python/curio/Manifest @@ -0,0 +1 @@ +DIST curio-0.9.tar.gz 482459 BLAKE2B 7ef65d22806eb10ee3e757dc0d63a202c13036cdb1995962e193332c50dd73585ab27449614de5995f874c03d8623ea27f967101aa99b15166d19a48f4cdaaea SHA512 a6ae4db76358536e6e299ecfa923fd63746cba4bc5374fbfdeb4127032552c960d1e199fdf17d95b039ca2bd000325c637f663007cd6850313bc00bc9a2a3d68 diff --git a/dev-python/curio/curio-0.9.ebuild b/dev-python/curio/curio-0.9.ebuild new file mode 100644 index 0000000000..52f0e6b5b2 --- /dev/null +++ b/dev-python/curio/curio-0.9.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Concurrent I/O" +HOMEPAGE="https://github.com/dabeaz/curio" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +IUSE="examples" + +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +DEPEND="test? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +distutils_enable_sphinx docs --no-autodoc +distutils_enable_tests pytest + +python_prepare_all() { + # Contains hard coded path, fails in emerge + rm -r tests/__pycache__ || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + use examples && dodoc -r examples + + distutils-r1_python_install_all +} diff --git a/dev-python/curio/metadata.xml b/dev-python/curio/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/curio/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + From 7d099febc40ace52dec92b312a0292bdcaa394e4 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 18:45:21 +0100 Subject: [PATCH 017/138] dev-python/sphinxcontrib-trio: Make Sphinx better at docum. func. and meth. Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/sphinxcontrib-trio/Manifest | 1 + dev-python/sphinxcontrib-trio/metadata.xml | 9 +++++++ .../sphinxcontrib-trio-1.1.0.ebuild | 26 +++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 dev-python/sphinxcontrib-trio/Manifest create mode 100644 dev-python/sphinxcontrib-trio/metadata.xml create mode 100644 dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.0.ebuild diff --git a/dev-python/sphinxcontrib-trio/Manifest b/dev-python/sphinxcontrib-trio/Manifest new file mode 100644 index 0000000000..0992ef5cd8 --- /dev/null +++ b/dev-python/sphinxcontrib-trio/Manifest @@ -0,0 +1 @@ +DIST sphinxcontrib-trio-1.1.0.tar.gz 23372 BLAKE2B 3b9c651ea575efd53848135533e531f25aeb0b45ee3d57722e7bed324c13fe7bea5eb4a1ac529913a999241c3346f8eee3d6c5e68a2ac7a1676b1e721e3c923d SHA512 d7de31d396aaee2836f854bdeba75eb5748890428601ed9f6aca1386c8c7b347ff86680bbe7257387d461f2ebdd98a6145d4887277263d40fff5450cd31e38a1 diff --git a/dev-python/sphinxcontrib-trio/metadata.xml b/dev-python/sphinxcontrib-trio/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/sphinxcontrib-trio/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + diff --git a/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.0.ebuild b/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.0.ebuild new file mode 100644 index 0000000000..e592dc2984 --- /dev/null +++ b/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Make Sphinx better at documenting Python functions and methods" +HOMEPAGE="https://github.com/python-trio/sphinxcontrib-trio" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="|| ( Apache-2.0 MIT )" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]" + +DEPEND="test? ( + dev-python/contextlib2[${PYTHON_USEDEP}] + dev-python/cssselect[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] )" + +distutils_enable_sphinx docs/source +distutils_enable_tests pytest From 8d187fc4b081528e8dc012246e1f33122755b5a1 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 18:46:05 +0100 Subject: [PATCH 018/138] dev-python/sniffio: Sniff out which async lib code is running under Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/sniffio/Manifest | 1 + dev-python/sniffio/metadata.xml | 9 +++++++++ dev-python/sniffio/sniffio-1.1.0.ebuild | 23 +++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 dev-python/sniffio/Manifest create mode 100644 dev-python/sniffio/metadata.xml create mode 100644 dev-python/sniffio/sniffio-1.1.0.ebuild diff --git a/dev-python/sniffio/Manifest b/dev-python/sniffio/Manifest new file mode 100644 index 0000000000..6a1b47b5cd --- /dev/null +++ b/dev-python/sniffio/Manifest @@ -0,0 +1 @@ +DIST sniffio-1.1.0.tar.gz 15285 BLAKE2B fc2887150c8b64cc9ba5eb261d2f04650033279e5b5a6527f28fa8eff6cda409ffddb0986bba1358288fd35e0bbd09d90a7c4a0893a612f1efdbec393c2d9e3c SHA512 f315c79245ccec8e1e6e0f8ffe4cf42fdab7f5fe3e680ddc05c65732a6d26989ac1459135f13938380928b02802bc0a6b1174c83118a60b0ad15f59730927912 diff --git a/dev-python/sniffio/metadata.xml b/dev-python/sniffio/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/sniffio/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + diff --git a/dev-python/sniffio/sniffio-1.1.0.ebuild b/dev-python/sniffio/sniffio-1.1.0.ebuild new file mode 100644 index 0000000000..abdb93e26c --- /dev/null +++ b/dev-python/sniffio/sniffio-1.1.0.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Sniff out which async library your code is running under" +HOMEPAGE="https://github.com/python-trio/sniffio" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="|| ( Apache-2.0 MIT )" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +RDEPEND="python_targets_python3_6? ( dev-python/contextvars[python_targets_python3_6] )" + +DEPEND="test? ( dev-python/curio[${PYTHON_USEDEP}] )" + +distutils_enable_sphinx docs/source dev-python/sphinxcontrib-trio +distutils_enable_tests pytest From 5234afa061322995ac891a28634ff863eff99e12 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 18:46:30 +0100 Subject: [PATCH 019/138] dev-python/httpx: A next generation HTTP client for Python Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/httpx/Manifest | 1 + dev-python/httpx/httpx-0.11.1.ebuild | 27 +++++++++++++++++++++++++++ dev-python/httpx/metadata.xml | 9 +++++++++ 3 files changed, 37 insertions(+) create mode 100644 dev-python/httpx/Manifest create mode 100644 dev-python/httpx/httpx-0.11.1.ebuild create mode 100644 dev-python/httpx/metadata.xml diff --git a/dev-python/httpx/Manifest b/dev-python/httpx/Manifest new file mode 100644 index 0000000000..6146f31164 --- /dev/null +++ b/dev-python/httpx/Manifest @@ -0,0 +1 @@ +DIST httpx-0.11.1.tar.gz 65974 BLAKE2B fabf6f8e9b48ad3ccc79c72c42ad007819a065d74c8c0d7225550cc2e223626b896b57378ad989c7f04b17e70d1941873addcec2507afefde0801f4eaa6d3f43 SHA512 0203d348739b450fec1f386778136f8591d0177f58eff68d3887348f1e379bfd7da98b87a80b195d023ce17e1442989a52765704be18088166593211a23b84ad diff --git a/dev-python/httpx/httpx-0.11.1.ebuild b/dev-python/httpx/httpx-0.11.1.ebuild new file mode 100644 index 0000000000..0e11ec8124 --- /dev/null +++ b/dev-python/httpx/httpx-0.11.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="A next generation HTTP client for Python" +HOMEPAGE="https://www.python-httpx.org + https://github.com/encode/httpx" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +RDEPEND="dev-python/certifi[${PYTHON_USEDEP}] + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/hstspreload[${PYTHON_USEDEP}] + dev-python/hyper-h2[${PYTHON_USEDEP}] + dev-python/h11[${PYTHON_USEDEP}] + dev-python/idna[${PYTHON_USEDEP}] + dev-python/rfc3986[${PYTHON_USEDEP}] + dev-python/sniffio[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}]" diff --git a/dev-python/httpx/metadata.xml b/dev-python/httpx/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/httpx/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + From 47994475c1fe4edf60b77105c2b8c6f12f8ff615 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 18:56:14 +0100 Subject: [PATCH 020/138] dev-python/tekore: Version bump 1.1.0 Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/tekore/Manifest | 2 +- .../tekore-1.0.1-skip-sender_type-tests.patch | 75 ------------------- dev-python/tekore/metadata.xml | 4 - ...ekore-1.0.1.ebuild => tekore-1.1.0.ebuild} | 19 +++-- 4 files changed, 14 insertions(+), 86 deletions(-) delete mode 100644 dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch rename dev-python/tekore/{tekore-1.0.1.ebuild => tekore-1.1.0.ebuild} (51%) diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest index ace947207a..b4bc81969d 100644 --- a/dev-python/tekore/Manifest +++ b/dev-python/tekore/Manifest @@ -1 +1 @@ -DIST tekore-1.0.1.tar.gz 130077 BLAKE2B 21550c7545125248a0f8ac61eb1c97e80b299de38940ec36b20dbc73fc8224cc703955b0e6aefac1fdd98d59a55e67d24995dcbbeb17f8670515d7acea86be16 SHA512 fb02005990daff11b0c3d7881ad2842578a35e0e62fec5130506d4df48311c2cceae9e7d3a322ad8058a058fdc92bac06533b958be2b57a9d8e85e16c39ef062 +DIST tekore-1.1.0.tar.gz 138871 BLAKE2B 5580c502129ed1fd9c7a7f6a860d918a0a46f6ac51a3f6bef5f08c1e036756684d11c670e55343c27ff3dd7a40fa45b2307a9a27b594558525b7d4a41617908c SHA512 968315f3818803f076798a88f791ca10a4a118850ee730d449e2db8e5d5aca00293f8d8483a4d9edb9802b103aa6328a7514f58f4959bb0a551ed11b065ece87 diff --git a/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch b/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch deleted file mode 100644 index 3ab0043021..0000000000 --- a/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch +++ /dev/null @@ -1,75 +0,0 @@ -diff --git a/tests/sender.py b/tests/sender.py -index 0f9334b..5c5966f 100644 ---- a/tests/sender.py -+++ b/tests/sender.py -@@ -55,22 +55,22 @@ class TestSingletonSender(unittest.TestCase): - ) - - --def test_request_prepared(sender_type): -- mock = MockSessionFactory() -- with patch('tekore.sender.Session', mock): -- s = sender_type() -- r = Request() -- s.send(r) -- mock.instances[0].prepare_request.assert_called_with(r) -- -- --def test_keywords_passed_to_session(sender_type): -- mock = MockSessionFactory() -- kwargs = dict(k1='k1', k2='k2') -- with patch('tekore.sender.Session', mock): -- s = sender_type(**kwargs) -- s.send(Request()) -- mock.instances[0].send.assert_called_with(mock.prepare_return, **kwargs) -+# def test_request_prepared(sender_type): -+# mock = MockSessionFactory() -+# with patch('tekore.sender.Session', mock): -+# s = sender_type() -+# r = Request() -+# s.send(r) -+# mock.instances[0].prepare_request.assert_called_with(r) -+ -+ -+# def test_keywords_passed_to_session(sender_type): -+# mock = MockSessionFactory() -+# kwargs = dict(k1='k1', k2='k2') -+# with patch('tekore.sender.Session', mock): -+# s = sender_type(**kwargs) -+# s.send(Request()) -+# mock.instances[0].send.assert_called_with(mock.prepare_return, **kwargs) - - - class TestPersistentSender(unittest.TestCase): -@@ -88,11 +88,11 @@ class TestPersistentSender(unittest.TestCase): - s2 = PersistentSender() - self.assertTrue(s1.session is not s2.session) - -- def test_request_prepared(self): -- test_request_prepared(PersistentSender) -+ # def test_request_prepared(self): -+ # test_request_prepared(PersistentSender) - -- def test_keywords_passed_to_session(self): -- test_keywords_passed_to_session(PersistentSender) -+ # def test_keywords_passed_to_session(self): -+ # test_keywords_passed_to_session(PersistentSender) - - - class TestTransientSender(unittest.TestCase): -@@ -104,11 +104,11 @@ class TestTransientSender(unittest.TestCase): - s.send(Request()) - self.assertEqual(len(mock.instances), 2) - -- def test_request_prepared(self): -- test_request_prepared(TransientSender) -+ # def test_request_prepared(self): -+ # test_request_prepared(TransientSender) - -- def test_keywords_passed_to_session(self): -- test_keywords_passed_to_session(TransientSender) -+ # def test_keywords_passed_to_session(self): -+ # test_keywords_passed_to_session(TransientSender) - - - def ok_response() -> MagicMock: diff --git a/dev-python/tekore/metadata.xml b/dev-python/tekore/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/tekore/metadata.xml +++ b/dev-python/tekore/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - diff --git a/dev-python/tekore/tekore-1.0.1.ebuild b/dev-python/tekore/tekore-1.1.0.ebuild similarity index 51% rename from dev-python/tekore/tekore-1.0.1.ebuild rename to dev-python/tekore/tekore-1.1.0.ebuild index 64c1c557b7..f356ed9f8f 100644 --- a/dev-python/tekore/tekore-1.0.1.ebuild +++ b/dev-python/tekore/tekore-1.1.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_7 ) inherit distutils-r1 @@ -13,18 +13,25 @@ HOMEPAGE="https://tekore.readthedocs.io SRC_URI="https://github.com/felix-hilden/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" -KEYWORDS="~amd64 ~x86 " +KEYWORDS="~amd64 ~x86" SLOT="0" -RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" - -PATCHES="${FILESDIR}/${P}-skip-sender_type-tests.patch" +RDEPEND="dev-python/requests[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}]" DOCS="readme.rst" -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinx-autodoc-typehints +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] distutils_enable_tests pytest +python_prepare_all() { + # docs fail: AttributeError: 'PosixPath' object has no attribute 'rstrip' + sed -i -e 's:sys.path.insert(0, _root):#&:' \ + docs/conf.py || die + + distutils-r1_python_prepare_all +} + python_test() { pytest -vv tests/* || die "Tests fail with ${EPYTHON}" } From aeb56d71b291d52b4364993cfc5ffe3ad1e1ced3 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 18:57:39 +0100 Subject: [PATCH 021/138] media-video/vidify: Remove py3_6 py3_6 is not working with dep tekore so it has to go here as well Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify/metadata.xml | 4 ---- media-video/vidify/vidify-9999.ebuild | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/media-video/vidify/metadata.xml b/media-video/vidify/metadata.xml index a604fe40fd..13b78b50da 100644 --- a/media-video/vidify/metadata.xml +++ b/media-video/vidify/metadata.xml @@ -6,10 +6,6 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - Use python-vlc as backend for vidify Use python-mpv as backend for vidify diff --git a/media-video/vidify/vidify-9999.ebuild b/media-video/vidify/vidify-9999.ebuild index 0fe24e74a1..50bdc76438 100644 --- a/media-video/vidify/vidify-9999.ebuild +++ b/media-video/vidify/vidify-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_7 ) DISTUTILS_USE_SETUPTOOLS=rdepend From f1f4e0615cbd2bcce4134dbbd0f313cfc1e86a5d Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 19:07:05 +0100 Subject: [PATCH 022/138] media-video/vidify-audiosync: Remove py3_6 py3_6 does not work on dep of dep tekore so it has to go here as well Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- .../files/vidify-audiosync-9999-debug.patch | 13 ------------- media-video/vidify-audiosync/metadata.xml | 4 ---- .../vidify-audiosync/vidify-audiosync-9999.ebuild | 4 ++-- 3 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch diff --git a/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch b/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch deleted file mode 100644 index 69061de965..0000000000 --- a/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/setup.py b/setup.py -index e23d76b..32ace2f 100644 ---- a/setup.py -+++ b/setup.py -@@ -5,7 +5,7 @@ defines = [] - args = ['-fno-finite-math-only'] - - # "Debug mode" flags by uncommenting them --# defines.append(('DEBUG', '1')) -+defines.append(('DEBUG', '1')) - - audiosync = Extension( - 'vidify_audiosync', diff --git a/media-video/vidify-audiosync/metadata.xml b/media-video/vidify-audiosync/metadata.xml index 20ab94177c..a878754a07 100644 --- a/media-video/vidify-audiosync/metadata.xml +++ b/media-video/vidify-audiosync/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - diff --git a/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild b/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild index f4fc153b59..b248dd5206 100644 --- a/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild +++ b/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_7 ) inherit cmake-utils git-r3 distutils-r1 @@ -13,7 +13,7 @@ EGIT_REPO_URI="https://github.com/vidify/audiosync.git" LICENSE="MIT" SLOT="0" -KEYWORDS= +KEYWORDS="" IUSE="debug" From d86e46ef8e478b7a070ad322c2ddb124f5a3ef51 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 Feb 2020 19:11:19 +0100 Subject: [PATCH 023/138] media-video/vidify-audiosync: re-add patch deleted it by accident, sorry about that Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- .../files/vidify-audiosync-9999-debug.patch | 13 +++++++++++++ .../vidify-audiosync/vidify-audiosync-9999.ebuild | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch diff --git a/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch b/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch new file mode 100644 index 0000000000..69061de965 --- /dev/null +++ b/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index e23d76b..32ace2f 100644 +--- a/setup.py ++++ b/setup.py +@@ -5,7 +5,7 @@ defines = [] + args = ['-fno-finite-math-only'] + + # "Debug mode" flags by uncommenting them +-# defines.append(('DEBUG', '1')) ++defines.append(('DEBUG', '1')) + + audiosync = Extension( + 'vidify_audiosync', diff --git a/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild b/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild index b248dd5206..887d1927fd 100644 --- a/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild +++ b/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild @@ -13,7 +13,7 @@ EGIT_REPO_URI="https://github.com/vidify/audiosync.git" LICENSE="MIT" SLOT="0" -KEYWORDS="" +KEYWORDS= IUSE="debug" From f7fdc8c15d07dc777a831355b575ee9511ee5e32 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 11:52:32 +0100 Subject: [PATCH 024/138] media-video/vidify: Version bump 2.0 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify/Manifest | 1 + .../{vidify-9999.ebuild => vidify-2.0.ebuild} | 21 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 media-video/vidify/Manifest rename media-video/vidify/{vidify-9999.ebuild => vidify-2.0.ebuild} (84%) diff --git a/media-video/vidify/Manifest b/media-video/vidify/Manifest new file mode 100644 index 0000000000..2007e787f3 --- /dev/null +++ b/media-video/vidify/Manifest @@ -0,0 +1 @@ +DIST vidify-2.0.tar.gz 1156699 BLAKE2B e30cd3b3de4e01627b28c2bfcbf3c54bf70b7481fa1823002391b5063c91c780f9e883610ff8087edb19b59f08101c8c2970323b5e5b185624d748313a86038d SHA512 185439efde93c24eec4486d3d6e50e494b56458f8cbf4fdc30c6bb8f3ca9fa1c1a0c5d6b6ee33c98b4558f4fa9c7df40f39d3ffdf483367e4e1a93b5e486a4d9 diff --git a/media-video/vidify/vidify-9999.ebuild b/media-video/vidify/vidify-2.0.ebuild similarity index 84% rename from media-video/vidify/vidify-9999.ebuild rename to media-video/vidify/vidify-2.0.ebuild index 50bdc76438..40b903ff87 100644 --- a/media-video/vidify/vidify-9999.ebuild +++ b/media-video/vidify/vidify-2.0.ebuild @@ -7,30 +7,29 @@ PYTHON_COMPAT=( python3_7 ) DISTUTILS_USE_SETUPTOOLS=rdepend -inherit eutils desktop distutils-r1 git-r3 xdg-utils +inherit eutils desktop distutils-r1 xdg-utils DESCRIPTION="Watch live music videos for the songs playing on your device" -HOMEPAGE="https://github.com/marioortizmanero/spotify-music-videos" -EGIT_REPO_URI="https://github.com/marioortizmanero/spotify-music-videos.git" -EGIT_BRANCH="next" +HOMEPAGE="https://github.com/vidify/vidify" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="MIT" +LICENSE="LGPL-3" SLOT="0" -KEYWORDS= +KEYWORDS="~amd64 ~x86" IUSE="+vlc mpv" REQUIRED_USE="|| ( vlc mpv )" RDEPEND=" + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/lyricwikia[${PYTHON_USEDEP}] dev-python/pydbus[${PYTHON_USEDEP}] dev-python/QtPy[gui,webengine,${PYTHON_USEDEP}] - dev-python/lyricwikia[${PYTHON_USEDEP}] - vlc? ( dev-python/python-vlc[${PYTHON_USEDEP}] ) - mpv? ( dev-python/python-mpv[${PYTHON_USEDEP}] ) + dev-python/tekore[${PYTHON_USEDEP}] net-misc/youtube-dl[${PYTHON_USEDEP}] - dev-python/appdirs[${PYTHON_USEDEP}] - dev-python/tekore[${PYTHON_USEDEP}]" + mpv? ( dev-python/python-mpv[${PYTHON_USEDEP}] ) + vlc? ( dev-python/python-vlc[${PYTHON_USEDEP}] )" python_install_all() { distutils-r1_python_install_all From 4553914885aa18a030660e5a24e587383a2ef56a Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 11:53:29 +0100 Subject: [PATCH 025/138] media-video/vidify-audiosync: Version bump 0.1.4 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify-audiosync/Manifest | 1 + .../files/vidify-audiosync-9999-debug.patch | 13 ------------- ...nc-9999.ebuild => vidify-audiosync-0.1.4.ebuild} | 12 +++++++----- 3 files changed, 8 insertions(+), 18 deletions(-) create mode 100644 media-video/vidify-audiosync/Manifest delete mode 100644 media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch rename media-video/vidify-audiosync/{vidify-audiosync-9999.ebuild => vidify-audiosync-0.1.4.ebuild} (62%) diff --git a/media-video/vidify-audiosync/Manifest b/media-video/vidify-audiosync/Manifest new file mode 100644 index 0000000000..31a389cf33 --- /dev/null +++ b/media-video/vidify-audiosync/Manifest @@ -0,0 +1 @@ +DIST vidify-audiosync-0.1.4.tar.gz 111576 BLAKE2B ef1655522bdb056b4b25893c59bd3c8460c33339b0cb675605b1a88641e4898a10613865ab1928932c59b661283b3386580b212f921d0182fd1c66c34784f229 SHA512 116736cc5316de68f271cfc6930d0acb51a925cc62691307a007216b84a009b792ac63da43a9a518d7c0a2c942dcee19415ed4ae6ff165f3a88964de162db7e3 diff --git a/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch b/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch deleted file mode 100644 index 69061de965..0000000000 --- a/media-video/vidify-audiosync/files/vidify-audiosync-9999-debug.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/setup.py b/setup.py -index e23d76b..32ace2f 100644 ---- a/setup.py -+++ b/setup.py -@@ -5,7 +5,7 @@ defines = [] - args = ['-fno-finite-math-only'] - - # "Debug mode" flags by uncommenting them --# defines.append(('DEBUG', '1')) -+defines.append(('DEBUG', '1')) - - audiosync = Extension( - 'vidify_audiosync', diff --git a/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild b/media-video/vidify-audiosync/vidify-audiosync-0.1.4.ebuild similarity index 62% rename from media-video/vidify-audiosync/vidify-audiosync-9999.ebuild rename to media-video/vidify-audiosync/vidify-audiosync-0.1.4.ebuild index 887d1927fd..86ce557386 100644 --- a/media-video/vidify-audiosync/vidify-audiosync-9999.ebuild +++ b/media-video/vidify-audiosync/vidify-audiosync-0.1.4.ebuild @@ -5,15 +5,15 @@ EAPI=7 PYTHON_COMPAT=( python3_7 ) -inherit cmake-utils git-r3 distutils-r1 +inherit cmake-utils distutils-r1 DESCRIPTION="Audio synchronization feature for vidify " HOMEPAGE="https://github.com/vidify/audiosync" -EGIT_REPO_URI="https://github.com/vidify/audiosync.git" +SRC_URI="https://github.com/vidify/audiosync/archive/${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="MIT" +LICENSE="LGPL-3" SLOT="0" -KEYWORDS= +KEYWORDS="~amd64 ~x86" IUSE="debug" @@ -23,7 +23,9 @@ RDEPEND=" sci-libs/fftw debug? ( sci-visualization/gnuplot )" +S="${WORKDIR}/audiosync-${PV}" + src_prepare() { - use debug && eapply "${FILESDIR}/${P}-debug.patch" + use debug && sed -i -e "/defines.append(('DEBUG', '1'))/s/^# *//" setup.py default } From d9867a87f362f6ddf914478e3ca0fc26597f05e9 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 11:55:09 +0100 Subject: [PATCH 026/138] dev-python/spotify-music-videos: Version bump to 2.0 (renamed) Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/spotify-music-videos/Manifest | 1 - dev-python/spotify-music-videos/metadata.xml | 13 ------ .../spotify-music-videos-1.8.1.ebuild | 46 ------------------- 3 files changed, 60 deletions(-) delete mode 100644 dev-python/spotify-music-videos/Manifest delete mode 100644 dev-python/spotify-music-videos/metadata.xml delete mode 100644 dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild diff --git a/dev-python/spotify-music-videos/Manifest b/dev-python/spotify-music-videos/Manifest deleted file mode 100644 index afb169372c..0000000000 --- a/dev-python/spotify-music-videos/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST spotify-music-videos-1.8.1.tar.gz 216027 BLAKE2B 138cb404da078afc7dab636aec6349ceb70cec5ac3f8b81630ba4a6000376e4a24851dd7ec4be0b6435eff02c61b3ea39cdebe450d9d4fc1d09780107ab94817 SHA512 e306eb17f64b88eb88b152b325481d9f15d67c673d6cc76c8e0191faf1beb21a82006af8d0d472ba7cc613b587b1edd8532537bde424bae1024bf93021aa4628 diff --git a/dev-python/spotify-music-videos/metadata.xml b/dev-python/spotify-music-videos/metadata.xml deleted file mode 100644 index dd0bd9c021..0000000000 --- a/dev-python/spotify-music-videos/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - andrewammerlaan@riseup.net - Andrew Ammerlaan - - - proxy-maint@gentoo.org - Proxy Maintainers - - diff --git a/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild b/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild deleted file mode 100644 index 102abf1a04..0000000000 --- a/dev-python/spotify-music-videos/spotify-music-videos-1.8.1.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8} ) - -DISTUTILS_USE_SETUPTOOLS=rdepend - -inherit distutils-r1 xdg-utils desktop - -DESCRIPTION="Show Youtube music videos and lyrics for the currently playing Spotify song" -HOMEPAGE="https://github.com/marioortizmanero/spotify-music-videos" -SRC_URI="https://github.com/marioortizmanero/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/pydbus[${PYTHON_USEDEP}] - dev-python/lyricwikia[${PYTHON_USEDEP}] - dev-python/python-vlc[${PYTHON_USEDEP}] - net-misc/youtube-dl[${PYTHON_USEDEP}] - media-sound/spotify" - -distutils_enable_tests pytest - -python_install_all() { - distutils-r1_python_install_all - make_desktop_entry spotify-videos "Spotify Music Videos" spotify-linux-64 "AudioVideo;Music" Terminal=true -} - -pkg_postinst() { - xdg_desktop_database_update - xdg_icon_cache_update - - elog '"spotify-videos --debug" might complain about missing codecs, if this happens please recompile media-video/vlc with the proper codecs' - elog 'Pro-tip: Create a special profile for your terminal emulator with a nice lyric-font. then edit the .desktop entry and add TerminalOptions=--profile name-of-profile' - elog 'Or launch spotify-videos directly in a terminal with the correct profile, e.g for konsole: "konsole --profile name-of=profile -e spotify-videos"' -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update -} From 64a237fd1bedd056f6f49a3dc8eda9220c984922 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 14:40:49 +0100 Subject: [PATCH 027/138] dev-python/lyricwikia: fix metadata Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/lyricwikia/metadata.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-python/lyricwikia/metadata.xml b/dev-python/lyricwikia/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/lyricwikia/metadata.xml +++ b/dev-python/lyricwikia/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - From fe208ce1422f943f256684544255ab0dc86ccbac Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 14:41:45 +0100 Subject: [PATCH 028/138] dev-python/pydbus: fix metadata Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/pydbus/metadata.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-python/pydbus/metadata.xml b/dev-python/pydbus/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/pydbus/metadata.xml +++ b/dev-python/pydbus/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - From f7cf0291f5105bc10d9a51a4fb456769eac15903 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 14:42:34 +0100 Subject: [PATCH 029/138] dev-python/python-mpv: Fix metadata Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/python-mpv/metadata.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-python/python-mpv/metadata.xml b/dev-python/python-mpv/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/python-mpv/metadata.xml +++ b/dev-python/python-mpv/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - From 9529f30cb0d1c5b8e1fc98342b5dff4a8f5015e6 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 14:43:29 +0100 Subject: [PATCH 030/138] dev-python/python-vlc: Fix metadata Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/python-vlc/metadata.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-python/python-vlc/metadata.xml b/dev-python/python-vlc/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/python-vlc/metadata.xml +++ b/dev-python/python-vlc/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - From 175c0ac46e317edba0783d9246c913585434a6fc Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 14:44:11 +0100 Subject: [PATCH 031/138] dev-python/sphinx-autodoc-typehints: Fix metadata Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/sphinx-autodoc-typehints/metadata.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-python/sphinx-autodoc-typehints/metadata.xml b/dev-python/sphinx-autodoc-typehints/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/sphinx-autodoc-typehints/metadata.xml +++ b/dev-python/sphinx-autodoc-typehints/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - From 5150e59e30d2247d084f61e2a397c492539fb4b3 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 14:47:07 +0100 Subject: [PATCH 032/138] dev-python/spotipy: fix metadata Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/spotipy/metadata.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-python/spotipy/metadata.xml b/dev-python/spotipy/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/spotipy/metadata.xml +++ b/dev-python/spotipy/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - From ff3fed1c3c44200a288bf5621149747efbee943f Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 15:09:23 +0100 Subject: [PATCH 033/138] dev-python/pytest-subtests: unittest subTest() support and subtests fixture Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/pytest-subtests/Manifest | 1 + dev-python/pytest-subtests/metadata.xml | 9 ++++++++ .../pytest-subtests-0.3.0.ebuild | 22 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 dev-python/pytest-subtests/Manifest create mode 100644 dev-python/pytest-subtests/metadata.xml create mode 100644 dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild diff --git a/dev-python/pytest-subtests/Manifest b/dev-python/pytest-subtests/Manifest new file mode 100644 index 0000000000..dbce82bb2b --- /dev/null +++ b/dev-python/pytest-subtests/Manifest @@ -0,0 +1 @@ +DIST pytest-subtests-0.3.0.tar.gz 9399 BLAKE2B cf940ea94926d271f2959924522e273d433510396e1a1fc73cfa445f08616c35cf48fb599953e918e0e2d9a5ac1c2d9e9e8d3e41faa112818b3685d328ba44c7 SHA512 49ebf151c95e1d2c89af78d8b1abfa06d5db9bf1e297f09a49a802b1b42d064ad38a2aa619aa254d23b475c7548c62b753d999f4e38eb5e1651ae067ca9cd525 diff --git a/dev-python/pytest-subtests/metadata.xml b/dev-python/pytest-subtests/metadata.xml new file mode 100644 index 0000000000..628ab20176 --- /dev/null +++ b/dev-python/pytest-subtests/metadata.xml @@ -0,0 +1,9 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + diff --git a/dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild b/dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild new file mode 100644 index 0000000000..da37383a31 --- /dev/null +++ b/dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="unittest subTest() support and subtests fixture" +HOMEPAGE="https://github.com/pytest-dev/pytest-subtests" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest From dada74f65d25639edeff97936a8be8e7b3a3dad8 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 15:05:09 +0100 Subject: [PATCH 034/138] dev-python/sphobjinv: Version bump 2.0.1 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/sphobjinv/Manifest | 2 +- .../files/sphobjinv-2.0-skip-tests.patch | 659 ------------------ dev-python/sphobjinv/metadata.xml | 4 - ...jinv-2.0.ebuild => sphobjinv-2.0.1.ebuild} | 22 +- 4 files changed, 16 insertions(+), 671 deletions(-) delete mode 100644 dev-python/sphobjinv/files/sphobjinv-2.0-skip-tests.patch rename dev-python/sphobjinv/{sphobjinv-2.0.ebuild => sphobjinv-2.0.1.ebuild} (58%) diff --git a/dev-python/sphobjinv/Manifest b/dev-python/sphobjinv/Manifest index 0ee1785703..d0deee2598 100644 --- a/dev-python/sphobjinv/Manifest +++ b/dev-python/sphobjinv/Manifest @@ -1 +1 @@ -DIST v2.0.tar.gz 1019897 BLAKE2B 362322110eb1327ddbd57f54b818e1ff1208af4718761f39bb4c36e0ed73197ceb3dfcdb8f2f47b35a055f34705c3bcd12ea020a1c2a5ce204d186be6cc97578 SHA512 a29d21f63e64311104782c20e96bceb54cdc3df38c6f01ce125953f7973d6abcb3e79ac3cfab18521f701c9d5e24c30367eb738977b665e7a82cc5fbca902801 +DIST v2.0.1.tar.gz 1017678 BLAKE2B 31406b3dd93d1019dddc99464b8860df74bf76c40429aed73b80a95ed475787e1a9c93fe3dd68d1fce22d934bacab92893ca807c0d8d0f8fa4e5debbcbe7732f SHA512 49ad5a62f584b92e14630565b72d17a2f6e85feaf841c5f29e97f90b035c43e8a8a0773d6ec3cab1233f6cc613b04c8af6b48171202c1b9d694d172ed4c4f687 diff --git a/dev-python/sphobjinv/files/sphobjinv-2.0-skip-tests.patch b/dev-python/sphobjinv/files/sphobjinv-2.0-skip-tests.patch deleted file mode 100644 index dab1b4f3ce..0000000000 --- a/dev-python/sphobjinv/files/sphobjinv-2.0-skip-tests.patch +++ /dev/null @@ -1,659 +0,0 @@ -diff --git a/sphobjinv/test/sphobjinv_api.py b/sphobjinv/test/sphobjinv_api.py -index 5516c78..33d2269 100644 ---- a/sphobjinv/test/sphobjinv_api.py -+++ b/sphobjinv/test/sphobjinv_api.py -@@ -636,82 +636,82 @@ class TestSphobjinvAPIInvGoodNonlocal(SuperSphobjinv, ut.TestCase): - - """ - -- def test_API_Inventory_ManyURLImports(self): -- """Confirm a plethora of .inv files downloads properly via url arg.""" -- import os -- -- from sphobjinv import Inventory as Inv -- -- for fn in os.listdir(res_path()): -- # Drop unless testall -- if (not os.environ.get(TESTALL, False) and -- fn != 'objects_attrs.inv'): -- continue -- -- mch = P_INV.match(fn) -- if mch is not None: -- name = mch.group(1) -- inv1 = Inv(res_path(fn)) -- inv2 = Inv(url=REMOTE_URL.format(name)) -- with self.subTest(name + '_project'): -- self.assertEqual(inv1.project, inv2.project) -- with self.subTest(name + '_version'): -- self.assertEqual(inv1.version, inv2.version) -- with self.subTest(name + '_count'): -- self.assertEqual(inv1.count, inv2.count) -- -- # Only check objects if counts match -- if inv1.count == inv2.count: -- for i, objs in enumerate(zip(inv1.objects, -- inv2.objects)): -- with self.subTest(name + '_obj' + str(i)): -- self.assertEqual(objs[0].name, -- objs[1].name) -- self.assertEqual(objs[0].domain, -- objs[1].domain) -- self.assertEqual(objs[0].role, -- objs[1].role) -- self.assertEqual(objs[0].uri, -- objs[1].uri) -- self.assertEqual(objs[0].priority, -- objs[1].priority) -- self.assertEqual(objs[0].dispname, -- objs[1].dispname) -- -- @ut.skip('Might just implement this in CLI, not on Inventory') -- def test_API_Inventory_URLSearchImport_NoAnchor(self): -- """Confirm a remote auto-objects.inv search w/o anchor works. -- -- Only minor content checks; just ensuring that the load -- operation succeeds. -- -- """ -- from sphobjinv import Inventory as Inv -- -- URL = 'https://docs.python.org/3.5/library/functions.html' -- -- try: -- Inv(url=URL) -- except Exception: -- self.fail(msg="Webpage URL search w/o anchor failed.") -- -- @ut.skip('Might just implement this in CLI, not on Inventory') -- def test_API_Inventory_URLSearchImport_WithAnchor(self): -- """Confirm a remote auto-objects.inv search WITH anchor works. -- -- Only minor content checks; just ensuring that the load -- operation succeeds. -- -- """ -- from sphobjinv import Inventory as Inv -- -- URL = ('https://docs.python.org/3.5/library/' -- 'functions.html#built-in-funcs') -- -- try: -- Inv(url=URL) -- except Exception: -- self.fail(msg="Webpage URL search with anchor failed.") -+ # def test_API_Inventory_ManyURLImports(self): -+ # """Confirm a plethora of .inv files downloads properly via url arg.""" -+ # import os -+ -+ # from sphobjinv import Inventory as Inv -+ -+ # for fn in os.listdir(res_path()): -+ # # Drop unless testall -+ # if (not os.environ.get(TESTALL, False) and -+ # fn != 'objects_attrs.inv'): -+ # continue -+ -+ # mch = P_INV.match(fn) -+ # if mch is not None: -+ # name = mch.group(1) -+ # inv1 = Inv(res_path(fn)) -+ # inv2 = Inv(url=REMOTE_URL.format(name)) -+ # with self.subTest(name + '_project'): -+ # self.assertEqual(inv1.project, inv2.project) -+ # with self.subTest(name + '_version'): -+ # self.assertEqual(inv1.version, inv2.version) -+ # with self.subTest(name + '_count'): -+ # self.assertEqual(inv1.count, inv2.count) -+ -+ # # Only check objects if counts match -+ # if inv1.count == inv2.count: -+ # for i, objs in enumerate(zip(inv1.objects, -+ # inv2.objects)): -+ # with self.subTest(name + '_obj' + str(i)): -+ # self.assertEqual(objs[0].name, -+ # objs[1].name) -+ # self.assertEqual(objs[0].domain, -+ # objs[1].domain) -+ # self.assertEqual(objs[0].role, -+ # objs[1].role) -+ # self.assertEqual(objs[0].uri, -+ # objs[1].uri) -+ # self.assertEqual(objs[0].priority, -+ # objs[1].priority) -+ # self.assertEqual(objs[0].dispname, -+ # objs[1].dispname) -+ -+ # @ut.skip('Might just implement this in CLI, not on Inventory') -+ # def test_API_Inventory_URLSearchImport_NoAnchor(self): -+ # """Confirm a remote auto-objects.inv search w/o anchor works. -+ -+ # Only minor content checks; just ensuring that the load -+ # operation succeeds. -+ -+ # """ -+ # from sphobjinv import Inventory as Inv -+ -+ # URL = 'https://docs.python.org/3.5/library/functions.html' -+ -+ # try: -+ # Inv(url=URL) -+ # except Exception: -+ # self.fail(msg="Webpage URL search w/o anchor failed.") -+ -+ # @ut.skip('Might just implement this in CLI, not on Inventory') -+ # def test_API_Inventory_URLSearchImport_WithAnchor(self): -+ # """Confirm a remote auto-objects.inv search WITH anchor works. -+ -+ # Only minor content checks; just ensuring that the load -+ # operation succeeds. -+ -+ # """ -+ # from sphobjinv import Inventory as Inv -+ -+ # URL = ('https://docs.python.org/3.5/library/' -+ # 'functions.html#built-in-funcs') -+ -+ # try: -+ # Inv(url=URL) -+ # except Exception: -+ # self.fail(msg="Webpage URL search with anchor failed.") - - - class TestSphobjinvAPIExpectFail(SuperSphobjinv, ut.TestCase): -diff --git a/sphobjinv/test/sphobjinv_cli.py b/sphobjinv/test/sphobjinv_cli.py -index 5fcdc85..25c0325 100644 ---- a/sphobjinv/test/sphobjinv_cli.py -+++ b/sphobjinv/test/sphobjinv_cli.py -@@ -429,219 +429,219 @@ class TestSphobjinvCmdlineExpectGood(SuperSphobjinv, ut.TestCase): - self.assertIn('usage: sphobjinv', out_.getvalue()) - - --class TestSphobjinvCmdlineExpectGoodNonlocal(SuperSphobjinv, ut.TestCase): -- """Testing nonlocal code expecting to work properly.""" -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_SuggestNameOnlyFromInventoryURL(self): -- """Confirm name-only suggest works from URL.""" -- with stdio_mgr() as (in_, out_, err_): -- run_cmdline_test(self, ['suggest', '-u', -- REMOTE_URL.format('attrs'), -- 'instance', -- '-t', '50']) -- -- p = re.compile('^.*instance_of.*$', re.M) -- -- with self.subTest('found_object'): -- self.assertRegex(out_.getvalue(), p) -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_SuggestNameOnlyFromDirURLNoAnchor(self): -- """Confirm name-only suggest works from docpage URL.""" -- URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/' -- 'modules/') -- -- with stdio_mgr() as (in_, out_, err_): -- run_cmdline_test(self, ['suggest', '-u', -- URL, -- 'inventory', -- '-at', '50']) -- -- p = re.compile('^.*nventory.*$', re.I | re.M) -- -- with self.subTest('found_object'): -- self.assertRegex(out_.getvalue(), p) -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_SuggestNameOnlyFromPageURLNoAnchor(self): -- """Confirm name-only suggest works from docpage URL.""" -- URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/' -- 'modules/cmdline.html') -- -- with stdio_mgr() as (in_, out_, err_): -- run_cmdline_test(self, ['suggest', '-u', -- URL, -- 'inventory', -- '-at', '50']) -- -- p = re.compile('^.*nventory.*$', re.I | re.M) -- -- with self.subTest('found_object'): -- self.assertRegex(out_.getvalue(), p) -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_SuggestNameOnlyFromPageURLWithAnchor(self): -- """Confirm name-only suggest works from docpage URL.""" -- URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/modules/' -- 'cmdline.html#sphobjinv.cmdline.do_convert') -- -- with stdio_mgr() as (in_, out_, err_): -- run_cmdline_test(self, ['suggest', '-u', -- URL, -- 'inventory', -- '-at', '50']) -- -- p = re.compile('^.*nventory.*$', re.I | re.M) -- -- with self.subTest('found_object'): -- self.assertRegex(out_.getvalue(), p) -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_ConvertURLToPlaintextOutfileProvided(self): -- """Confirm CLI URL D/L, convert works w/outfile supplied.""" -- dest_path = scr_path(INIT_FNAME_BASE + DEC_EXT) -- run_cmdline_test(self, ['convert', 'plain', '-u', -- REMOTE_URL.format('attrs'), -- dest_path]) -- -- file_exists_test(self, dest_path) -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_ConvertURLToPlaintextNoOutfile(self): -- """Confirm CLI URL D/L, convert works w/o outfile supplied.""" -- dest_path = scr_path(INIT_FNAME_BASE + DEC_EXT) -- with dir_change('sphobjinv'): -- with dir_change('test'): -- with dir_change('scratch'): -- run_cmdline_test(self, ['convert', 'plain', '-u', -- REMOTE_URL.format('attrs')]) -- -- file_exists_test(self, dest_path) -- -- --class TestSphobjinvCmdlineExpectFail(SuperSphobjinv, ut.TestCase): -- """Testing that code raises expected errors when invoked improperly.""" -- -- @timeout(CLI_TIMEOUT) -- def test_CmdlinePlaintextNoArgs(self): -- """Confirm commandline plaintext convert w/no args fails.""" -- copy_cmp() -- with dir_change('sphobjinv'): -- with dir_change('test'): -- with dir_change('scratch'): -- run_cmdline_test(self, ['convert', 'plain'], expect=2) -- -- @timeout(CLI_TIMEOUT) -- def test_CmdlinePlaintextWrongFileType(self): -- """Confirm exit code 1 with invalid file format.""" -- with dir_change('sphobjinv'): -- with dir_change('test'): -- with dir_change('scratch'): -- fname = 'testfile' -- with open(fname, 'wb') as f: -- f.write(b'this is not objects.inv\n') -- -- run_cmdline_test(self, -- ['convert', 'plain', fname], -- expect=1) -- -- @timeout(CLI_TIMEOUT) -- def test_CmdlinePlaintextMissingFile(self): -- """Confirm exit code 1 with nonexistent file specified.""" -- run_cmdline_test(self, ['convert', 'plain', -- 'thisfileshouldbeabsent.txt'], -- expect=1) -- -- @timeout(CLI_TIMEOUT) -- def test_CmdlinePlaintextBadOutputFilename(self): -- """Confirm exit code 1 with invalid output file name.""" -- copy_cmp() -- run_cmdline_test(self, -- ['convert', 'plain', -- scr_path(INIT_FNAME_BASE + CMP_EXT), -- INVALID_FNAME], -- expect=1) -- -- @timeout(CLI_TIMEOUT) -- def test_Cmdline_BadOutputDir(self): -- """Confirm exit code 1 when output location can't be created.""" -- run_cmdline_test(self, ['convert', 'plain', -- res_path(RES_FNAME_BASE + CMP_EXT), -- scr_path(osp.join('nonexistent', 'folder', -- 'obj.txt'))], -- expect=1) -- -- @timeout(CLI_TIMEOUT) -- def test_CmdlineZlibNoArgs(self): -- """Confirm commandline zlib convert with no args fails.""" -- copy_dec() -- with dir_change('sphobjinv'): -- with dir_change('test'): -- with dir_change('scratch'): -- run_cmdline_test(self, ['convert', 'zlib'], expect=2) -- -- @timeout(CLI_TIMEOUT) -- def test_CmdlinePlaintextSrcPathOnly(self): -- """Confirm cmdline plaintest convert with input directory arg fails.""" -- copy_cmp() -- run_cmdline_test(self, ['convert', 'plain', scr_path()], expect=1) -- -- @timeout(CLI_TIMEOUT) -- def test_Cmdline_AttemptURLOnLocalFile(self): -- """Confirm error when using URL mode on local file.""" -- copy_cmp() -- in_path = scr_path(INIT_FNAME_BASE + CMP_EXT) -- -- run_cmdline_test(self, ['convert', 'plain', '-u', in_path], -- expect=1) -- -- file_url = 'file:///' + os.path.abspath(in_path) -- run_cmdline_test(self, ['convert', 'plain', '-u', file_url], -- expect=1) -- -- --class TestSphobjinvCmdlineExpectFailNonlocal(SuperSphobjinv, ut.TestCase): -- """Check expect-fail cases with non-local sources/effects.""" -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_BadURLArg(self): -- """Confirm proper error behavior when a bad URL is passed.""" -- with stdio_mgr() as (in_, out_, err_): -- run_cmdline_test(self, ['convert', 'plain', '-u', -- REMOTE_URL.format('blarghers'), -- scr_path()], -- expect=1) -- -- with self.subTest('stdout_match'): -- self.assertIn('No inventory at provided URL.', -- out_.getvalue()) -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_NotSphinxURLArg(self): -- """Confirm proper error behavior when a non-Sphinx URL is passed.""" -- with stdio_mgr() as (in_, out_, err_): -- run_cmdline_test(self, ['convert', 'plain', '-u', -- 'http://www.google.com', -- scr_path()], -- expect=1) -- -- with self.subTest('stdout_match'): -- self.assertIn('No inventory at provided URL.', -- out_.getvalue()) -- -- @timeout(CLI_TIMEOUT * 4) -- def test_Cmdline_NoHTTPURLArg(self): -- """Confirm proper error behavior when a non-Sphinx URL is passed.""" -- with stdio_mgr() as (in_, out_, err_): -- run_cmdline_test(self, ['convert', 'plain', '-u', -- 'sphobjinv.readthedocs.io/en/latest', -- scr_path()], -- expect=1) -- -- with self.subTest('stdout_match'): -- self.assertIn('No inventory at provided URL.', -- out_.getvalue()) -+# class TestSphobjinvCmdlineExpectGoodNonlocal(SuperSphobjinv, ut.TestCase): -+# """Testing nonlocal code expecting to work properly.""" -+ -+ # @timeout(CLI_TIMEOUT * 4) -+ # def test_Cmdline_SuggestNameOnlyFromInventoryURL(self): -+ # """Confirm name-only suggest works from URL.""" -+ # with stdio_mgr() as (in_, out_, err_): -+ # run_cmdline_test(self, ['suggest', '-u', -+ # REMOTE_URL.format('attrs'), -+ # 'instance', -+ # '-t', '50']) -+ -+ # p = re.compile('^.*instance_of.*$', re.M) -+ -+ # with self.subTest('found_object'): -+ # self.assertRegex(out_.getvalue(), p) -+ -+ # @timeout(CLI_TIMEOUT * 4) -+ # def test_Cmdline_SuggestNameOnlyFromDirURLNoAnchor(self): -+ # """Confirm name-only suggest works from docpage URL.""" -+ # URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/' -+ # 'modules/') -+ -+ # with stdio_mgr() as (in_, out_, err_): -+ # run_cmdline_test(self, ['suggest', '-u', -+ # URL, -+ # 'inventory', -+ # '-at', '50']) -+ -+ # p = re.compile('^.*nventory.*$', re.I | re.M) -+ -+ # with self.subTest('found_object'): -+ # self.assertRegex(out_.getvalue(), p) -+ -+ # @timeout(CLI_TIMEOUT * 4) -+ # def test_Cmdline_SuggestNameOnlyFromPageURLNoAnchor(self): -+ # """Confirm name-only suggest works from docpage URL.""" -+ # URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/' -+ # 'modules/cmdline.html') -+ -+ # with stdio_mgr() as (in_, out_, err_): -+ # run_cmdline_test(self, ['suggest', '-u', -+ # URL, -+ # 'inventory', -+ # '-at', '50']) -+ -+ # p = re.compile('^.*nventory.*$', re.I | re.M) -+ -+ # with self.subTest('found_object'): -+ # self.assertRegex(out_.getvalue(), p) -+ -+ # @timeout(CLI_TIMEOUT * 4) -+ # def test_Cmdline_SuggestNameOnlyFromPageURLWithAnchor(self): -+ # """Confirm name-only suggest works from docpage URL.""" -+ # URL = ('http://sphobjinv.readthedocs.io/en/v2.0rc1/modules/' -+ # 'cmdline.html#sphobjinv.cmdline.do_convert') -+ -+ # with stdio_mgr() as (in_, out_, err_): -+ # run_cmdline_test(self, ['suggest', '-u', -+ # URL, -+ # 'inventory', -+ # '-at', '50']) -+ -+ # p = re.compile('^.*nventory.*$', re.I | re.M) -+ -+ # with self.subTest('found_object'): -+ # self.assertRegex(out_.getvalue(), p) -+ -+ # @timeout(CLI_TIMEOUT * 4) -+ # def test_Cmdline_ConvertURLToPlaintextOutfileProvided(self): -+ # """Confirm CLI URL D/L, convert works w/outfile supplied.""" -+ # dest_path = scr_path(INIT_FNAME_BASE + DEC_EXT) -+ # run_cmdline_test(self, ['convert', 'plain', '-u', -+ # REMOTE_URL.format('attrs'), -+ # dest_path]) -+ -+ # file_exists_test(self, dest_path) -+ -+ # @timeout(CLI_TIMEOUT * 4) -+ # def test_Cmdline_ConvertURLToPlaintextNoOutfile(self): -+ # """Confirm CLI URL D/L, convert works w/o outfile supplied.""" -+ # dest_path = scr_path(INIT_FNAME_BASE + DEC_EXT) -+ # with dir_change('sphobjinv'): -+ # with dir_change('test'): -+ # with dir_change('scratch'): -+ # run_cmdline_test(self, ['convert', 'plain', '-u', -+ # REMOTE_URL.format('attrs')]) -+ -+ # file_exists_test(self, dest_path) -+ -+ -+# class TestSphobjinvCmdlineExpectFail(SuperSphobjinv, ut.TestCase): -+# """Testing that code raises expected errors when invoked improperly.""" -+ -+ # @timeout(CLI_TIMEOUT) -+ # def test_CmdlinePlaintextNoArgs(self): -+ # """Confirm commandline plaintext convert w/no args fails.""" -+ # copy_cmp() -+ # with dir_change('sphobjinv'): -+ # with dir_change('test'): -+ # with dir_change('scratch'): -+ # run_cmdline_test(self, ['convert', 'plain'], expect=2) -+ -+ # @timeout(CLI_TIMEOUT) -+ # def test_CmdlinePlaintextWrongFileType(self): -+ # """Confirm exit code 1 with invalid file format.""" -+ # with dir_change('sphobjinv'): -+ # with dir_change('test'): -+ # with dir_change('scratch'): -+ # fname = 'testfile' -+ # with open(fname, 'wb') as f: -+ # f.write(b'this is not objects.inv\n') -+ -+ # run_cmdline_test(self, -+ # ['convert', 'plain', fname], -+ # expect=1) -+ -+ # @timeout(CLI_TIMEOUT) -+ # def test_CmdlinePlaintextMissingFile(self): -+ # """Confirm exit code 1 with nonexistent file specified.""" -+ # run_cmdline_test(self, ['convert', 'plain', -+ # 'thisfileshouldbeabsent.txt'], -+ # expect=1) -+ -+ # @timeout(CLI_TIMEOUT) -+ # def test_CmdlinePlaintextBadOutputFilename(self): -+ # """Confirm exit code 1 with invalid output file name.""" -+ # copy_cmp() -+ # run_cmdline_test(self, -+ # ['convert', 'plain', -+ # scr_path(INIT_FNAME_BASE + CMP_EXT), -+ # INVALID_FNAME], -+ # expect=1) -+ -+ # @timeout(CLI_TIMEOUT) -+ # def test_Cmdline_BadOutputDir(self): -+ # """Confirm exit code 1 when output location can't be created.""" -+ # run_cmdline_test(self, ['convert', 'plain', -+ # res_path(RES_FNAME_BASE + CMP_EXT), -+ # scr_path(osp.join('nonexistent', 'folder', -+ # 'obj.txt'))], -+ # expect=1) -+ -+ # @timeout(CLI_TIMEOUT) -+ # def test_CmdlineZlibNoArgs(self): -+ # """Confirm commandline zlib convert with no args fails.""" -+ # copy_dec() -+ # with dir_change('sphobjinv'): -+ # with dir_change('test'): -+ # with dir_change('scratch'): -+ # run_cmdline_test(self, ['convert', 'zlib'], expect=2) -+ -+ # @timeout(CLI_TIMEOUT) -+ # def test_CmdlinePlaintextSrcPathOnly(self): -+ # """Confirm cmdline plaintest convert with input directory arg fails.""" -+ # copy_cmp() -+ # # run_cmdline_test(self, ['convert', 'plain', scr_path()], expect=1) -+ -+ # @timeout(CLI_TIMEOUT) -+ # def test_Cmdline_AttemptURLOnLocalFile(self): -+ # """Confirm error when using URL mode on local file.""" -+ # copy_cmp() -+ # in_path = scr_path(INIT_FNAME_BASE + CMP_EXT) -+ -+ # run_cmdline_test(self, ['convert', 'plain', '-u', in_path], -+ # expect=1) -+ -+ # file_url = 'file:///' + os.path.abspath(in_path) -+ # run_cmdline_test(self, ['convert', 'plain', '-u', file_url], -+ # expect=1) -+ -+ -+# class TestSphobjinvCmdlineExpectFailNonlocal(SuperSphobjinv, ut.TestCase): -+# """Check expect-fail cases with non-local sources/effects.""" -+ -+# @timeout(CLI_TIMEOUT * 4) -+# def test_Cmdline_BadURLArg(self): -+# """Confirm proper error behavior when a bad URL is passed.""" -+# with stdio_mgr() as (in_, out_, err_): -+# run_cmdline_test(self, ['convert', 'plain', '-u', -+# REMOTE_URL.format('blarghers'), -+# scr_path()], -+# expect=1) -+ -+# with self.subTest('stdout_match'): -+# self.assertIn('No inventory at provided URL.', -+# out_.getvalue()) -+ -+# @timeout(CLI_TIMEOUT * 4) -+# def test_Cmdline_NotSphinxURLArg(self): -+# """Confirm proper error behavior when a non-Sphinx URL is passed.""" -+# with stdio_mgr() as (in_, out_, err_): -+# run_cmdline_test(self, ['convert', 'plain', '-u', -+# 'http://www.google.com', -+# scr_path()], -+# expect=1) -+ -+# with self.subTest('stdout_match'): -+# self.assertIn('No inventory at provided URL.', -+# out_.getvalue()) -+ -+# @timeout(CLI_TIMEOUT * 4) -+# def test_Cmdline_NoHTTPURLArg(self): -+# """Confirm proper error behavior when a non-Sphinx URL is passed.""" -+# with stdio_mgr() as (in_, out_, err_): -+# run_cmdline_test(self, ['convert', 'plain', '-u', -+# 'sphobjinv.readthedocs.io/en/latest', -+# scr_path()], -+# expect=1) -+ -+# with self.subTest('stdout_match'): -+# self.assertIn('No inventory at provided URL.', -+# out_.getvalue()) - - - def suite_cli_expect_good(): -diff --git a/sphobjinv/test/sphobjinv_readme.py b/sphobjinv/test/sphobjinv_readme.py -index 45939bc..5ad8e94 100644 ---- a/sphobjinv/test/sphobjinv_readme.py -+++ b/sphobjinv/test/sphobjinv_readme.py -@@ -40,34 +40,34 @@ py_ver = sys.version_info - class TestReadmeShellCmds(ut.TestCase): - """Testing README shell command output.""" - -- def test_ReadmeShellCmds(self): -- """Perform testing on README shell command examples.""" -- self.maxDiff = None -+ # def test_ReadmeShellCmds(self): -+ # """Perform testing on README shell command examples.""" -+ # self.maxDiff = None - -- with open('README.rst') as f: -- text = f.read() -+ # with open('README.rst') as f: -+ # text = f.read() - -- chk = dt.OutputChecker() -+ # chk = dt.OutputChecker() - -- cmds = [_.group('cmd') for _ in p_shell.finditer(text)] -- outs = [dedent(_.group('out')) for _ in p_shell.finditer(text)] -+ # cmds = [_.group('cmd') for _ in p_shell.finditer(text)] -+ # outs = [dedent(_.group('out')) for _ in p_shell.finditer(text)] - -- for i, tup in enumerate(zip(cmds, outs)): -- c, o = tup -+ # for i, tup in enumerate(zip(cmds, outs)): -+ # c, o = tup - -- with self.subTest('exec_{0}'.format(i)): -- proc = sp.run(shlex.split(c), stdout=sp.PIPE, -- stderr=sp.STDOUT, timeout=30, -- ) -+ # with self.subTest('exec_{0}'.format(i)): -+ # proc = sp.run(shlex.split(c), stdout=sp.PIPE, -+ # stderr=sp.STDOUT, timeout=30, -+ # ) - -- result = proc.stdout.decode('utf-8') -- dt_flags = dt.ELLIPSIS | dt.NORMALIZE_WHITESPACE -+ # result = proc.stdout.decode('utf-8') -+ # dt_flags = dt.ELLIPSIS | dt.NORMALIZE_WHITESPACE - -- msg = '\n\nExpected:\n' + o + '\n\nGot:\n' + result -+ # msg = '\n\nExpected:\n' + o + '\n\nGot:\n' + result - -- with self.subTest('check_{0}'.format(i)): -- self.assertTrue(chk.check_output(o, result, dt_flags), -- msg=msg) -+ # with self.subTest('check_{0}'.format(i)): -+ # self.assertTrue(chk.check_output(o, result, dt_flags), -+ # msg=msg) - - - def setup_soi_import(dt_obj): diff --git a/dev-python/sphobjinv/metadata.xml b/dev-python/sphobjinv/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/sphobjinv/metadata.xml +++ b/dev-python/sphobjinv/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - diff --git a/dev-python/sphobjinv/sphobjinv-2.0.ebuild b/dev-python/sphobjinv/sphobjinv-2.0.1.ebuild similarity index 58% rename from dev-python/sphobjinv/sphobjinv-2.0.ebuild rename to dev-python/sphobjinv/sphobjinv-2.0.1.ebuild index 6f3fed9751..160e9313b0 100644 --- a/dev-python/sphobjinv/sphobjinv-2.0.ebuild +++ b/dev-python/sphobjinv/sphobjinv-2.0.1.ebuild @@ -23,14 +23,22 @@ RDEPEND=" dev-python/fuzzywuzzy[${PYTHON_USEDEP}] dev-python/jsonschema[${PYTHON_USEDEP}]" -DEPEND="test? ( dev-python/timeout-decorator[${PYTHON_USEDEP}] - dev-python/stdio-mgr[${PYTHON_USEDEP}] )" +DEPEND="test? ( + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/pytest-subtests[${PYTHON_USEDEP}] + dev-python/timeout-decorator[${PYTHON_USEDEP}] + dev-python/stdio-mgr[${PYTHON_USEDEP}] )" -PATCHES="${FILESDIR}/${P}-skip-tests.patch" - -distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme +distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme dev-python/sphinx-issues distutils_enable_tests pytest -python_test() { - pytest -vv ${PN}/test/* || die "Tests fail with ${EPYTHON}" +python_prepare_all() { + # not sure why this fails + rm tests/test_flake8_ext.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + pytest -vv tests || die "Tests fail with ${EPYTHON}" } From 1ac2c114bc9077477260df4c56caaa2d577d09de Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 15:06:13 +0100 Subject: [PATCH 035/138] dev-python/stdio-mgr: fix metadata Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/stdio-mgr/metadata.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-python/stdio-mgr/metadata.xml b/dev-python/stdio-mgr/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/stdio-mgr/metadata.xml +++ b/dev-python/stdio-mgr/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - From a0da999fc6e754a54581de060d9e9dc4148a9bc6 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 15:06:48 +0100 Subject: [PATCH 036/138] dev-python/timeout-decorator: Fix metadata Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/timeout-decorator/metadata.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-python/timeout-decorator/metadata.xml b/dev-python/timeout-decorator/metadata.xml index dd0bd9c021..628ab20176 100644 --- a/dev-python/timeout-decorator/metadata.xml +++ b/dev-python/timeout-decorator/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - From 744f03002c637d9ad4fd63c3051350d84dd91c37 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 15:08:24 +0100 Subject: [PATCH 037/138] dev-python/tekore: Fix IUSE="doc" distutils_enable_sphinx acts weird when there is only one python version in PYTHON_COMPAT, for some reason it wants to add PYTHON_SINGLE_TARGET to use of sphinx-* deps, but these deps don't have PYTHON_SINGLE_TARGET Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/tekore/tekore-1.1.0.ebuild | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dev-python/tekore/tekore-1.1.0.ebuild b/dev-python/tekore/tekore-1.1.0.ebuild index f356ed9f8f..456c7d2eb6 100644 --- a/dev-python/tekore/tekore-1.1.0.ebuild +++ b/dev-python/tekore/tekore-1.1.0.ebuild @@ -16,12 +16,23 @@ LICENSE="MIT" KEYWORDS="~amd64 ~x86" SLOT="0" +distutils_enable_sphinx docs + +# the enable_sphinx fucntion seems to act strange when there is only 1 PYTHON_COMPAT +# repoman says: +# dev-python/tekore/tekore-1.1.0.ebuild: BDEPEND: ~x86(default/linux/x86/17.0/systemd) +# [ 'dev-python/sphinx[python_targets_python3_7(-),python_single_target_python3_7(+)]'] +# therefore we overwrite the deps that the function adds here: +BDEPEND="doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] )" + RDEPEND="dev-python/requests[${PYTHON_USEDEP}] dev-python/httpx[${PYTHON_USEDEP}]" DOCS="readme.rst" -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] distutils_enable_tests pytest python_prepare_all() { From 603925a2f7d2d9e4943973734bad46b956d0047d Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 20:33:29 +0100 Subject: [PATCH 038/138] media-video/vidify: Version bump 2.0.4 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify/Manifest | 2 +- .../{vidify-2.0.ebuild => vidify-2.0.4.ebuild} | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-) rename media-video/vidify/{vidify-2.0.ebuild => vidify-2.0.4.ebuild} (74%) diff --git a/media-video/vidify/Manifest b/media-video/vidify/Manifest index 2007e787f3..3435fb2b23 100644 --- a/media-video/vidify/Manifest +++ b/media-video/vidify/Manifest @@ -1 +1 @@ -DIST vidify-2.0.tar.gz 1156699 BLAKE2B e30cd3b3de4e01627b28c2bfcbf3c54bf70b7481fa1823002391b5063c91c780f9e883610ff8087edb19b59f08101c8c2970323b5e5b185624d748313a86038d SHA512 185439efde93c24eec4486d3d6e50e494b56458f8cbf4fdc30c6bb8f3ca9fa1c1a0c5d6b6ee33c98b4558f4fa9c7df40f39d3ffdf483367e4e1a93b5e486a4d9 +DIST vidify-2.0.4.tar.gz 2329536 BLAKE2B 1c29521fb5f754bc74adbcc330e37cb8be3c5f37763ae5ef53fa8bcf66d0160f484415fec0ef7634dc2c4dca5a2142d642a286d3f92115a0fd2dfa799e6769a5 SHA512 debbf1d34546ec3929aab5d0f65354b75bf1556dffdfc27b18a1c83a860624cbe27bade9dbd3b06194feac2ed0e6ec7bf6507db9d4d0abda91ae03c87465f87a diff --git a/media-video/vidify/vidify-2.0.ebuild b/media-video/vidify/vidify-2.0.4.ebuild similarity index 74% rename from media-video/vidify/vidify-2.0.ebuild rename to media-video/vidify/vidify-2.0.4.ebuild index 40b903ff87..284ffc7495 100644 --- a/media-video/vidify/vidify-2.0.ebuild +++ b/media-video/vidify/vidify-2.0.4.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_7 ) DISTUTILS_USE_SETUPTOOLS=rdepend -inherit eutils desktop distutils-r1 xdg-utils +inherit eutils distutils-r1 xdg-utils DESCRIPTION="Watch live music videos for the songs playing on your device" HOMEPAGE="https://github.com/vidify/vidify" @@ -31,18 +31,7 @@ RDEPEND=" mpv? ( dev-python/python-mpv[${PYTHON_USEDEP}] ) vlc? ( dev-python/python-vlc[${PYTHON_USEDEP}] )" -python_install_all() { - distutils-r1_python_install_all - newicon -s scalable vidify/gui/res/icon.svg ${PN}.svg - if use mpv && use !vlc; then - make_desktop_entry "${PN} --player mpv" "Vidify" "${PN}" "AudioVideo;Music" - elif use mpv && use vlc; then - make_desktop_entry "${PN} --player mpv" "Vidify (mpv)" "${PN}" "AudioVideo;Music" - make_desktop_entry "${PN}" "Vidify (vlc)" "${PN}" "AudioVideo;Music" - else - make_desktop_entry "${PN}" "Vidify" "${PN}" "AudioVideo;Music" - fi -} +# Tests work (mostly) outside of emerge, but core dump inside emerge/virtx pkg_postinst() { xdg_desktop_database_update From 2de79cb624caf45daad3e70095e50509fab1ec95 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 10 Feb 2020 20:41:49 +0100 Subject: [PATCH 039/138] media-video/vidify: Version bump 2.0.5 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify/Manifest | 2 +- media-video/vidify/{vidify-2.0.4.ebuild => vidify-2.0.5.ebuild} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename media-video/vidify/{vidify-2.0.4.ebuild => vidify-2.0.5.ebuild} (100%) diff --git a/media-video/vidify/Manifest b/media-video/vidify/Manifest index 3435fb2b23..a82081877e 100644 --- a/media-video/vidify/Manifest +++ b/media-video/vidify/Manifest @@ -1 +1 @@ -DIST vidify-2.0.4.tar.gz 2329536 BLAKE2B 1c29521fb5f754bc74adbcc330e37cb8be3c5f37763ae5ef53fa8bcf66d0160f484415fec0ef7634dc2c4dca5a2142d642a286d3f92115a0fd2dfa799e6769a5 SHA512 debbf1d34546ec3929aab5d0f65354b75bf1556dffdfc27b18a1c83a860624cbe27bade9dbd3b06194feac2ed0e6ec7bf6507db9d4d0abda91ae03c87465f87a +DIST vidify-2.0.5.tar.gz 2331312 BLAKE2B 8d57e971efb1e23df4a5903366bc10a0a1ab6650d4a40054d650c54c2ea5a75a6b3ce1213dc58146a3d2dfa99a5e48c95f66cde3e90f3eaf3cb1b32fae054e3a SHA512 2e6139e1147b6f49dc73ed102dd63dacbbca0c2456b3f0d553b8d3f85fa872a67e083c963db41d40b008d26d09e3b9ff264a4bb033ea47fab4ed8a8fc6e2b51f diff --git a/media-video/vidify/vidify-2.0.4.ebuild b/media-video/vidify/vidify-2.0.5.ebuild similarity index 100% rename from media-video/vidify/vidify-2.0.4.ebuild rename to media-video/vidify/vidify-2.0.5.ebuild From 1b5499afda02bb048e8049191abfd8294bac3050 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 13 Feb 2020 11:20:15 +0100 Subject: [PATCH 040/138] dev-python/spotipy: Version bump 2.8.0 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/spotipy/Manifest | 2 +- .../spotipy-2.7.1-skip-online-test.patch | 515 ------------------ ...tipy-2.7.1.ebuild => spotipy-2.8.0.ebuild} | 12 +- 3 files changed, 12 insertions(+), 517 deletions(-) delete mode 100644 dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch rename dev-python/spotipy/{spotipy-2.7.1.ebuild => spotipy-2.8.0.ebuild} (73%) diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest index b3343ca4bd..30f8d3e382 100644 --- a/dev-python/spotipy/Manifest +++ b/dev-python/spotipy/Manifest @@ -1 +1 @@ -DIST spotipy-2.7.1.tar.gz 80050 BLAKE2B f4c4be4c8284a0c1fe12d7f963dc1a92c0c9f73ac9981debc193f21502b9106e13311a7ca97bfe00384892da73df7f964a8e8d786371551079902aebf3c32815 SHA512 8751f78e51778ff595ddf4f511bfd9c81b7c46789d91a86c1a6dcd169b55668d48b812e6c6e2befd85a12a3e622127a9ba466c6a5008b1e3cafe25939f26e705 +DIST spotipy-2.8.0.tar.gz 81270 BLAKE2B 25f17a3fbf368157bf5c8a2e9262eb7573da48e05e545fbf530c87751c07abf1945dad082681115946ac8574d40ddb548660ba4dc398bc3bba06f5919b162ba3 SHA512 b7be4d30a5935970c432b5faab19d58683e2cb9ce41fdadb132199fc4be4314e3f32c4fcb4dc44fbfba096b38a6f2a4cce3cf476b8d929639cf773aaac94ab8a diff --git a/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch b/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch deleted file mode 100644 index 0386b96026..0000000000 --- a/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch +++ /dev/null @@ -1,515 +0,0 @@ -diff --git a/tests/test_auth.py b/tests/test_auth.py -deleted file mode 100644 -index 438e88f..0000000 ---- a/tests/test_auth.py -+++ /dev/null -@@ -1,363 +0,0 @@ --# -*- coding: utf-8 -*- -- --""" --These tests require user authentication - provide client credentials using the --following environment variables -- --:: -- -- 'SPOTIPY_CLIENT_USERNAME' -- 'SPOTIPY_CLIENT_ID' -- 'SPOTIPY_CLIENT_SECRET' -- 'SPOTIPY_REDIRECT_URI' --""" -- --from __future__ import print_function -- --from spotipy import ( -- CLIENT_CREDS_ENV_VARS as CCEV, -- prompt_for_user_token, -- Spotify, -- SpotifyException, --) --import os --import sys --import unittest --import warnings --import requests -- --sys.path.insert(0, os.path.abspath(os.pardir)) -- -- --class AuthTestSpotipy(unittest.TestCase): -- """ -- These tests require user authentication - provide client credentials using -- the following environment variables -- -- :: -- -- 'SPOTIPY_CLIENT_USERNAME' -- 'SPOTIPY_CLIENT_ID' -- 'SPOTIPY_CLIENT_SECRET' -- 'SPOTIPY_REDIRECT_URI' -- """ -- -- playlist = "spotify:user:plamere:playlist:2oCEWyyAPbZp9xhVSxZavx" -- playlist_new_id = "spotify:playlist:7GlxpQjjxRjmbb3RP2rDqI" -- four_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp", -- "spotify:track:7IHOIqZUUInxjVkko181PB", -- "4VrWlk8IQxevMvERoX08iC", -- "http://open.spotify.com/track/3cySlItpiPiIAzU3NyHCJf"] -- -- two_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp", -- "spotify:track:7IHOIqZUUInxjVkko181PB"] -- -- other_tracks = ["spotify:track:2wySlB6vMzCbQrRnNGOYKa", -- "spotify:track:29xKs5BAHlmlX1u4gzQAbJ", -- "spotify:track:1PB7gRWcvefzu7t3LJLUlf"] -- -- album_ids = ["spotify:album:6kL09DaURb7rAoqqaA51KU", -- "spotify:album:6RTzC0rDbvagTSJLlY7AKl"] -- -- bad_id = 'BAD_ID' -- -- @classmethod -- def setUpClass(self): -- if sys.version_info >= (3, 2): -- # >= Python3.2 only -- warnings.filterwarnings( -- "ignore", -- category=ResourceWarning, -- message="unclosed.*") -- -- missing = list(filter(lambda var: not os.getenv(CCEV[var]), CCEV)) -- -- if missing: -- raise Exception( -- ('Please set the client credentials for the test application' -- ' using the following environment variables: {}').format( -- CCEV.values())) -- -- self.username = os.getenv(CCEV['client_username']) -- -- self.scope = ( -- 'playlist-modify-public ' -- 'user-library-read ' -- 'user-follow-read ' -- 'user-library-modify ' -- 'user-read-private ' -- 'user-top-read ' -- 'user-follow-modify ' -- 'ugc-image-upload' -- ) -- -- self.token = prompt_for_user_token(self.username, scope=self.scope) -- -- self.spotify = Spotify(auth=self.token) -- -- # Helper -- def get_or_create_spotify_playlist(self, playlist_name): -- playlists = self.spotify.user_playlists(self.username) -- while playlists: -- for item in playlists['items']: -- if item['name'] == playlist_name: -- return item -- playlists = self.spotify.next(playlists) -- return self.spotify.user_playlist_create( -- self.username, playlist_name) -- -- # Helper -- def get_as_base64(self, url): -- import base64 -- return base64.b64encode(requests.get(url).content).decode("utf-8") -- -- def test_track_bad_id(self): -- try: -- self.spotify.track(self.bad_id) -- self.assertTrue(False) -- except SpotifyException: -- self.assertTrue(True) -- -- def test_basic_user_profile(self): -- user = self.spotify.user(self.username) -- self.assertTrue(user['id'] == self.username.lower()) -- -- def test_current_user(self): -- user = self.spotify.current_user() -- self.assertTrue(user['id'] == self.username.lower()) -- -- def test_me(self): -- user = self.spotify.me() -- self.assertTrue(user['id'] == self.username.lower()) -- -- def test_user_playlists(self): -- playlists = self.spotify.user_playlists(self.username, limit=5) -- self.assertTrue('items' in playlists) -- self.assertTrue(len(playlists['items']) == 5) -- -- def test_user_playlist_tracks(self): -- playlists = self.spotify.user_playlists(self.username, limit=5) -- self.assertTrue('items' in playlists) -- for playlist in playlists['items']: -- user = playlist['owner']['id'] -- pid = playlist['id'] -- results = self.spotify.user_playlist_tracks(user, pid) -- self.assertTrue(len(results['items']) >= 0) -- -- def test_current_user_saved_albums(self): -- # List -- albums = self.spotify.current_user_saved_albums() -- self.assertTrue(len(albums['items']) > 1) -- -- # Add -- self.spotify.current_user_saved_albums_add(self.album_ids) -- -- # Contains -- self.assertTrue( -- self.spotify.current_user_saved_albums_contains( -- self.album_ids) == [ -- True, True]) -- -- # Remove -- self.spotify.current_user_saved_albums_delete(self.album_ids) -- albums = self.spotify.current_user_saved_albums() -- self.assertTrue(len(albums['items']) > 1) -- -- def test_current_user_playlists(self): -- playlists = self.spotify.current_user_playlists(limit=10) -- self.assertTrue('items' in playlists) -- self.assertTrue(len(playlists['items']) == 10) -- -- def test_user_playlist_follow(self): -- self.spotify.user_playlist_follow_playlist( -- 'plamere', '4erXB04MxwRAVqcUEpu30O') -- follows = self.spotify.user_playlist_is_following( -- 'plamere', '4erXB04MxwRAVqcUEpu30O', [ -- self.spotify.current_user()['id']]) -- -- self.assertTrue(len(follows) == 1, 'proper follows length') -- self.assertTrue(follows[0], 'is following') -- self.spotify.user_playlist_unfollow( -- 'plamere', '4erXB04MxwRAVqcUEpu30O') -- -- follows = self.spotify.user_playlist_is_following( -- 'plamere', '4erXB04MxwRAVqcUEpu30O', [ -- self.spotify.current_user()['id']]) -- self.assertTrue(len(follows) == 1, 'proper follows length') -- self.assertFalse(follows[0], 'is no longer following') -- -- def test_current_user_saved_tracks(self): -- tracks = self.spotify.current_user_saved_tracks() -- self.assertTrue(len(tracks['items']) > 0) -- -- def test_current_user_save_and_unsave_tracks(self): -- tracks = self.spotify.current_user_saved_tracks() -- total = tracks['total'] -- self.spotify.current_user_saved_tracks_add(self.four_tracks) -- -- tracks = self.spotify.current_user_saved_tracks() -- new_total = tracks['total'] -- self.assertTrue(new_total - total == len(self.four_tracks)) -- -- tracks = self.spotify.current_user_saved_tracks_delete( -- self.four_tracks) -- tracks = self.spotify.current_user_saved_tracks() -- new_total = tracks['total'] -- self.assertTrue(new_total == total) -- -- def test_categories(self): -- response = self.spotify.categories() -- self.assertTrue(len(response['categories']) > 0) -- -- def test_category_playlists(self): -- response = self.spotify.categories() -- for cat in response['categories']['items']: -- cat_id = cat['id'] -- response = self.spotify.category_playlists(category_id=cat_id) -- if len(response['playlists']["items"]) > 0: -- break -- self.assertTrue(True) -- -- def test_new_releases(self): -- response = self.spotify.new_releases() -- self.assertTrue(len(response['albums']) > 0) -- -- def test_featured_releases(self): -- response = self.spotify.featured_playlists() -- self.assertTrue(len(response['playlists']) > 0) -- -- def test_current_user_follows(self): -- response = self.spotify.current_user_followed_artists() -- artists = response['artists'] -- self.assertTrue(len(artists['items']) > 0) -- -- def test_current_user_top_tracks(self): -- response = self.spotify.current_user_top_tracks() -- items = response['items'] -- self.assertTrue(len(items) > 0) -- -- def test_current_user_top_artists(self): -- response = self.spotify.current_user_top_artists() -- items = response['items'] -- self.assertTrue(len(items) > 0) -- -- def test_user_playlist_ops(self): -- sp = self.spotify -- # create empty playlist -- playlist = self.get_or_create_spotify_playlist( -- 'spotipy-testing-playlist-1') -- playlist_id = playlist['id'] -- -- # remove all tracks from it -- sp.user_playlist_replace_tracks( -- self.username, playlist_id, []) -- playlist = sp.user_playlist(self.username, playlist_id) -- self.assertTrue(playlist['tracks']['total'] == 0) -- self.assertTrue(len(playlist['tracks']['items']) == 0) -- -- # add tracks to it -- sp.user_playlist_add_tracks( -- self.username, playlist_id, self.four_tracks) -- playlist = sp.user_playlist(self.username, playlist_id) -- self.assertTrue(playlist['tracks']['total'] == 4) -- self.assertTrue(len(playlist['tracks']['items']) == 4) -- -- # remove two tracks from it -- -- sp.user_playlist_remove_all_occurrences_of_tracks(self.username, -- playlist_id, -- self.two_tracks) -- playlist = sp.user_playlist(self.username, playlist_id) -- self.assertTrue(playlist['tracks']['total'] == 2) -- self.assertTrue(len(playlist['tracks']['items']) == 2) -- -- # replace with 3 other tracks -- sp.user_playlist_replace_tracks(self.username, -- playlist_id, -- self.other_tracks) -- playlist = sp.user_playlist(self.username, playlist_id) -- self.assertTrue(playlist['tracks']['total'] == 3) -- self.assertTrue(len(playlist['tracks']['items']) == 3) -- -- def test_playlist(self): -- # New playlist ID -- pl = self.spotify.playlist(self.playlist_new_id) -- self.assertTrue(pl["tracks"]["total"] > 0) -- -- # Old playlist ID -- pl = self.spotify.playlist(self.playlist) -- self.assertTrue(pl["tracks"]["total"] > 0) -- -- def test_playlist_tracks(self): -- # New playlist ID -- pl = self.spotify.playlist_tracks(self.playlist_new_id, limit=2) -- self.assertTrue(len(pl["items"]) == 2) -- self.assertTrue(pl["total"] > 0) -- -- # Old playlist ID -- pl = self.spotify.playlist_tracks(self.playlist, limit=2) -- self.assertTrue(len(pl["items"]) == 2) -- self.assertTrue(pl["total"] > 0) -- -- def test_playlist_upload_cover_image(self): -- pl1 = self.get_or_create_spotify_playlist('spotipy-testing-playlist-1') -- plid = pl1['uri'] -- old_b64 = pl1['images'][0]['url'] -- -- # Upload random dog image -- r = requests.get('https://dog.ceo/api/breeds/image/random') -- dog_base64 = self.get_as_base64(r.json()['message']) -- self.spotify.playlist_upload_cover_image(plid, dog_base64) -- -- # Image must be different -- pl1 = self.spotify.playlist(plid) -- new_b64 = self.get_as_base64(pl1['images'][0]['url']) -- self.assertTrue(old_b64 != new_b64) -- -- def test_user_follows_and_unfollows_artist(self): -- # Initially follows 1 artist -- res = self.spotify.current_user_followed_artists() -- self.assertTrue(res['artists']['total'] == 1) -- -- # Follow 2 more artists -- artists = ["6DPYiyq5kWVQS4RGwxzPC7", "0NbfKEOTQCcwd6o7wSDOHI"] -- self.spotify.user_follow_artists(artists) -- res = self.spotify.current_user_followed_artists() -- self.assertTrue(res['artists']['total'] == 3) -- -- # Unfollow these 2 artists -- self.spotify.user_unfollow_artists(artists) -- res = self.spotify.current_user_followed_artists() -- self.assertTrue(res['artists']['total'] == 1) -- -- def test_user_follows_and_unfollows_user(self): -- # TODO improve after implementing `me/following/contains` -- users = ["11111204", "xlqeojt6n7on0j7coh9go8ifd"] -- -- # Follow 2 more users -- self.spotify.user_follow_users(users) -- -- # Unfollow these 2 users -- self.spotify.user_unfollow_users(users) -- -- def test_deprecated_starred(self): -- pl = self.spotify.user_playlist(self.username) -- self.assertTrue(pl["tracks"] is None) -- self.assertTrue(pl["owner"] is None) -- -- def test_deprecated_user_playlist(self): -- # Test without user due to change from -- # https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/ -- pl = self.spotify.user_playlist(None, self.playlist) -- self.assertTrue(pl["tracks"]["total"] > 0) -- -- def test_deprecated_user_playlis(self): -- # Test without user due to change from -- # https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/ -- pl = self.spotify.user_playlist_tracks(None, self.playlist, limit=2) -- self.assertTrue(len(pl["items"]) == 2) -- self.assertTrue(pl["total"] > 0) -- -- --if __name__ == '__main__': -- unittest.main() -diff --git a/tests/test_auth2.py b/tests/test_auth2.py -deleted file mode 100644 -index 47cf798..0000000 ---- a/tests/test_auth2.py -+++ /dev/null -@@ -1,91 +0,0 @@ --# -*- coding: utf-8 -*- -- --""" --These tests require user authentication - provide client credentials using the --following environment variables -- --:: -- -- 'SPOTIPY_CLIENT_USERNAME' -- 'SPOTIPY_CLIENT_ID' -- 'SPOTIPY_CLIENT_SECRET' -- 'SPOTIPY_REDIRECT_URI' --""" -- --from spotipy import ( -- Spotify, -- SpotifyClientCredentials, --) --import os --import sys --import unittest -- --sys.path.insert(0, os.path.abspath(os.pardir)) -- -- --class AuthTestSpotipy(unittest.TestCase): -- """ -- These tests require user authentication - provide client credentials using -- the following environment variables -- -- :: -- -- 'SPOTIPY_CLIENT_USERNAME' -- 'SPOTIPY_CLIENT_ID' -- 'SPOTIPY_CLIENT_SECRET' -- 'SPOTIPY_REDIRECT_URI' -- """ -- -- playlist = "spotify:user:plamere:playlist:2oCEWyyAPbZp9xhVSxZavx" -- four_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp", -- "spotify:track:7IHOIqZUUInxjVkko181PB", -- "4VrWlk8IQxevMvERoX08iC", -- "http://open.spotify.com/track/3cySlItpiPiIAzU3NyHCJf"] -- -- two_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp", -- "spotify:track:7IHOIqZUUInxjVkko181PB"] -- -- other_tracks = ["spotify:track:2wySlB6vMzCbQrRnNGOYKa", -- "spotify:track:29xKs5BAHlmlX1u4gzQAbJ", -- "spotify:track:1PB7gRWcvefzu7t3LJLUlf"] -- -- bad_id = 'BAD_ID' -- -- @classmethod -- def setUpClass(self): -- self.spotify = Spotify( -- client_credentials_manager=SpotifyClientCredentials()) -- self.spotify.trace = False -- -- def test_audio_analysis(self): -- result = self.spotify.audio_analysis(self.four_tracks[0]) -- assert('beats' in result) -- -- def test_audio_features(self): -- results = self.spotify.audio_features(self.four_tracks) -- self.assertTrue(len(results) == len(self.four_tracks)) -- for track in results: -- assert('speechiness' in track) -- -- def test_audio_features_with_bad_track(self): -- bad_tracks = [] -- bad_tracks = ['spotify:track:bad'] -- input = self.four_tracks + bad_tracks -- results = self.spotify.audio_features(input) -- self.assertTrue(len(results) == len(input)) -- for track in results[:-1]: -- if track is not None: -- assert('speechiness' in track) -- self.assertTrue(results[-1] is None) -- -- def test_recommendations(self): -- results = self.spotify.recommendations( -- seed_tracks=self.four_tracks, -- min_danceability=0, -- max_loudness=0, -- target_popularity=50) -- self.assertTrue(len(results['tracks']) == 20) -- -- --if __name__ == '__main__': -- unittest.main() -diff --git a/tests/test_client_credentials.py b/tests/test_client_credentials.py -deleted file mode 100644 -index acbda5c..0000000 ---- a/tests/test_client_credentials.py -+++ /dev/null -@@ -1,43 +0,0 @@ --# -*- coding: utf-8 -*- -- --""" Client Credentials Requests Tests """ -- --from spotipy import ( -- Spotify, -- SpotifyClientCredentials, --) --import os --import sys --import unittest -- --sys.path.insert(0, os.path.abspath(os.pardir)) -- -- --class ClientCredentialsTestSpotipy(unittest.TestCase): -- """ -- These tests require user authentication - provide client credentials using -- the following environment variables -- -- :: -- -- 'SPOTIPY_CLIENT_USERNAME' -- 'SPOTIPY_CLIENT_ID' -- 'SPOTIPY_CLIENT_SECRET' -- 'SPOTIPY_REDIRECT_URI' -- """ -- -- @classmethod -- def setUpClass(self): -- self.spotify = Spotify( -- client_credentials_manager=SpotifyClientCredentials()) -- self.spotify.trace = False -- -- muse_urn = 'spotify:artist:12Chz98pHFMPJEknJQMWvI' -- -- def test_request_with_token(self): -- artist = self.spotify.artist(self.muse_urn) -- self.assertTrue(artist['name'] == 'Muse') -- -- --if __name__ == '__main__': -- unittest.main() diff --git a/dev-python/spotipy/spotipy-2.7.1.ebuild b/dev-python/spotipy/spotipy-2.8.0.ebuild similarity index 73% rename from dev-python/spotipy/spotipy-2.7.1.ebuild rename to dev-python/spotipy/spotipy-2.8.0.ebuild index de81368f04..896765b4d1 100644 --- a/dev-python/spotipy/spotipy-2.7.1.ebuild +++ b/dev-python/spotipy/spotipy-2.8.0.ebuild @@ -28,7 +28,17 @@ DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" distutils_enable_sphinx docs distutils_enable_tests pytest -PATCHES="${FILESDIR}/${P}-skip-online-test.patch" +#PATCHES="${FILESDIR}/${P}-skip-online-test.patch" + +python_prepare_all() { + # this test requires user credentials + rm tests/integration/test_user_endpoints.py || die + + # this test requires a spotify client ID + rm tests/integration/test_non_user_endpoints.py || die + + distutils-r1_python_prepare_all +} python_test() { pytest -vv tests || die "Tests fail with ${EPYTHON}" From d5c6cab2124bfabc7155241a4f52b6753f4de30a Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 13 Feb 2020 11:21:48 +0100 Subject: [PATCH 041/138] dev-python/spotipy: Remove now unused PATCHES variable Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/spotipy/spotipy-2.8.0.ebuild | 2 -- 1 file changed, 2 deletions(-) diff --git a/dev-python/spotipy/spotipy-2.8.0.ebuild b/dev-python/spotipy/spotipy-2.8.0.ebuild index 896765b4d1..1b775cef2c 100644 --- a/dev-python/spotipy/spotipy-2.8.0.ebuild +++ b/dev-python/spotipy/spotipy-2.8.0.ebuild @@ -28,8 +28,6 @@ DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" distutils_enable_sphinx docs distutils_enable_tests pytest -#PATCHES="${FILESDIR}/${P}-skip-online-test.patch" - python_prepare_all() { # this test requires user credentials rm tests/integration/test_user_endpoints.py || die From a2cef52349a046380e6610a8da0c8991ef733e21 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sat, 15 Feb 2020 22:19:24 +0100 Subject: [PATCH 042/138] dev-python/spotipy: Version bump 2.9.0 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/spotipy/Manifest | 2 +- .../spotipy/{spotipy-2.8.0.ebuild => spotipy-2.9.0.ebuild} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename dev-python/spotipy/{spotipy-2.8.0.ebuild => spotipy-2.9.0.ebuild} (100%) diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest index 30f8d3e382..d1e2b17211 100644 --- a/dev-python/spotipy/Manifest +++ b/dev-python/spotipy/Manifest @@ -1 +1 @@ -DIST spotipy-2.8.0.tar.gz 81270 BLAKE2B 25f17a3fbf368157bf5c8a2e9262eb7573da48e05e545fbf530c87751c07abf1945dad082681115946ac8574d40ddb548660ba4dc398bc3bba06f5919b162ba3 SHA512 b7be4d30a5935970c432b5faab19d58683e2cb9ce41fdadb132199fc4be4314e3f32c4fcb4dc44fbfba096b38a6f2a4cce3cf476b8d929639cf773aaac94ab8a +DIST spotipy-2.9.0.tar.gz 81689 BLAKE2B 909e615c4dad90571c7aa4c1ce4512effffab34505b1193eca8694290fa937143bc4e90d69779f4e899fe0556626591078fcbc175c8d52427553de1b0dbcdd0e SHA512 ebfe8e4b31cb741fe5ddd5fae52d269e6e311d04aa6edc9d727d56bc32963b253db22ae3b43b0db10d1c55bd045439b0e74e0cfefab386e895730ac5cd10b110 diff --git a/dev-python/spotipy/spotipy-2.8.0.ebuild b/dev-python/spotipy/spotipy-2.9.0.ebuild similarity index 100% rename from dev-python/spotipy/spotipy-2.8.0.ebuild rename to dev-python/spotipy/spotipy-2.9.0.ebuild From 47842e84a1496e48833f8a1c7b90f056e33e6f0f Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 17 Feb 2020 15:38:55 +0100 Subject: [PATCH 043/138] dev-python/tekore: Version bump 1.2.0 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/tekore/Manifest | 2 +- dev-python/tekore/{tekore-1.1.0.ebuild => tekore-1.2.0.ebuild} | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) rename dev-python/tekore/{tekore-1.1.0.ebuild => tekore-1.2.0.ebuild} (95%) diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest index b4bc81969d..906a44e7cd 100644 --- a/dev-python/tekore/Manifest +++ b/dev-python/tekore/Manifest @@ -1 +1 @@ -DIST tekore-1.1.0.tar.gz 138871 BLAKE2B 5580c502129ed1fd9c7a7f6a860d918a0a46f6ac51a3f6bef5f08c1e036756684d11c670e55343c27ff3dd7a40fa45b2307a9a27b594558525b7d4a41617908c SHA512 968315f3818803f076798a88f791ca10a4a118850ee730d449e2db8e5d5aca00293f8d8483a4d9edb9802b103aa6328a7514f58f4959bb0a551ed11b065ece87 +DIST tekore-1.2.0.tar.gz 140391 BLAKE2B 1ea9a70085a82385cfb8ef3013aa7acbbad00093fac2e4c5ac15d6faf4cd2a78643d975e7cff9299f2e3579788ea9fa35962ae9862113dded45c6a00a13746f9 SHA512 883f0bf9bef16961bc3bc5a0e1e6566d5e549c822ed9f056ff971810df2e54d0ef63a7d7618a6fc48213a96d62e7d2e54aae8e164f865bc0a49868b536688850 diff --git a/dev-python/tekore/tekore-1.1.0.ebuild b/dev-python/tekore/tekore-1.2.0.ebuild similarity index 95% rename from dev-python/tekore/tekore-1.1.0.ebuild rename to dev-python/tekore/tekore-1.2.0.ebuild index 456c7d2eb6..7f8ce98301 100644 --- a/dev-python/tekore/tekore-1.1.0.ebuild +++ b/dev-python/tekore/tekore-1.2.0.ebuild @@ -31,6 +31,8 @@ BDEPEND="doc? ( RDEPEND="dev-python/requests[${PYTHON_USEDEP}] dev-python/httpx[${PYTHON_USEDEP}]" +DEPEND="test? ( dev-python/pytest-qt[${PYTHON_USEDEP}] )" + DOCS="readme.rst" distutils_enable_tests pytest From c0d7f1955c2d84b73f044d672921759f400ce166 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 03:04:18 +0100 Subject: [PATCH 044/138] app-portage/showbuild: new package from the cj-overlay Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-portage/showbuild/files/showbuild-0.9.1 | 41 +++++++++++++++++++ app-portage/showbuild/metadata.xml | 15 +++++++ .../showbuild/showbuild-0.9.1-r1.ebuild | 27 ++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 app-portage/showbuild/files/showbuild-0.9.1 create mode 100644 app-portage/showbuild/metadata.xml create mode 100644 app-portage/showbuild/showbuild-0.9.1-r1.ebuild diff --git a/app-portage/showbuild/files/showbuild-0.9.1 b/app-portage/showbuild/files/showbuild-0.9.1 new file mode 100644 index 0000000000..2026dfc06c --- /dev/null +++ b/app-portage/showbuild/files/showbuild-0.9.1 @@ -0,0 +1,41 @@ +#!/bin/bash + +log="$(portageq envvar PORTAGE_TMPDIR)/portage/*/*/temp/build.log" +cmd="${SB:-tail -f}" +c=0 + +die() { echo -e "$*" >&2; exit 1; } + +if [[ $1 = -h || $1 = --help ]]; then + echo "Script to follow log of running portage builds" + echo + echo "Usage: ${0##*/} # see running builds" + echo " ${0##*/} N # follow build #N" + echo " ${0##*/} --fetch # follow emerge-fetch.log" + echo " ${0##*/} --help # show this help" + echo + echo "Use environment variable SB to override the default cmd ($cmd)" +elif [[ $1 = -f || $1 = --fetch ]]; then + log="$(portageq envvar EMERGE_LOG_DIR)" + log="${log:=$(portageq envvar EPREFIX)/var/log}/emerge-fetch.log" + [[ -f $log ]] || die "Could open '$log'" + exec $cmd $log +elif [[ $(echo $log) = "$log" ]]; then + echo "No running build found (try '${0##*/} --help')" +elif [[ ! $1 ]]; then + echo "Running builds - use '${0##*/} NUMBER' to select" + for i in $log; do + [[ $i =~ ^${log%%\**}([^/]*)/([^/]*)${log##*\*}$ ]] || continue + echo -e "$((++c))\t${BASH_REMATCH[2]}\t(${BASH_REMATCH[1]})" + done +else + [[ -z ${1//[0-9]} && $1 -gt 0 ]] || die "Argument should be a number greater 0" + for i in $log; do + [[ $i =~ ^${log%%\**}([^/]*)/([^/]*)${log##*\*}$ ]] || continue + [[ $((++c)) -eq $((10#$1)) ]] || continue + [[ -f ${i} ]] || die "Build number $1 was gone in the meanwhile" + echo -ne "\033]0;Viewing: ${BASH_REMATCH[2]}\t(${BASH_REMATCH[1]})\007" + exec $cmd $i + done + die "Build number $1 not found (there are only $((c--)) build(s) running)" +fi diff --git a/app-portage/showbuild/metadata.xml b/app-portage/showbuild/metadata.xml new file mode 100644 index 0000000000..d9c0c63654 --- /dev/null +++ b/app-portage/showbuild/metadata.xml @@ -0,0 +1,15 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + + ottxor@gentoo.org + Christoph Junghans + + junghans/cj-overlay + + diff --git a/app-portage/showbuild/showbuild-0.9.1-r1.ebuild b/app-portage/showbuild/showbuild-0.9.1-r1.ebuild new file mode 100644 index 0000000000..d3e8c454b5 --- /dev/null +++ b/app-portage/showbuild/showbuild-0.9.1-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="Script to follow log of running portage builds" +HOMEPAGE="https://github.com/junghans/cj-overlay" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~x86-linux ~x64-macos ~x86-macos" + +IUSE="" + +DEPEND="" +RDEPEND=" + sys-apps/coreutils + sys-apps/portage + app-shells/bash +" + +S="${FILESDIR}" + +src_install () { + newbin "${P}" "${PN}" +} From 87ac9e259bd2175918ffc957788838e98561827d Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 03:20:34 +0100 Subject: [PATCH 045/138] app-portage/portconf: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-portage/portconf/Manifest | 1 + app-portage/portconf/metadata.xml | 15 +++++++++ app-portage/portconf/portconf-1.6.8-r1.ebuild | 32 +++++++++++++++++++ app-portage/portconf/portconf-9999.ebuild | 32 +++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 app-portage/portconf/Manifest create mode 100644 app-portage/portconf/metadata.xml create mode 100644 app-portage/portconf/portconf-1.6.8-r1.ebuild create mode 100644 app-portage/portconf/portconf-9999.ebuild diff --git a/app-portage/portconf/Manifest b/app-portage/portconf/Manifest new file mode 100644 index 0000000000..5bd009ac66 --- /dev/null +++ b/app-portage/portconf/Manifest @@ -0,0 +1 @@ +DIST portconf-1.6.8.tar.gz 15668 BLAKE2B 92e77bdd03de904dd6f9a1292070fe356b3f2f4fd3ab082889201943ada7773e9e84650adf656e597d18fefaed2702e436dd655d209914404699d5bff1cd93eb SHA512 1c3f64198b72f0eb08771285cec2b89348eb6c71feaf0607f9029c563fc3b549b7c7ea48d4ce739ed659881682525902b6a9dd9dc649079e0ed462ffa584df4b diff --git a/app-portage/portconf/metadata.xml b/app-portage/portconf/metadata.xml new file mode 100644 index 0000000000..cac651ac3b --- /dev/null +++ b/app-portage/portconf/metadata.xml @@ -0,0 +1,15 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + + megagreener@gmail.com + megabaks + + megabaks/portconf + + diff --git a/app-portage/portconf/portconf-1.6.8-r1.ebuild b/app-portage/portconf/portconf-1.6.8-r1.ebuild new file mode 100644 index 0000000000..e96731da8e --- /dev/null +++ b/app-portage/portconf/portconf-1.6.8-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils + +DESCRIPTION="/etc/portage cleaner" +HOMEPAGE="https://github.com/megabaks/portconf" +SRC_URI="https://github.com/megabaks/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +DEPEND=" app-shells/bash:= + sys-apps/portage +" +RDEPEND="${DEPEND} + app-portage/eix + app-portage/portage-utils + sys-apps/gawk + || ( app-text/agrep dev-libs/tre ) +" + +src_install() { + dobin portconf + dodoc README.md + insinto /etc + newins portconf.conf portconf.conf +} diff --git a/app-portage/portconf/portconf-9999.ebuild b/app-portage/portconf/portconf-9999.ebuild new file mode 100644 index 0000000000..7f0ed5d11c --- /dev/null +++ b/app-portage/portconf/portconf-9999.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils git-r3 + +DESCRIPTION="/etc/portage cleaner" +HOMEPAGE="https://github.com/megabaks/portconf" +EGIT_REPO_URI="https://github.com/megabaks/${PN}.git" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND=" app-shells/bash:= + sys-apps/portage +" +RDEPEND="${DEPEND} + app-portage/eix + app-portage/portage-utils + sys-apps/gawk + || ( app-text/agrep dev-libs/tre ) +" + +src_install() { + dobin portconf + dodoc README.md + insinto /etc + newins portconf.conf portconf.conf +} From 9676f7f3c9b0fa0076fdc49f363852bde22b15ec Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 03:51:44 +0100 Subject: [PATCH 046/138] app-misc/vrms-gentoo: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-misc/vrms-gentoo/metadata.xml | 17 ++++++++++++++ app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild | 24 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 app-misc/vrms-gentoo/metadata.xml create mode 100644 app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild diff --git a/app-misc/vrms-gentoo/metadata.xml b/app-misc/vrms-gentoo/metadata.xml new file mode 100644 index 0000000000..3ccef904f3 --- /dev/null +++ b/app-misc/vrms-gentoo/metadata.xml @@ -0,0 +1,17 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + z411/vrms-gentoo + + This is a clone of VRMS (Virtual Richard M. Stallman) for Gentoo Linux. It scans the computer for non-free packages, and shows a list of them, if any. +Instead of using its own list of licenses, it scans the license_group file in the local computer and compares the locally installed packages to the @FREE group. If you want it to use only the @FSF-APPROVED group you can use the --strict flag. + + + + + diff --git a/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild b/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild new file mode 100644 index 0000000000..31090f7ccd --- /dev/null +++ b/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +SRC_URI="" +EGIT_REPO_URI="https://github.com/z411/${PN}.git" +inherit git-r3 + +DESCRIPTION="vrms clone for Gentoo Linux" +HOMEPAGE="https://github.com/z411/vrms-gentoo" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" + +DEPEND="" +RDEPEND=" + dev-lang/perl +" + +src_install() { + dobin "${PN}" + dodoc README.md +} From 2c09c9b95d06afcadc9832ff966183d756ba8527 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 03:57:55 +0100 Subject: [PATCH 047/138] app-shells/k: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-shells/k/Manifest | 1 + app-shells/k/k-0.0.5.ebuild | 29 +++++++++++++++++++++++++++++ app-shells/k/metadata.xml | 13 +++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 app-shells/k/Manifest create mode 100644 app-shells/k/k-0.0.5.ebuild create mode 100644 app-shells/k/metadata.xml diff --git a/app-shells/k/Manifest b/app-shells/k/Manifest new file mode 100644 index 0000000000..46bb86286a --- /dev/null +++ b/app-shells/k/Manifest @@ -0,0 +1 @@ +DIST k-0.0.5.tar.gz 7385 BLAKE2B 8cba27fef6538df7a65fd7fbe8234c0f284bf9db00c9ae554e5ea3982268bae7fab67626865fe0b5267dd199fea7d72f5c8548a7319eb7cc9d5aee6df4af7694 SHA512 a973abef9eb1f8fbe91528f20861eb880a2e804f08b88c0981e338a8399118f769cb7850de3d9ab8a1ec4e8a593dcb297af256696dd964dc28186f5c90cffbed diff --git a/app-shells/k/k-0.0.5.ebuild b/app-shells/k/k-0.0.5.ebuild new file mode 100644 index 0000000000..882b4c13a4 --- /dev/null +++ b/app-shells/k/k-0.0.5.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="Directory listings for zsh with git features" +HOMEPAGE="https://github.com/supercrabtree/k" +SRC_URI="https://github.com/supercrabtree/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +DEPEND="" +RDEPEND=" + >=app-shells/zsh-4.3.11 + >=dev-vcs/git-1.7.2 +" + +src_install() { + dodoc "readme.md" + dodir "/usr/share/zsh/plugins" + insinto "/usr/share/zsh/plugins/${PN}" + doins "${PN}.sh" +} + +pkg_postinst() { + einfo "To use this script, load it into your interactive ZSH session:" + einfo "\tsource /usr/share/zsh/plugins/${PN}/${PN}.zsh" +} diff --git a/app-shells/k/metadata.xml b/app-shells/k/metadata.xml new file mode 100644 index 0000000000..db8287c5ec --- /dev/null +++ b/app-shells/k/metadata.xml @@ -0,0 +1,13 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + supercrabtree/k + + k is a zsh script / plugin to make directory listings more readable, adding a bit of color and some git status information on files and directories. + + From 589c85a2c4abf9c553b732f5d4987eee6dd4b2ac Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:05:11 +0100 Subject: [PATCH 048/138] dev-vcs/git-blame-someone-else: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- .../git-blame-someone-else-9999.ebuild | 27 +++++++++++++++++++ dev-vcs/git-blame-someone-else/metadata.xml | 11 ++++++++ 2 files changed, 38 insertions(+) create mode 100644 dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild create mode 100644 dev-vcs/git-blame-someone-else/metadata.xml diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild new file mode 100644 index 0000000000..8b6d9315e5 --- /dev/null +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +case "${PV}" in +9999) + SRC_URI="" + EGIT_REPO_URI="https://github.com/jayphelps/git-blame-someone-else.git" + inherit git-r3 + ;; +esac + +DESCRIPTION="Blame someone else for your bad code." +HOMEPAGE="https://github.com/jayphelps/git-blame-someone-else" +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND="dev-vcs/git" +DEPEND="" + +src_install() { + dobin "${PN}" + dodoc README.md +} diff --git a/dev-vcs/git-blame-someone-else/metadata.xml b/dev-vcs/git-blame-someone-else/metadata.xml new file mode 100644 index 0000000000..16899e2295 --- /dev/null +++ b/dev-vcs/git-blame-someone-else/metadata.xml @@ -0,0 +1,11 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + jayphelps/git-blame-someone-else + + From 3132db2036e7924fe9c76f3221f9aef1ee5cf535 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:13:31 +0100 Subject: [PATCH 049/138] dev-vcs/git-repo-updater: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-vcs/git-repo-updater/Manifest | 1 + .../git-repo-updater-0.5.1.ebuild | 32 +++++++++++++++++++ dev-vcs/git-repo-updater/metadata.xml | 17 ++++++++++ 3 files changed, 50 insertions(+) create mode 100644 dev-vcs/git-repo-updater/Manifest create mode 100644 dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild create mode 100644 dev-vcs/git-repo-updater/metadata.xml diff --git a/dev-vcs/git-repo-updater/Manifest b/dev-vcs/git-repo-updater/Manifest new file mode 100644 index 0000000000..bee3c5acf8 --- /dev/null +++ b/dev-vcs/git-repo-updater/Manifest @@ -0,0 +1 @@ +DIST git-repo-updater-0.5.1.tar.gz 11430 BLAKE2B bb18ff809e48c2b93aabd287477436ca8140071c61d9266a048758d8d3acd207b601d2f534be22615f9de804a69c37101fbafd4fd8d82da4f9c67f09c9cdd44e SHA512 189717859050ecfb3533f0fed694c3d9674108c4d31dc71036ab04f9f0403bbdd92909995e0de81044581d278bd984ac698ea235db093ccd0c032a8a741c5918 diff --git a/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild b/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild new file mode 100644 index 0000000000..23a9d55a8b --- /dev/null +++ b/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Easily update multiple git repositories at once" +HOMEPAGE="https://github.com/earwig/git-repo-updater" +SRC_URI="https://github.com/earwig/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/colorama-0.3.9[${PYTHON_USEDEP}] + >=dev-python/git-python-2.1.8[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_test() { + pytest -vv gitup/test || die +} diff --git a/dev-vcs/git-repo-updater/metadata.xml b/dev-vcs/git-repo-updater/metadata.xml new file mode 100644 index 0000000000..dcf1899fe9 --- /dev/null +++ b/dev-vcs/git-repo-updater/metadata.xml @@ -0,0 +1,17 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + earwig/git-repo-updater + + + gitup is a tool for updating multiple git repositories at once. It is smart + enough to handle several remotes, dirty working directories, diverged local + branches, detached HEADs, and more. It was originally created to manage a + large collection of projects and deal with sporadic internet access. + + From dade0be9b01b25f784b529ace1891cd094f6311c Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:30:30 +0100 Subject: [PATCH 050/138] dev-python/glicko2: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-python/glicko2/glicko2-9999.ebuild | 37 ++++++++++++++++++++++++++ dev-python/glicko2/metadata.xml | 11 ++++++++ 2 files changed, 48 insertions(+) create mode 100644 dev-python/glicko2/glicko2-9999.ebuild create mode 100644 dev-python/glicko2/metadata.xml diff --git a/dev-python/glicko2/glicko2-9999.ebuild b/dev-python/glicko2/glicko2-9999.ebuild new file mode 100644 index 0000000000..2caf8b183d --- /dev/null +++ b/dev-python/glicko2/glicko2-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +PYTHON_COMPAT=( python3_{6,7} pypy3) + +inherit distutils-r1 + +case "${PV}" in +9999) + SRC_URI="" + EGIT_REPO_URI="https://github.com/sublee/glicko2.git" + inherit git-r3 + ;; +esac + +DESCRIPTION="An implementation of the Glicko-2 rating system for Python" +HOMEPAGE="https://github.com/sublee/glicko2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] +" + +src_prepare() { + sed -i -e "s/distribute/setuptools/g" setup.py + eapply_user +} + +python_test() { + "${PYTHON}" setup.py test || die +} diff --git a/dev-python/glicko2/metadata.xml b/dev-python/glicko2/metadata.xml new file mode 100644 index 0000000000..b1a0922425 --- /dev/null +++ b/dev-python/glicko2/metadata.xml @@ -0,0 +1,11 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + sublee/glicko2 + + From 10218220989ef455095929c5d1fdfdc74dcc5f34 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:33:05 +0100 Subject: [PATCH 051/138] dev-python/atomiclong: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-python/atomiclong/Manifest | 1 + dev-python/atomiclong/atomiclong-0.1.1.ebuild | 30 +++++++++++++++++ dev-python/atomiclong/atomiclong-9999.ebuild | 32 +++++++++++++++++++ dev-python/atomiclong/metadata.xml | 21 ++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 dev-python/atomiclong/Manifest create mode 100644 dev-python/atomiclong/atomiclong-0.1.1.ebuild create mode 100644 dev-python/atomiclong/atomiclong-9999.ebuild create mode 100644 dev-python/atomiclong/metadata.xml diff --git a/dev-python/atomiclong/Manifest b/dev-python/atomiclong/Manifest new file mode 100644 index 0000000000..bfc8fec52c --- /dev/null +++ b/dev-python/atomiclong/Manifest @@ -0,0 +1 @@ +DIST atomiclong-0.1.1.tar.gz 5057 BLAKE2B 2583674eafd2e89c91629db69e6c118d22ae169df4131e3d63a584ed9857df47bb85c0764cd60b7df35eb8db5b4aedfe043bfcfb960909e2abcb97a27ba7567d SHA512 c275cff805df2275b6d9cfabed072c296019f1e7f6e2d718e0cec60ca40a99c6e8043a17a82f752096a1764cbc63e5681739da921ce1c89dfa8e5a6349e1772a diff --git a/dev-python/atomiclong/atomiclong-0.1.1.ebuild b/dev-python/atomiclong/atomiclong-0.1.1.ebuild new file mode 100644 index 0000000000..7b15a08711 --- /dev/null +++ b/dev-python/atomiclong/atomiclong-0.1.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +SRC_URI="https://files.pythonhosted.org/packages/86/8c/70aea8215c6ab990f2d91e7ec171787a41b7fbc83df32a067ba5d7f3324f/${P}.tar.gz" + +DESCRIPTION="An AtomicLong type using CFFI." +HOMEPAGE="https://github.com/dreid/atomiclong" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_test() { + pytest -vv || die +} diff --git a/dev-python/atomiclong/atomiclong-9999.ebuild b/dev-python/atomiclong/atomiclong-9999.ebuild new file mode 100644 index 0000000000..788043a928 --- /dev/null +++ b/dev-python/atomiclong/atomiclong-9999.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +SRC_URI="" +EGIT_REPO_URI="https://github.com/dreid/${PN}.git" +inherit git-r3 + +DESCRIPTION="An AtomicLong type using CFFI." +HOMEPAGE="https://github.com/dreid/atomiclong" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_test() { + pytest -vv || die +} diff --git a/dev-python/atomiclong/metadata.xml b/dev-python/atomiclong/metadata.xml new file mode 100644 index 0000000000..2607e3e744 --- /dev/null +++ b/dev-python/atomiclong/metadata.xml @@ -0,0 +1,21 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + proxy-maint@gentoo.org + Proxy Maintainers + + + dreid/atomiclong + + +Sometimes you need to increment some numbers ... atomically ... in python. +AtomicLong was born out of the need for fast thread-safe counters in python. +It uses CFFI to bind GCC's Atomic Builtins. +Its value is a C long which can be incremented, decremented, and set atomically. It is inspired by Java's java.util.concurrent.atomic.AtomicLong. + + From 5c2b0563b86b2624b5a4aef7f96b9d7672e3fd29 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:40:39 +0100 Subject: [PATCH 052/138] sci-libs/ann: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sci-libs/ann/Manifest | 2 + sci-libs/ann/ann-1.1.2_p7.ebuild | 68 ++++++++++++++++++++++++++++++++ sci-libs/ann/metadata.xml | 16 ++++++++ 3 files changed, 86 insertions(+) create mode 100644 sci-libs/ann/Manifest create mode 100644 sci-libs/ann/ann-1.1.2_p7.ebuild create mode 100644 sci-libs/ann/metadata.xml diff --git a/sci-libs/ann/Manifest b/sci-libs/ann/Manifest new file mode 100644 index 0000000000..dc57b228dd --- /dev/null +++ b/sci-libs/ann/Manifest @@ -0,0 +1,2 @@ +DIST ann_1.1.2+doc-7.debian.tar.xz 172056 BLAKE2B ca20ef1c53c02b27d8a6b1ee416267ddd719df4e9b3fc7215624dd3253a9a3a7a2e548adb58546566487927e7a5f926f6b66ea9df3d5d35a4341d691750f3d4f SHA512 d575df042676c7a074339eeeaf5fa4c4c7a1739af16c3f05c4c40e2c51df1d05d7c271bcb811b7934707f3f8ab63ac13ea71517a373e775083bafb4f591615d3 +DIST ann_1.1.2+doc.orig.tar.gz 693957 BLAKE2B 8cb9316329b2de8f0870701114f403d6ee20c842c0861f2341f41dc3e111f818b7929b35a099a723d4ec8baaed64cde19da46043a7a2909a870376615e2c322f SHA512 fb004a014add109d0b0949443c4c599795363d20ee65386421f898f5276b5df08714a3cd8d371d5a03417e7c3f7f3451335f90df2ca274ce95c658b958a253ae diff --git a/sci-libs/ann/ann-1.1.2_p7.ebuild b/sci-libs/ann/ann-1.1.2_p7.ebuild new file mode 100644 index 0000000000..1716b3b1bf --- /dev/null +++ b/sci-libs/ann/ann-1.1.2_p7.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit autotools eutils flag-o-matic + +MY_PV="${PV//_p*/}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="A Library for Approximate Nearest Neighbor Searching" +HOMEPAGE="https://www.cs.umd.edu/~mount/ANN/" +SRC_URI="http://cdn-fastly.deb.debian.org/debian/pool/main/a/${PN}/${PN}_${MY_PV}+doc.orig.tar.gz +http://cdn-fastly.deb.debian.org/debian/pool/main/a/${PN}/${PN}_${MY_PV}+doc-${PV##*p}.debian.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug test" +RESTRICT="!test? ( test )" +RDEPEND="" +DEPEND="" +BDEPEND="dev-util/quilt" + +S="${WORKDIR}/${MY_P}+doc" + +src_prepare() { + export QUILT_PATCHES="${WORKDIR}/debian/patches" + export QUILT_SERIES="${QUILT_PATCHES}/series" + quilt push -a || die + eapply_user + eautoreconf +} + +src_configure() { + use debug && append-cxxflags -DANN_PERF + econf --disable-static +} + +src_test() { + cd test + ./ann_test < test1.in > /dev/null || die + ./ann_test < test2.in > /dev/null || die +} + +src_install() { + emake DESTDIR="${D}" install + insinto /usr/include/ANN + doins -r include/ANN/. + + dodoc doc/ANNmanual.pdf + dodoc doc/Copyright.txt + dodoc doc/ReadMe.txt + + insinto /usr/share/ANN/sample + doins sample/query.pts + doins sample/sample.save + doins sample/data.pts + + cd "${WORKDIR}/debian" + pod2man --center="User Commands" ann2fig.pod ann2fig.1 + pod2man --center="User Commands" ann_sample.pod ann_sample.1 + pod2man --center="User Commands" ann_test.pod ann_test.1 + doman ann_sample.1 + doman ann_test.1 + doman ann2fig.1 + find "${D}" -name '*.la' -delete || die +} diff --git a/sci-libs/ann/metadata.xml b/sci-libs/ann/metadata.xml new file mode 100644 index 0000000000..2931ad87dc --- /dev/null +++ b/sci-libs/ann/metadata.xml @@ -0,0 +1,16 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + + mount@cs.umd.edu + Dave Mount + + + ANN is a library written in C++, which supports data structures and algorithms for both exact and approximate nearest neighbor searching in arbitrarily high dimensions. ANN assumes that distances are measured using any class of distance functions called Minkowski metrics. These include the well known Euclidean distance, Manhattan distance, and max distance. ANN performs quite efficiently for point sets ranging in size from thousands to hundreds of thousands, and in dimensions as high as 20. + + From 51c357668de88f2966d7e80ae554f5e12c5a9dd0 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:44:18 +0100 Subject: [PATCH 053/138] sys-cluster/KVTree: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/KVTree/KVTree-1.0.2.ebuild | 68 ++++++++++++++++++++++++++ sys-cluster/KVTree/KVTree-9999.ebuild | 68 ++++++++++++++++++++++++++ sys-cluster/KVTree/Manifest | 1 + sys-cluster/KVTree/metadata.xml | 18 +++++++ 4 files changed, 155 insertions(+) create mode 100644 sys-cluster/KVTree/KVTree-1.0.2.ebuild create mode 100644 sys-cluster/KVTree/KVTree-9999.ebuild create mode 100644 sys-cluster/KVTree/Manifest create mode 100644 sys-cluster/KVTree/metadata.xml diff --git a/sys-cluster/KVTree/KVTree-1.0.2.ebuild b/sys-cluster/KVTree/KVTree-1.0.2.ebuild new file mode 100644 index 0000000000..0be4f18ec2 --- /dev/null +++ b/sys-cluster/KVTree/KVTree-1.0.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils + +case "${PV}" in +9999) + SRC_URI="" + EGIT_REPO_URI="https://github.com/ECP-VeloC/${PN}.git" + inherit git-r3 + KEYWORDS="" + ;; +*) + SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + ;; +esac + +DESCRIPTION="KVTree provides a fully extensible C data structure modeled after Perl hashes." +HOMEPAGE="https://github.com/ECP-VeloC/KVTree" + +LICENSE="MIT" +SLOT="0" +IUSE="fcntl +flock mpi test" + +REQUIRED_USE=" + ?? ( fcntl flock ) +" +RESTRICT="test? ( userpriv ) !test? ( test )" + +RDEPEND=" + mpi? ( virtual/mpi ) + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/cmake-2.8 + app-admin/chrpath +" + +src_prepare() { + #do not build static library + sed -i '/kvtree-static/d' src/CMakeLists.txt || die + #do not install README.md automatically + sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die + default + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DMPI="$(usex mpi ON OFF)" + -DKVTREE_FILE_LOCK="$(usex flock FLOCK $(usex fcntl FCNTL NONE))" + ) + + cmake-utils_src_configure +} + +src_install() { + chrpath -d "${BUILD_DIR}/src/kvtree_print_file" || die + cmake-utils_src_install + chrpath -d "${ED}/usr/$(get_libdir)/libkvtree.so" || die + dodoc doc/rst/*.rst + docinto "${DOCSDIR}/users" + dodoc -r doc/rst/users/. +} diff --git a/sys-cluster/KVTree/KVTree-9999.ebuild b/sys-cluster/KVTree/KVTree-9999.ebuild new file mode 100644 index 0000000000..0be4f18ec2 --- /dev/null +++ b/sys-cluster/KVTree/KVTree-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils + +case "${PV}" in +9999) + SRC_URI="" + EGIT_REPO_URI="https://github.com/ECP-VeloC/${PN}.git" + inherit git-r3 + KEYWORDS="" + ;; +*) + SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + ;; +esac + +DESCRIPTION="KVTree provides a fully extensible C data structure modeled after Perl hashes." +HOMEPAGE="https://github.com/ECP-VeloC/KVTree" + +LICENSE="MIT" +SLOT="0" +IUSE="fcntl +flock mpi test" + +REQUIRED_USE=" + ?? ( fcntl flock ) +" +RESTRICT="test? ( userpriv ) !test? ( test )" + +RDEPEND=" + mpi? ( virtual/mpi ) + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/cmake-2.8 + app-admin/chrpath +" + +src_prepare() { + #do not build static library + sed -i '/kvtree-static/d' src/CMakeLists.txt || die + #do not install README.md automatically + sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die + default + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DMPI="$(usex mpi ON OFF)" + -DKVTREE_FILE_LOCK="$(usex flock FLOCK $(usex fcntl FCNTL NONE))" + ) + + cmake-utils_src_configure +} + +src_install() { + chrpath -d "${BUILD_DIR}/src/kvtree_print_file" || die + cmake-utils_src_install + chrpath -d "${ED}/usr/$(get_libdir)/libkvtree.so" || die + dodoc doc/rst/*.rst + docinto "${DOCSDIR}/users" + dodoc -r doc/rst/users/. +} diff --git a/sys-cluster/KVTree/Manifest b/sys-cluster/KVTree/Manifest new file mode 100644 index 0000000000..0c536388b4 --- /dev/null +++ b/sys-cluster/KVTree/Manifest @@ -0,0 +1 @@ +DIST KVTree-1.0.2.tar.gz 46868 BLAKE2B 6c443eba3a861f1ecb0a04c0fa63d8fec32ed856de2d6324e011fc6a20ffb9d5eb85354bb0f6faa5e63462ced46e6a6b1af198b53219f96a865ec5eb26c9e832 SHA512 d3586ae8e5084ea4ce3293f1432127c0466e09ab32ba044df1ea793a13e424b2453dac71e38c7cea928601fcce1a16f2f1474e2785c523110ef091d7296a869f diff --git a/sys-cluster/KVTree/metadata.xml b/sys-cluster/KVTree/metadata.xml new file mode 100644 index 0000000000..f4359c5da9 --- /dev/null +++ b/sys-cluster/KVTree/metadata.xml @@ -0,0 +1,18 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ECP-VeloC/KVTree + + + Set the type of file locking to fcntl. + Set the type of file locking to flock. + + Each KVTree object contains a list of key/value pairs. Each key is a string, each value is another kvtree object. This is a nested data structures, similar to a python dict or perl hash. The library provides functions to serialize a kvtree object to / from a file. It also optionally provides MPI send / recv functions to transfer an object from one process to another. +In addition to getter and setter utilities, this library provides serialization (for persisting an KVTree to a file) and optional MPI functionality. + + From 05cae207afb2ebe27e1a70d679da521529872efc Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:46:35 +0100 Subject: [PATCH 054/138] sys-cluster/AXL: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/AXL/AXL-0.3.0.ebuild | 47 ++++++++++++++++++++++++++++++++ sys-cluster/AXL/Manifest | 1 + sys-cluster/AXL/metadata.xml | 13 +++++++++ 3 files changed, 61 insertions(+) create mode 100644 sys-cluster/AXL/AXL-0.3.0.ebuild create mode 100644 sys-cluster/AXL/Manifest create mode 100644 sys-cluster/AXL/metadata.xml diff --git a/sys-cluster/AXL/AXL-0.3.0.ebuild b/sys-cluster/AXL/AXL-0.3.0.ebuild new file mode 100644 index 0000000000..d7bcca9435 --- /dev/null +++ b/sys-cluster/AXL/AXL-0.3.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils + +DESCRIPTION="AXL provides a common C interface to transfer files in an HPC storage hierarchy." +HOMEPAGE="https://github.com/ECP-VeloC/AXL" +SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + sys-libs/zlib + sys-cluster/KVTree +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/cmake-2.8 +" + +src_prepare() { + #do not build static library + sed -i '/axl-static/d' src/CMakeLists.txt || die + #do not auto install README + sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die + default + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + #other options available: CRAY_DW INTEL_CPPR IBM_BBAPI + -DAXL_ASYNC_API=NONE + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc -r doc/. +} diff --git a/sys-cluster/AXL/Manifest b/sys-cluster/AXL/Manifest new file mode 100644 index 0000000000..785193a0a1 --- /dev/null +++ b/sys-cluster/AXL/Manifest @@ -0,0 +1 @@ +DIST AXL-0.3.0.tar.gz 36436 BLAKE2B c2d4b42426f7ff879d4329879f0f50d79c163925ce6010c3a38fdafd911dc0378be658d0d25154814ffc7442dca2bd036a547800827171383eb855df9a4010ea SHA512 7cacd3614be94b0344cdd5a5e489c9d1b17cef777749e1c3c4eba642f853d767de1c9eced1fa44f931abeb70c89da2468f6a8fa857c213766bbdac6f3f83ce21 diff --git a/sys-cluster/AXL/metadata.xml b/sys-cluster/AXL/metadata.xml new file mode 100644 index 0000000000..2d5095ff15 --- /dev/null +++ b/sys-cluster/AXL/metadata.xml @@ -0,0 +1,13 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ECP-VeloC/AXL + + AXL defines a common interface for transferring files between layers in a storage hierarchy. It abstracts vendor-specific APIs and provides synchronous and asynchronous methods using POSIX. One creates a transfer object, defining the transfer type, and then one adds files to the transfer. Once all files have been added, one initiates the transfer and can then later test or wait for its completion. The library optionally records the state of ongoing transfers, so that they can be identified or terminated even if the process that initiated the transfer has been restarted. + + From a01ebd3c346926536bfa0243607a19607da8475e Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:48:59 +0100 Subject: [PATCH 055/138] sys-cluster/shuffile: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/shuffile/Manifest | 1 + sys-cluster/shuffile/metadata.xml | 13 ++++++++ sys-cluster/shuffile/shuffile-0.0.3.ebuild | 39 ++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 sys-cluster/shuffile/Manifest create mode 100644 sys-cluster/shuffile/metadata.xml create mode 100644 sys-cluster/shuffile/shuffile-0.0.3.ebuild diff --git a/sys-cluster/shuffile/Manifest b/sys-cluster/shuffile/Manifest new file mode 100644 index 0000000000..999e3b0bb3 --- /dev/null +++ b/sys-cluster/shuffile/Manifest @@ -0,0 +1 @@ +DIST shuffile-0.0.3.tar.gz 20069 BLAKE2B cb40b12334e7ec2f70140d6d2cb11f77cdb72d381dc5ecf4b335c4324f0e6c777113546b91edf290767c6daa5d0e7641b4849cad42230688a799e1a4359f4dfb SHA512 e5ca8b7ab1542fda0c84d92bba527911846cdd95cbe86d4aa0075abacffc369485ad7187bc7e0ee2edcd69ccbc4ef2abcd0de75be497c0cdc3d6177563067875 diff --git a/sys-cluster/shuffile/metadata.xml b/sys-cluster/shuffile/metadata.xml new file mode 100644 index 0000000000..11f798ae76 --- /dev/null +++ b/sys-cluster/shuffile/metadata.xml @@ -0,0 +1,13 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ECP-VeloC/shuffile + + This module lets one associate a set of files with a process name. Currently, the name is implied to be the rank within MPI_COMM_WORLD. In the event that a set of distributed processes are moved, for example when restarting an MPI job, functions will migrate files from their original locations to the new locations where the processes are running. + + diff --git a/sys-cluster/shuffile/shuffile-0.0.3.ebuild b/sys-cluster/shuffile/shuffile-0.0.3.ebuild new file mode 100644 index 0000000000..5054b99ccf --- /dev/null +++ b/sys-cluster/shuffile/shuffile-0.0.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils + +DESCRIPTION="SHUFFILE Shuffle files between processes" +HOMEPAGE="https://github.com/ECP-VeloC/shuffile" +SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="mpi test" +RESTRICT="!test? ( test )" + +RDEPEND=" + mpi? ( virtual/mpi ) + sys-libs/zlib + >=sys-cluster/KVTree-1.0.2 +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/cmake-2.8 +" +src_prepare() { + #do not build static library + sed -i '/shuffile-static/d' src/CMakeLists.txt || die + default + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DMPI="$(usex mpi "" OFF)" + ) + cmake-utils_src_configure +} From 1c174d1674167dc0bef763956d11268835b85859 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:50:14 +0100 Subject: [PATCH 056/138] sys-cluster/rankstr: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/rankstr/Manifest | 1 + sys-cluster/rankstr/metadata.xml | 19 ++++++++++++ sys-cluster/rankstr/rankstr-0.0.2.ebuild | 38 ++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 sys-cluster/rankstr/Manifest create mode 100644 sys-cluster/rankstr/metadata.xml create mode 100644 sys-cluster/rankstr/rankstr-0.0.2.ebuild diff --git a/sys-cluster/rankstr/Manifest b/sys-cluster/rankstr/Manifest new file mode 100644 index 0000000000..49b1c2ed12 --- /dev/null +++ b/sys-cluster/rankstr/Manifest @@ -0,0 +1 @@ +DIST rankstr-0.0.2.tar.gz 10290 BLAKE2B 4efa609804bffd0fe9215e9b06112615ed85657af88bd15e1a51a5db7ccc8701bf162ea88096df69a42ecd062e3099e5c18986d72fd8c5cc14b89fd019b3322d SHA512 fd4814ec797566004c3141b46b4ca410e217857e2bee3dc3b0f350c2c10fcaff62e3608fb0233894a0960aade660f55a536ea7cc41c9aed3a355b3a05f432a0f diff --git a/sys-cluster/rankstr/metadata.xml b/sys-cluster/rankstr/metadata.xml new file mode 100644 index 0000000000..d2422a7957 --- /dev/null +++ b/sys-cluster/rankstr/metadata.xml @@ -0,0 +1,19 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ECP-VeloC/rankstr + + The rankstr (rank string) library provides functions that identify unique strings across an MPI communicator. + +A key use case is to split a communicator into subcommunicators such that all processes in a resulting subcommunicator consist of those processes that provided an identical input string. rankstr_mpi_comm_split is a function like MPI_Comm_split, but it takes a variable-length string as the color argument insead of an integer value. + +The rankstr_mpi function does not output a communicator, but instead returns a unique integer for each unique string. + +For scalability, the implementation uses a distributed, bitonic sort via point-to-point messages over the input communicator to compare string values. The caller must provide two distinct tag values that are safe for the function to use for its point-to-point messages. + + diff --git a/sys-cluster/rankstr/rankstr-0.0.2.ebuild b/sys-cluster/rankstr/rankstr-0.0.2.ebuild new file mode 100644 index 0000000000..ffe57a9bb3 --- /dev/null +++ b/sys-cluster/rankstr/rankstr-0.0.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils + +DESCRIPTION="Split an MPI communicator into subcomms based on string values" +HOMEPAGE="https://github.com/ECP-VeloC/rankstr" +SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="mpi test" +RESTRICT="!test? ( test )" + +RDEPEND=" + mpi? ( virtual/mpi ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/cmake-2.8 +" + +src_prepare() { + #do not build static library + sed -i '/rankstr-static/d' src/CMakeLists.txt || die + default + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DMPI="$(usex mpi "" OFF)" + ) + cmake-utils_src_configure +} From cfe22fac9212b925f4828568e89ecd21f980ec99 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:51:51 +0100 Subject: [PATCH 057/138] sys-auth/mrsh: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-auth/mrsh/Manifest | 1 + .../mrsh/files/union-wait-deprecated.diff | 20 +++++++++++ sys-auth/mrsh/metadata.xml | 18 ++++++++++ sys-auth/mrsh/mrsh-2.12.ebuild | 33 +++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 sys-auth/mrsh/Manifest create mode 100644 sys-auth/mrsh/files/union-wait-deprecated.diff create mode 100644 sys-auth/mrsh/metadata.xml create mode 100644 sys-auth/mrsh/mrsh-2.12.ebuild diff --git a/sys-auth/mrsh/Manifest b/sys-auth/mrsh/Manifest new file mode 100644 index 0000000000..79e107eb32 --- /dev/null +++ b/sys-auth/mrsh/Manifest @@ -0,0 +1 @@ +DIST mrsh-2.12.tar.gz 458757 BLAKE2B f7a8a25507eca247814e0cc83730403316d59b1f221fba6bc1abe2f9e86cc083c44dfd886499e60c2ccd13e730204c9d1f0466ad43150bf488950965ce452a63 SHA512 1417197f5c26305287c5f8622800f8f02c5ea0abe1e0c65f9911cda5a3ba466ad75dd8b5120a9c004fbef4086f6627ee805f62801bd0c075e99c8f1298d09135 diff --git a/sys-auth/mrsh/files/union-wait-deprecated.diff b/sys-auth/mrsh/files/union-wait-deprecated.diff new file mode 100644 index 0000000000..bcb6376c1f --- /dev/null +++ b/sys-auth/mrsh/files/union-wait-deprecated.diff @@ -0,0 +1,20 @@ +--- a/mrlogin/mrlogin.c 2016-04-29 19:22:08.000000000 +0200 ++++ b/mrlogin/mrlogin.c 2019-10-29 02:25:39.095172149 +0100 +@@ -476,7 +476,7 @@ + void + catch_child(int ignore) + { +- union wait status; ++ int status; + int pid; + + (void)ignore; +@@ -487,7 +487,7 @@ + return; + /* if the child (reader) dies, just quit */ + if (pid < 0 || (pid == childpid && !WIFSTOPPED(status))) +- done((int)(status.w_termsig | status.w_retcode)); ++ done((int)(WTERMSIG(status) | WEXITSTATUS(status))); + } + /* NOTREACHED */ + } diff --git a/sys-auth/mrsh/metadata.xml b/sys-auth/mrsh/metadata.xml new file mode 100644 index 0000000000..68a30cc72a --- /dev/null +++ b/sys-auth/mrsh/metadata.xml @@ -0,0 +1,18 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + chaos/mrsh + +Mrsh is a set of remote shell programs that use munge authentication +rather than reserved ports for security. The code for mrsh is based +on the source code for rsh, rshd, rlogin, rlogind, and rcp. + + build with pam support + build with shadow file support + + diff --git a/sys-auth/mrsh/mrsh-2.12.ebuild b/sys-auth/mrsh/mrsh-2.12.ebuild new file mode 100644 index 0000000000..6192a2b048 --- /dev/null +++ b/sys-auth/mrsh/mrsh-2.12.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit systemd + +DESCRIPTION="Mrsh is a set of remote shell programs that use munge authentication." +HOMEPAGE="https://github.com/chaos/mrsh" +SRC_URI="https://github.com/chaos/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="pam shadow" +DEPEND=" + sys-auth/munge + + pam? ( sys-libs/pam ) + shadow? ( virtual/shadow ) +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/union-wait-deprecated.diff" ) + +src_configure() { + local myconf=( + --disable-static + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" + $(use_with pam) + $(use_with shadow) + ) + econf "${myconf[@]}" +} From efa0764dc6be7bb832796d89c424a53fd350cea5 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:57:05 +0100 Subject: [PATCH 058/138] sys-cluster/redset: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/redset/Manifest | 1 + sys-cluster/redset/metadata.xml | 13 +++++++ sys-cluster/redset/redset-0.0.4.ebuild | 47 ++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 sys-cluster/redset/Manifest create mode 100644 sys-cluster/redset/metadata.xml create mode 100644 sys-cluster/redset/redset-0.0.4.ebuild diff --git a/sys-cluster/redset/Manifest b/sys-cluster/redset/Manifest new file mode 100644 index 0000000000..b4c40f15d4 --- /dev/null +++ b/sys-cluster/redset/Manifest @@ -0,0 +1 @@ +DIST redset-0.0.4.tar.gz 189159 BLAKE2B ba38c705698564246b6e4e8f4f0be44766f52a205f437e38cbf7547832a09110848dd62c0bfb9bfabf2bb59910a2d7c1fc0d9734b90cbd444eb0a99d5ab0f932 SHA512 64e97e014aa199f1073405d9e552426d28b4af4d669c5ccb4bd1fe6ba982f4790bb3f61be9eeff192477ede9d783ce8ea4c68abe2be8b689b0b3879caf705917 diff --git a/sys-cluster/redset/metadata.xml b/sys-cluster/redset/metadata.xml new file mode 100644 index 0000000000..5c2fc9dabf --- /dev/null +++ b/sys-cluster/redset/metadata.xml @@ -0,0 +1,13 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ECP-VeloC/redset + + This module lets one create one or more redundancy descriptors, which then may be applied to a set of files distributed across a group of processes. + + diff --git a/sys-cluster/redset/redset-0.0.4.ebuild b/sys-cluster/redset/redset-0.0.4.ebuild new file mode 100644 index 0000000000..e7c6928840 --- /dev/null +++ b/sys-cluster/redset/redset-0.0.4.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils + +DESCRIPTION="Low-level distributed erasure coding library to protect datasets of MPI applications" +HOMEPAGE="https://github.com/ECP-VeloC/redset" +SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="mpi test" +RESTRICT="!test? ( test )" + +RDEPEND=" + mpi? ( virtual/mpi ) + sys-cluster/KVTree + sys-cluster/rankstr + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/cmake-2.8 +" + +src_prepare() { + #do not build static library + sed -i '/redset-static/d' src/CMakeLists.txt + default + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DMPI="$(usex mpi "" OFF)" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc README.md + dodoc -r doc/rst/. +} From f1d35f455599cdc676c2402008066658a7ae216e Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 23 Feb 2020 04:59:29 +0100 Subject: [PATCH 059/138] sys-cluster/er: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/er/Manifest | 1 + sys-cluster/er/er-0.0.3.ebuild | 42 ++++++++++++++++++++++++++++++++++ sys-cluster/er/metadata.xml | 20 ++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 sys-cluster/er/Manifest create mode 100644 sys-cluster/er/er-0.0.3.ebuild create mode 100644 sys-cluster/er/metadata.xml diff --git a/sys-cluster/er/Manifest b/sys-cluster/er/Manifest new file mode 100644 index 0000000000..6b673825d1 --- /dev/null +++ b/sys-cluster/er/Manifest @@ -0,0 +1 @@ +DIST er-0.0.3.tar.gz 13130 BLAKE2B 1906a0627a0d17f776ba8612ec3c5feb60d41451d026add4dca0164b57570ba7bd81f1ecf303ab0f0c17cd8a26f4588afbb4748ccc66d3b82e922d5b46a3d147 SHA512 0edb8fd96ef606003e0623d6742993e3bb663fd0a3761ed4b68fc14e24c1ab586b200b0f01530570e40a7733bca3c0ecadbac0fb515594b79d9c123fe7c417e8 diff --git a/sys-cluster/er/er-0.0.3.ebuild b/sys-cluster/er/er-0.0.3.ebuild new file mode 100644 index 0000000000..715cc2b150 --- /dev/null +++ b/sys-cluster/er/er-0.0.3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils + +DESCRIPTION="High-level distributed erasure coding library combining functionality of shuffile and redset" +HOMEPAGE="https://github.com/ECP-VeloC/er" +SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="mpi test" +RESTRICT="!test? ( test )" + +RDEPEND=" + mpi? ( virtual/mpi ) + sys-cluster/KVTree + sys-cluster/redset + sys-cluster/shuffile + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/cmake-2.8 +" + +src_prepare() { + #do not build static library + sed -i '/er-static/d' src/CMakeLists.txt || die + default + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DMPI="$(usex mpi "" OFF)" + ) + cmake-utils_src_configure +} diff --git a/sys-cluster/er/metadata.xml b/sys-cluster/er/metadata.xml new file mode 100644 index 0000000000..a14f03805c --- /dev/null +++ b/sys-cluster/er/metadata.xml @@ -0,0 +1,20 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ECP-VeloC/er + + Encode/Rebuild (ER) +This module combines the funcitonality of shuffile and redset, which lets both migrate and rebuild files within an MPI job. It is useful for moving and rebuilding data files on distributed storage, e.g., node-local storage, particularly when MPI ranks may be running on different compute nodes than when they originally created their files. + +To encode, one defines a redundancy scheme and then applies the redundancy scheme to a list of files also providing a name for the encoded set. To rebuild, one specifies the name of the encoded set. Additionally, there is a function to remove the encoding information, which is needed when removing a dataset. + +Currently, er assumes the group of processes participating is the same as MPI_COMM_WORLD. + +Usage is documented in src/er.h + + From 03fda63eacc4df3eb7217a3e8d68dbb2c6754af7 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Sun, 23 Feb 2020 14:51:23 +0800 Subject: [PATCH 060/138] sci-electronics/verilator: new package 4.026 The fast free Verilog/SystemVerilog simulator Closes: https://bugs.gentoo.org/354957 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Huang Rui --- sci-electronics/verilator/Manifest | 1 + sci-electronics/verilator/metadata.xml | 19 +++++++++ .../verilator/verilator-4.026.ebuild | 39 +++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 sci-electronics/verilator/Manifest create mode 100644 sci-electronics/verilator/metadata.xml create mode 100644 sci-electronics/verilator/verilator-4.026.ebuild diff --git a/sci-electronics/verilator/Manifest b/sci-electronics/verilator/Manifest new file mode 100644 index 0000000000..a3d4eefb85 --- /dev/null +++ b/sci-electronics/verilator/Manifest @@ -0,0 +1 @@ +DIST verilator-4.026.tar.gz 2404465 BLAKE2B a861c16b706a26bb0d9f879a6ac129eca29cfd36c47d044ba8297ce2f4bfbc3d6a8f68f652a0b7db0542373416e975b2266bbf1ea11b0f949c12c1c5f6706b05 SHA512 cc91c44da39b5b0256adf1d43acad22d07bcdc56636336673916a7b01d39c5fc06603b87a9d9e214497a793d1e9ff198593f915f676c99a32f0853f4b74d0527 diff --git a/sci-electronics/verilator/metadata.xml b/sci-electronics/verilator/metadata.xml new file mode 100644 index 0000000000..94cd7b4e79 --- /dev/null +++ b/sci-electronics/verilator/metadata.xml @@ -0,0 +1,19 @@ + + + + + vowstar@gmail.com + Huang Rui + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Verilator, the fastest free Verilog HDL simulator. + Accepts synthesizable Verilog or SystemVerilog + Performs lint code-quality checks + Compiles into multithreaded C++, SystemC, or (soon) C++-under-Python + Creates XML to front-end your own tools + + diff --git a/sci-electronics/verilator/verilator-4.026.ebuild b/sci-electronics/verilator/verilator-4.026.ebuild new file mode 100644 index 0000000000..80f4993cfb --- /dev/null +++ b/sci-electronics/verilator/verilator-4.026.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="The fast free Verilog/SystemVerilog simulator" +HOMEPAGE="https://www.veripool.org/wiki/verilator" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://git.veripool.org/git/${PN}" +else + SRC_URI="http://www.veripool.org/ftp/${P}.tgz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" +fi + +LICENSE="|| ( Artistic-2 LGPL-3 )" +SLOT="0" + +DEPEND=" + dev-lang/perl + sys-libs/zlib +" + +RDEPEND=" + ${DEPEND} +" + +BDEPEND=" + sys-devel/bison + sys-devel/flex +" + +src_prepare() { + default + eautoconf --force +} From ff0deccebd4c7163fe50ac3a8642445a2f3189a3 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Sun, 23 Feb 2020 14:54:44 +0800 Subject: [PATCH 061/138] sci-electronics/verilator: add 9999 ebuild Add verilator-9999.ebuild to get the latest software Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Huang Rui --- .../verilator/verilator-9999.ebuild | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 sci-electronics/verilator/verilator-9999.ebuild diff --git a/sci-electronics/verilator/verilator-9999.ebuild b/sci-electronics/verilator/verilator-9999.ebuild new file mode 100644 index 0000000000..80f4993cfb --- /dev/null +++ b/sci-electronics/verilator/verilator-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="The fast free Verilog/SystemVerilog simulator" +HOMEPAGE="https://www.veripool.org/wiki/verilator" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://git.veripool.org/git/${PN}" +else + SRC_URI="http://www.veripool.org/ftp/${P}.tgz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" +fi + +LICENSE="|| ( Artistic-2 LGPL-3 )" +SLOT="0" + +DEPEND=" + dev-lang/perl + sys-libs/zlib +" + +RDEPEND=" + ${DEPEND} +" + +BDEPEND=" + sys-devel/bison + sys-devel/flex +" + +src_prepare() { + default + eautoconf --force +} From 6edd92e0a2162c4d7e6913260fc393958ec02aa2 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Sun, 23 Feb 2020 15:15:18 +0800 Subject: [PATCH 062/138] sci-electronics/kactus2: new package for 3.8.0 Kactus2 is a toolset for designing embedded products, especially FPGA-based MP-SoCs. The aim is easier IP reusability and integration for both hardware and software. The tool is based on IEEE 1685-2014 "IP-XACT" standard. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Huang Rui --- sci-electronics/kactus2/Manifest | 1 + .../kactus2/files/kactus2-3.8.0-install.patch | 30 ++++++++++ sci-electronics/kactus2/kactus2-3.8.0.ebuild | 59 +++++++++++++++++++ sci-electronics/kactus2/metadata.xml | 20 +++++++ 4 files changed, 110 insertions(+) create mode 100644 sci-electronics/kactus2/Manifest create mode 100644 sci-electronics/kactus2/files/kactus2-3.8.0-install.patch create mode 100644 sci-electronics/kactus2/kactus2-3.8.0.ebuild create mode 100644 sci-electronics/kactus2/metadata.xml diff --git a/sci-electronics/kactus2/Manifest b/sci-electronics/kactus2/Manifest new file mode 100644 index 0000000000..12bdbeb653 --- /dev/null +++ b/sci-electronics/kactus2/Manifest @@ -0,0 +1 @@ +DIST kactus2-3.8.0.tar.gz 19410435 BLAKE2B 2117a7ea5118c59f5b96a449348ba2425646038eb756c5423301d3deba15765005aafae3241c943b7adfaa728edeac3f0963b1cad7c23892b68bbd6ed7de78c0 SHA512 426021465f296c63ff70738b7a56547ac6e5b46ed06b165da2bbcd7239ff9e65c099721ebfb5e7f90b0afa9f5621d7825ff7e216bcc4786f0431f1e98d95eee8 diff --git a/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch b/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch new file mode 100644 index 0000000000..0cce3b501c --- /dev/null +++ b/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch @@ -0,0 +1,30 @@ +--- a/.qmake.conf ++++ b/.qmake.conf +@@ -2,9 +2,14 @@ + LOCAL_INSTALL_DIR="" + + isEmpty(LOCAL_INSTALL_DIR) { ++ # Get the bitness of the system. ++ UNAME = $$system(uname -m) ++ + # Select paths for binaries in accordance with convention. + bin_path = /usr/bin +- lib_path = /usr/lib ++ # Lib path depend on the bitness of the system. ++ equals(UNAME, x86_64): lib_path = /usr/lib64 ++ !equals(UNAME, x86_64): lib_path = /usr/lib + plugin_path = /usr/share/kactus2/plugins + + # Files and destination path for possible settings file upgrades. +@@ -23,9 +28,8 @@ isEmpty(LOCAL_INSTALL_DIR) { + unix:config.path = /etc/xdg/TUT + + # Copying stuff, exact locations seem to depend on the bitness of the system. +- UNAME = $$system(uname -m) +- equals(UNAME, x86_64): unix:config.extra = cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini /etc/xdg/TUT/Kactus2.ini; (test -d /usr/lib64 && ln -f -s /usr/bin/kactus2 /usr/lib64/libKactus2.so) || (test -d /lib/x86_64-linux-gnu && ln -f -s /usr/bin/kactus2 /lib/x86_64-linux-gnu/libKactus2.so) +- !equals(UNAME, x86_64): unix:config.extra = cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini /etc/xdg/TUT/Kactus2.ini; ln -f -s /usr/bin/kactus2 /usr/lib/libKactus2.so ++ equals(UNAME, x86_64): unix:config.extra = mkdir -p $(INSTALL_ROOT)/etc/xdg/TUT; cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini $(INSTALL_ROOT)/etc/xdg/TUT/Kactus2.ini; (test -d $(INSTALL_ROOT)/usr/lib64 && ln -f -s $(INSTALL_ROOT)/usr/bin/kactus2 $(INSTALL_ROOT)/usr/lib64/libKactus2.so) || (test -d $(INSTALL_ROOT)/lib/x86_64-linux-gnu && ln -f -s $(INSTALL_ROOT)/usr/bin/kactus2 $(INSTALL_ROOT)/lib/x86_64-linux-gnu/libKactus2.so) ++ !equals(UNAME, x86_64): unix:config.extra = mkdir -p $(INSTALL_ROOT)/etc/xdg/TUT; cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini $(INSTALL_ROOT)/etc/xdg/TUT/Kactus2.ini; ln -f -s $(INSTALL_ROOT)/usr/bin/kactus2 $(INSTALL_ROOT)/usr/lib/libKactus2.so + + # Files and destination path for the IP-XACT files coming with an installation. + unix:library.path = /usr/share/kactus2/library diff --git a/sci-electronics/kactus2/kactus2-3.8.0.ebuild b/sci-electronics/kactus2/kactus2-3.8.0.ebuild new file mode 100644 index 0000000000..206e1429da --- /dev/null +++ b/sci-electronics/kactus2/kactus2-3.8.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg-utils + +DESCRIPTION="A open source IP-XACT-based tool" +HOMEPAGE=" + http://funbase.cs.tut.fi + https://github.com/kactus2/kactus2dev +" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git" +else + SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + S="${WORKDIR}/${PN}dev-${PV}" +fi + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qthelp:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 +" + +RDEPEND=" + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.8.0-install.patch # Fix install problem +) + +src_install() { + # Can't use default, set INSTALL_ROOT and workaround parallel install bug + emake -j1 INSTALL_ROOT="${D}" install +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/sci-electronics/kactus2/metadata.xml b/sci-electronics/kactus2/metadata.xml new file mode 100644 index 0000000000..bd0f833632 --- /dev/null +++ b/sci-electronics/kactus2/metadata.xml @@ -0,0 +1,20 @@ + + + + + vowstar@gmail.com + Huang Rui + + + proxy-maint@gentoo.org + Proxy Maintainers + + + kactus2/kactus2dev + + + Kactus2 is a toolset for designing embedded products, especially FPGA-based + MP-SoCs. The aim is easier IP reusability and integration for both hardware + and software. The tool is based on IEEE 1685-2014 "IP-XACT" standard. + + From a1ba7d7e084ed90dfb2afe8bcd8057cb39cca0f5 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Sun, 23 Feb 2020 15:16:58 +0800 Subject: [PATCH 063/138] sci-electronics/kactus2: add kactus2-9999.ebuild Add kactus2-9999.ebuild to get the latest software Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Huang Rui --- sci-electronics/kactus2/kactus2-9999.ebuild | 59 +++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 sci-electronics/kactus2/kactus2-9999.ebuild diff --git a/sci-electronics/kactus2/kactus2-9999.ebuild b/sci-electronics/kactus2/kactus2-9999.ebuild new file mode 100644 index 0000000000..206e1429da --- /dev/null +++ b/sci-electronics/kactus2/kactus2-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg-utils + +DESCRIPTION="A open source IP-XACT-based tool" +HOMEPAGE=" + http://funbase.cs.tut.fi + https://github.com/kactus2/kactus2dev +" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git" +else + SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + S="${WORKDIR}/${PN}dev-${PV}" +fi + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qthelp:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 +" + +RDEPEND=" + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.8.0-install.patch # Fix install problem +) + +src_install() { + # Can't use default, set INSTALL_ROOT and workaround parallel install bug + emake -j1 INSTALL_ROOT="${D}" install +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} From 69eb2e4093301a7b350aa346bb47b6ce8e6269db Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 24 Feb 2020 13:23:50 +0100 Subject: [PATCH 064/138] media-video/vidify-audiosync: Version bump 0.2 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify-audiosync/Manifest | 2 +- ...ync-0.1.4.ebuild => vidify-audiosync-0.2.ebuild} | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) rename media-video/vidify-audiosync/{vidify-audiosync-0.1.4.ebuild => vidify-audiosync-0.2.ebuild} (73%) diff --git a/media-video/vidify-audiosync/Manifest b/media-video/vidify-audiosync/Manifest index 31a389cf33..4470503dac 100644 --- a/media-video/vidify-audiosync/Manifest +++ b/media-video/vidify-audiosync/Manifest @@ -1 +1 @@ -DIST vidify-audiosync-0.1.4.tar.gz 111576 BLAKE2B ef1655522bdb056b4b25893c59bd3c8460c33339b0cb675605b1a88641e4898a10613865ab1928932c59b661283b3386580b212f921d0182fd1c66c34784f229 SHA512 116736cc5316de68f271cfc6930d0acb51a925cc62691307a007216b84a009b792ac63da43a9a518d7c0a2c942dcee19415ed4ae6ff165f3a88964de162db7e3 +DIST vidify-audiosync-0.2.tar.gz 61853349 BLAKE2B f23f84625cd5efc577ff366f3d9938704230606268618be0629dd91875c626d762d359a48fee7ed5caef70bb4e678c37c0d90dcce94454a3f301a0499c862f1a SHA512 8dd619f7a34bc69ed1623d122de0fe30a8ce80ab6dc4929f3e23a2a399232a0e77ce18e439788722b2f83205a0b9634f0ae8a9f76d937173ee2874ec7750688f diff --git a/media-video/vidify-audiosync/vidify-audiosync-0.1.4.ebuild b/media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild similarity index 73% rename from media-video/vidify-audiosync/vidify-audiosync-0.1.4.ebuild rename to media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild index 86ce557386..a652647bcf 100644 --- a/media-video/vidify-audiosync/vidify-audiosync-0.1.4.ebuild +++ b/media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild @@ -5,11 +5,11 @@ EAPI=7 PYTHON_COMPAT=( python3_7 ) -inherit cmake-utils distutils-r1 +inherit distutils-r1 DESCRIPTION="Audio synchronization feature for vidify " HOMEPAGE="https://github.com/vidify/audiosync" -SRC_URI="https://github.com/vidify/audiosync/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/vidify/audiosync/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" @@ -29,3 +29,12 @@ src_prepare() { use debug && sed -i -e "/defines.append(('DEBUG', '1'))/s/^# *//" setup.py default } + +src_test() { + mkdir test_build + cd test_build + cmake .. -DBUILD_TESTING=YES + emake + emake test + cd .. +} From 3664597f04479b6f6a33896d7d98173ba52c4203 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 24 Feb 2020 13:29:15 +0100 Subject: [PATCH 065/138] media-video/vidify: Version bump 2.1.0 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify/Manifest | 2 +- ...idify-2.0.5.ebuild => vidify-2.1.0.ebuild} | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) rename media-video/vidify/{vidify-2.0.5.ebuild => vidify-2.1.0.ebuild} (75%) diff --git a/media-video/vidify/Manifest b/media-video/vidify/Manifest index a82081877e..f437ef6fc7 100644 --- a/media-video/vidify/Manifest +++ b/media-video/vidify/Manifest @@ -1 +1 @@ -DIST vidify-2.0.5.tar.gz 2331312 BLAKE2B 8d57e971efb1e23df4a5903366bc10a0a1ab6650d4a40054d650c54c2ea5a75a6b3ce1213dc58146a3d2dfa99a5e48c95f66cde3e90f3eaf3cb1b32fae054e3a SHA512 2e6139e1147b6f49dc73ed102dd63dacbbca0c2456b3f0d553b8d3f85fa872a67e083c963db41d40b008d26d09e3b9ff264a4bb033ea47fab4ed8a8fc6e2b51f +DIST vidify-2.1.0.tar.gz 2332514 BLAKE2B c3199cd20de6e306406482a15addaf1875630c61271ea04b4a0c283d14030102eced6428e2dc8945ab482af6c81f94c51742983e9a9b6581b3aac60bd1c942f6 SHA512 e1a7d60caacd30d68fc8b1ebf3ea30a0527218257fe762989dd8ca5213beb247c300a7ffafe68554c88a1f3bb2a054a555fe15a66a727c57911f1f545e8d0297 diff --git a/media-video/vidify/vidify-2.0.5.ebuild b/media-video/vidify/vidify-2.1.0.ebuild similarity index 75% rename from media-video/vidify/vidify-2.0.5.ebuild rename to media-video/vidify/vidify-2.1.0.ebuild index 284ffc7495..7432733d74 100644 --- a/media-video/vidify/vidify-2.0.5.ebuild +++ b/media-video/vidify/vidify-2.1.0.ebuild @@ -9,9 +9,9 @@ DISTUTILS_USE_SETUPTOOLS=rdepend inherit eutils distutils-r1 xdg-utils -DESCRIPTION="Watch live music videos for the songs playing on your device" +DESCRIPTION="Watch music videos in real time for the songs playing on your device" HOMEPAGE="https://github.com/vidify/vidify" -SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" @@ -31,7 +31,20 @@ RDEPEND=" mpv? ( dev-python/python-mpv[${PYTHON_USEDEP}] ) vlc? ( dev-python/python-vlc[${PYTHON_USEDEP}] )" -# Tests work (mostly) outside of emerge, but core dump inside emerge/virtx +distutils_enable_tests unittest + +python_prepare_all() { + # skip online test + rm tests/apis/test_spotify_web.py || die + + # this needs dbus running + rm tests/apis/test_mpris.py || die + + # fails to parse config for some reason + rm tests/test_api_and_player_data.py || die + + distutils-r1_python_prepare_all +} pkg_postinst() { xdg_desktop_database_update From 64939e25ca5ecd888c86677d57443d8b91f6f0f5 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 25 Feb 2020 06:42:35 +0100 Subject: [PATCH 066/138] app-text/noweb: new package Bug: https://bugs.gentoo.org/644258 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-text/noweb/Manifest | 1 + app-text/noweb/files/50noweb-gentoo.el | 4 + app-text/noweb/files/noweb-2.12-ldflags.patch | 23 +++ app-text/noweb/files/noweb-2.12-recmake.patch | 142 ++++++++++++++++++ app-text/noweb/metadata.xml | 17 +++ app-text/noweb/noweb-2.12.ebuild | 116 ++++++++++++++ 6 files changed, 303 insertions(+) create mode 100644 app-text/noweb/Manifest create mode 100644 app-text/noweb/files/50noweb-gentoo.el create mode 100644 app-text/noweb/files/noweb-2.12-ldflags.patch create mode 100644 app-text/noweb/files/noweb-2.12-recmake.patch create mode 100644 app-text/noweb/metadata.xml create mode 100644 app-text/noweb/noweb-2.12.ebuild diff --git a/app-text/noweb/Manifest b/app-text/noweb/Manifest new file mode 100644 index 0000000000..2ad9f81df5 --- /dev/null +++ b/app-text/noweb/Manifest @@ -0,0 +1 @@ +DIST noweb-2.12.tar.gz 579230 BLAKE2B 2b4b252a79df6b030c2e09dff62c2dbb59d4cdfc6dac76eb9d387b355f940a7431bb69f7200bfe0a2269542430cc00720c4391d3dd15978fc39b36e81a9fb5fe SHA512 b4e45f288b6ae99d2457b69628bb5dfca16f7d1ce1bb06722ae598b5ff50a4ed2819313c5f5991cd3d1062c9d306c1308b0336916b6582dba7a405a343958c2a diff --git a/app-text/noweb/files/50noweb-gentoo.el b/app-text/noweb/files/50noweb-gentoo.el new file mode 100644 index 0000000000..90b971d746 --- /dev/null +++ b/app-text/noweb/files/50noweb-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'noweb-mode "noweb-mode" + "Minor meta mode for editing noweb files." t) +(add-to-list 'auto-mode-alist '("\\.nw\\'" . noweb-mode)) diff --git a/app-text/noweb/files/noweb-2.12-ldflags.patch b/app-text/noweb/files/noweb-2.12-ldflags.patch new file mode 100644 index 0000000000..cc3e0acb86 --- /dev/null +++ b/app-text/noweb/files/noweb-2.12-ldflags.patch @@ -0,0 +1,23 @@ +--- a/src/c/Makefile ++++ b/src/c/Makefile +@@ -41,19 +41,16 @@ + all: nt markup mnt finduses nwmktemp + + nt: $(TANGLEOBJS) +- $(CC) $(CFLAGS) -o nt $(TANGLEOBJS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o nt $(TANGLEOBJS) + + nwmktemp: nwmktemp.o + $(CC) $(CFLAGS) -o nwmktemp nwmktemp.o + + finduses: $(FINDUSESOBJS) +- $(CC) $(CFLAGS) -o finduses $(FINDUSESOBJS) + + markup: $(MARKUPOBJS) +- $(CC) $(CFLAGS) -o markup $(MARKUPOBJS) + + mnt: $(MNTOBJS) +- $(CC) $(CFLAGS) -o mnt $(MNTOBJS) + + source: $(SRCS) + touch: $(SRCS) diff --git a/app-text/noweb/files/noweb-2.12-recmake.patch b/app-text/noweb/files/noweb-2.12-recmake.patch new file mode 100644 index 0000000000..b39f9d1c8e --- /dev/null +++ b/app-text/noweb/files/noweb-2.12-recmake.patch @@ -0,0 +1,142 @@ +diff -ur a/contrib/norman/Makefile b/contrib/norman/Makefile +--- a/contrib/norman/Makefile 2018-06-28 23:26:32.000000000 +0200 ++++ b/contrib/norman/Makefile 2020-02-25 05:26:26.256610626 +0100 +@@ -1,10 +1,10 @@ + LIB=/dev/null # to be overridden + DIRS=numarkup + +-all: ; for i in $(DIRS); do (cd $$i; make ICONC=$(ICONC) ICONT=$(ICONT) all); done +-install: ; for i in $(DIRS); do (cd $$i; make LIB=$(LIB) BIN=$(BIN) install); done +-source: ; for i in $(DIRS); do (cd $$i; make source); done +-clean: ; for i in $(DIRS); do (cd $$i; make clean); done ++all: ; for i in $(DIRS); do (cd $$i; $(MAKE) ICONC=$(ICONC) ICONT=$(ICONT) all); done ++install: ; for i in $(DIRS); do (cd $$i; $(MAKE) LIB=$(LIB) BIN=$(BIN) install); done ++source: ; for i in $(DIRS); do (cd $$i; $(MAKE) source); done ++clean: ; for i in $(DIRS); do (cd $$i; $(MAKE) clean); done + iconlib: # cheap hack for slackmake + true + +diff -ur a/contrib/norman/numarkup/Makefile b/contrib/norman/numarkup/Makefile +--- a/contrib/norman/numarkup/Makefile 2018-06-28 23:26:32.000000000 +0200 ++++ b/contrib/norman/numarkup/Makefile 2020-02-25 05:32:02.290882144 +0100 +@@ -11,11 +11,11 @@ + + all: + noweb -t numarkup.nw +- make $(TARGET) ++ $(MAKE) $(TARGET) + + install: + noweb -t numarkup.nw +- make $(TARGET) ++ $(MAKE) $(TARGET) + strip $(TARGET) + cp $(TARGET) $(LIB) + +diff -ur a/Makefile b/Makefile +--- a/Makefile 2018-06-28 23:26:32.000000000 +0200 ++++ b/Makefile 2020-02-25 05:24:54.607975694 +0100 +@@ -12,14 +12,14 @@ + all: + @echo "You have no business running 'make' here; please look at the README file" + @exit 1 +-source: ; for i in src; do (cd $$i; make source); done +-www: ; for i in src/xdoc examples; do (cd $$i; make www); done ++source: ; for i in src; do (cd $$i; $(MAKE) source); done ++www: ; for i in src/xdoc examples; do (cd $$i; $(MAKE) www); done + + clean: +- for i in src examples contrib; do (cd $$i; make clean); done ++ for i in src examples contrib; do (cd $$i; $(MAKE) clean); done + rm -f nwsrcfilter *~ */*~ + clobber: clean +- for i in src examples contrib; do (cd $$i; make clobber); done ++ for i in src examples contrib; do (cd $$i; $(MAKE) clobber); done + + DATE: + (./echo -n "Version $(VERSION) of "; date) > DATE +@@ -51,7 +51,7 @@ + + ctan: clean source nwsrcfilter DATE emacscheck + chmod +w src/Makefile +- (cd src; make boot) ++ (cd src; $(MAKE) boot) + rm -f ../noweb-$(VERSION)-ctan.zip + find ./* ! -type d -not -name FAQ.old -not -name '.git*' -print | ./nwsrcfilter | sed 's@^@noweb/@' | ( ln -s . noweb; zip ../noweb-$(VERSION)-ctan.zip -@; rm -f noweb ) + chmod -w src/Makefile +@@ -61,6 +61,6 @@ + diff src/elisp/noweb-mode.el $(HOME)/emacs/noweb-mode.el + + checkin: +- (cd src; make "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin) ++ (cd src; $(MAKE) "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin) + + +diff -ur a/src/Makefile b/src/Makefile +--- a/src/Makefile 2020-02-25 05:22:55.103146835 +0100 ++++ b/src/Makefile 2020-02-25 05:29:26.557836177 +0100 +@@ -41,9 +41,9 @@ + TEXNAME=$(TEXINPUTS) + + all: +- cd c; make "CC=$(CC)" "$(CFLAGS)" all +- for i in shell lib xdoc tex; do (cd $$i; make all); done +- cd $(LIBSRC); make "ICONT=$(ICONT)" "ICONC=$(ICONC)" all ++ cd c; $(MAKE) "CC=$(CC)" "CFLAGS=$(CFLAGS)" all ++ for i in shell lib xdoc tex; do (cd $$i; $(MAKE) all); done ++ cd $(LIBSRC); $(MAKE) "ICONT=$(ICONT)" "ICONC=$(ICONC)" all + + FAQ: FAQ.html + sleep 1; html2ascii FAQ.html > FAQ +@@ -101,13 +101,13 @@ + mkdir -p $(BIN) $(LIB) + true c/nt c/markup c/mnt c/finduses c/nwmktemp + cp c/nt c/markup c/mnt c/finduses c/nwmktemp $(LIB) +- cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) install +- cd lib; make LIB=$(LIB) install ++ cd $(LIBSRC); $(MAKE) ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) install ++ cd lib; $(MAKE) LIB=$(LIB) install + + uninstall-code: uninstall-shell + rm -f $(LIB)/nt $(LIB)/markup $(LIB)/mnt $(LIB)/finduses +- cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) uninstall +- cd lib; make LIB=$(LIB) uninstall ++ cd $(LIBSRC); $(MAKE) ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) uninstall ++ cd lib; $(MAKE) LIB=$(LIB) uninstall + install-man: + mkdir -p $(MAN) $(MANDIR) $(MAN7DIR) + sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 > $(MANDIR)/cpif.$(MANEXT) +@@ -194,26 +194,26 @@ + uninstall-elisp: + rm -f $(ELISP)/noweb-mode.el || true + checkin: +- for i in lib tex xdoc; do (cd $$i; make "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin); done ++ for i in lib tex xdoc; do (cd $$i; $(MAKE) "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin); done + for i in c icon awk; do (cd $$i; ci -l $(CINAME) $(CIMSG) *.nw Makefile); done + (cd elisp; ci -l $(CINAME) $(CIMSG) *.el) + ci -l $(CINAME) $(CIMSG) Makefile.nw INSTALL INSTALL.DOS README FAQ COPYRIGHT nwmake *.nw + + source: FAQ +- for i in c shell lib xdoc icon awk tex; do (cd $$i; make CPIF=">" source); done ++ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) CPIF=">" source); done + sleep 1 +- for i in c shell lib xdoc icon awk tex; do (cd $$i; make touch); done ++ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) touch); done + touch: + touch FAQ +- for i in c shell lib xdoc icon awk tex; do (cd $$i; make touch); done ++ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) touch); done + boot: +- for i in c shell lib xdoc icon awk tex; do (cd $$i; make boot); done ++ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) boot); done + clean: +- for i in c shell lib xdoc icon awk tex; do (cd $$i; make clean); done ++ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) clean); done + rm -f nwsrcfilter *~ */*~ + + clobber: clean +- for i in c shell lib xdoc icon awk tex; do (cd $$i; make clobber); done ++ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) clobber); done + + Makefile: Makefile.nw + chmod +w Makefile diff --git a/app-text/noweb/metadata.xml b/app-text/noweb/metadata.xml new file mode 100644 index 0000000000..e2e56fde97 --- /dev/null +++ b/app-text/noweb/metadata.xml @@ -0,0 +1,17 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + + nr@cs.tufts.edu + Norman Ramsey + + nrnrnr/noweb + + noweb is designed to meet the needs of literate programmers while remaining as simple as possible. Its primary advantages are simplicity, extensibility, and language-independence—especially noticeable when compared with other literate-programming tools. noweb uses 5 control sequences to WEB's 27. The noweb manual is only 4 pages; an additional page explains how to customize its LaTeX output. noweb works ``out of the box'' with any programming language, and supports TeX, latex, HTML, and troff back ends. A back end to support full hypertext or indexing takes about 250 lines; a simpler one can be written in 40 lines of awk. The primary sacrifice relative to WEB is that code is seldom prettyprinted. + + diff --git a/app-text/noweb/noweb-2.12.ebuild b/app-text/noweb/noweb-2.12.ebuild new file mode 100644 index 0000000000..b361780a25 --- /dev/null +++ b/app-text/noweb/noweb-2.12.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils toolchain-funcs elisp-common + +MYPV="$(ver_rs 1 _)" + +DESCRIPTION="a literate programming tool, lighter than web" +HOMEPAGE="http://www.eecs.harvard.edu/~nr/noweb/" +SRC_URI="https://github.com/nrnrnr/${PN}/archive/v${MYPV}.tar.gz -> ${P}.tar.gz" + +LICENSE=" + || ( BSD-2 noweb ) + emacs? ( GPL-2 ) +" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos" +IUSE="emacs examples" + +DEPEND="virtual/tex-base + dev-lang/icon + sys-apps/debianutils + emacs? ( app-editors/emacs:= )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-${MYPV}" + +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + # glibc2.10 compat (bug 270757) +# mkdir d && cp -r c/* d/ + sed "s/getline (/getline_nonlibc (/" -i src/c/getline.{c,h} || die + sed "s/getline(/getline_nonlibc(/" -i src/c/{notangle.c,getline.c,finduses.c} || die +# diff -u d/ c/ + + # dont run texhash... + sed -i -e "s/texhash/true/" src/Makefile + # dont strip... + sed -i -e "s/strip/true/" src/Makefile + + sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/Makefile + sed -i -e "s/CFLAGS=//" src/Makefile + sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/c/Makefile + sed -i -e "s/CFLAGS=//" src/c/Makefile + + eapply "${FILESDIR}/${P}-recmake.patch" + + sed -i -e "s/CC = cc//" contrib/norman/numarkup/Makefile + sed -i -e "s/CFLAGS = -O//" contrib/norman/numarkup/Makefile + + eapply "${FILESDIR}/${P}-ldflags.patch" + eapply_user +} + +src_compile() { + # noweb tries to use notangle and noweb; see bug #50429 + cd "${S}/src/c" + ( emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die + export PATH="${PATH}:${T}" + cd "${S}/src" + ( emake ICONC="icont" CC="$(tc-getCC)" BIN="${T}" LIB="${T}" LIBSRC="icon" install-code ) \ + || die "make temporal install failed." + + ( emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die "make failed" + # Set awk to awk not nawk + ./awkname awk + + if use emacs; then + elisp-compile elisp/noweb-mode.el || die "elisp-compile failed" + fi +} + +src_install () { + cd "${S}/src" + + # It needs the directories to exist first... + dodir /usr/bin + dodir "/usr/libexec/${PN}" + dodir /usr/share/man + dodir /usr/share/texmf-site/tex/inputs + emake ICONC="icont" \ + BIN="${ED}/usr/bin" \ + LIBSRC="icon" \ + LIBNAME="${EPREFIX}/usr/libexec/${PN}" \ + LIB="${ED}/usr/libexec/${PN}" \ + MAN="${ED}/usr/share/man" \ + TEXNAME="${EPREFIX}/usr/share/texmf-site/tex/inputs" \ + TEXINPUTS="${ED}/usr/share/texmf-site/tex/inputs" \ + install || die "make install failed" + cd "${S}" + if use examples; then + insinto "/usr/share/doc/${PF}/examples" + doins examples/* + fi + dodoc CHANGES README + + if use emacs; then + elisp-install "${PN}" "${S}"/src/elisp/noweb-mode.{el,elc} \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ + || die "elisp-site-file-install failed" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + einfo "Running texhash to complete installation.." + texhash +} + +pkg_postrm() { + use emacs && elisp-site-regen +} From b9f500d27c79202e12b0110318e2d20d0778574e Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 25 Feb 2020 06:43:08 +0100 Subject: [PATCH 067/138] noweb license Signed-off-by: Alessandro Barbieri --- licenses/noweb | 22 ++++++++++++++++++++++ profiles/license_groups | 1 + 2 files changed, 23 insertions(+) create mode 100644 licenses/noweb create mode 100644 profiles/license_groups diff --git a/licenses/noweb b/licenses/noweb new file mode 100644 index 0000000000..e1f338458b --- /dev/null +++ b/licenses/noweb @@ -0,0 +1,22 @@ +Noweb is copyright 1989-2000 by Norman Ramsey. All rights reserved. + +Noweb is protected by copyright. It is not public-domain +software or shareware, and it is not protected by a ``copyleft'' +agreement like the one used by the Free Software Foundation. + +Noweb is available free for any use in any field of endeavor. You may +redistribute noweb in whole or in part provided you acknowledge its +source and include this COPYRIGHT file. You may modify noweb and +create derived works, provided you retain this copyright notice, but +the result may not be called noweb without my written consent. + +You may sell noweb if you wish. For example, you may sell a CD-ROM +including noweb. + +You may sell a derived work, provided that all source code for your +derived work is available, at no additional charge, to anyone who buys +your derived work in any form. You must give permisson for said +source code to be used and modified under the terms of this license. +You must state clearly that your work uses or is based on noweb and +that noweb is available free of change. You must also request that +bug reports on your work be reported to you. diff --git a/profiles/license_groups b/profiles/license_groups new file mode 100644 index 0000000000..a4fca5b7be --- /dev/null +++ b/profiles/license_groups @@ -0,0 +1 @@ +MISC-FREE noweb From 83a18d8b5c91eaa82bb6ee0f526cbbd0cd088b5d Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 25 Feb 2020 07:44:19 +0100 Subject: [PATCH 068/138] dev-lang/aldor: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-lang/aldor/Manifest | 2 + dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 82 +++++++++++++++++++++ dev-lang/aldor/metadata.xml | 14 ++++ 3 files changed, 98 insertions(+) create mode 100644 dev-lang/aldor/Manifest create mode 100644 dev-lang/aldor/aldor-1.2.0_p20190730.ebuild create mode 100644 dev-lang/aldor/metadata.xml diff --git a/dev-lang/aldor/Manifest b/dev-lang/aldor/Manifest new file mode 100644 index 0000000000..3a7e98b7f7 --- /dev/null +++ b/dev-lang/aldor/Manifest @@ -0,0 +1,2 @@ +DIST aldor.el.nw 50217 BLAKE2B 12c822b608d995832028cc6c67126c71f05e50d941c0b22fd82fd95a1f968e64150f721982ff8e42f897811c17d2ee0b3135f5c9f57701f99bdce1f8be3fb82c SHA512 6a01873530269ff21afd494a00a8159e48e6199e9aff38259156b8ee8ce21256394629225d857d7d087fd02d1bed3d0de76812656f294f9eb322bed594f4d65e +DIST libaldor.pdf.gz 434487 BLAKE2B 629dbf284db72afb98a8bc1a44df63dc0a3394fdd4361ec48a0d4811f8e931384fc257ad8f3931b7966aee25b0a015062ef8c8ab4e0ebf5978b5deda58c00ab6 SHA512 9ed1f067dd4ee11e5a440f31a9a29eb9248fcfb4349005f42c230a97190853d17e423ce677894a478644ca4964d0ba857465adfe405092c1e6512ced452eedc3 diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild new file mode 100644 index 0000000000..5a4414cebd --- /dev/null +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +EGIT_REPO_URI="https://github.com/pippijn/aldor.git" +EGIT_COMMIT="13e5b90" +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit git-r3 autotools elisp-common + +DESCRIPTION="The Aldor Programming Language" +HOMEPAGE="http://pippijn.github.io/aldor" +SRC_URI="doc? ( http://aldor.org/docs/libaldor.pdf.gz ) + emacs? ( http://hemmecke.de/aldor/aldor.el.nw )" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="" +IUSE="doc emacs" + +RDEPEND="emacs? ( app-editors/emacs:= )" +DEPEND="${RDEPEND} + virtual/yacc + doc? ( virtual/latex-base ) + emacs? ( app-text/noweb )" + +DOCS=( AUTHORS COPYRIGHT LICENSE ) + +S="${WORKDIR}/${P}/aldor" + +src_compile() { + if use doc ; then + ( cd aldorug; emake aldorug.pdf ) || die "make aldorug.pdf failed" + ( cd lib/aldor/tutorial + pdflatex tutorial.tex + pdflatex tutorial.tex ) || die "make tutorial.pdf failed" + cp "${DISTDIR}/libaldor.pdf.gz" . + gunzip libaldor.pdf.gz + tar xzf "${DISTDIR}/algebra.html.tar.gz" + fi + + if use emacs ; then + notangle "${DISTDIR}/aldor.el.nw" > aldor.el + notangle -Rinit.el "${DISTDIR}/aldor.el.nw" | \ + sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el + if use doc ; then + einfo "Documentation for the aldor emacs mode" + noweave "${DISTDIR}/aldor.el.nw" > aldor-mode.tex + pdflatex aldor-mode.tex + pdflatex aldor-mode.tex + fi + fi + default +} + +src_install() { + if use doc ; then + DOCS+=( aldorug/aldorug.pdf lib/aldor/tutorial/tutorial.pdf libaldor.pdf ) + fi + if use emacs ; then + DOCS+=( aldor-mode.pdf ) + elisp-site-file-install aldor.el + elisp-site-file-install 64aldor-gentoo.el + fi + default + + # Add information about ALDORROOT to environmental variables + cat > 99aldor <<- EOF + ALDORROOT="${EPREFIX}/usr" + EOF + doenvd 99aldor +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_prerm() { + [ -f "${SITELISP}/site-gentoo.el" ] && elisp-site-regen +} diff --git a/dev-lang/aldor/metadata.xml b/dev-lang/aldor/metadata.xml new file mode 100644 index 0000000000..4b9f701866 --- /dev/null +++ b/dev-lang/aldor/metadata.xml @@ -0,0 +1,14 @@ + + + + Aldor is a programming language. It is the successor of A# as the extension language of the Axiom computer algebra system. + +The Aldor language combines imperative, functional, and object-oriented features. It has an elaborate dependent type system, allowing types to be used as first-class values. Aldor's syntax is heavily influenced by Pascal, but it is optionally indentation-sensitive, like Python. In its current implementation, it is compiled, but an interactive listener is provided. + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + pippijn/aldor + + From 2f2d2fd75480c23aa752191de2604942be826f82 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Wed, 26 Feb 2020 20:29:14 +0100 Subject: [PATCH 069/138] dev-python/tekore: Version bump 1.3.0 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/tekore/Manifest | 2 +- dev-python/tekore/{tekore-1.2.0.ebuild => tekore-1.3.0.ebuild} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename dev-python/tekore/{tekore-1.2.0.ebuild => tekore-1.3.0.ebuild} (100%) diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest index 906a44e7cd..089033fe78 100644 --- a/dev-python/tekore/Manifest +++ b/dev-python/tekore/Manifest @@ -1 +1 @@ -DIST tekore-1.2.0.tar.gz 140391 BLAKE2B 1ea9a70085a82385cfb8ef3013aa7acbbad00093fac2e4c5ac15d6faf4cd2a78643d975e7cff9299f2e3579788ea9fa35962ae9862113dded45c6a00a13746f9 SHA512 883f0bf9bef16961bc3bc5a0e1e6566d5e549c822ed9f056ff971810df2e54d0ef63a7d7618a6fc48213a96d62e7d2e54aae8e164f865bc0a49868b536688850 +DIST tekore-1.3.0.tar.gz 185198 BLAKE2B fcc5b46493d06c7d4acbcc7dd6b3078a280ccbc8d0e53d721c0445add150a53e947f6dbfaab5dfff27a4fc651a36a49904c693a2d24f1d09b94c95e05c202624 SHA512 10fb189374cf2b0a09120ff3f7c59de96b2374d1d7583fec36247e909d3589fdbf0d1411cbd3e134700ab58f34fece5cee5b9dbca72a38619c1f8c23d338c170 diff --git a/dev-python/tekore/tekore-1.2.0.ebuild b/dev-python/tekore/tekore-1.3.0.ebuild similarity index 100% rename from dev-python/tekore/tekore-1.2.0.ebuild rename to dev-python/tekore/tekore-1.3.0.ebuild From de7fe9e8a5cb15c52adddbaff7cc1dfffc83ee9b Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 27 Feb 2020 18:09:40 +0100 Subject: [PATCH 070/138] dev-vcs/git-blame-someone-else: latest version Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-vcs/git-blame-someone-else/Manifest | 1 + .../git-blame-someone-else-2018.06.13.ebuild | 22 +++++++++++++++++++ .../git-blame-someone-else-9999.ebuild | 10 +++------ 3 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 dev-vcs/git-blame-someone-else/Manifest create mode 100644 dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild diff --git a/dev-vcs/git-blame-someone-else/Manifest b/dev-vcs/git-blame-someone-else/Manifest new file mode 100644 index 0000000000..eb83e70ac5 --- /dev/null +++ b/dev-vcs/git-blame-someone-else/Manifest @@ -0,0 +1 @@ +DIST git-blame-someone-else-2018.06.13.tar.gz 1928 BLAKE2B 44dbc2ab1398612225b60b869f55a31cff8daa003c2d7f54ea4e149373883aae678bb32f6bc4dd0b0c9994b6faf8ea251ce34a5e7ad9f671a635d90c09866676 SHA512 2e857f2fa2a742d4a623ff6d019e2995cfb61bc540e610bac6b333bac1249e6a977380065aa08276e3b04f0c7c7a5b2c6ac7ba66f0c22e380f73c81777ee3d1c diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild new file mode 100644 index 0000000000..358654fadd --- /dev/null +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +COMMIT="8d854c2d78cb98afdb9f5a73240e06393260b327" + +SRC_URI="https://github.com/jayphelps/git-blame-someone-else/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +DESCRIPTION="Blame someone else for your bad code." +HOMEPAGE="https://github.com/jayphelps/git-blame-someone-else" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="dev-vcs/git" +DEPEND="" + +src_install() { + dobin "${PN}" + dodoc README.md +} diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild index 8b6d9315e5..b450a82d03 100644 --- a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild @@ -3,13 +3,9 @@ EAPI="7" -case "${PV}" in -9999) - SRC_URI="" - EGIT_REPO_URI="https://github.com/jayphelps/git-blame-someone-else.git" - inherit git-r3 - ;; -esac +SRC_URI="" +EGIT_REPO_URI="https://github.com/jayphelps/git-blame-someone-else.git" +inherit git-r3 DESCRIPTION="Blame someone else for your bad code." HOMEPAGE="https://github.com/jayphelps/git-blame-someone-else" From be15cec7236bbd01631f7120c33d159765efa1ba Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 27 Feb 2020 18:22:09 +0100 Subject: [PATCH 071/138] app-misc/vrms-gentoo: latest version Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-misc/vrms-gentoo/Manifest | 1 + .../vrms-gentoo/vrms-gentoo-2018.11.20.ebuild | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 app-misc/vrms-gentoo/Manifest create mode 100644 app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild diff --git a/app-misc/vrms-gentoo/Manifest b/app-misc/vrms-gentoo/Manifest new file mode 100644 index 0000000000..29cd29d853 --- /dev/null +++ b/app-misc/vrms-gentoo/Manifest @@ -0,0 +1 @@ +DIST vrms-gentoo-2018.11.20.tar.gz 9340 BLAKE2B 751df8ffbc0842ab535620aa706665827c780f03aac9a89729776c6f375889bd25dff9426a2875a58b8e02a61f380c4bfc82746eec0a0631cec92479aca97c21 SHA512 a3f9c48d83649f205290622a52455363e2bda58d431261dae648568b81b4b62baaa9de3363d569402ced7d1089e8e2fcff26d37942d0b71394226a32f02c8dd8 diff --git a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild new file mode 100644 index 0000000000..e2cd08324e --- /dev/null +++ b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +COMMIT="1d45e07cfa7ceed69fb7302cfd0f3e2d2453e115" + +SRC_URI="https://github.com/z411/vrms-gentoo/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +DESCRIPTION="vrms clone for Gentoo Linux" +HOMEPAGE="https://github.com/z411/vrms-gentoo" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="dev-lang/perl" + +src_install() { + dobin "${PN}" + dodoc README.md +} From 011badaae9549dd3a7174533f47fdad4ee1bd38a Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Fri, 28 Feb 2020 18:53:05 +0100 Subject: [PATCH 072/138] sci-libs/meschach: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sci-libs/meschach/Manifest | 2 + sci-libs/meschach/meschach-1.2b.ebuild | 73 ++++++++++++++++++++++++++ sci-libs/meschach/metadata.xml | 41 +++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 sci-libs/meschach/Manifest create mode 100644 sci-libs/meschach/meschach-1.2b.ebuild create mode 100644 sci-libs/meschach/metadata.xml diff --git a/sci-libs/meschach/Manifest b/sci-libs/meschach/Manifest new file mode 100644 index 0000000000..aa641bb636 --- /dev/null +++ b/sci-libs/meschach/Manifest @@ -0,0 +1,2 @@ +DIST meschach_1.2b-14.debian.tar.xz 40664 BLAKE2B 753cdcdf8ecd63be14a294a6607380462df8a74c1cc84fafcfe4140cb10eaeb590dbe12883e2a973691a920b1e7f4efdf884781b49ea947b1132ff213f4a2652 SHA512 9793127a1785fb757b61132db1c471a2ff7949c383870f10d0b24ea2e1dafcb9d9379b61698179f91fdba4405e18e1692efcc26b759b1a5d9519e8c46206636b +DIST meschach_1.2b.orig.tar.gz 220166 BLAKE2B fe38d9887977f45cc54857fe9c33f1eb50d1192ce3cae643127962cfce7657d9890964aabd3690751648a3a850fbbb39c6fb2110f8b4fcd789c7b8efefcec2c5 SHA512 0b8748915739b624aa44b0bf6f2c59aaf3d09f69f9455220e4baeb423c094a89cc25c03d6ced0d58bfd7c5d6626f3995fc853119ab0f7d6af151d8479c326068 diff --git a/sci-libs/meschach/meschach-1.2b.ebuild b/sci-libs/meschach/meschach-1.2b.ebuild new file mode 100644 index 0000000000..b7a301721c --- /dev/null +++ b/sci-libs/meschach/meschach-1.2b.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit autotools eutils + +DESCRIPTION="Meschach is a C-language library of routines for performing matrix computations." +HOMEPAGE="http://homepage.divms.uiowa.edu/~dstewart/meschach" +SRC_URI="http://cdn-fastly.deb.debian.org/debian/pool/main/m/meschach/${PN}_${PV}.orig.tar.gz \ +http://cdn-fastly.deb.debian.org/debian/pool/main/m/meschach/${PN}_${PV}-14.debian.tar.xz" + +LICENSE="meschach" +SLOT="0" +KEYWORDS="~amd64" +IUSE="complex +double float munroll old segmem sparse test unroll" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + ^^ ( double float ) +" + +PATCHES=( + "${WORKDIR}/debian/patches/${PN}_${PV}-13.diff" + "${WORKDIR}/debian/patches/${PN}_${PV}-13.configure.diff" +) + +src_prepare() { + default + sed -i -- 's/CFLAGS = -O3 -fPIC/CFLAGS = @CFLAGS@ -fPIC/g' makefile.in + use old && sed -i -- 's/all: shared static/all: oldpart shared static/g' makefile.in + mv configure.in configure.ac + eautoreconf +} + +src_configure() { + myconf=( + $(use_with complex) + $(use_with double) + $(use_with float) + $(use_with munroll) + $(use_with segmem) + $(use_with sparse) + $(use_with unroll) + ) + + econf "${myconf[@]}" +} + +src_compile() { + emake DESTDIR="${D}" all + use test && emake alltorture +} + +src_install() { + dolib.so libmeschach.so + insinto /usr/include/meschach + doins *.h + use test && dodir /usr/libexec/meschach + use test && exeinto /usr/libexec/meschach + use test && doexe iotort + use test && doexe itertort + use test && doexe macheps + use test && doexe maxint + use test && doexe memtort + use test && doexe mfuntort + use test && doexe sptort + use test && doexe torture + use test && doexe ztorture + use test && insinto /usr/libexec/meschach + use test && doins *.dat + dodoc -r DOC/. + dodoc README +} diff --git a/sci-libs/meschach/metadata.xml b/sci-libs/meschach/metadata.xml new file mode 100644 index 0000000000..fc8c04d33f --- /dev/null +++ b/sci-libs/meschach/metadata.xml @@ -0,0 +1,41 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + + dstewart@math.uiowa.edu + David Stewart + + + +The Meschach Library is a numerical library of C routines for performing +calculations on matrices and vectors. It is intended for solving systems of +linear equations (dense and sparse), solve least squares problems, +computing eigenvalues and eigenvectors, etc. We do not claim that it +contains every useful algorithm in numerical linear algebra, but it does +provide a basis on which more advanced algorithms can be built. The library +is for people who know something about the C programming language, +something of how to solve the numerical problem they are faced with but do +not want to have the hassle of building all the necessary routines from the +scratch. The library is not a loose collection of numerical routines but it +comprises a coherent system. The current version is enhanced with many +features comparing with previous versions. Since the memory requirements +are nontrivial for large problems we have paid more attention to +allocation/deallocation of memory. + + + incorporate complex functions. + double precision + single precision + unroll low level loops on matrices + build no longer supported functions + should be set if you are working with a machine or compiler that does not allow large arrays to be allocated. See README + incorporate sparse matrix functions + build test programs + unroll low level loops on vectors + + From 75f56baea028c5e4b150a7a97164a1b9b40c705c Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Fri, 28 Feb 2020 18:53:28 +0100 Subject: [PATCH 073/138] DFSG license group, add meschach license Signed-off-by: Alessandro Barbieri --- licenses/meschach | 23 +++++++++++++++++++++++ profiles/license_groups | 1 + 2 files changed, 24 insertions(+) create mode 100644 licenses/meschach diff --git a/licenses/meschach b/licenses/meschach new file mode 100644 index 0000000000..6c1e0530d7 --- /dev/null +++ b/licenses/meschach @@ -0,0 +1,23 @@ +/************************************************************************** +** +** Copyright (C) 1993 David E. Steward & Zbigniew Leyk, all rights reserved. +** +** Meschach Library +** +** This Meschach Library is provided "as is" without any express +** or implied warranty of any kind with respect to this software. +** In particular the authors shall not be liable for any direct, +** indirect, special, incidental or consequential damages arising +** in any way from use of the software. +** +** Everyone is granted permission to copy, modify and redistribute this +** Meschach Library, provided: +** 1. All copies contain this copyright notice. +** 2. All modified copies shall carry a notice stating who +** made the last modification and the date of such modification. +** 3. No charge is made for this software or works derived from it. +** This clause shall not be construed as constraining other software +** distributed on the same medium as this software, nor is a +** distribution fee considered a charge. +** +***************************************************************************/ diff --git a/profiles/license_groups b/profiles/license_groups index a4fca5b7be..29a53dbc4c 100644 --- a/profiles/license_groups +++ b/profiles/license_groups @@ -1 +1,2 @@ +DFSG @FREE lablgtk-examples meschach VOSTROM MISC-FREE noweb From ec140108b2ebb3febb9b333cbea294953fd6a8df Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sat, 29 Feb 2020 03:54:08 +0100 Subject: [PATCH 074/138] sys-cluster/genders: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/genders/Manifest | 1 + sys-cluster/genders/genders-1.27.3.ebuild | 108 ++++++++++++++++++++++ sys-cluster/genders/genders-9999.ebuild | 108 ++++++++++++++++++++++ sys-cluster/genders/metadata.xml | 12 +++ 4 files changed, 229 insertions(+) create mode 100644 sys-cluster/genders/Manifest create mode 100644 sys-cluster/genders/genders-1.27.3.ebuild create mode 100644 sys-cluster/genders/genders-9999.ebuild create mode 100644 sys-cluster/genders/metadata.xml diff --git a/sys-cluster/genders/Manifest b/sys-cluster/genders/Manifest new file mode 100644 index 0000000000..c10666986c --- /dev/null +++ b/sys-cluster/genders/Manifest @@ -0,0 +1 @@ +DIST genders-1-27-3.tar.gz 1142250 BLAKE2B 49a9d0c6351c6c403bdcffa2019f14fe0142deae3331a045a54855a280f34625c6c8f78b2c517a34d0bde5d37dc59aedd16672fa7cc10c5bd4b5b7852445abae SHA512 a97bc9ebc8c167cf1aebade41fd3097e34ea27f4009bcc027e50d2dc354beb6e13d6eff1d8b8a334b6993f4396c8eba2ca4cd1e29d3dc6536086c2798a6d6751 diff --git a/sys-cluster/genders/genders-1.27.3.ebuild b/sys-cluster/genders/genders-1.27.3.ebuild new file mode 100644 index 0000000000..3d13ce419e --- /dev/null +++ b/sys-cluster/genders/genders-1.27.3.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_USE_SETUPTOOLS=no + +inherit autotools distutils-r1 perl-module java-pkg-opt-2 + +case "${PV}" in +9999) + SRC_URI="" + EGIT_REPO_URI="https://github.com/chaos/${PN}.git" + inherit git-r3 + KEYWORDS="" + ;; +*) + MY_PV="$(ver_rs 1-2 -)" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://github.com/chaos/${PN}/archive/${MY_P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN}-${MY_P}" + ;; +esac + +DESCRIPTION="Genders is a static cluster configuration database used for cluster configuration management." +HOMEPAGE="https://github.com/chaos/genders" +LICENSE="GPL-2" +SLOT="0" +IUSE="cxx java perl python" + +CDEPEND=" + perl? ( dev-lang/perl:= ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND=" + ${CDEPEND} + java? ( virtual/jdk:1.8 ) + +" + +RDEPEND=" + ${DEPEND} + java? ( virtual/jre:1.8 ) +" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +src_prepare() { + sed -i "s|perl python||" src/extensions/Makefile.am + sed -i "s|\$(DESTDIR)\$(docdir)-\$(VERSION)-javadoc|\$(DESTDIR)\$(docdir)/html/javadoc|" src/extensions/java/Makefile.am + eapply_user + ./autogen.sh +} + +src_configure() { + use java && append-cflags "-I${S}/src/libgenders" + use java && append-cflags "$(java-pkg_get-jni-cflags)" + + local myconf="( + --disable-static + --with-non-shortened-hostnames + $(use_with cxx cplusplus-extensions) + $(use_with java java-extensions) + $(use_with perl perl-extensions) + $(use_with python python-extensions) + )" + econf "${myconf[@]}" +} + +src_compile() { + default + + if use perl ; then + cd "${S}/src/extensions/perl" + perl-module_src_configure + perl-module_src_compile + fi + + if use python; then + cd "${S}/src/extensions/python" + cp genderssetup.py setup.py + distutils-r1_src_compile + fi +} + +src_install() { + default + dodoc README TUTORIAL NEWS + + if use perl ; then + cd "${S}/src/extensions/perl" + myinst=( DESTDIR="${D}" ) + perl-module_src_install + fi + + if use python; then + cd "${S}/src/extensions/python" + python_install() { + distutils-r1_python_install + } + distutils-r1_src_install + fi + + find "${ED}" -name '*.la' -delete || die +} diff --git a/sys-cluster/genders/genders-9999.ebuild b/sys-cluster/genders/genders-9999.ebuild new file mode 100644 index 0000000000..3d13ce419e --- /dev/null +++ b/sys-cluster/genders/genders-9999.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_USE_SETUPTOOLS=no + +inherit autotools distutils-r1 perl-module java-pkg-opt-2 + +case "${PV}" in +9999) + SRC_URI="" + EGIT_REPO_URI="https://github.com/chaos/${PN}.git" + inherit git-r3 + KEYWORDS="" + ;; +*) + MY_PV="$(ver_rs 1-2 -)" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://github.com/chaos/${PN}/archive/${MY_P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN}-${MY_P}" + ;; +esac + +DESCRIPTION="Genders is a static cluster configuration database used for cluster configuration management." +HOMEPAGE="https://github.com/chaos/genders" +LICENSE="GPL-2" +SLOT="0" +IUSE="cxx java perl python" + +CDEPEND=" + perl? ( dev-lang/perl:= ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND=" + ${CDEPEND} + java? ( virtual/jdk:1.8 ) + +" + +RDEPEND=" + ${DEPEND} + java? ( virtual/jre:1.8 ) +" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +src_prepare() { + sed -i "s|perl python||" src/extensions/Makefile.am + sed -i "s|\$(DESTDIR)\$(docdir)-\$(VERSION)-javadoc|\$(DESTDIR)\$(docdir)/html/javadoc|" src/extensions/java/Makefile.am + eapply_user + ./autogen.sh +} + +src_configure() { + use java && append-cflags "-I${S}/src/libgenders" + use java && append-cflags "$(java-pkg_get-jni-cflags)" + + local myconf="( + --disable-static + --with-non-shortened-hostnames + $(use_with cxx cplusplus-extensions) + $(use_with java java-extensions) + $(use_with perl perl-extensions) + $(use_with python python-extensions) + )" + econf "${myconf[@]}" +} + +src_compile() { + default + + if use perl ; then + cd "${S}/src/extensions/perl" + perl-module_src_configure + perl-module_src_compile + fi + + if use python; then + cd "${S}/src/extensions/python" + cp genderssetup.py setup.py + distutils-r1_src_compile + fi +} + +src_install() { + default + dodoc README TUTORIAL NEWS + + if use perl ; then + cd "${S}/src/extensions/perl" + myinst=( DESTDIR="${D}" ) + perl-module_src_install + fi + + if use python; then + cd "${S}/src/extensions/python" + python_install() { + distutils-r1_python_install + } + distutils-r1_src_install + fi + + find "${ED}" -name '*.la' -delete || die +} diff --git a/sys-cluster/genders/metadata.xml b/sys-cluster/genders/metadata.xml new file mode 100644 index 0000000000..1ac907d2ac --- /dev/null +++ b/sys-cluster/genders/metadata.xml @@ -0,0 +1,12 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + chaos/genders + + Genders is a static cluster configuration database used for cluster configuration management. It is used by a variety of tools and scripts for management of large clusters. The genders database is typically replicated on every node of the cluster. It describes the layout and configuration of the cluster so that tools and scripts can sense the variations of cluster nodes. By abstracting this information into a plain text file, it becomes possible to change the configuration of a cluster by modifying only one file. + From f1c7c5be74622af3ffb4c9a19df124d5fc7992a8 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sat, 29 Feb 2020 11:15:16 +0100 Subject: [PATCH 075/138] sci-libs/chaco: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sci-libs/chaco/Manifest | 1 + sci-libs/chaco/chaco-2.2.ebuild | 32 ++++++++++++++++++++++++++++++++ sci-libs/chaco/metadata.xml | 11 +++++++++++ 3 files changed, 44 insertions(+) create mode 100644 sci-libs/chaco/Manifest create mode 100644 sci-libs/chaco/chaco-2.2.ebuild create mode 100644 sci-libs/chaco/metadata.xml diff --git a/sci-libs/chaco/Manifest b/sci-libs/chaco/Manifest new file mode 100644 index 0000000000..d5c31da96f --- /dev/null +++ b/sci-libs/chaco/Manifest @@ -0,0 +1 @@ +DIST Chaco-2.2.tar.gz 854988 BLAKE2B ffa5e0363876e1a6e401056d2e0d8f7064bf86fd7590403a0440e37a6a83c4cbb2b5b9ab3cfc54f313741af3f3b539b301b26ad3f293a0056eace7e23d6d69de SHA512 9b2b58535df8a7c368a9670cdf85d01049e43abbc6ab726dfc88154a94678e1cfe4def40fc4c7162e738cc55f372dab6ce93a0d2f98f09c45a876d246901439e diff --git a/sci-libs/chaco/chaco-2.2.ebuild b/sci-libs/chaco/chaco-2.2.ebuild new file mode 100644 index 0000000000..36c808aeea --- /dev/null +++ b/sci-libs/chaco/chaco-2.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit flag-o-matic + +DESCRIPTION="Software for Partitioning Graphs" +HOMEPAGE="https://www3.cs.stonybrook.edu/~algorith/implement/chaco/implement.shtml" +SRC_URI="https://www3.cs.stonybrook.edu/~algorith/implement/${PN}/distrib/Chaco-${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/Chaco-${PV}" + +src_prepare() { + sed -i '/CC =/d' code/Makefile + sed -i '/CFLAGS =/d' code/Makefile + sed -i -e 's/-O2/${CFLAGS}/g' code/Makefile + eapply_user +} + +src_install() { + append-cflags -fPIE + cd code + emake + cd .. + dobin exec/chaco + dodoc doc/* +} diff --git a/sci-libs/chaco/metadata.xml b/sci-libs/chaco/metadata.xml new file mode 100644 index 0000000000..ec0716a790 --- /dev/null +++ b/sci-libs/chaco/metadata.xml @@ -0,0 +1,11 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +Chaco contains a wide variety of algorithms and options, many of which were invented by the authors. Some of the algorithms exploit the geometry of the mesh, others its local connectivity or its global structure as captured by eigenvectors of a related matrix. These methods can be mixed and matched in several ways, and combinations often prove to be more effective than any single technique in isolation. All these algorithms are accessed via a simple user interface, or a call from other software. Innovations in Chaco include # Development of multilevel graph partitioning. This widely imitated approach has become the premiere algorithm combining very high quality with short calculation times. # Extension of spectral partitioning to enable the use of 2 or 3 Laplacian eigenvectors to quadrisect of octasect a graph. # Highly efficient and robust eigensolvers for use with spectral graph algorithms. # Generalization of the Kernighan-Lin/Fiduccia-Mattheyses algorithm to handle weighted graphs, arbitrary number of sets and lazy initiation. # Development of skewed partitioning to improve the mapping of a graph onto a target parallel architecture. # Various post-processing options to improve partitions in a number of ways. + + From 273b937d12c73435345c3d14a707a83dce6dd826 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Mon, 2 Mar 2020 15:29:29 +0800 Subject: [PATCH 076/138] sci-electronics/kactus2: remove unused patch in 9999.ebuild Upstream fixed .qmake.conf: fix libpath and INSTALL_ROOT kactus2/kactus2dev#37 So removed this patch in ebuild, and parallel compilation problem fixed. Package-Manager: Portage-2.3.90, Repoman-2.3.20 Signed-off-by: Huang Rui --- sci-electronics/kactus2/kactus2-9999.ebuild | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sci-electronics/kactus2/kactus2-9999.ebuild b/sci-electronics/kactus2/kactus2-9999.ebuild index 206e1429da..4660d73543 100644 --- a/sci-electronics/kactus2/kactus2-9999.ebuild +++ b/sci-electronics/kactus2/kactus2-9999.ebuild @@ -37,13 +37,9 @@ RDEPEND=" ${DEPEND} " -PATCHES=( - "${FILESDIR}"/${PN}-3.8.0-install.patch # Fix install problem -) - src_install() { - # Can't use default, set INSTALL_ROOT and workaround parallel install bug - emake -j1 INSTALL_ROOT="${D}" install + # Can't use default, set INSTALL_ROOT + emake INSTALL_ROOT="${D}" install } pkg_postinst() { From 3674408fc211308448284897f82f54ba77fb2b32 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 09:56:02 +0100 Subject: [PATCH 077/138] dev-python/tekore: Version bump 1.4.0 Package-Manager: Portage-2.3.90, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/tekore/Manifest | 2 +- .../{tekore-1.3.0.ebuild => tekore-1.4.0.ebuild} | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) rename dev-python/tekore/{tekore-1.3.0.ebuild => tekore-1.4.0.ebuild} (83%) diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest index 089033fe78..d40fc42478 100644 --- a/dev-python/tekore/Manifest +++ b/dev-python/tekore/Manifest @@ -1 +1 @@ -DIST tekore-1.3.0.tar.gz 185198 BLAKE2B fcc5b46493d06c7d4acbcc7dd6b3078a280ccbc8d0e53d721c0445add150a53e947f6dbfaab5dfff27a4fc651a36a49904c693a2d24f1d09b94c95e05c202624 SHA512 10fb189374cf2b0a09120ff3f7c59de96b2374d1d7583fec36247e909d3589fdbf0d1411cbd3e134700ab58f34fece5cee5b9dbca72a38619c1f8c23d338c170 +DIST tekore-1.4.0.tar.gz 186665 BLAKE2B f3b06df721f76ac74e1dbe78292f94ab6f9d542031bbbb81e7ac7d4d55f2bd6607d136f5a8c0cadf86db95874e9dd99670567fe617b84f3ff8da5c741bc6dc15 SHA512 ba1036c6da0930c168f7f1112e671da3b1d0896d325a273d11120cd7c7515d1e680c8dfe855e7811928b381be769341d63aa87f32c6d992d30f45837ab51424d diff --git a/dev-python/tekore/tekore-1.3.0.ebuild b/dev-python/tekore/tekore-1.4.0.ebuild similarity index 83% rename from dev-python/tekore/tekore-1.3.0.ebuild rename to dev-python/tekore/tekore-1.4.0.ebuild index 7f8ce98301..a962f195e6 100644 --- a/dev-python/tekore/tekore-1.3.0.ebuild +++ b/dev-python/tekore/tekore-1.4.0.ebuild @@ -16,7 +16,7 @@ LICENSE="MIT" KEYWORDS="~amd64 ~x86" SLOT="0" -distutils_enable_sphinx docs +distutils_enable_sphinx docs/src # the enable_sphinx fucntion seems to act strange when there is only 1 PYTHON_COMPAT # repoman says: @@ -37,14 +37,6 @@ DOCS="readme.rst" distutils_enable_tests pytest -python_prepare_all() { - # docs fail: AttributeError: 'PosixPath' object has no attribute 'rstrip' - sed -i -e 's:sys.path.insert(0, _root):#&:' \ - docs/conf.py || die - - distutils-r1_python_prepare_all -} - python_test() { pytest -vv tests/* || die "Tests fail with ${EPYTHON}" } From 7b6f96093344b4e6d8463b21afa48c213ecf9fc5 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 11:26:19 +0100 Subject: [PATCH 078/138] dev-python/tekore: Remove unnecessary pytest-qt dep why was that there? tests work just fine without it Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/tekore/tekore-1.4.0.ebuild | 2 -- 1 file changed, 2 deletions(-) diff --git a/dev-python/tekore/tekore-1.4.0.ebuild b/dev-python/tekore/tekore-1.4.0.ebuild index a962f195e6..cff5cc9389 100644 --- a/dev-python/tekore/tekore-1.4.0.ebuild +++ b/dev-python/tekore/tekore-1.4.0.ebuild @@ -31,8 +31,6 @@ BDEPEND="doc? ( RDEPEND="dev-python/requests[${PYTHON_USEDEP}] dev-python/httpx[${PYTHON_USEDEP}]" -DEPEND="test? ( dev-python/pytest-qt[${PYTHON_USEDEP}] )" - DOCS="readme.rst" distutils_enable_tests pytest From 7a8f080b369dee3d36aa5c7ec556c10a77af4ac4 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 20:25:00 +0100 Subject: [PATCH 079/138] app-misc/vrms-gentoo: Add S variable to correctly find the source directory Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild index e2cd08324e..4e9789165b 100644 --- a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild +++ b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild @@ -8,6 +8,7 @@ COMMIT="1d45e07cfa7ceed69fb7302cfd0f3e2d2453e115" SRC_URI="https://github.com/z411/vrms-gentoo/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" DESCRIPTION="vrms clone for Gentoo Linux" HOMEPAGE="https://github.com/z411/vrms-gentoo" + LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" @@ -15,6 +16,8 @@ KEYWORDS="~amd64" DEPEND="" RDEPEND="dev-lang/perl" +S="${WORKDIR}/${PN}-${COMMIT}" + src_install() { dobin "${PN}" dodoc README.md From 8a66925d41b811a5f63a201f32fab14374cea699 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 20:31:15 +0100 Subject: [PATCH 080/138] dev-vcs/git-blame-someone-else: Add S variable to correctly find source dir Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- .../git-blame-someone-else-2018.06.13.ebuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild index 358654fadd..a635accd83 100644 --- a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild @@ -8,6 +8,7 @@ COMMIT="8d854c2d78cb98afdb9f5a73240e06393260b327" SRC_URI="https://github.com/jayphelps/git-blame-someone-else/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" DESCRIPTION="Blame someone else for your bad code." HOMEPAGE="https://github.com/jayphelps/git-blame-someone-else" + LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" @@ -16,6 +17,8 @@ IUSE="" RDEPEND="dev-vcs/git" DEPEND="" +S="${WORKDIR}/${PN}-${COMMIT}" + src_install() { dobin "${PN}" dodoc README.md From 0727330e5e1d9eb27de65a96daf20dd1f238e352 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 20:35:57 +0100 Subject: [PATCH 081/138] dev-vcs/git-repo-updater: Add DISTUTILS_USE_SETUPTOOLS=rdepend Also replaced deployed distutils_enable_tests it does exactly the same as the code that was there but it is shorter Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- .../git-repo-updater/git-repo-updater-0.5.1.ebuild | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild b/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild index 23a9d55a8b..e7c418b140 100644 --- a/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild +++ b/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild @@ -2,8 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 EAPI="7" + PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + inherit distutils-r1 DESCRIPTION="Easily update multiple git repositories at once" @@ -13,20 +16,11 @@ SRC_URI="https://github.com/earwig/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND=" >=dev-python/colorama-0.3.9[${PYTHON_USEDEP}] >=dev-python/git-python-2.1.8[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] " -DEPEND="${RDEPEND} - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - ) -" -python_test() { - pytest -vv gitup/test || die -} +distutils_enable_tests pytest From 87f7034575a88dfa610bd04db579ef26c5433720 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 20:37:19 +0100 Subject: [PATCH 082/138] dev-vcs/git-repo-updater: No need to specify setuptools in RDEPEND inherit distutils-r1 already does this for you Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild | 1 - 1 file changed, 1 deletion(-) diff --git a/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild b/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild index e7c418b140..57c079adf3 100644 --- a/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild +++ b/dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild @@ -20,7 +20,6 @@ KEYWORDS="~amd64" RDEPEND=" >=dev-python/colorama-0.3.9[${PYTHON_USEDEP}] >=dev-python/git-python-2.1.8[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] " distutils_enable_tests pytest From 50eaf9a25035b5ad09efa36ed0592f0a46bd32ba Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 20:41:15 +0100 Subject: [PATCH 083/138] dev-python/glicko2: Add distutils_enable_tests it does the same, but it's shorter Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/glicko2/glicko2-9999.ebuild | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dev-python/glicko2/glicko2-9999.ebuild b/dev-python/glicko2/glicko2-9999.ebuild index 2caf8b183d..c23bbee1ff 100644 --- a/dev-python/glicko2/glicko2-9999.ebuild +++ b/dev-python/glicko2/glicko2-9999.ebuild @@ -20,18 +20,10 @@ HOMEPAGE="https://github.com/sublee/glicko2" LICENSE="BSD" SLOT="0" KEYWORDS="" -IUSE="test" -RESTRICT="!test? ( test )" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] -" +distutils_enable_tests setup.py src_prepare() { sed -i -e "s/distribute/setuptools/g" setup.py eapply_user } - -python_test() { - "${PYTHON}" setup.py test || die -} From a6d75a4b98f37d7bda74e8cbcff201bcccbd16cb Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 20:45:13 +0100 Subject: [PATCH 084/138] dev-python/atomiclong: Deploy distutils_enable_tests Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/atomiclong/atomiclong-0.1.1.ebuild | 16 +++------------- dev-python/atomiclong/atomiclong-9999.ebuild | 13 ++----------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/dev-python/atomiclong/atomiclong-0.1.1.ebuild b/dev-python/atomiclong/atomiclong-0.1.1.ebuild index 7b15a08711..5b110c19aa 100644 --- a/dev-python/atomiclong/atomiclong-0.1.1.ebuild +++ b/dev-python/atomiclong/atomiclong-0.1.1.ebuild @@ -2,29 +2,19 @@ # Distributed under the terms of the GNU General Public License v2 EAPI="7" + PYTHON_COMPAT=( python3_{6,7} ) inherit distutils-r1 -SRC_URI="https://files.pythonhosted.org/packages/86/8c/70aea8215c6ab990f2d91e7ec171787a41b7fbc83df32a067ba5d7f3324f/${P}.tar.gz" - +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" DESCRIPTION="An AtomicLong type using CFFI." HOMEPAGE="https://github.com/dreid/atomiclong" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - ) -" - -python_test() { - pytest -vv || die -} +distutils_enable_tests pytest diff --git a/dev-python/atomiclong/atomiclong-9999.ebuild b/dev-python/atomiclong/atomiclong-9999.ebuild index 788043a928..87c8abf50e 100644 --- a/dev-python/atomiclong/atomiclong-9999.ebuild +++ b/dev-python/atomiclong/atomiclong-9999.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI="7" + PYTHON_COMPAT=( python3_{6,7} ) inherit distutils-r1 @@ -16,17 +17,7 @@ HOMEPAGE="https://github.com/dreid/atomiclong" LICENSE="MIT" SLOT="0" KEYWORDS="" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - ) -" - -python_test() { - pytest -vv || die -} +distutils_enable_tests pytest From c121f6c49b85e39bc526007ddb8d8cb247cb599f Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 22:15:01 +0100 Subject: [PATCH 085/138] sci-electronics/kactus2: inherit xdg instead of xdg-utils Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sci-electronics/kactus2/kactus2-3.8.0.ebuild | 14 +------------- sci-electronics/kactus2/kactus2-9999.ebuild | 14 +------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/sci-electronics/kactus2/kactus2-3.8.0.ebuild b/sci-electronics/kactus2/kactus2-3.8.0.ebuild index 206e1429da..18fa71e590 100644 --- a/sci-electronics/kactus2/kactus2-3.8.0.ebuild +++ b/sci-electronics/kactus2/kactus2-3.8.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit xdg-utils +inherit xdg DESCRIPTION="A open source IP-XACT-based tool" HOMEPAGE=" @@ -45,15 +45,3 @@ src_install() { # Can't use default, set INSTALL_ROOT and workaround parallel install bug emake -j1 INSTALL_ROOT="${D}" install } - -pkg_postinst() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} diff --git a/sci-electronics/kactus2/kactus2-9999.ebuild b/sci-electronics/kactus2/kactus2-9999.ebuild index 4660d73543..eea82bb54f 100644 --- a/sci-electronics/kactus2/kactus2-9999.ebuild +++ b/sci-electronics/kactus2/kactus2-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit xdg-utils +inherit xdg DESCRIPTION="A open source IP-XACT-based tool" HOMEPAGE=" @@ -41,15 +41,3 @@ src_install() { # Can't use default, set INSTALL_ROOT emake INSTALL_ROOT="${D}" install } - -pkg_postinst() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} From a8635b19166658f9f7788616cac4cf2f150d94c9 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 22:29:04 +0100 Subject: [PATCH 086/138] media-video/vidify: iherit xdg instead of xdg-utils Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify/vidify-2.1.0.ebuild | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/media-video/vidify/vidify-2.1.0.ebuild b/media-video/vidify/vidify-2.1.0.ebuild index 7432733d74..7cc16ddde0 100644 --- a/media-video/vidify/vidify-2.1.0.ebuild +++ b/media-video/vidify/vidify-2.1.0.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_7 ) DISTUTILS_USE_SETUPTOOLS=rdepend -inherit eutils distutils-r1 xdg-utils +inherit eutils xdg distutils-r1 DESCRIPTION="Watch music videos in real time for the songs playing on your device" HOMEPAGE="https://github.com/vidify/vidify" @@ -47,8 +47,7 @@ python_prepare_all() { } pkg_postinst() { - xdg_desktop_database_update - xdg_icon_cache_update + xdg_pkg_postinst use mpv && elog "media-video/vlc is the default vidify player, to use mpv run 'vidify --player mpv' or set 'player = mpv' in the config file" use vlc && elog "If video playback is not working please check 'vidify --debug' for missing-codec-errors and recompile media-video/vlc with the missing codecs" @@ -57,8 +56,3 @@ pkg_postinst() { optfeature "'vidify --dark-mode'" dev-python/qdarkstyle optfeature "'vidify --audiosync'" media-video/vidify-audiosync } - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update -} From b21e21549b3f2d3988c3711fa8b139ba6b02cb77 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 2 Mar 2020 22:49:50 +0100 Subject: [PATCH 087/138] app-misc/mat2: Version bump 0.10.1 Fixed test? in rdepend, repoman complains about that Added DISTUTILS_USE_SETUPTOOLS=rdepend, cause emerge complained about that Added py3.8 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- app-misc/mat2/Manifest | 2 +- ...{mat2-0.10.0.ebuild => mat2-0.10.1.ebuild} | 26 ++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) rename app-misc/mat2/{mat2-0.10.0.ebuild => mat2-0.10.1.ebuild} (78%) diff --git a/app-misc/mat2/Manifest b/app-misc/mat2/Manifest index edb62adb1e..9a3e440e22 100644 --- a/app-misc/mat2/Manifest +++ b/app-misc/mat2/Manifest @@ -1 +1 @@ -DIST mat2-0.10.0.tar.gz 5720611 BLAKE2B 3aeb1b5fb1e5b39d5a59e84de48a1fefed8afff31d7ae2827324b9d54eab8a95f28f0e1de94d6c96ba250249531782f4a2cff4a82fdccc85da7382d00294fdaf SHA512 7434365766f5ba893b5b51e852d73af6b1dd562f3804e46b2aa5bf2097694d5465f0ddb5e401b157ed899a86caca2dd405424c5a7c86d66190cefd30eee3ba65 +DIST mat2-0.10.1.tar.gz 5780327 BLAKE2B d8ffeb1c10409aa4fb93849e641c13bb65508441fb847db2a46f289becd33a160ac711c3c3fb302bfbacd5704acc9b15876a182916cf3d34bf8bb867836fe6b4 SHA512 ee6ec621b3e98cfcf2f341364f60d853be8aedbee88fd41d2cc97888ba7ee33f7610f165cdf140e0169fbdabd41ecafe80a30dab44dc9f2b1cb501973a8e403a diff --git a/app-misc/mat2/mat2-0.10.0.ebuild b/app-misc/mat2/mat2-0.10.1.ebuild similarity index 78% rename from app-misc/mat2/mat2-0.10.0.ebuild rename to app-misc/mat2/mat2-0.10.1.ebuild index a6d6c23e29..96710588b4 100644 --- a/app-misc/mat2/mat2-0.10.0.ebuild +++ b/app-misc/mat2/mat2-0.10.1.ebuild @@ -1,27 +1,27 @@ -# Copyright 2019 Gentoo Authors +# Copyright 2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -# Supports python3_8 but not all it's deps in the tree do yet -PYTHON_COMPAT=(python3_{5,6,7}) +PYTHON_COMPAT=(python3_{6,7,8}) PYTHON_REQ_USE="xml" +DISTUTILS_USE_SETUPTOOLS=rdepend + inherit distutils-r1 DESCRIPTION="Metadata Anonymisation Toolkit: handy tool to trash your metadata" HOMEPAGE="https://0xacab.org/jvoisin/mat2" +SRC_URI="https://0xacab.org/jvoisin/mat2/-/archive/${PV}/${P}.tar.gz" + LICENSE="LGPL-3" SLOT="0" -SRC_URI="https://0xacab.org/jvoisin/mat2/-/archive/${PV}/${P}.tar.gz" KEYWORDS="~amd64" -IUSE="+exif sandbox video test" -REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( exif video )" -RESTRICT="!test? ( test )" -DEPEND="${PYTHON_DEPS}" -RDEPEND=" - ${DEPEND} +IUSE="+exif sandbox video" +REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( exif video )" + +RDEPEND="${PYTHON_DEPS} media-libs/mutagen:0[${PYTHON_USEDEP}] dev-python/pycairo:0[${PYTHON_USEDEP}] dev-python/pygobject:3[${PYTHON_USEDEP}] @@ -31,10 +31,12 @@ RDEPEND=" exif? ( media-libs/exiftool:* ) sandbox? ( sys-apps/bubblewrap ) video? ( media-video/ffmpeg:* ) +" + +DEPEND="${RDEPEND} test? ( media-video/ffmpeg[mp3,vorbis] x11-libs/gdk-pixbuf:2[jpeg,tiff] - ) -" + )" distutils_enable_tests unittest From 375281ea671695c9a6070d9dcb9f1a493274fc96 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Mon, 2 Mar 2020 22:47:21 +0100 Subject: [PATCH 088/138] sys-cluster/genders: removed quotes Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/genders/genders-1.27.3.ebuild | 4 ++-- sys-cluster/genders/genders-9999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys-cluster/genders/genders-1.27.3.ebuild b/sys-cluster/genders/genders-1.27.3.ebuild index 3d13ce419e..3809e42208 100644 --- a/sys-cluster/genders/genders-1.27.3.ebuild +++ b/sys-cluster/genders/genders-1.27.3.ebuild @@ -59,14 +59,14 @@ src_configure() { use java && append-cflags "-I${S}/src/libgenders" use java && append-cflags "$(java-pkg_get-jni-cflags)" - local myconf="( + local myconf=( --disable-static --with-non-shortened-hostnames $(use_with cxx cplusplus-extensions) $(use_with java java-extensions) $(use_with perl perl-extensions) $(use_with python python-extensions) - )" + ) econf "${myconf[@]}" } diff --git a/sys-cluster/genders/genders-9999.ebuild b/sys-cluster/genders/genders-9999.ebuild index 3d13ce419e..3809e42208 100644 --- a/sys-cluster/genders/genders-9999.ebuild +++ b/sys-cluster/genders/genders-9999.ebuild @@ -59,14 +59,14 @@ src_configure() { use java && append-cflags "-I${S}/src/libgenders" use java && append-cflags "$(java-pkg_get-jni-cflags)" - local myconf="( + local myconf=( --disable-static --with-non-shortened-hostnames $(use_with cxx cplusplus-extensions) $(use_with java java-extensions) $(use_with perl perl-extensions) $(use_with python python-extensions) - )" + ) econf "${myconf[@]}" } From 6f783fe6d58fb58dd0d6a3e6063aade441a84322 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Mon, 2 Mar 2020 22:49:47 +0100 Subject: [PATCH 089/138] sys-cluster/rankstr: unconditionally depend on MPI Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/rankstr/rankstr-0.0.2.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys-cluster/rankstr/rankstr-0.0.2.ebuild b/sys-cluster/rankstr/rankstr-0.0.2.ebuild index ffe57a9bb3..d3db9858ee 100644 --- a/sys-cluster/rankstr/rankstr-0.0.2.ebuild +++ b/sys-cluster/rankstr/rankstr-0.0.2.ebuild @@ -12,11 +12,11 @@ SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="mpi test" +IUSE="test" RESTRICT="!test? ( test )" RDEPEND=" - mpi? ( virtual/mpi ) + virtual/mpi " DEPEND="${RDEPEND}" BDEPEND=" @@ -32,7 +32,7 @@ src_prepare() { src_configure() { local mycmakeargs=( - -DMPI="$(usex mpi "" OFF)" + -DMPI="ON" ) cmake-utils_src_configure } From 0df5799804c272d796e18816c78f6a90aa1b218a Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Mon, 2 Mar 2020 22:51:32 +0100 Subject: [PATCH 090/138] sys-cluster/shuffile: unconditionally depend on MPI Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/shuffile/shuffile-0.0.3.ebuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys-cluster/shuffile/shuffile-0.0.3.ebuild b/sys-cluster/shuffile/shuffile-0.0.3.ebuild index 5054b99ccf..cb7febfa86 100644 --- a/sys-cluster/shuffile/shuffile-0.0.3.ebuild +++ b/sys-cluster/shuffile/shuffile-0.0.3.ebuild @@ -12,18 +12,19 @@ SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="mpi test" +IUSE="test" RESTRICT="!test? ( test )" RDEPEND=" - mpi? ( virtual/mpi ) - sys-libs/zlib >=sys-cluster/KVTree-1.0.2 + sys-libs/zlib + virtual/mpi " DEPEND="${RDEPEND}" BDEPEND=" >=dev-util/cmake-2.8 " + src_prepare() { #do not build static library sed -i '/shuffile-static/d' src/CMakeLists.txt || die @@ -33,7 +34,7 @@ src_prepare() { src_configure() { local mycmakeargs=( - -DMPI="$(usex mpi "" OFF)" + -DMPI="ON" ) cmake-utils_src_configure } From 145f96742cdcef7e17e4ad0332f0964e59441475 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Mon, 2 Mar 2020 23:03:39 +0100 Subject: [PATCH 091/138] app-text/noweb: fix homepage, style changes Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-text/noweb/noweb-2.12.ebuild | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/app-text/noweb/noweb-2.12.ebuild b/app-text/noweb/noweb-2.12.ebuild index b361780a25..53246f68e7 100644 --- a/app-text/noweb/noweb-2.12.ebuild +++ b/app-text/noweb/noweb-2.12.ebuild @@ -8,7 +8,7 @@ inherit eutils toolchain-funcs elisp-common MYPV="$(ver_rs 1 _)" DESCRIPTION="a literate programming tool, lighter than web" -HOMEPAGE="http://www.eecs.harvard.edu/~nr/noweb/" +HOMEPAGE="https://www.cs.tufts.edu/~nr/noweb/" SRC_URI="https://github.com/nrnrnr/${PN}/archive/v${MYPV}.tar.gz -> ${P}.tar.gz" LICENSE=" @@ -19,10 +19,13 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos" IUSE="emacs examples" -DEPEND="virtual/tex-base +DEPEND=" dev-lang/icon sys-apps/debianutils - emacs? ( app-editors/emacs:= )" + virtual/tex-base + + emacs? ( app-editors/emacs:= ) +" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}-${MYPV}" @@ -81,7 +84,7 @@ src_install () { dodir "/usr/libexec/${PN}" dodir /usr/share/man dodir /usr/share/texmf-site/tex/inputs - emake ICONC="icont" \ + emake ICONC="icont" \ BIN="${ED}/usr/bin" \ LIBSRC="icon" \ LIBNAME="${EPREFIX}/usr/libexec/${PN}" \ @@ -90,11 +93,14 @@ src_install () { TEXNAME="${EPREFIX}/usr/share/texmf-site/tex/inputs" \ TEXINPUTS="${ED}/usr/share/texmf-site/tex/inputs" \ install || die "make install failed" + cd "${S}" + if use examples; then insinto "/usr/share/doc/${PF}/examples" - doins examples/* + doins -r examples/. fi + dodoc CHANGES README if use emacs; then From 636e0357de507f7e727257ee9cd9646b4cc2482f Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 00:43:19 +0100 Subject: [PATCH 092/138] sci-libs/ann: use DOCS array Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sci-libs/ann/ann-1.1.2_p7.ebuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sci-libs/ann/ann-1.1.2_p7.ebuild b/sci-libs/ann/ann-1.1.2_p7.ebuild index 1716b3b1bf..afd6d3ee77 100644 --- a/sci-libs/ann/ann-1.1.2_p7.ebuild +++ b/sci-libs/ann/ann-1.1.2_p7.ebuild @@ -24,6 +24,8 @@ BDEPEND="dev-util/quilt" S="${WORKDIR}/${MY_P}+doc" +DOCS=( doc/ANNmanual.pdf doc/ReadMe.txt ) + src_prepare() { export QUILT_PATCHES="${WORKDIR}/debian/patches" export QUILT_SERIES="${QUILT_PATCHES}/series" @@ -48,11 +50,7 @@ src_install() { insinto /usr/include/ANN doins -r include/ANN/. - dodoc doc/ANNmanual.pdf - dodoc doc/Copyright.txt - dodoc doc/ReadMe.txt - - insinto /usr/share/ANN/sample + insinto "/usr/share/${P}/sample" doins sample/query.pts doins sample/sample.save doins sample/data.pts From d3c1f86342377dd4deaad96af58e47cab06bf3df Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:27:56 +0100 Subject: [PATCH 093/138] sci-libs/meschach: install test programs and stile changes Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sci-libs/meschach/meschach-1.2b.ebuild | 47 +++++++++++++++----------- sci-libs/meschach/metadata.xml | 1 - 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/sci-libs/meschach/meschach-1.2b.ebuild b/sci-libs/meschach/meschach-1.2b.ebuild index b7a301721c..5cf39ebceb 100644 --- a/sci-libs/meschach/meschach-1.2b.ebuild +++ b/sci-libs/meschach/meschach-1.2b.ebuild @@ -5,6 +5,9 @@ EAPI="7" inherit autotools eutils +MAJOR="$(ver_cut 1)" +VERSION="$(ver_cut 1-2)" + DESCRIPTION="Meschach is a C-language library of routines for performing matrix computations." HOMEPAGE="http://homepage.divms.uiowa.edu/~dstewart/meschach" SRC_URI="http://cdn-fastly.deb.debian.org/debian/pool/main/m/meschach/${PN}_${PV}.orig.tar.gz \ @@ -13,8 +16,7 @@ http://cdn-fastly.deb.debian.org/debian/pool/main/m/meschach/${PN}_${PV}-14.debi LICENSE="meschach" SLOT="0" KEYWORDS="~amd64" -IUSE="complex +double float munroll old segmem sparse test unroll" -RESTRICT="!test? ( test )" +IUSE="complex +double float munroll old segmem sparse unroll" REQUIRED_USE=" ^^ ( double float ) " @@ -24,6 +26,8 @@ PATCHES=( "${WORKDIR}/debian/patches/${PN}_${PV}-13.configure.diff" ) +DOCS=( README ) + src_prepare() { default sed -i -- 's/CFLAGS = -O3 -fPIC/CFLAGS = @CFLAGS@ -fPIC/g' makefile.in @@ -47,27 +51,30 @@ src_configure() { } src_compile() { - emake DESTDIR="${D}" all - use test && emake alltorture + emake vers="${VERSION}" DESTDIR="${D}" all + emake alltorture } src_install() { - dolib.so libmeschach.so - insinto /usr/include/meschach + ln -s "lib${PN}.so" "lib${PN}.so.${MAJOR}" + ln -s "lib${PN}.so.${MAJOR}" "lib${PN}.so.${VERSION}" + + dolib.so "lib${PN}.so" + dolib.so "lib${PN}.so.${MAJOR}" + dolib.so "lib${PN}.so.${VERSION}" + insinto "/usr/include/${PN}" doins *.h - use test && dodir /usr/libexec/meschach - use test && exeinto /usr/libexec/meschach - use test && doexe iotort - use test && doexe itertort - use test && doexe macheps - use test && doexe maxint - use test && doexe memtort - use test && doexe mfuntort - use test && doexe sptort - use test && doexe torture - use test && doexe ztorture - use test && insinto /usr/libexec/meschach - use test && doins *.dat + exeinto "/usr/libexec/${PN}" + doexe iotort + doexe itertort + doexe macheps + doexe maxint + doexe memtort + doexe mfuntort + doexe sptort + doexe torture + doexe ztorture + insinto "/usr/share/${P}" + doins *.dat dodoc -r DOC/. - dodoc README } diff --git a/sci-libs/meschach/metadata.xml b/sci-libs/meschach/metadata.xml index fc8c04d33f..fde1c14447 100644 --- a/sci-libs/meschach/metadata.xml +++ b/sci-libs/meschach/metadata.xml @@ -35,7 +35,6 @@ allocation/deallocation of memory. build no longer supported functions should be set if you are working with a machine or compiler that does not allow large arrays to be allocated. See README incorporate sparse matrix functions - build test programs unroll low level loops on vectors From 826ed85ef89db68fca8e272bf850dae44927e2b0 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:31:22 +0100 Subject: [PATCH 094/138] sci-libs/chaco: quotes Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sci-libs/chaco/chaco-2.2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-libs/chaco/chaco-2.2.ebuild b/sci-libs/chaco/chaco-2.2.ebuild index 36c808aeea..d4f784cf01 100644 --- a/sci-libs/chaco/chaco-2.2.ebuild +++ b/sci-libs/chaco/chaco-2.2.ebuild @@ -27,6 +27,6 @@ src_install() { cd code emake cd .. - dobin exec/chaco - dodoc doc/* + dobin "exec/chaco" + dodoc -r doc/. } From cb44d7d09d9cde91edd3eb2d7bbbfe6c0d50cb33 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:32:28 +0100 Subject: [PATCH 095/138] app-misc/vrms-gentoo: use DOCS variable Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild index 4e9789165b..ef5da2ac0a 100644 --- a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild +++ b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild @@ -16,9 +16,10 @@ KEYWORDS="~amd64" DEPEND="" RDEPEND="dev-lang/perl" +DOCS=( README.md ) + S="${WORKDIR}/${PN}-${COMMIT}" src_install() { dobin "${PN}" - dodoc README.md } From 638d4809719520631f61ce669e6b174f7d3c4b81 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:34:44 +0100 Subject: [PATCH 096/138] app-portage/portconf: use DOCS array Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-portage/portconf/portconf-1.6.8-r1.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app-portage/portconf/portconf-1.6.8-r1.ebuild b/app-portage/portconf/portconf-1.6.8-r1.ebuild index e96731da8e..9e05d2efa3 100644 --- a/app-portage/portconf/portconf-1.6.8-r1.ebuild +++ b/app-portage/portconf/portconf-1.6.8-r1.ebuild @@ -21,12 +21,14 @@ RDEPEND="${DEPEND} app-portage/eix app-portage/portage-utils sys-apps/gawk + || ( app-text/agrep dev-libs/tre ) " +DOCS=( README.md ) + src_install() { dobin portconf - dodoc README.md insinto /etc newins portconf.conf portconf.conf } From f4a4f2ebcbe2d417e2df0de39f09f06e5d26fccd Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:35:48 +0100 Subject: [PATCH 097/138] app-portage/showbuild: reorder deps Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-portage/showbuild/showbuild-0.9.1-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-portage/showbuild/showbuild-0.9.1-r1.ebuild b/app-portage/showbuild/showbuild-0.9.1-r1.ebuild index d3e8c454b5..36e1f12720 100644 --- a/app-portage/showbuild/showbuild-0.9.1-r1.ebuild +++ b/app-portage/showbuild/showbuild-0.9.1-r1.ebuild @@ -15,9 +15,9 @@ IUSE="" DEPEND="" RDEPEND=" + app-shells/bash sys-apps/coreutils sys-apps/portage - app-shells/bash " S="${FILESDIR}" From 8569aee888b98c1f873aabbcd2f41bab657a42c0 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:36:56 +0100 Subject: [PATCH 098/138] app-portage/portconf: use DOCS array Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-portage/portconf/portconf-9999.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app-portage/portconf/portconf-9999.ebuild b/app-portage/portconf/portconf-9999.ebuild index 7f0ed5d11c..b2fc37b66b 100644 --- a/app-portage/portconf/portconf-9999.ebuild +++ b/app-portage/portconf/portconf-9999.ebuild @@ -21,12 +21,14 @@ RDEPEND="${DEPEND} app-portage/eix app-portage/portage-utils sys-apps/gawk + || ( app-text/agrep dev-libs/tre ) " +DOCS=( README.md ) + src_install() { dobin portconf - dodoc README.md insinto /etc newins portconf.conf portconf.conf } From 4aff30d6fdc2d0bdea5b2f7d03b782e9187c0d11 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:38:07 +0100 Subject: [PATCH 099/138] app-shells/k: use DOCS array Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-shells/k/k-0.0.5.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app-shells/k/k-0.0.5.ebuild b/app-shells/k/k-0.0.5.ebuild index 882b4c13a4..1092c8f722 100644 --- a/app-shells/k/k-0.0.5.ebuild +++ b/app-shells/k/k-0.0.5.ebuild @@ -16,8 +16,9 @@ RDEPEND=" >=dev-vcs/git-1.7.2 " +DOCS=( readme.md ) + src_install() { - dodoc "readme.md" dodir "/usr/share/zsh/plugins" insinto "/usr/share/zsh/plugins/${PN}" doins "${PN}.sh" From 2eed6d0c8a9ac7cfd384f5670caf428457ee333b Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:47:08 +0100 Subject: [PATCH 100/138] app-text/noweb: style changes, || die, DOCS array Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-text/noweb/noweb-2.12.ebuild | 43 +++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/app-text/noweb/noweb-2.12.ebuild b/app-text/noweb/noweb-2.12.ebuild index 53246f68e7..4194164b98 100644 --- a/app-text/noweb/noweb-2.12.ebuild +++ b/app-text/noweb/noweb-2.12.ebuild @@ -28,6 +28,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +DOCS=( CHANGES README ) + S="${WORKDIR}/${PN}-${MYPV}" SITEFILE="50${PN}-gentoo.el" @@ -40,19 +42,19 @@ src_prepare() { # diff -u d/ c/ # dont run texhash... - sed -i -e "s/texhash/true/" src/Makefile + sed -i -e "s/texhash/true/" src/Makefile || die # dont strip... - sed -i -e "s/strip/true/" src/Makefile + sed -i -e "s/strip/true/" src/Makefile || die - sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/Makefile - sed -i -e "s/CFLAGS=//" src/Makefile - sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/c/Makefile - sed -i -e "s/CFLAGS=//" src/c/Makefile + sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/Makefile || die + sed -i -e "s/CFLAGS=//" src/Makefile || die + sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/c/Makefile || die + sed -i -e "s/CFLAGS=//" src/c/Makefile || die eapply "${FILESDIR}/${P}-recmake.patch" - sed -i -e "s/CC = cc//" contrib/norman/numarkup/Makefile - sed -i -e "s/CFLAGS = -O//" contrib/norman/numarkup/Makefile + sed -i -e "s/CC = cc//" contrib/norman/numarkup/Makefile || die + sed -i -e "s/CFLAGS = -O//" contrib/norman/numarkup/Makefile || die eapply "${FILESDIR}/${P}-ldflags.patch" eapply_user @@ -61,13 +63,27 @@ src_prepare() { src_compile() { # noweb tries to use notangle and noweb; see bug #50429 cd "${S}/src/c" - ( emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die + + emake ICONC="icont" \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LIBSRC="icon" || die + export PATH="${PATH}:${T}" cd "${S}/src" - ( emake ICONC="icont" CC="$(tc-getCC)" BIN="${T}" LIB="${T}" LIBSRC="icon" install-code ) \ - || die "make temporal install failed." - ( emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die "make failed" + emake ICONC="icont" \ + CC="$(tc-getCC)" \ + BIN="${T}" \ + LIB="${T}" \ + LIBSRC="icon" \ + install-code || die "make temporal install failed." + + emake ICONC="icont" \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LIBSRC="icon" || die "make failed" + # Set awk to awk not nawk ./awkname awk @@ -84,6 +100,7 @@ src_install () { dodir "/usr/libexec/${PN}" dodir /usr/share/man dodir /usr/share/texmf-site/tex/inputs + emake ICONC="icont" \ BIN="${ED}/usr/bin" \ LIBSRC="icon" \ @@ -101,8 +118,6 @@ src_install () { doins -r examples/. fi - dodoc CHANGES README - if use emacs; then elisp-install "${PN}" "${S}"/src/elisp/noweb-mode.{el,elc} \ || die "elisp-install failed" From ce17562f656f8c2ebba9e4a229662f9cc652028b Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 05:56:25 +0100 Subject: [PATCH 101/138] dev-lang/aldor: keywording Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-lang/aldor/Manifest | 1 + dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 24 ++++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/dev-lang/aldor/Manifest b/dev-lang/aldor/Manifest index 3a7e98b7f7..f37bff3b5f 100644 --- a/dev-lang/aldor/Manifest +++ b/dev-lang/aldor/Manifest @@ -1,2 +1,3 @@ +DIST aldor-1.2.0_p20190730.tar.gz 3037647 BLAKE2B 579350d9b6407506a396f42dd2408693dced58f1786cbf7b81b9ddc1b9b986f7f471b3d961c22ccbe9b7566a240de5a9af11f5cfdae1e69d25adb0fb0d1f7090 SHA512 39b1b6f9cd2e09de691c179dcce26e1d43205099f7fa9a9cd1a1ac5340fc85a616eab5887d310b5f9991e7296cfdfdf55b38cadabb7ceb7b6b135a09a5ee53d5 DIST aldor.el.nw 50217 BLAKE2B 12c822b608d995832028cc6c67126c71f05e50d941c0b22fd82fd95a1f968e64150f721982ff8e42f897811c17d2ee0b3135f5c9f57701f99bdce1f8be3fb82c SHA512 6a01873530269ff21afd494a00a8159e48e6199e9aff38259156b8ee8ce21256394629225d857d7d087fd02d1bed3d0de76812656f294f9eb322bed594f4d65e DIST libaldor.pdf.gz 434487 BLAKE2B 629dbf284db72afb98a8bc1a44df63dc0a3394fdd4361ec48a0d4811f8e931384fc257ad8f3931b7966aee25b0a015062ef8c8ab4e0ebf5978b5deda58c00ab6 SHA512 9ed1f067dd4ee11e5a440f31a9a29eb9248fcfb4349005f42c230a97190853d17e423ce677894a478644ca4964d0ba857465adfe405092c1e6512ced452eedc3 diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild index 5a4414cebd..952e5919a0 100644 --- a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild @@ -3,28 +3,32 @@ EAPI="7" -EGIT_REPO_URI="https://github.com/pippijn/aldor.git" -EGIT_COMMIT="13e5b90" +COMMIT="13e5b90eecc79ec6704efb333c4c100187520e80" AUTOTOOLS_AUTORECONF=1 AUTOTOOLS_IN_SOURCE_BUILD=1 - -inherit git-r3 autotools elisp-common +inherit autotools elisp-common DESCRIPTION="The Aldor Programming Language" HOMEPAGE="http://pippijn.github.io/aldor" -SRC_URI="doc? ( http://aldor.org/docs/libaldor.pdf.gz ) - emacs? ( http://hemmecke.de/aldor/aldor.el.nw )" +SRC_URI=" https://github.com/pippijn/aldor/archive/${COMMIT}.tar.gz -> ${P}.tar.gz + doc? ( http://aldor.org/docs/libaldor.pdf.gz ) + emacs? ( http://hemmecke.de/aldor/aldor.el.nw )" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="" +KEYWORDS="~amd64" IUSE="doc emacs" -RDEPEND="emacs? ( app-editors/emacs:= )" -DEPEND="${RDEPEND} +RDEPEND=" + emacs? ( app-editors/emacs:= ) +" +DEPEND=" + ${RDEPEND} virtual/yacc + doc? ( virtual/latex-base ) - emacs? ( app-text/noweb )" + emacs? ( app-text/noweb ) +" DOCS=( AUTHORS COPYRIGHT LICENSE ) From ed7eb49777b8d6bb2222973302795edb7a4968da Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 06:02:25 +0100 Subject: [PATCH 102/138] dev-vcs/git-blame-someone-else: use DOCS array Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- .../git-blame-someone-else-2018.06.13.ebuild | 7 +++++-- .../git-blame-someone-else-9999.ebuild | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild index a635accd83..a75290369f 100644 --- a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild @@ -14,12 +14,15 @@ SLOT="0" KEYWORDS="~amd64" IUSE="" -RDEPEND="dev-vcs/git" +RDEPEND=" + dev-vcs/git +" DEPEND="" +DOCS=( README.md ) + S="${WORKDIR}/${PN}-${COMMIT}" src_install() { dobin "${PN}" - dodoc README.md } diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild index b450a82d03..efd6a9c0f4 100644 --- a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild @@ -14,10 +14,13 @@ SLOT="0" KEYWORDS="" IUSE="" -RDEPEND="dev-vcs/git" +RDEPEND=" + dev-vcs/git +" DEPEND="" +DOCS=( README.md ) + src_install() { dobin "${PN}" - dodoc README.md } From 4803affbf0d1fe8c06c9aeb9dbcdc9268440832e Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 06:08:01 +0100 Subject: [PATCH 103/138] sys-cluster/genders: use DOCS array Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/genders/genders-1.27.3.ebuild | 3 ++- sys-cluster/genders/genders-9999.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys-cluster/genders/genders-1.27.3.ebuild b/sys-cluster/genders/genders-1.27.3.ebuild index 3809e42208..8719f05889 100644 --- a/sys-cluster/genders/genders-1.27.3.ebuild +++ b/sys-cluster/genders/genders-1.27.3.ebuild @@ -30,6 +30,8 @@ LICENSE="GPL-2" SLOT="0" IUSE="cxx java perl python" +DOCS=( README TUTORIAL NEWS ) + CDEPEND=" perl? ( dev-lang/perl:= ) python? ( ${PYTHON_DEPS} ) @@ -88,7 +90,6 @@ src_compile() { src_install() { default - dodoc README TUTORIAL NEWS if use perl ; then cd "${S}/src/extensions/perl" diff --git a/sys-cluster/genders/genders-9999.ebuild b/sys-cluster/genders/genders-9999.ebuild index 3809e42208..8719f05889 100644 --- a/sys-cluster/genders/genders-9999.ebuild +++ b/sys-cluster/genders/genders-9999.ebuild @@ -30,6 +30,8 @@ LICENSE="GPL-2" SLOT="0" IUSE="cxx java perl python" +DOCS=( README TUTORIAL NEWS ) + CDEPEND=" perl? ( dev-lang/perl:= ) python? ( ${PYTHON_DEPS} ) @@ -88,7 +90,6 @@ src_compile() { src_install() { default - dodoc README TUTORIAL NEWS if use perl ; then cd "${S}/src/extensions/perl" From ffabb5bc58dad0909b26d21238f81966744f5df9 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 06:09:50 +0100 Subject: [PATCH 104/138] sys-cluster/redset: use DOCS array Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/redset/redset-0.0.4.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys-cluster/redset/redset-0.0.4.ebuild b/sys-cluster/redset/redset-0.0.4.ebuild index e7c6928840..1a0bff3b06 100644 --- a/sys-cluster/redset/redset-0.0.4.ebuild +++ b/sys-cluster/redset/redset-0.0.4.ebuild @@ -17,6 +17,7 @@ RESTRICT="!test? ( test )" RDEPEND=" mpi? ( virtual/mpi ) + sys-cluster/KVTree sys-cluster/rankstr sys-libs/zlib @@ -26,6 +27,8 @@ BDEPEND=" >=dev-util/cmake-2.8 " +DOCS=( README.md ) + src_prepare() { #do not build static library sed -i '/redset-static/d' src/CMakeLists.txt @@ -42,6 +45,5 @@ src_configure() { src_install() { cmake-utils_src_install - dodoc README.md dodoc -r doc/rst/. } From c13d5300f271b27862ada256f8df300e937c5de0 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 08:01:49 +0100 Subject: [PATCH 105/138] app-portage/portconf: einstalldocs Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-portage/portconf/portconf-1.6.8-r1.ebuild | 1 + app-portage/portconf/portconf-9999.ebuild | 1 + 2 files changed, 2 insertions(+) diff --git a/app-portage/portconf/portconf-1.6.8-r1.ebuild b/app-portage/portconf/portconf-1.6.8-r1.ebuild index 9e05d2efa3..59b4014b7f 100644 --- a/app-portage/portconf/portconf-1.6.8-r1.ebuild +++ b/app-portage/portconf/portconf-1.6.8-r1.ebuild @@ -31,4 +31,5 @@ src_install() { dobin portconf insinto /etc newins portconf.conf portconf.conf + einstalldocs } diff --git a/app-portage/portconf/portconf-9999.ebuild b/app-portage/portconf/portconf-9999.ebuild index b2fc37b66b..074a56a8ae 100644 --- a/app-portage/portconf/portconf-9999.ebuild +++ b/app-portage/portconf/portconf-9999.ebuild @@ -31,4 +31,5 @@ src_install() { dobin portconf insinto /etc newins portconf.conf portconf.conf + einstalldocs } From 9b52d69478a608e003f44906a02a299a7d0d64dc Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 09:40:46 +0100 Subject: [PATCH 106/138] app-misc/vrms-gentoo: call einstalldocs Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild | 5 ++++- app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild index ef5da2ac0a..16976e087b 100644 --- a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild +++ b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild @@ -14,7 +14,9 @@ SLOT="0" KEYWORDS="~amd64" DEPEND="" -RDEPEND="dev-lang/perl" +RDEPEND=" + dev-lang/perl +" DOCS=( README.md ) @@ -22,4 +24,5 @@ S="${WORKDIR}/${PN}-${COMMIT}" src_install() { dobin "${PN}" + einstalldocs } diff --git a/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild b/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild index 31090f7ccd..3ecf2e5c8a 100644 --- a/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild +++ b/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild @@ -18,7 +18,9 @@ RDEPEND=" dev-lang/perl " +DOCS=( README.md ) + src_install() { dobin "${PN}" - dodoc README.md + einstalldocs } From 4a6d7d767204c4158d745b967e17f4d356de06e2 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 09:45:57 +0100 Subject: [PATCH 107/138] app-shells/k: call einstalldocs Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-shells/k/k-0.0.5.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/app-shells/k/k-0.0.5.ebuild b/app-shells/k/k-0.0.5.ebuild index 1092c8f722..7202c921b6 100644 --- a/app-shells/k/k-0.0.5.ebuild +++ b/app-shells/k/k-0.0.5.ebuild @@ -22,6 +22,7 @@ src_install() { dodir "/usr/share/zsh/plugins" insinto "/usr/share/zsh/plugins/${PN}" doins "${PN}.sh" + einstalldocs } pkg_postinst() { From 0ed6a265f5b7d2a7c4ac4aa660e9145b19504d51 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 09:50:25 +0100 Subject: [PATCH 108/138] app-text/noweb: call einstalldocs Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- app-text/noweb/noweb-2.12.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/app-text/noweb/noweb-2.12.ebuild b/app-text/noweb/noweb-2.12.ebuild index 4194164b98..c7fad30daa 100644 --- a/app-text/noweb/noweb-2.12.ebuild +++ b/app-text/noweb/noweb-2.12.ebuild @@ -124,6 +124,7 @@ src_install () { elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ || die "elisp-site-file-install failed" fi + einstalldocs } pkg_postinst() { From 7ec9cf8cd897bec2db38ffa4d9892dab2380767a Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 09:51:43 +0100 Subject: [PATCH 109/138] dev-vcs/git-blame-someone-else: call einstalldocs Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- .../git-blame-someone-else-2018.06.13.ebuild | 1 + .../git-blame-someone-else/git-blame-someone-else-9999.ebuild | 1 + 2 files changed, 2 insertions(+) diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild index a75290369f..2392565b75 100644 --- a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild @@ -25,4 +25,5 @@ S="${WORKDIR}/${PN}-${COMMIT}" src_install() { dobin "${PN}" + einstalldocs } diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild index efd6a9c0f4..4437f32962 100644 --- a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild @@ -23,4 +23,5 @@ DOCS=( README.md ) src_install() { dobin "${PN}" + einstalldocs } From cebfb86b416b9767fc10e867ab13f49437e5edc4 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 09:53:52 +0100 Subject: [PATCH 110/138] sci-libs/ann: call einstalldocs Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sci-libs/ann/ann-1.1.2_p7.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sci-libs/ann/ann-1.1.2_p7.ebuild b/sci-libs/ann/ann-1.1.2_p7.ebuild index afd6d3ee77..29ae28e4bd 100644 --- a/sci-libs/ann/ann-1.1.2_p7.ebuild +++ b/sci-libs/ann/ann-1.1.2_p7.ebuild @@ -31,6 +31,7 @@ src_prepare() { export QUILT_SERIES="${QUILT_PATCHES}/series" quilt push -a || die eapply_user + eautoreconf } @@ -47,6 +48,7 @@ src_test() { src_install() { emake DESTDIR="${D}" install + insinto /usr/include/ANN doins -r include/ANN/. @@ -62,5 +64,8 @@ src_install() { doman ann_sample.1 doman ann_test.1 doman ann2fig.1 + + einstalldocs + find "${D}" -name '*.la' -delete || die } From 303587d1b9f78a03c07ac23028a7a21d43b75194 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2020 09:55:40 +0100 Subject: [PATCH 111/138] sci-libs/meschach: call einstalldocs Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sci-libs/meschach/meschach-1.2b.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sci-libs/meschach/meschach-1.2b.ebuild b/sci-libs/meschach/meschach-1.2b.ebuild index 5cf39ebceb..e74f820f0e 100644 --- a/sci-libs/meschach/meschach-1.2b.ebuild +++ b/sci-libs/meschach/meschach-1.2b.ebuild @@ -46,7 +46,6 @@ src_configure() { $(use_with sparse) $(use_with unroll) ) - econf "${myconf[@]}" } @@ -58,12 +57,13 @@ src_compile() { src_install() { ln -s "lib${PN}.so" "lib${PN}.so.${MAJOR}" ln -s "lib${PN}.so.${MAJOR}" "lib${PN}.so.${VERSION}" - dolib.so "lib${PN}.so" dolib.so "lib${PN}.so.${MAJOR}" dolib.so "lib${PN}.so.${VERSION}" + insinto "/usr/include/${PN}" doins *.h + exeinto "/usr/libexec/${PN}" doexe iotort doexe itertort @@ -74,7 +74,10 @@ src_install() { doexe sptort doexe torture doexe ztorture + insinto "/usr/share/${P}" doins *.dat + dodoc -r DOC/. + einstalldocs } From 405eb43c6ec28148ac588d2de28a0ded6becba65 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 15:54:53 +0100 Subject: [PATCH 112/138] app-portage/portconf: Styling fix there is no need to specify DOCS if it is just README, because this is already in the default DOCS Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- app-portage/portconf/portconf-1.6.8-r1.ebuild | 22 +++++++++---------- app-portage/portconf/portconf-9999.ebuild | 22 +++++++++---------- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/app-portage/portconf/portconf-1.6.8-r1.ebuild b/app-portage/portconf/portconf-1.6.8-r1.ebuild index 59b4014b7f..afabf396a8 100644 --- a/app-portage/portconf/portconf-1.6.8-r1.ebuild +++ b/app-portage/portconf/portconf-1.6.8-r1.ebuild @@ -3,8 +3,6 @@ EAPI="7" -inherit eutils - DESCRIPTION="/etc/portage cleaner" HOMEPAGE="https://github.com/megabaks/portconf" SRC_URI="https://github.com/megabaks/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" @@ -12,24 +10,24 @@ SRC_URI="https://github.com/megabaks/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" + IUSE="" -DEPEND=" app-shells/bash:= - sys-apps/portage +DEPEND=" + app-shells/bash:= + sys-apps/portage " RDEPEND="${DEPEND} - app-portage/eix - app-portage/portage-utils - sys-apps/gawk - - || ( app-text/agrep dev-libs/tre ) + app-portage/eix + app-portage/portage-utils + sys-apps/gawk + || ( app-text/agrep dev-libs/tre ) " -DOCS=( README.md ) - src_install() { + default + dobin portconf insinto /etc newins portconf.conf portconf.conf - einstalldocs } diff --git a/app-portage/portconf/portconf-9999.ebuild b/app-portage/portconf/portconf-9999.ebuild index 074a56a8ae..e9ab12847a 100644 --- a/app-portage/portconf/portconf-9999.ebuild +++ b/app-portage/portconf/portconf-9999.ebuild @@ -3,7 +3,7 @@ EAPI="7" -inherit eutils git-r3 +inherit git-r3 DESCRIPTION="/etc/portage cleaner" HOMEPAGE="https://github.com/megabaks/portconf" @@ -12,24 +12,24 @@ EGIT_REPO_URI="https://github.com/megabaks/${PN}.git" LICENSE="GPL-3+" SLOT="0" KEYWORDS="" + IUSE="" -DEPEND=" app-shells/bash:= - sys-apps/portage +DEPEND=" + app-shells/bash:= + sys-apps/portage " RDEPEND="${DEPEND} - app-portage/eix - app-portage/portage-utils - sys-apps/gawk - - || ( app-text/agrep dev-libs/tre ) + app-portage/eix + app-portage/portage-utils + sys-apps/gawk + || ( app-text/agrep dev-libs/tre ) " -DOCS=( README.md ) - src_install() { + default + dobin portconf insinto /etc newins portconf.conf portconf.conf - einstalldocs } From 4ef6e246b7b4afdd3fb2050ac48d89931eef3d2f Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 15:58:06 +0100 Subject: [PATCH 113/138] app-misc/vrms-gentoo: Styling fix Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild | 5 ++--- app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild | 9 ++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild index 16976e087b..f00ac0b694 100644 --- a/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild +++ b/app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild @@ -18,11 +18,10 @@ RDEPEND=" dev-lang/perl " -DOCS=( README.md ) - S="${WORKDIR}/${PN}-${COMMIT}" src_install() { + default + dobin "${PN}" - einstalldocs } diff --git a/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild b/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild index 3ecf2e5c8a..6490c25ce4 100644 --- a/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild +++ b/app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild @@ -3,12 +3,12 @@ EAPI="7" -SRC_URI="" -EGIT_REPO_URI="https://github.com/z411/${PN}.git" inherit git-r3 DESCRIPTION="vrms clone for Gentoo Linux" HOMEPAGE="https://github.com/z411/vrms-gentoo" +EGIT_REPO_URI="https://github.com/z411/${PN}.git" + LICENSE="GPL-2" SLOT="0" KEYWORDS="" @@ -18,9 +18,8 @@ RDEPEND=" dev-lang/perl " -DOCS=( README.md ) - src_install() { + default + dobin "${PN}" - einstalldocs } From da8de50884dc356c0099f4f4600bdeccabd5a4d4 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 16:03:23 +0100 Subject: [PATCH 114/138] dev-vcs/git-blame-someone-else: Styling fix Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- .../git-blame-someone-else-2018.06.13.ebuild | 3 +-- .../git-blame-someone-else-9999.ebuild | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild index 2392565b75..627ddcfffa 100644 --- a/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-2018.06.13.ebuild @@ -12,6 +12,7 @@ HOMEPAGE="https://github.com/jayphelps/git-blame-someone-else" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" + IUSE="" RDEPEND=" @@ -19,8 +20,6 @@ RDEPEND=" " DEPEND="" -DOCS=( README.md ) - S="${WORKDIR}/${PN}-${COMMIT}" src_install() { diff --git a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild index 4437f32962..78aabaa4fe 100644 --- a/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild +++ b/dev-vcs/git-blame-someone-else/git-blame-someone-else-9999.ebuild @@ -3,15 +3,16 @@ EAPI="7" -SRC_URI="" -EGIT_REPO_URI="https://github.com/jayphelps/git-blame-someone-else.git" inherit git-r3 DESCRIPTION="Blame someone else for your bad code." HOMEPAGE="https://github.com/jayphelps/git-blame-someone-else" +EGIT_REPO_URI="https://github.com/jayphelps/git-blame-someone-else.git" + LICENSE="MIT" SLOT="0" KEYWORDS="" + IUSE="" RDEPEND=" @@ -19,8 +20,6 @@ RDEPEND=" " DEPEND="" -DOCS=( README.md ) - src_install() { dobin "${PN}" einstalldocs From 186d007e643a33ece440c606560d9995ec18b477 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 16:14:33 +0100 Subject: [PATCH 115/138] sci-libs/ann: Fix issue with installing docs if you cd in the ebuild, please remeber to cd back to ${S} otherwise things like einstalldocs may fail because it is being run in the wrong dir Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sci-libs/ann/ann-1.1.2_p7.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sci-libs/ann/ann-1.1.2_p7.ebuild b/sci-libs/ann/ann-1.1.2_p7.ebuild index 29ae28e4bd..b13f224cb4 100644 --- a/sci-libs/ann/ann-1.1.2_p7.ebuild +++ b/sci-libs/ann/ann-1.1.2_p7.ebuild @@ -16,8 +16,10 @@ http://cdn-fastly.deb.debian.org/debian/pool/main/a/${PN}/${PN}_${MY_PV}+doc-${P LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" + IUSE="debug test" RESTRICT="!test? ( test )" + RDEPEND="" DEPEND="" BDEPEND="dev-util/quilt" @@ -44,10 +46,11 @@ src_test() { cd test ./ann_test < test1.in > /dev/null || die ./ann_test < test2.in > /dev/null || die + cd .. } src_install() { - emake DESTDIR="${D}" install + default insinto /usr/include/ANN doins -r include/ANN/. @@ -64,8 +67,7 @@ src_install() { doman ann_sample.1 doman ann_test.1 doman ann2fig.1 - - einstalldocs + cd "${S}" find "${D}" -name '*.la' -delete || die } From e20063d897434729526ff8b8018ce173f98ea53a Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 16:45:51 +0100 Subject: [PATCH 116/138] sys-cluster/rankstr: No need to add IUSE="test" this is only usefull if you have additional dependencies that are required to run tests Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/rankstr/rankstr-0.0.2.ebuild | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys-cluster/rankstr/rankstr-0.0.2.ebuild b/sys-cluster/rankstr/rankstr-0.0.2.ebuild index d3db9858ee..9a78dd9f6b 100644 --- a/sys-cluster/rankstr/rankstr-0.0.2.ebuild +++ b/sys-cluster/rankstr/rankstr-0.0.2.ebuild @@ -12,8 +12,6 @@ SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND=" virtual/mpi From 6589bd4f806bb685938de3cd817841a96b6b43c1 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 16:46:28 +0100 Subject: [PATCH 117/138] sys-cluster/shuffile: DEPEND on sys-cluster/KVTree-1.0.2[mpi] does not build if KVTree is not build with mpi Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/shuffile/shuffile-0.0.3.ebuild | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys-cluster/shuffile/shuffile-0.0.3.ebuild b/sys-cluster/shuffile/shuffile-0.0.3.ebuild index cb7febfa86..c2b7864ff2 100644 --- a/sys-cluster/shuffile/shuffile-0.0.3.ebuild +++ b/sys-cluster/shuffile/shuffile-0.0.3.ebuild @@ -12,11 +12,9 @@ SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND=" - >=sys-cluster/KVTree-1.0.2 + >=sys-cluster/KVTree-1.0.2[mpi] sys-libs/zlib virtual/mpi " From 904c9ce1fc39436f7926d8e4477eb4fac74954ef Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 16:54:52 +0100 Subject: [PATCH 118/138] sys-cluster/shuffile: src_configure no longer necessary Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/shuffile/shuffile-0.0.3.ebuild | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys-cluster/shuffile/shuffile-0.0.3.ebuild b/sys-cluster/shuffile/shuffile-0.0.3.ebuild index c2b7864ff2..3f517c4616 100644 --- a/sys-cluster/shuffile/shuffile-0.0.3.ebuild +++ b/sys-cluster/shuffile/shuffile-0.0.3.ebuild @@ -29,10 +29,3 @@ src_prepare() { default cmake-utils_src_prepare } - -src_configure() { - local mycmakeargs=( - -DMPI="ON" - ) - cmake-utils_src_configure -} From bdfc3fdea48c7fd7d090e59adf0350fcbd4acb6c Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 16:55:17 +0100 Subject: [PATCH 119/138] sys-cluster/rankstr: src_configure no longer necessary Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/rankstr/rankstr-0.0.2.ebuild | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys-cluster/rankstr/rankstr-0.0.2.ebuild b/sys-cluster/rankstr/rankstr-0.0.2.ebuild index 9a78dd9f6b..fec34b43c3 100644 --- a/sys-cluster/rankstr/rankstr-0.0.2.ebuild +++ b/sys-cluster/rankstr/rankstr-0.0.2.ebuild @@ -27,10 +27,3 @@ src_prepare() { default cmake-utils_src_prepare } - -src_configure() { - local mycmakeargs=( - -DMPI="ON" - ) - cmake-utils_src_configure -} From 837005f315e0ddb5dc28facf0fb2ca4b32e97d9e Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 16:58:03 +0100 Subject: [PATCH 120/138] sys-cluster/redset: builds with mpi even if USE="-mpi" just got rid of src_configure and IUSE="mpi" also made discription a bit shorter to make repoman happy Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/redset/redset-0.0.4.ebuild | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/sys-cluster/redset/redset-0.0.4.ebuild b/sys-cluster/redset/redset-0.0.4.ebuild index 1a0bff3b06..854aa01570 100644 --- a/sys-cluster/redset/redset-0.0.4.ebuild +++ b/sys-cluster/redset/redset-0.0.4.ebuild @@ -5,20 +5,17 @@ EAPI="7" inherit cmake-utils -DESCRIPTION="Low-level distributed erasure coding library to protect datasets of MPI applications" +DESCRIPTION="Low-level distributed erasure coding lib to protect datasets of MPI applications" HOMEPAGE="https://github.com/ECP-VeloC/redset" SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="mpi test" -RESTRICT="!test? ( test )" RDEPEND=" - mpi? ( virtual/mpi ) - - sys-cluster/KVTree + virtual/mpi + sys-cluster/KVTree[mpi] sys-cluster/rankstr sys-libs/zlib " @@ -27,8 +24,6 @@ BDEPEND=" >=dev-util/cmake-2.8 " -DOCS=( README.md ) - src_prepare() { #do not build static library sed -i '/redset-static/d' src/CMakeLists.txt @@ -36,13 +31,6 @@ src_prepare() { cmake-utils_src_prepare } -src_configure() { - local mycmakeargs=( - -DMPI="$(usex mpi "" OFF)" - ) - cmake-utils_src_configure -} - src_install() { cmake-utils_src_install dodoc -r doc/rst/. From 216ce5963f0ca5a437609f4a1fc3176bce9e13a6 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 17:01:19 +0100 Subject: [PATCH 121/138] sys-cluster/er: Builds with mpi even if USE="-mpi" got rid of src_configure and IUSE="mpi" also made description a bit shorter to make repoman happy Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/er/er-0.0.3.ebuild | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/sys-cluster/er/er-0.0.3.ebuild b/sys-cluster/er/er-0.0.3.ebuild index 715cc2b150..e505a2a6b9 100644 --- a/sys-cluster/er/er-0.0.3.ebuild +++ b/sys-cluster/er/er-0.0.3.ebuild @@ -5,19 +5,17 @@ EAPI="7" inherit cmake-utils -DESCRIPTION="High-level distributed erasure coding library combining functionality of shuffile and redset" +DESCRIPTION="High-level distributed erasure coding lib combining shuffile and redset" HOMEPAGE="https://github.com/ECP-VeloC/er" SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="mpi test" -RESTRICT="!test? ( test )" RDEPEND=" - mpi? ( virtual/mpi ) - sys-cluster/KVTree + virtual/mpi + sys-cluster/KVTree[mpi] sys-cluster/redset sys-cluster/shuffile sys-libs/zlib @@ -33,10 +31,3 @@ src_prepare() { default cmake-utils_src_prepare } - -src_configure() { - local mycmakeargs=( - -DMPI="$(usex mpi "" OFF)" - ) - cmake-utils_src_configure -} From 6d1e3db6701844b2c79251c482943e88cfde5c52 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 17:04:06 +0100 Subject: [PATCH 122/138] sci-libs/meschach: Styling fix no need to add README to DOCS, it is already in default DOCS Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sci-libs/meschach/meschach-1.2b.ebuild | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sci-libs/meschach/meschach-1.2b.ebuild b/sci-libs/meschach/meschach-1.2b.ebuild index e74f820f0e..e03916d344 100644 --- a/sci-libs/meschach/meschach-1.2b.ebuild +++ b/sci-libs/meschach/meschach-1.2b.ebuild @@ -16,6 +16,7 @@ http://cdn-fastly.deb.debian.org/debian/pool/main/m/meschach/${PN}_${PV}-14.debi LICENSE="meschach" SLOT="0" KEYWORDS="~amd64" + IUSE="complex +double float munroll old segmem sparse unroll" REQUIRED_USE=" ^^ ( double float ) @@ -26,8 +27,6 @@ PATCHES=( "${WORKDIR}/debian/patches/${PN}_${PV}-13.configure.diff" ) -DOCS=( README ) - src_prepare() { default sed -i -- 's/CFLAGS = -O3 -fPIC/CFLAGS = @CFLAGS@ -fPIC/g' makefile.in From 293f951199efe728fcbf079941a7860e54694009 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 18:20:29 +0100 Subject: [PATCH 123/138] app-text/noweb: DOCS are already in default DOCS Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- app-text/noweb/noweb-2.12.ebuild | 2 -- 1 file changed, 2 deletions(-) diff --git a/app-text/noweb/noweb-2.12.ebuild b/app-text/noweb/noweb-2.12.ebuild index c7fad30daa..224304fd2f 100644 --- a/app-text/noweb/noweb-2.12.ebuild +++ b/app-text/noweb/noweb-2.12.ebuild @@ -28,8 +28,6 @@ DEPEND=" " RDEPEND="${DEPEND}" -DOCS=( CHANGES README ) - S="${WORKDIR}/${PN}-${MYPV}" SITEFILE="50${PN}-gentoo.el" From 684d72097650eab195fd0587f5e083fb6d74ef0e Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 3 Mar 2020 18:21:32 +0100 Subject: [PATCH 124/138] dev-lang/aldor: Fix S variable Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 30 +++++++++++++-------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild index 952e5919a0..bb79cb1f43 100644 --- a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild @@ -6,17 +6,21 @@ EAPI="7" COMMIT="13e5b90eecc79ec6704efb333c4c100187520e80" AUTOTOOLS_AUTORECONF=1 AUTOTOOLS_IN_SOURCE_BUILD=1 + inherit autotools elisp-common DESCRIPTION="The Aldor Programming Language" HOMEPAGE="http://pippijn.github.io/aldor" -SRC_URI=" https://github.com/pippijn/aldor/archive/${COMMIT}.tar.gz -> ${P}.tar.gz - doc? ( http://aldor.org/docs/libaldor.pdf.gz ) - emacs? ( http://hemmecke.de/aldor/aldor.el.nw )" +SRC_URI=" + https://github.com/pippijn/aldor/archive/${COMMIT}.tar.gz -> ${P}.tar.gz + doc? ( http://aldor.org/docs/libaldor.pdf.gz ) + emacs? ( http://hemmecke.de/aldor/aldor.el.nw ) +" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" + IUSE="doc emacs" RDEPEND=" @@ -30,9 +34,15 @@ DEPEND=" emacs? ( app-text/noweb ) " -DOCS=( AUTHORS COPYRIGHT LICENSE ) +S="${WORKDIR}/${PN}-${COMMIT}/aldor" -S="${WORKDIR}/${P}/aldor" +DOCS=( AUTHORS README.building README.binary-only README.library ../README.md ) + +src_unpack() { + unpack "${P}.tar.gz" + use doc && cp "${DISTDIR}/libaldor.pdf.gz" "${S}" && gunzip "${S}/libaldor.pdf.gz" || die + use emacs && cp "${DISTDIR}/aldor.el.nw" "${S}" || die +} src_compile() { if use doc ; then @@ -40,20 +50,18 @@ src_compile() { ( cd lib/aldor/tutorial pdflatex tutorial.tex pdflatex tutorial.tex ) || die "make tutorial.pdf failed" - cp "${DISTDIR}/libaldor.pdf.gz" . - gunzip libaldor.pdf.gz tar xzf "${DISTDIR}/algebra.html.tar.gz" fi if use emacs ; then - notangle "${DISTDIR}/aldor.el.nw" > aldor.el - notangle -Rinit.el "${DISTDIR}/aldor.el.nw" | \ + notangle "aldor.el.nw" > aldor.el + notangle -Rinit.el "aldor.el.nw" | \ sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el if use doc ; then einfo "Documentation for the aldor emacs mode" - noweave "${DISTDIR}/aldor.el.nw" > aldor-mode.tex - pdflatex aldor-mode.tex + noweave "aldor.el.nw" > aldor-mode.tex pdflatex aldor-mode.tex + pdflatex aldor-mode.tex || die "make aldor-mode.pdf failed" fi fi default From ddc30e856ca7ccaf89192d4eb5c809587a75d410 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Wed, 4 Mar 2020 02:44:28 +0100 Subject: [PATCH 125/138] dev-lang/aldor: many changes, WIP Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 62 +++++++++++++++------ dev-lang/aldor/metadata.xml | 6 ++ 2 files changed, 52 insertions(+), 16 deletions(-) diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild index bb79cb1f43..e962d85836 100644 --- a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild @@ -4,9 +4,8 @@ EAPI="7" COMMIT="13e5b90eecc79ec6704efb333c4c100187520e80" -AUTOTOOLS_AUTORECONF=1 -AUTOTOOLS_IN_SOURCE_BUILD=1 +#TODO: figure out if a java eclass is needed inherit autotools elisp-common DESCRIPTION="The Aldor Programming Language" @@ -21,13 +20,24 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" -IUSE="doc emacs" +IUSE="boehm-gc doc emacs java" -RDEPEND=" +#is junit dep. only for test? +#TODO: choose a slot for junit +CDEPEND=" + boehm-gc? ( dev-libs/boehm-gc ) emacs? ( app-editors/emacs:= ) + java? ( dev-java/junit ) +" +RDEPEND=" + ${CDEPEND} + java? ( virtual/jre:1.8 ) " DEPEND=" - ${RDEPEND} + ${CDEPEND} + java? ( virtual/jdk:1.8 ) +" +BDEPEND=" virtual/yacc doc? ( virtual/latex-base ) @@ -40,23 +50,42 @@ DOCS=( AUTHORS README.building README.binary-only README.library ../README.md ) src_unpack() { unpack "${P}.tar.gz" - use doc && cp "${DISTDIR}/libaldor.pdf.gz" "${S}" && gunzip "${S}/libaldor.pdf.gz" || die + if use doc ; then + cp "${DISTDIR}/libaldor.pdf.gz" "${S}" + gunzip "${S}/libaldor.pdf.gz" + fi use emacs && cp "${DISTDIR}/aldor.el.nw" "${S}" || die } +src_prepare() { + #TODO: respect CFLAGS and remove Werror + eapply_user + eautoreconf +} + +src_configure() { + local myconf=( + --disable-static + --enable-libraries + --enable-shared + $(use_enable java) + $(use_with java java-junit) + $(use_with boehm-gc) + ) + econf "${myconf[@]}" +} + src_compile() { if use doc ; then - ( cd aldorug; emake aldorug.pdf ) || die "make aldorug.pdf failed" - ( cd lib/aldor/tutorial + ( cd "${S}/aldorug"; emake aldorug.pdf ) || die "make aldorug.pdf failed" + ( cd "${S}/lib/aldor/tutorial" pdflatex tutorial.tex pdflatex tutorial.tex ) || die "make tutorial.pdf failed" - tar xzf "${DISTDIR}/algebra.html.tar.gz" fi - + cd "${S}" if use emacs ; then notangle "aldor.el.nw" > aldor.el - notangle -Rinit.el "aldor.el.nw" | \ - sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el + notangle -Rinit.el "aldor.el.nw" | sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el if use doc ; then einfo "Documentation for the aldor emacs mode" noweave "aldor.el.nw" > aldor-mode.tex @@ -64,15 +93,16 @@ src_compile() { pdflatex aldor-mode.tex || die "make aldor-mode.pdf failed" fi fi + cd "${S}" default } src_install() { - if use doc ; then - DOCS+=( aldorug/aldorug.pdf lib/aldor/tutorial/tutorial.pdf libaldor.pdf ) - fi + use doc && DOCS+=( aldorug/aldorug.pdf lib/aldor/tutorial/tutorial.pdf libaldor.pdf ) + if use emacs ; then - DOCS+=( aldor-mode.pdf ) + use doc && DOCS+=( aldor-mode.pdf ) + #TODO: rename aldor.el elisp-site-file-install aldor.el elisp-site-file-install 64aldor-gentoo.el fi diff --git a/dev-lang/aldor/metadata.xml b/dev-lang/aldor/metadata.xml index 4b9f701866..fb22608054 100644 --- a/dev-lang/aldor/metadata.xml +++ b/dev-lang/aldor/metadata.xml @@ -11,4 +11,10 @@ The Aldor language combines imperative, functional, and object-oriented features pippijn/aldor + + Use Boehm Garbage Collector instead of built-in + + + + From 2755e38779a4d6ad75a88a17bef85f92bc742b64 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Wed, 4 Mar 2020 02:48:06 +0100 Subject: [PATCH 126/138] dev-lang/aldor: removed blank lines Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-lang/aldor/metadata.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/dev-lang/aldor/metadata.xml b/dev-lang/aldor/metadata.xml index fb22608054..459bf46712 100644 --- a/dev-lang/aldor/metadata.xml +++ b/dev-lang/aldor/metadata.xml @@ -14,7 +14,4 @@ The Aldor language combines imperative, functional, and object-oriented features Use Boehm Garbage Collector instead of built-in - - - From 241f2ff0301b5f8b566a330e45cfaa1b35d598a0 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Wed, 4 Mar 2020 09:16:57 +0100 Subject: [PATCH 127/138] dev-lang/aldor: Do not die if USE="-emacs" Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild index e962d85836..c58df7e456 100644 --- a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild @@ -54,7 +54,7 @@ src_unpack() { cp "${DISTDIR}/libaldor.pdf.gz" "${S}" gunzip "${S}/libaldor.pdf.gz" fi - use emacs && cp "${DISTDIR}/aldor.el.nw" "${S}" || die + use emacs && cp "${DISTDIR}/aldor.el.nw" "${S}" } src_prepare() { From b90afc872c0638fbe2ecb80b2608e693c3bedfa5 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Wed, 4 Mar 2020 12:03:00 +0100 Subject: [PATCH 128/138] media-video/vidify-audiosync: Add dep on pulseaudio already depends on vidify which depends on tekore which depends on spotify which depends on pulseaudio but just to be safe Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild b/media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild index a652647bcf..130a059f91 100644 --- a/media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild +++ b/media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild @@ -18,6 +18,7 @@ KEYWORDS="~amd64 ~x86" IUSE="debug" RDEPEND=" + media-sound/pulseaudio media-video/ffmpeg[openssl] media-video/vidify[${PYTHON_USEDEP}] sci-libs/fftw From 466a3822888e37af4fd4443d975ca4a5bc2f0f47 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Wed, 4 Mar 2020 12:04:14 +0100 Subject: [PATCH 129/138] dev-python/tekore: depend on spotify Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- dev-python/tekore/tekore-1.4.0.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-python/tekore/tekore-1.4.0.ebuild b/dev-python/tekore/tekore-1.4.0.ebuild index cff5cc9389..88c60d073f 100644 --- a/dev-python/tekore/tekore-1.4.0.ebuild +++ b/dev-python/tekore/tekore-1.4.0.ebuild @@ -29,7 +29,8 @@ BDEPEND="doc? ( dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] )" RDEPEND="dev-python/requests[${PYTHON_USEDEP}] - dev-python/httpx[${PYTHON_USEDEP}]" + dev-python/httpx[${PYTHON_USEDEP}] + media-sound/spotify" DOCS="readme.rst" From 7212ba79c230f831e617b18a4e24d4d0782fae11 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 5 Mar 2020 03:06:20 +0100 Subject: [PATCH 130/138] dev-lang/aldor: respect flags, link gc Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 10 +++-- dev-lang/aldor/files/respect-flags.diff | 47 +++++++++++++++++++++ 2 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 dev-lang/aldor/files/respect-flags.diff diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild index c58df7e456..24016c735a 100644 --- a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild @@ -20,7 +20,10 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" -IUSE="boehm-gc doc emacs java" +#force boehm-gc for now, without it won't build ... +IUSE="+boehm-gc doc emacs java" + +PATCHES=( "${FILESDIR}/respect-flags.diff" ) #is junit dep. only for test? #TODO: choose a slot for junit @@ -58,8 +61,9 @@ src_unpack() { } src_prepare() { - #TODO: respect CFLAGS and remove Werror - eapply_user + use boehm-gc && sed -i 's|-L /usr/X11/lib|-L /usr/X11/lib -lgc|' aldor/src/aldor.conf || die + + default eautoreconf } diff --git a/dev-lang/aldor/files/respect-flags.diff b/dev-lang/aldor/files/respect-flags.diff new file mode 100644 index 0000000000..4aec753e31 --- /dev/null +++ b/dev-lang/aldor/files/respect-flags.diff @@ -0,0 +1,47 @@ +diff -ur a/aldor/src/Makefile.am b/aldor/src/Makefile.am +--- a/aldor/src/Makefile.am 2019-07-30 01:13:14.000000000 +0200 ++++ b/aldor/src/Makefile.am 2020-03-04 21:14:57.582054633 +0100 +@@ -40,12 +40,12 @@ + + javagen_LDADD = libphase.a libstruct.a libgen.a libport.a -lm + javagen_LDFLAGS = +-javagen_CFLAGS = -g $(STRICTCFLAGS) ++javagen_CFLAGS = $(STRICTCFLAGS) + + showexp_SOURCES = showexports.c + showexp_LDADD = libphase.a libstruct.a libgen.a libport.a -lm + showexp_LDFLAGS = +-showexp_CFLAGS = -g $(STRICTCFLAGS) ++showexp_CFLAGS = $(STRICTCFLAGS) + + aldor_SOURCES = \ + axlcomp.c \ +@@ -53,7 +53,7 @@ + main.c + aldor_LDADD = libphase.a libstruct.a libgen.a libport.a -lm + aldor_LDFLAGS = $(build_id) +-aldor_CFLAGS = -g $(STRICTCFLAGS) ++aldor_CFLAGS = $(STRICTCFLAGS) + + #aldortest_CFLAGS = -DTEST_STAND_ALONE -DTEST_ALL -save-temps $(STRICTCFLAGS) + aldortest_CFLAGS = -DTEST_STAND_ALONE -DTEST_ALL -save-temps $(STRICTCFLAGS) +@@ -316,7 +316,6 @@ + testall_LDFLAGS = + testall_CFLAGS = -save-temps $(STRICTCFLAGS) + +-CFLAGS=-O0 -g + + # + # Special rules +diff -ur a/m4/strict_compile.m4 b/m4/strict_compile.m4 +--- a/m4/strict_compile.m4 2019-07-30 01:13:14.000000000 +0200 ++++ b/m4/strict_compile.m4 2020-03-04 21:17:33.394968306 +0100 +@@ -12,7 +12,7 @@ + ALDOR_CC_OPTION(-Wno-sign-compare,cfg_no_sign_compare) + AC_MSG_CHECKING(Strict options for C compiler) + +- cfgSTRICTCFLAGS="-pedantic -std=c99 -Wall -Wextra -Werror -Wno-empty-body -Wno-enum-compare \ ++ cfgSTRICTCFLAGS="-pedantic -std=c99 -Wall -Wextra -Wno-empty-body -Wno-enum-compare \ + -Wno-missing-field-initializers -Wno-unused -Wno-unused-parameter \ + -Wno-error=format -Wno-error=type-limits -Wno-error=strict-aliasing \ + $cfg_no_sign_compare $cfg_no_shift_negative_value" From 606d1c138ac41ac7b5907d8432f22170df9ea8f7 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 5 Mar 2020 03:25:56 +0100 Subject: [PATCH 131/138] sys-cluster/veloc: new package Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/veloc/Manifest | 1 + sys-cluster/veloc/metadata.xml | 22 +++++++ sys-cluster/veloc/veloc-1.2.ebuild | 101 +++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 sys-cluster/veloc/Manifest create mode 100644 sys-cluster/veloc/metadata.xml create mode 100644 sys-cluster/veloc/veloc-1.2.ebuild diff --git a/sys-cluster/veloc/Manifest b/sys-cluster/veloc/Manifest new file mode 100644 index 0000000000..f260094155 --- /dev/null +++ b/sys-cluster/veloc/Manifest @@ -0,0 +1 @@ +DIST veloc-1.2.tar.gz 243142 BLAKE2B ef3d37dd2d02734e20f1d540abcd29d2a4b8a78754a5ffa9994f458d5ed32e753c892570f9780eea966b90c0ff2995cf710e21efc9c64c88f1d39c5b1b422521 SHA512 3ed2549a67cea15b55d2da3b9ca4e3bd9c08ad8c62ee79c0f3006f36d3de8501ad9ae39bd9dffe2ca3c3b4ba365a190ec65c9ae149ed4a4c14b45faf27b3dd9f diff --git a/sys-cluster/veloc/metadata.xml b/sys-cluster/veloc/metadata.xml new file mode 100644 index 0000000000..e87dd08cd8 --- /dev/null +++ b/sys-cluster/veloc/metadata.xml @@ -0,0 +1,22 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ECP-VeloC/VELOC + + VeloC is a multi-level checkpoint/restart runtime that delivers high performance and scalability for complex heterogeneous storage hierarchies without sacrificing ease of use and flexibility. + +It is primarily used as a fault-tolerance tool for tightly coupled HPC applications running on supercomputing infrastructure but is essential in many other use cases: suspend-resume, migration, debugging. + +VeloC is a collaboration between Argonne National Laboratory and Lawrence Livermore National Laboratory as part of the Exascale Computing Project. + + + Use ALPS (Application Level Placement Scheduler) as resource manager + Use LFS (Load Sharing Facility) as resource manager + Use sys-cluster/slurm as resource manager + + diff --git a/sys-cluster/veloc/veloc-1.2.ebuild b/sys-cluster/veloc/veloc-1.2.ebuild new file mode 100644 index 0000000000..f600b01bef --- /dev/null +++ b/sys-cluster/veloc/veloc-1.2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{6,7} ) +inherit cmake-utils distutils-r1 + +DESCRIPTION="Very-Low Overhead Checkpointing System" +HOMEPAGE="https://github.com/ECP-VeloC/VELOC" +SRC_URI="https://github.com/ECP-VeloC/${PN^^}/archive/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="alps doc +lsf python slurm test" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + ?? ( alps lsf slurm ) +" + +RDEPEND=" + slurm? ( sys-cluster/slurm ) + + app-shells/pdsh + >=dev-libs/boost-1.60.0 + sys-cluster/AXL + sys-cluster/er + virtual/mpi +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/cmake-2.8 + doc? ( dev-python/sphinx ) +" +S="${WORKDIR}/${PN^^}-${P}" + +src_prepare() { + #strip CFLAGS + sed -i 's/-O2 -g//g' CMakeLists.txt || die + sed -i 's/LIBRARY DESTINATION lib/LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/g' src/modules/CMakeLists.txt || die + sed -i 's/LIBRARY DESTINATION lib/LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/g' src/lib/CMakeLists.txt || die + sed -i 's/LIBRARY DESTINATION lib/LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/g' src/backend/CMakeLists.txt || die + #do not auto install README +# sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die + default + cmake-utils_src_prepare +} + +src_configure() { + RESMAN="NONE" + use alps && RESMAN="ALPS" + use lsf && RESMAN="LSF" + use slurm && RESMAN="SLURM" + + local mycmakeargs=( + -DCMAKE_INSTALL_LIBDIR="$(get_libdir)" + -DX_LIBDIR="$(get_libdir)" + ) + cmake-utils_src_configure +} + +src_compile() { + default + if use python; then + cd "${S}/src/bindings/python" + distutils-r1_src_compile + fi + if use doc; then + cd "${S}/docs" + emake man + emake info + emake html + emake latexpdf + fi +} + +src_install() { + cmake-utils_src_install + if use python; then + cd "${S}/src/bindings/python" + distutils-r1_src_install + fi + + #ToDO: install docs +# dodoc -r docs/. +} + +src_test() { + cd test + default + if use python; then + cd "${S}/src/bindings/python" + python_test() { + "${EPYTHON}" test.py -v || die + } + distutils-r1_src_test + fi +} From afcf988a9e084511fc4a7651874201c0f30a538a Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 5 Mar 2020 03:28:27 +0100 Subject: [PATCH 132/138] sys-cluster/veloc: use slurm as default Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri --- sys-cluster/veloc/veloc-1.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-cluster/veloc/veloc-1.2.ebuild b/sys-cluster/veloc/veloc-1.2.ebuild index f600b01bef..8bfdb76d0c 100644 --- a/sys-cluster/veloc/veloc-1.2.ebuild +++ b/sys-cluster/veloc/veloc-1.2.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/ECP-VeloC/${PN^^}/archive/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="alps doc +lsf python slurm test" +IUSE="alps doc lsf python +slurm test" RESTRICT="!test? ( test )" REQUIRED_USE=" From 394cdcbeabede017b8f76433dc4dd4c5d9cee6bd Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 5 Mar 2020 11:41:10 +0100 Subject: [PATCH 133/138] sys-cluster/genders: Fix failing test phase Package-Manager: Portage-2.3.92, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/genders/genders-1.27.3.ebuild | 8 +++++++- sys-cluster/genders/genders-9999.ebuild | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys-cluster/genders/genders-1.27.3.ebuild b/sys-cluster/genders/genders-1.27.3.ebuild index 8719f05889..ddfedac4eb 100644 --- a/sys-cluster/genders/genders-1.27.3.ebuild +++ b/sys-cluster/genders/genders-1.27.3.ebuild @@ -24,7 +24,7 @@ case "${PV}" in ;; esac -DESCRIPTION="Genders is a static cluster configuration database used for cluster configuration management." +DESCRIPTION="Static cluster configuration database used for cluster configuration management." HOMEPAGE="https://github.com/chaos/genders" LICENSE="GPL-2" SLOT="0" @@ -88,6 +88,12 @@ src_compile() { fi } +src_test() { + cd src/testsuite + default + cd ../.. +} + src_install() { default diff --git a/sys-cluster/genders/genders-9999.ebuild b/sys-cluster/genders/genders-9999.ebuild index 8719f05889..99e5ae24bf 100644 --- a/sys-cluster/genders/genders-9999.ebuild +++ b/sys-cluster/genders/genders-9999.ebuild @@ -24,7 +24,7 @@ case "${PV}" in ;; esac -DESCRIPTION="Genders is a static cluster configuration database used for cluster configuration management." +DESCRIPTION="Static cluster configuration database used for cluster configuration management." HOMEPAGE="https://github.com/chaos/genders" LICENSE="GPL-2" SLOT="0" From 6baab486bd693e4dbefacc77f3a7bb217da9b1d1 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 5 Mar 2020 11:43:48 +0100 Subject: [PATCH 134/138] sys-cluster/genders: Also fix in .9999 Package-Manager: Portage-2.3.92, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/genders/genders-9999.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys-cluster/genders/genders-9999.ebuild b/sys-cluster/genders/genders-9999.ebuild index 99e5ae24bf..ddfedac4eb 100644 --- a/sys-cluster/genders/genders-9999.ebuild +++ b/sys-cluster/genders/genders-9999.ebuild @@ -88,6 +88,12 @@ src_compile() { fi } +src_test() { + cd src/testsuite + default + cd ../.. +} + src_install() { default From 98520361b13c1d267f2fc8bf84f70ca40b733bc2 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 5 Mar 2020 11:53:04 +0100 Subject: [PATCH 135/138] sys-cluster/genders: unset DOCS if USE="pyhton perl" DOCS is already taken care of by calling 'default' and having DOCS set when calling the distutils install function will cause the install to fail as the DOCS are not present in the python src directory Package-Manager: Portage-2.3.92, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/genders/genders-1.27.3.ebuild | 2 ++ sys-cluster/genders/genders-9999.ebuild | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys-cluster/genders/genders-1.27.3.ebuild b/sys-cluster/genders/genders-1.27.3.ebuild index ddfedac4eb..dfab2fb13f 100644 --- a/sys-cluster/genders/genders-1.27.3.ebuild +++ b/sys-cluster/genders/genders-1.27.3.ebuild @@ -99,12 +99,14 @@ src_install() { if use perl ; then cd "${S}/src/extensions/perl" + unset DOCS myinst=( DESTDIR="${D}" ) perl-module_src_install fi if use python; then cd "${S}/src/extensions/python" + unset DOCS python_install() { distutils-r1_python_install } diff --git a/sys-cluster/genders/genders-9999.ebuild b/sys-cluster/genders/genders-9999.ebuild index ddfedac4eb..dfab2fb13f 100644 --- a/sys-cluster/genders/genders-9999.ebuild +++ b/sys-cluster/genders/genders-9999.ebuild @@ -99,12 +99,14 @@ src_install() { if use perl ; then cd "${S}/src/extensions/perl" + unset DOCS myinst=( DESTDIR="${D}" ) perl-module_src_install fi if use python; then cd "${S}/src/extensions/python" + unset DOCS python_install() { distutils-r1_python_install } From 7e5a2c1af6ff81787fafb18ea56dfbae96a01e25 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 5 Mar 2020 11:55:44 +0100 Subject: [PATCH 136/138] sys-cluster/genders: Add py3_8 Package-Manager: Portage-2.3.92, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/genders/genders-1.27.3.ebuild | 2 +- sys-cluster/genders/genders-9999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-cluster/genders/genders-1.27.3.ebuild b/sys-cluster/genders/genders-1.27.3.ebuild index dfab2fb13f..3bb820e0cd 100644 --- a/sys-cluster/genders/genders-1.27.3.ebuild +++ b/sys-cluster/genders/genders-1.27.3.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) DISTUTILS_USE_SETUPTOOLS=no inherit autotools distutils-r1 perl-module java-pkg-opt-2 diff --git a/sys-cluster/genders/genders-9999.ebuild b/sys-cluster/genders/genders-9999.ebuild index dfab2fb13f..3bb820e0cd 100644 --- a/sys-cluster/genders/genders-9999.ebuild +++ b/sys-cluster/genders/genders-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) DISTUTILS_USE_SETUPTOOLS=no inherit autotools distutils-r1 perl-module java-pkg-opt-2 From e4b49e7bd68f7f675df6b1e4d3b951e9a055b958 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 5 Mar 2020 13:17:58 +0100 Subject: [PATCH 137/138] sys-cluster/veloc: Fix USE="doc" Package-Manager: Portage-2.3.92, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-cluster/veloc/veloc-1.2.ebuild | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/sys-cluster/veloc/veloc-1.2.ebuild b/sys-cluster/veloc/veloc-1.2.ebuild index 8bfdb76d0c..429f7e9e63 100644 --- a/sys-cluster/veloc/veloc-1.2.ebuild +++ b/sys-cluster/veloc/veloc-1.2.ebuild @@ -4,7 +4,8 @@ EAPI="7" DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) + inherit cmake-utils distutils-r1 DESCRIPTION="Very-Low Overhead Checkpointing System" @@ -14,8 +15,10 @@ SRC_URI="https://github.com/ECP-VeloC/${PN^^}/archive/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="alps doc lsf python +slurm test" -RESTRICT="!test? ( test )" + +IUSE="alps lsf python +slurm" +# Tests not working with python yet +RESTRICT="python? ( test )" REQUIRED_USE=" ?? ( alps lsf slurm ) @@ -33,10 +36,12 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND=" >=dev-util/cmake-2.8 - doc? ( dev-python/sphinx ) " + S="${WORKDIR}/${PN^^}-${P}" +distutils_enable_sphinx "${S}/docs" --no-autodoc + src_prepare() { #strip CFLAGS sed -i 's/-O2 -g//g' CMakeLists.txt || die @@ -65,15 +70,13 @@ src_configure() { src_compile() { default if use python; then - cd "${S}/src/bindings/python" + cd "src/bindings/python" distutils-r1_src_compile - fi - if use doc; then - cd "${S}/docs" - emake man - emake info - emake html - emake latexpdf + cd "${S}" + else + # If USE="-python doc" we still + # want to compile the doc files + sphinx_compile_all fi } @@ -83,9 +86,6 @@ src_install() { cd "${S}/src/bindings/python" distutils-r1_src_install fi - - #ToDO: install docs -# dodoc -r docs/. } src_test() { From 7962a0168d57ed901156e9e8d91025f07afd5105 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 8 Mar 2020 17:25:56 +0100 Subject: [PATCH 138/138] sys-auth/mrsh: virtual/shadow is now masked depend on sys-auth/shadow instead Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan --- sys-auth/mrsh/mrsh-2.12.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-auth/mrsh/mrsh-2.12.ebuild b/sys-auth/mrsh/mrsh-2.12.ebuild index 6192a2b048..41938277cd 100644 --- a/sys-auth/mrsh/mrsh-2.12.ebuild +++ b/sys-auth/mrsh/mrsh-2.12.ebuild @@ -16,7 +16,7 @@ DEPEND=" sys-auth/munge pam? ( sys-libs/pam ) - shadow? ( virtual/shadow ) + shadow? ( sys-apps/shadow ) " RDEPEND="${DEPEND}"