net-misc/streamlink: Switch to PYTHON_MULTI_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Sat, 8 Feb 2020 06:52:20 +0000 (07:52 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Feb 2020 16:46:43 +0000 (17:46 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
net-misc/streamlink/streamlink-1.3.0-r1.ebuild [moved from net-misc/streamlink/streamlink-1.3.0.ebuild with 61% similarity]
net-misc/streamlink/streamlink-9999.ebuild

similarity index 61%
rename from net-misc/streamlink/streamlink-1.3.0.ebuild
rename to net-misc/streamlink/streamlink-1.3.0-r1.ebuild
index 04417d2b4e75fa3b6783bd8b01ceb593f8a6efcf..28994a6a0f82c9072b200958799498726a2d5c35 100644 (file)
@@ -30,31 +30,35 @@ RESTRICT="!test? ( test )"
 
 # >=urllib3-1.23 only needed for python2, but requests pulls some version anyways, so we might as well guarantee at least that ver for py3 too
 DEPEND="
-       virtual/python-futures[${PYTHON_USEDEP}]
-       virtual/python-singledispatch[${PYTHON_USEDEP}]
-       >dev-python/requests-2.21.0[${PYTHON_USEDEP}]
-       >=dev-python/urllib3-1.23[${PYTHON_USEDEP}]
-       dev-python/isodate[${PYTHON_USEDEP}]
-       dev-python/websocket-client[${PYTHON_USEDEP}]
-       dev-python/pycountry[${PYTHON_USEDEP}]
-       >=dev-python/pycryptodome-3.4.3[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               virtual/python-futures[${PYTHON_MULTI_USEDEP}]
+               virtual/python-singledispatch[${PYTHON_MULTI_USEDEP}]
+               >dev-python/requests-2.21.0[${PYTHON_MULTI_USEDEP}]
+               >=dev-python/urllib3-1.23[${PYTHON_MULTI_USEDEP}]
+               dev-python/isodate[${PYTHON_MULTI_USEDEP}]
+               dev-python/websocket-client[${PYTHON_MULTI_USEDEP}]
+               dev-python/pycountry[${PYTHON_MULTI_USEDEP}]
+               >=dev-python/pycryptodome-3.4.3[${PYTHON_MULTI_USEDEP}]
+       ')
 "
 RDEPEND="${DEPEND}
        media-video/rtmpdump
        virtual/ffmpeg
 "
 BDEPEND="
-       doc? (
-               dev-python/sphinx[${PYTHON_USEDEP}]
-               dev-python/docutils[${PYTHON_USEDEP}]
-               dev-python/recommonmark[${PYTHON_USEDEP}]
-       )
-       test? (
-               dev-python/mock[${PYTHON_USEDEP}]
-               dev-python/requests-mock[${PYTHON_USEDEP}]
-               dev-python/pytest[${PYTHON_USEDEP}]
-               dev-python/freezegun[${PYTHON_USEDEP}]
-       )"
+       $(python_gen_cond_dep '
+               doc? (
+                       dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
+                       dev-python/docutils[${PYTHON_MULTI_USEDEP}]
+                       dev-python/recommonmark[${PYTHON_MULTI_USEDEP}]
+               )
+               test? (
+                       dev-python/mock[${PYTHON_MULTI_USEDEP}]
+                       dev-python/requests-mock[${PYTHON_MULTI_USEDEP}]
+                       dev-python/pytest[${PYTHON_MULTI_USEDEP}]
+                       dev-python/freezegun[${PYTHON_MULTI_USEDEP}]
+               )
+       ')"
 
 python_configure_all() {
        # Avoid iso-639, iso3166 dependencies since we use pycountry.
index 04417d2b4e75fa3b6783bd8b01ceb593f8a6efcf..28994a6a0f82c9072b200958799498726a2d5c35 100644 (file)
@@ -30,31 +30,35 @@ RESTRICT="!test? ( test )"
 
 # >=urllib3-1.23 only needed for python2, but requests pulls some version anyways, so we might as well guarantee at least that ver for py3 too
 DEPEND="
-       virtual/python-futures[${PYTHON_USEDEP}]
-       virtual/python-singledispatch[${PYTHON_USEDEP}]
-       >dev-python/requests-2.21.0[${PYTHON_USEDEP}]
-       >=dev-python/urllib3-1.23[${PYTHON_USEDEP}]
-       dev-python/isodate[${PYTHON_USEDEP}]
-       dev-python/websocket-client[${PYTHON_USEDEP}]
-       dev-python/pycountry[${PYTHON_USEDEP}]
-       >=dev-python/pycryptodome-3.4.3[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               virtual/python-futures[${PYTHON_MULTI_USEDEP}]
+               virtual/python-singledispatch[${PYTHON_MULTI_USEDEP}]
+               >dev-python/requests-2.21.0[${PYTHON_MULTI_USEDEP}]
+               >=dev-python/urllib3-1.23[${PYTHON_MULTI_USEDEP}]
+               dev-python/isodate[${PYTHON_MULTI_USEDEP}]
+               dev-python/websocket-client[${PYTHON_MULTI_USEDEP}]
+               dev-python/pycountry[${PYTHON_MULTI_USEDEP}]
+               >=dev-python/pycryptodome-3.4.3[${PYTHON_MULTI_USEDEP}]
+       ')
 "
 RDEPEND="${DEPEND}
        media-video/rtmpdump
        virtual/ffmpeg
 "
 BDEPEND="
-       doc? (
-               dev-python/sphinx[${PYTHON_USEDEP}]
-               dev-python/docutils[${PYTHON_USEDEP}]
-               dev-python/recommonmark[${PYTHON_USEDEP}]
-       )
-       test? (
-               dev-python/mock[${PYTHON_USEDEP}]
-               dev-python/requests-mock[${PYTHON_USEDEP}]
-               dev-python/pytest[${PYTHON_USEDEP}]
-               dev-python/freezegun[${PYTHON_USEDEP}]
-       )"
+       $(python_gen_cond_dep '
+               doc? (
+                       dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
+                       dev-python/docutils[${PYTHON_MULTI_USEDEP}]
+                       dev-python/recommonmark[${PYTHON_MULTI_USEDEP}]
+               )
+               test? (
+                       dev-python/mock[${PYTHON_MULTI_USEDEP}]
+                       dev-python/requests-mock[${PYTHON_MULTI_USEDEP}]
+                       dev-python/pytest[${PYTHON_MULTI_USEDEP}]
+                       dev-python/freezegun[${PYTHON_MULTI_USEDEP}]
+               )
+       ')"
 
 python_configure_all() {
        # Avoid iso-639, iso3166 dependencies since we use pycountry.