From 79599515788b85b18aa655e7b7f8cc05c1bbddd8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Feb 2019 12:59:29 +0000 Subject: gentoo resync : 16.02.1018 --- www-plugins/Manifest.gz | Bin 1922 -> 1929 bytes www-plugins/adobe-flash/Manifest | 10 +- .../adobe-flash/adobe-flash-32.0.0.114.ebuild | 140 --------------------- .../adobe-flash/adobe-flash-32.0.0.142.ebuild | 140 +++++++++++++++++++++ www-plugins/passff-host/Manifest | 6 +- www-plugins/passff-host/passff-host-1.0.2.ebuild | 52 -------- www-plugins/passff-host/passff-host-1.1.0.ebuild | 52 ++++++++ 7 files changed, 200 insertions(+), 200 deletions(-) delete mode 100644 www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild create mode 100644 www-plugins/adobe-flash/adobe-flash-32.0.0.142.ebuild delete mode 100644 www-plugins/passff-host/passff-host-1.0.2.ebuild create mode 100644 www-plugins/passff-host/passff-host-1.1.0.ebuild (limited to 'www-plugins') diff --git a/www-plugins/Manifest.gz b/www-plugins/Manifest.gz index 08288697d414..40a2b7c2fba6 100644 Binary files a/www-plugins/Manifest.gz and b/www-plugins/Manifest.gz differ diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest index 49b42ebb9ef5..c15edcb126d3 100644 --- a/www-plugins/adobe-flash/Manifest +++ b/www-plugins/adobe-flash/Manifest @@ -1,9 +1,9 @@ AUX mms.cfg 4420 BLAKE2B 4557315bfa6f8edb6c8b28907065cdac3771175bd36a8ce2b6e72f0e1f0af20a7bb1ea8abb67f5c7b16fcaa7dd81c3eb89f926957d2ae5fffd499a7e6e709354 SHA512 597380071a06176f09df1a56cba24e83a74990c175fe9f167f026eacbf01e66a083d2389ff399ead0a39654a40ae636f8459feed2d6012e51e65c5407fe7fdbd AUX pepper-flash 151 BLAKE2B ab58f8d7dd307fea0d53b7f58887e3caeef8913940d6bfb662a42cc1f475ec59009998898e991d7a82d55a26ec1b2fbbc8b2a626fb8c9ba0d2da1e1735ab26ac SHA512 f20176b9567097482c3b1fdd062affb33a69b671f6298a98cd58e03ca80dd01bada4126ac5fd940fddc53a097669f52d4b8bba7850daf211e11dc24cc4d97eb1 AUX pepper-flash-r1 143 BLAKE2B 049f7ec4e3df5fbdaa62e40acf8d21d42f61789c6d9ecde64f300df3d3c51f2b5580fb571ebbf172d590799801c632a2eb4daa01dd86e318441719ff6412f3ed SHA512 e4e1c1f204af1e5ce531dd43a22b4cd08e8def1099bba88ac96af09bd0879dfbb6383653ec85d5d199d418098e4b17d71998bee5a9fb5bb7bd8873432a4f66ee -DIST adobe-flash-32.0.0.114-npapi.i386.tar.gz 8530200 BLAKE2B b069569484424ec5b92c62e72aecf1c7475df713e92e765a4cca2258807490b03c725abf00e8ae6a7b5b2808671f11bc40d293a6595e35bcbc81fbe6525fe66b SHA512 da6eae6879e04bc6e3fc5398fb0721061a1940f623bcd43d7deee57ad5f046a9c756b8432682940c837ff33fc2a3a2284aacec90c74e595164f3a889519ed0e1 -DIST adobe-flash-32.0.0.114-npapi.x86_64.tar.gz 9045986 BLAKE2B b496311016dc6b0f4912a8c5c8cd929a1b32d87300a13a90675bb9626689baccf98f56d2ce5619eda50c278b6e52c29a2ce9a08166cd48330d56034e09b65673 SHA512 41b20377570fe0ec0609b0f39432dc06114e40d97ecb791ad97928028984c4bc5a6b7b68fd14bc754f5c316842661056f716ff1c224029e8b46e4bd2a00744e5 -DIST adobe-flash-32.0.0.114-ppapi.i386.tar.gz 8564095 BLAKE2B e4b9f531b199d932a8041812eb7d7409efe3db39e74f8feb928e25006a4b62bde8690faef137c729a1972ed50e8182440a1e6638b3f00856cbcb502c8d337254 SHA512 7b18dff8adc2ca16ef46ac9281df840a76aaa36daa353b7233c2a2df756c603c78cbc4bb03a7abec48f4235cee8a630ae3435443dc82940c8696bb7a4fa1b787 -DIST adobe-flash-32.0.0.114-ppapi.x86_64.tar.gz 9482535 BLAKE2B 8f3c6cfd3ddcd1d099d7893e45c432229516bb6853abdd0774e9a29bc567e635f431a5635e6c8090d2a794d8541a2ca6382af2f8fe555331cd19d30abbc2fe2a SHA512 4d6d8dc9430e6008a945bcafcd3c4c796f5b7620d1f3bbf0c14ad4c7f151b6cf2a434184b14d061eb53c7f0cfbe10121a747624a8f6ffbec2e7b58a23e097a8a -EBUILD adobe-flash-32.0.0.114.ebuild 3659 BLAKE2B 1606e7f9d4994bb7c3f2425d812ea732a88b64559c187572f85cdaf58d52ace571a918c8708f0e9444ebea928283fc01d3cda296b3970092c414e525e86816c1 SHA512 c5f9432d00b037ce2a58ed682d12a94d5b486d1cf27d2a5ee3076384179ed8c9998a4ed63f70303221997f4adf6f482e5c5b0224caea4c2f825dbc41bf6f5e31 +DIST adobe-flash-32.0.0.142-npapi.i386.tar.gz 8530350 BLAKE2B 78faf86c16bb5e6eda333e4731f62a7388e69921c6d951f437ac6e82920f90855638851c5186e43b16fa492e2d83482ab0de6ca7c374a0288d82096e24c6de01 SHA512 9f12147d89e83c954c49c949aa29d987f54d1be47fbac281a9d9dcca38d04fc23f8c7860b46886d235bde7a806f89eaf5483bc9307419313ef3d779c5c30a188 +DIST adobe-flash-32.0.0.142-npapi.x86_64.tar.gz 9047544 BLAKE2B e14cca8120405ec265168b3dfd43ce81c180f68f38dcb59a560115395e169550b2738cbf8821cadf12e1e8b868e6c588295e8926f55747e2c8bddfaa9e1d329d SHA512 047086d43902b3132358ed0c53dde26108bc4e69067945e6194cf5aaaf96f1f01921a8a0a08cd7ac6006bcaee08880a59e46a5c621c6dd6e306af419d65e03e1 +DIST adobe-flash-32.0.0.142-ppapi.i386.tar.gz 8565686 BLAKE2B 8241352527e58057635581aa1f12c412c690ca5c119c70ff81f5178c0e6f0c3e0c5f5a4ab53a5d5729807d7f9a2c9e2ab4fcd8896cb9399f44996a9d11056c55 SHA512 942e8efc3eaa2674d4b0fbcfe46f50a0ce1a5a5ae87055419d4cea7b710083779b6803271042b4c3ca457a925ede13cc532ac7b8e5f4adfaa9ce932fa9e61417 +DIST adobe-flash-32.0.0.142-ppapi.x86_64.tar.gz 9482227 BLAKE2B 6b91b802541058e7bc20a120c58d731684c98ce5719c24d48cd2a68307af15dfb399265af49c1f5e559391835a23fc8b1509b4a0c2b228efbc789d9a4f07fb20 SHA512 1ee8994ce485b72fc97967f8c4229a7c688518f3c05238063c493e320927164a3bf225fbdcb064d6502fb9ec2bddfd30857400daf39520d41153e95ae9cb3ef9 +EBUILD adobe-flash-32.0.0.142.ebuild 3659 BLAKE2B 1606e7f9d4994bb7c3f2425d812ea732a88b64559c187572f85cdaf58d52ace571a918c8708f0e9444ebea928283fc01d3cda296b3970092c414e525e86816c1 SHA512 c5f9432d00b037ce2a58ed682d12a94d5b486d1cf27d2a5ee3076384179ed8c9998a4ed63f70303221997f4adf6f482e5c5b0224caea4c2f825dbc41bf6f5e31 MISC metadata.xml 552 BLAKE2B 56ec8c5f43e9624c4102f52834b63855be35d064ce05bfbc866af225fb8e60cf1b83e02c9917b474183b81cad9e4ecfba7595d8de7fa94974824d2a7f4de302d SHA512 0f84cf3e517eb92f73629e6a157a2999f409fa6dea40682e2248edeb957e5bc6f5228c49aebdc3b5d434d0fd8f717a19c793aee8776397871e1bc5ebf8cf7fa1 diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild deleted file mode 100644 index 14f113c3c5f5..000000000000 --- a/www-plugins/adobe-flash/adobe-flash-32.0.0.114.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit gnome2-utils nsplugins multilib multilib-minimal - -DESCRIPTION="Adobe Flash Player" -HOMEPAGE=" - https://www.adobe.com/products/flashplayer.html - https://get.adobe.com/flashplayer/ - https://helpx.adobe.com/security/products/flash-player.html -" - -AF_URI="https://fpdownload.adobe.com/pub/flashplayer/pdc/${PV}" -AF_NP_32_URI="${AF_URI}/flash_player_npapi_linux.i386.tar.gz -> ${P}-npapi.i386.tar.gz" -AF_NP_64_URI="${AF_URI}/flash_player_npapi_linux.x86_64.tar.gz -> ${P}-npapi.x86_64.tar.gz" -AF_PP_32_URI="${AF_URI}/flash_player_ppapi_linux.i386.tar.gz -> ${P}-ppapi.i386.tar.gz" -AF_PP_64_URI="${AF_URI}/flash_player_ppapi_linux.x86_64.tar.gz -> ${P}-ppapi.x86_64.tar.gz" - -IUSE="+nsplugin +ppapi" -REQUIRED_USE=" - || ( nsplugin ppapi ) -" - -SRC_URI=" - nsplugin? ( - abi_x86_32? ( ${AF_NP_32_URI} ) - abi_x86_64? ( ${AF_NP_64_URI} ) - ) - ppapi? ( - abi_x86_32? ( ${AF_PP_32_URI} ) - abi_x86_64? ( ${AF_PP_64_URI} ) - ) -" -SLOT="22" - -KEYWORDS="-* amd64 x86" -LICENSE="AdobeFlash-11.x" -RESTRICT="strip mirror" - -NPAPI_RDEPEND=" - dev-libs/atk[${MULTILIB_USEDEP}] - dev-libs/glib:2[${MULTILIB_USEDEP}] - dev-libs/nspr[${MULTILIB_USEDEP}] - dev-libs/nss[${MULTILIB_USEDEP}] - media-libs/fontconfig[${MULTILIB_USEDEP}] - media-libs/freetype[${MULTILIB_USEDEP}] - >=sys-libs/glibc-2.4 - x11-libs/cairo[${MULTILIB_USEDEP}] - x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] - x11-libs/gtk+:2[${MULTILIB_USEDEP}] - x11-libs/libX11[${MULTILIB_USEDEP}] - x11-libs/libXcursor[${MULTILIB_USEDEP}] - x11-libs/libXext[${MULTILIB_USEDEP}] - x11-libs/libXrender[${MULTILIB_USEDEP}] - x11-libs/libXt[${MULTILIB_USEDEP}] - x11-libs/pango[${MULTILIB_USEDEP}] -" -RDEPEND=" - !www-plugins/chrome-binary-plugins[flash(-)] - nsplugin? ( - ${NPAPI_RDEPEND} - !www-plugins/adobe-flash:0 - ) -" - -S="${WORKDIR}" - -# Ignore QA warnings in these closed-source binaries, since we can't fix them: -QA_PREBUILT="usr/*" - -src_unpack() { - local files=( ${A} ) - - multilib_src_unpack() { - mkdir -p "${BUILD_DIR}" || die - cd "${BUILD_DIR}" || die - - # we need to filter out the other archive(s) - local other_abi - [[ ${ABI} == amd64 ]] && other_abi=i386 || other_abi=x86_64 - unpack ${files[@]//*${other_abi}*/} - } - - multilib_parallel_foreach_abi multilib_src_unpack -} - -multilib_src_install() { - local pkglibdir=lib - [[ -d usr/lib64 ]] && pkglibdir=lib64 - - if use nsplugin; then - # PLUGINS_DIR comes from nsplugins.eclass - exeinto /usr/$(get_libdir)/${PLUGINS_DIR} - doexe libflashplayer.so - - if multilib_is_native_abi; then - # No KDE applet, so allow the GTK utility to show up in KDE: - sed \ - -i usr/share/applications/flash-player-properties.desktop \ - -e "/^NotShowIn=KDE;/d" || die - - # The userland 'flash-player-properties' standalone app: - dobin usr/bin/flash-player-properties - - # Icon and .desktop for 'flash-player-properties' - insinto /usr/share - doins -r usr/share/{icons,applications} - dosym ../icons/hicolor/48x48/apps/flash-player-properties.png \ - /usr/share/pixmaps/flash-player-properties.png - fi - - # The magic config file! - insinto "/etc/adobe" - doins "${FILESDIR}/mms.cfg" - fi - - if use ppapi; then - exeinto /usr/$(get_libdir)/chromium/PepperFlash - doexe libpepflashplayer.so - insinto /usr/$(get_libdir)/chromium/PepperFlash - doins manifest.json - - if multilib_is_native_abi; then - dodir /etc/chromium - sed "${FILESDIR}"/pepper-flash-r1 \ - -e "s|@FP_LIBDIR@|$(get_libdir)|g" \ - -e "s|@FP_PV@|${PV}|g" \ - > "${D}"/etc/chromium/pepper-flash \ - || die - fi - fi -} - -pkg_postinst() { - gnome2_icon_cache_update -} -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.142.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.142.ebuild new file mode 100644 index 000000000000..14f113c3c5f5 --- /dev/null +++ b/www-plugins/adobe-flash/adobe-flash-32.0.0.142.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2-utils nsplugins multilib multilib-minimal + +DESCRIPTION="Adobe Flash Player" +HOMEPAGE=" + https://www.adobe.com/products/flashplayer.html + https://get.adobe.com/flashplayer/ + https://helpx.adobe.com/security/products/flash-player.html +" + +AF_URI="https://fpdownload.adobe.com/pub/flashplayer/pdc/${PV}" +AF_NP_32_URI="${AF_URI}/flash_player_npapi_linux.i386.tar.gz -> ${P}-npapi.i386.tar.gz" +AF_NP_64_URI="${AF_URI}/flash_player_npapi_linux.x86_64.tar.gz -> ${P}-npapi.x86_64.tar.gz" +AF_PP_32_URI="${AF_URI}/flash_player_ppapi_linux.i386.tar.gz -> ${P}-ppapi.i386.tar.gz" +AF_PP_64_URI="${AF_URI}/flash_player_ppapi_linux.x86_64.tar.gz -> ${P}-ppapi.x86_64.tar.gz" + +IUSE="+nsplugin +ppapi" +REQUIRED_USE=" + || ( nsplugin ppapi ) +" + +SRC_URI=" + nsplugin? ( + abi_x86_32? ( ${AF_NP_32_URI} ) + abi_x86_64? ( ${AF_NP_64_URI} ) + ) + ppapi? ( + abi_x86_32? ( ${AF_PP_32_URI} ) + abi_x86_64? ( ${AF_PP_64_URI} ) + ) +" +SLOT="22" + +KEYWORDS="-* amd64 x86" +LICENSE="AdobeFlash-11.x" +RESTRICT="strip mirror" + +NPAPI_RDEPEND=" + dev-libs/atk[${MULTILIB_USEDEP}] + dev-libs/glib:2[${MULTILIB_USEDEP}] + dev-libs/nspr[${MULTILIB_USEDEP}] + dev-libs/nss[${MULTILIB_USEDEP}] + media-libs/fontconfig[${MULTILIB_USEDEP}] + media-libs/freetype[${MULTILIB_USEDEP}] + >=sys-libs/glibc-2.4 + x11-libs/cairo[${MULTILIB_USEDEP}] + x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] + x11-libs/gtk+:2[${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/libXcursor[${MULTILIB_USEDEP}] + x11-libs/libXext[${MULTILIB_USEDEP}] + x11-libs/libXrender[${MULTILIB_USEDEP}] + x11-libs/libXt[${MULTILIB_USEDEP}] + x11-libs/pango[${MULTILIB_USEDEP}] +" +RDEPEND=" + !www-plugins/chrome-binary-plugins[flash(-)] + nsplugin? ( + ${NPAPI_RDEPEND} + !www-plugins/adobe-flash:0 + ) +" + +S="${WORKDIR}" + +# Ignore QA warnings in these closed-source binaries, since we can't fix them: +QA_PREBUILT="usr/*" + +src_unpack() { + local files=( ${A} ) + + multilib_src_unpack() { + mkdir -p "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + + # we need to filter out the other archive(s) + local other_abi + [[ ${ABI} == amd64 ]] && other_abi=i386 || other_abi=x86_64 + unpack ${files[@]//*${other_abi}*/} + } + + multilib_parallel_foreach_abi multilib_src_unpack +} + +multilib_src_install() { + local pkglibdir=lib + [[ -d usr/lib64 ]] && pkglibdir=lib64 + + if use nsplugin; then + # PLUGINS_DIR comes from nsplugins.eclass + exeinto /usr/$(get_libdir)/${PLUGINS_DIR} + doexe libflashplayer.so + + if multilib_is_native_abi; then + # No KDE applet, so allow the GTK utility to show up in KDE: + sed \ + -i usr/share/applications/flash-player-properties.desktop \ + -e "/^NotShowIn=KDE;/d" || die + + # The userland 'flash-player-properties' standalone app: + dobin usr/bin/flash-player-properties + + # Icon and .desktop for 'flash-player-properties' + insinto /usr/share + doins -r usr/share/{icons,applications} + dosym ../icons/hicolor/48x48/apps/flash-player-properties.png \ + /usr/share/pixmaps/flash-player-properties.png + fi + + # The magic config file! + insinto "/etc/adobe" + doins "${FILESDIR}/mms.cfg" + fi + + if use ppapi; then + exeinto /usr/$(get_libdir)/chromium/PepperFlash + doexe libpepflashplayer.so + insinto /usr/$(get_libdir)/chromium/PepperFlash + doins manifest.json + + if multilib_is_native_abi; then + dodir /etc/chromium + sed "${FILESDIR}"/pepper-flash-r1 \ + -e "s|@FP_LIBDIR@|$(get_libdir)|g" \ + -e "s|@FP_PV@|${PV}|g" \ + > "${D}"/etc/chromium/pepper-flash \ + || die + fi + fi +} + +pkg_postinst() { + gnome2_icon_cache_update +} +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/www-plugins/passff-host/Manifest b/www-plugins/passff-host/Manifest index 2ce8e6503fc9..9c50827f9df8 100644 --- a/www-plugins/passff-host/Manifest +++ b/www-plugins/passff-host/Manifest @@ -1,4 +1,4 @@ -DIST passff-host-1.0.2.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 -DIST passff-host-1.0.2.py 3153 BLAKE2B 54cc951628f18a0e8c88dc7404a6c035473c1a8d5974a26e0d6c48692cf29a8d507bf89d11a1247eb0705418719601d2bbcdfca77018d3480fb97f13d660b58d SHA512 d7818055e5cee6b3fc270d7a84f342ba68b8c1f5e5e01e120cff173b1cc50f2e6189121f4d258d470885de9ba0c06b687ccdbe6b3de653d2274954a4777b2a6b -EBUILD passff-host-1.0.2.ebuild 1353 BLAKE2B 554e910af6d9417fdc0e9db065efd87c3634103a3da899300e13423455f387f159f61fffc79d40bb420386b4bba8292cb90c035cc13002d6f7dedd4e3a8d57b5 SHA512 17a99b9727258696cdb58a1b2434366667f0d9ef9624f6a539ffe1d09c91261d04d69865ad9fa96ec9d75c0bc0089b238c878b116ef8170eeb0408e109220683 +DIST passff-host-1.1.0.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 +DIST passff-host-1.1.0.py 3405 BLAKE2B 6a73c070bc12c1a408ba3d8f1c76f81f1a73e878096d68b7b682b879fe4b51fd45bb24baa9e901bdabf77975ad24713e6846bf713c3e6a42ef8cbe617ef3a927 SHA512 7a275df3fb11f7a3823a7d9fbb41b2b83fb66f893570b95c89d2dfae3669ac12d30d13086c250882241978e555a064021ff26d3837d6e2704b20f3b12b3fd4af +EBUILD passff-host-1.1.0.ebuild 1350 BLAKE2B 1168d9393644eb61a06fcb212044e840c21cdd22b0547f9826c474e68015c2326b01b1c28b94950b8dac8326c3d9edae8fad896e7456088c9338be7731163abd SHA512 95980b7839b789f70e8cc0ede0e9c63829adcd4570319a5912433ff0cd8955cfffae6055d2e4784baac1f1988c267169993393cdbd44c7cbe70ce1e2ba56acf2 MISC metadata.xml 675 BLAKE2B 1db912c207b9b70e56ac1256af5d600ba8f3aa97ce22d2de3c56e752442a757c2cb32dd871c62cd96bca2f2c4016f8efd6853eb2c173b7123012ad26a9f32b6b SHA512 6da18aa19b6c64a80e7197e9a2cd22fc2f72c178890ac413237422b73df5360754cbe00da559c121f4482c53b2b6aa6decd6cbbcf7ff3f868d2b6cf314d964df diff --git a/www-plugins/passff-host/passff-host-1.0.2.ebuild b/www-plugins/passff-host/passff-host-1.0.2.ebuild deleted file mode 100644 index a2509be3e2c9..000000000000 --- a/www-plugins/passff-host/passff-host-1.0.2.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_5 python3_6 python3_7 ) - -inherit python-single-r1 - -DESCRIPTION="Host app for the PassFF WebExtension" -HOMEPAGE="https://github.com/passff/passff-host" - -SRC_URI=" - https://github.com/passff/passff-host/releases/download/${PV}/passff.py -> ${P}.py - https://github.com/passff/passff-host/releases/download/${PV}/passff.json -> ${P}.json -" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="chrome chromium firefox vivaldi" -REQUIRED_USE="|| ( chrome chromium firefox vivaldi )" - -S="${WORKDIR}" - -src_unpack() { - cp "${DISTDIR}/${P}.json" . || die - cp "${DISTDIR}/${P}.py" . || die -} - -src_prepare() { - default - python_fix_shebang "${P}.py" -} - -src_install() { - local target_dirs=() - - use chrome && target_dirs+=( "/etc/opt/chrome/native-messaging-hosts" ) - use chromium && target_dirs+=( "/etc/chromium/native-messaging-hosts" ) - use firefox && target_dirs+=( "/usr/lib/mozilla/native-messaging-hosts" ) - use vivaldi && target_dirs+=( "/etc/vivaldi/native-messaging-hosts" ) - - for target_dir in "${target_dirs[@]}"; do - sed "s;PLACEHOLDER;${target_dir}/passff.py;g" "${P}.json" > "passff.json" || die - - insinto "${target_dir}" - doins passff.json - exeinto "${target_dir}" - newexe "${P}.py" passff.py - done -} diff --git a/www-plugins/passff-host/passff-host-1.1.0.ebuild b/www-plugins/passff-host/passff-host-1.1.0.ebuild new file mode 100644 index 000000000000..aba30e810e6e --- /dev/null +++ b/www-plugins/passff-host/passff-host-1.1.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 2018-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_5 python3_6 python3_7 ) + +inherit python-single-r1 + +DESCRIPTION="Host app for the PassFF WebExtension" +HOMEPAGE="https://github.com/passff/passff-host" + +SRC_URI=" + https://github.com/passff/passff-host/releases/download/${PV}/passff.py -> ${P}.py + https://github.com/passff/passff-host/releases/download/${PV}/passff.json -> ${P}.json +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="chrome chromium firefox vivaldi" +REQUIRED_USE="|| ( chrome chromium firefox vivaldi )" + +S="${WORKDIR}" + +src_unpack() { + cp "${DISTDIR}/${P}.json" . || die + cp "${DISTDIR}/${P}.py" . || die +} + +src_prepare() { + default + python_fix_shebang "${P}.py" +} + +src_install() { + local target_dirs=() + + use chrome && target_dirs+=( "/etc/opt/chrome/native-messaging-hosts" ) + use chromium && target_dirs+=( "/etc/chromium/native-messaging-hosts" ) + use firefox && target_dirs+=( "/usr/lib/mozilla/native-messaging-hosts" ) + use vivaldi && target_dirs+=( "/etc/vivaldi/native-messaging-hosts" ) + + for target_dir in "${target_dirs[@]}"; do + sed "s;PLACEHOLDER;${target_dir}/passff.py;g" "${P}.json" > "passff.json" || die + + insinto "${target_dir}" + doins passff.json + exeinto "${target_dir}" + newexe "${P}.py" passff.py + done +} -- cgit v1.2.3