diff --git a/eclass/nsplugins.eclass b/eclass/nsplugins.eclass new file mode 100644 index 0000000..b4dd39e --- /dev/null +++ b/eclass/nsplugins.eclass @@ -0,0 +1,80 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# @DEAD +# @ECLASS: nsplugins.eclass +# @MAINTAINER: +# Mozilla Team +# @AUTHOR: +# Original Author: Martin Schlemmer +# @BLURB: reusable functions for netscape/moz plugin sharing +# @DESCRIPTION: +# Reusable functions that promote sharing of netscape/moz plugins, also provides +# share_plugins_dir function for mozilla applications. + +inherit eutils multilib versionator mozextension + +PLUGINS_DIR="nsbrowser/plugins" + +# This function move the plugin dir in src_install() to +# ${D}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be +# the full path (without $D) to old plugin dir. +src_mv_plugins() { + has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${D}" + + # Move plugins dir. We use keepdir so that it might not be unmerged + # by mistake ... + keepdir /usr/$(get_libdir)/${PLUGINS_DIR} + cp -a "${ED}"/$1/* "${ED}"/usr/$(get_libdir)/${PLUGINS_DIR} + rm -rf "${ED}"/$1 + dosym /usr/$(get_libdir)/${PLUGINS_DIR} $1 +} + +# This function move plugins in pkg_preinst() in old dir to +# ${ROOT}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be +# the full path (without $ROOT) to old plugin dir. +pkg_mv_plugins() { + has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${ROOT}" + + # Move old plugins dir + if [ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ] + then + mkdir -p "${EROOT}"/usr/$(get_libdir)/${PLUGINS_DIR} + cp -a "${EROOT}"/$1/* "${EROOT}"/usr/$(get_libdir)/${PLUGINS_DIR} + rm -rf "${EROOT}"/$1 + fi +} + +# This function installs a plugin with dosym to PLUGINS_DIR. +# First argument should be the plugin file. +inst_plugin() { + if [[ -z "${1}" ]]; then + eerror "The plugin file \"${1}\" does not exist." + die "No such file or directory." + fi + + dodir /usr/$(get_libdir)/${PLUGINS_DIR} + dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}/$(basename ${1}) +} + +# This function ensures we use proper plugin path for Gentoo. +# This should only be used by mozilla packages. +# ${MOZILLA_FIVE_HOME} must be defined in src_install to support +share_plugins_dir() { + if [[ ${PN} == seamonkey ]] ; then + rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins \ + || die "failed to remove existing plugins dir" + fi + + if [[ ${PN} == *-bin ]] ; then + PLUGIN_BASE_PATH="/usr/$(get_libdir)" + else + PLUGIN_BASE_PATH=".." + fi + + if $(mozversion_extension_location) ; then + dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/browser/plugins" + else + dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/plugins" + fi +} diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest index dfebef5..29e7822 100644 --- a/www-plugins/adobe-flash/Manifest +++ b/www-plugins/adobe-flash/Manifest @@ -1,14 +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.453-npapi.i386.tar.gz 8548784 BLAKE2B 9b0944a7a6a1aa958f6fcda0fe4a725c599e6558293594371812299ce788cc9e9ed426dc33f9b1ecb43a59fa3b7104bdee392b44fc243a8b5823e20d1ea6e4f0 SHA512 1dcacb25cd20c1d469f2160a40e29f10267c79945a79b583ce65be187a6ada34c269096d0e44d2253492edc51c5110e61c586ee097ff50745f9557c8dac2090e -DIST adobe-flash-32.0.0.453-npapi.x86_64.tar.gz 9066153 BLAKE2B 73ee100479b95627af617417d741866a22134a255bbf97692ad1d2d996059702d290fc72ec441e61305d743ad1357bf85011b775b56073beb95f16796ce21328 SHA512 50d6afb9477f31e267dd485caad08cbb6cb4a198403a89c9849012333a35d1e2851137cb6da0d18a87b1e539b6b78246ca689d6cb3dbbcd87432d3183223cd07 -DIST adobe-flash-32.0.0.453-ppapi.i386.tar.gz 8832903 BLAKE2B c9423e696437672f21bc2c4fa0a0e2b889260d13bef9cf361b9bb9517abfe35f1e42c13d6e49ee0dcc56beb47832b81842356dd1fc2bd4f608f31ba9023fa23a SHA512 7540fda93e2c7a3d63c79b5b5a5656f1d294e1d06b2f7613436026af961f49707706815cba36cd0531d3eb7dccd5be429ac9c05ff8a5cb0bb21d6ec30811116a -DIST adobe-flash-32.0.0.453-ppapi.x86_64.tar.gz 9764153 BLAKE2B ff890985141f9c1d23fc04e281f91f437e2e7fee165a68cae0f3fcbf1bef7b4c4a19067a887b7542bedf5a5a765a9598c51c598ff34cc4cc6e2308a364d9fb84 SHA512 a385b68ace7de021c30ab71fcf84114793bc821863ebbb062c61fb134e13c94402f8b676c723eb2a06fbb0622bba027db438a34c434288b77491dfaca1621b5d DIST adobe-flash-32.0.0.465-npapi.i386.tar.gz 8548148 BLAKE2B f70bd9d9ca06492c35ab91db70a201bea9c3b84651f15492ef27025b55434d148ffd454835790ee64c6bb32c3b0eff344ca1f8605113cd0814a851d5c40667e1 SHA512 5c7b81aa38667aedc230a14899d0dbb26d0a59c255946966e1b11b8abad98312e1d45d75b1fddf4ace8587121b431d77b1050ce764613eb4e8ea34ea37587b3e DIST adobe-flash-32.0.0.465-npapi.x86_64.tar.gz 9064884 BLAKE2B dc108bc0e7085b87bfc1410716f0b7251951022329b8cc85a1eed194a8b5010d31b76f104099a267aee2f16e5a1706b27802f0c8baed1dcd8234d249ba84a2c2 SHA512 b2fd7b16326facadb94e505de4e27d608d8b7690a719753348d381a54362984905dcb431ceb3f12853ddd3f2a5542497e2e5bb09afbdd728ca1217408fea1797 DIST adobe-flash-32.0.0.465-ppapi.i386.tar.gz 8832791 BLAKE2B 7804580db3340c9e7bd57657bf48add202ee6a71ac8d79bd6634c12dffd21b0d6eb2e92046ee6f0105939af5dccefc0e43f9ccb8f728afcff007abb846633eff SHA512 7cc4da295b1c2cf1a8995c71f755e9fb5ffb57001aa14fa049c9f626ebc7191c6944fdb6e3f723c52f664532a51fada17dcfe839d4065bf80a492521bfa94eef DIST adobe-flash-32.0.0.465-ppapi.x86_64.tar.gz 9763881 BLAKE2B 9b6df0213f365611efa1f9b07ce621bb328990f3adadf1c1fed018c4cfc5a375096e462415825e190bae944bdd16de5e960f5f49e5d2249ddd86c89e5459c4db SHA512 cc31f1d8c5d50501b2e2bacd65b644f788e484acd3d1ae654db0851ae16b24c0292f5f07f1582cc9462afe6beb201f7b107fa86136256890f1e19f12857021cc -EBUILD adobe-flash-32.0.0.453.ebuild 3659 BLAKE2B 7eb3cf6531ea89c5bd0bcb0839d8c061fdcc6ef1f9f96b05ff1a8ec873076f7844a71882a2b7b5975f582544a2878791c04ccdb305e72273d2902e08bb344876 SHA512 cb79e6dbaae54841adea5d780c5e38a4ebb1a0a385961313dc5764c13cd3cb427a0938c3905fb3a7325ca02e5dd85c354fde48899668b0ef7763885750e5311b EBUILD adobe-flash-32.0.0.465.ebuild 3659 BLAKE2B 7eb3cf6531ea89c5bd0bcb0839d8c061fdcc6ef1f9f96b05ff1a8ec873076f7844a71882a2b7b5975f582544a2878791c04ccdb305e72273d2902e08bb344876 SHA512 cb79e6dbaae54841adea5d780c5e38a4ebb1a0a385961313dc5764c13cd3cb427a0938c3905fb3a7325ca02e5dd85c354fde48899668b0ef7763885750e5311b MISC metadata.xml 481 BLAKE2B d871797b2c896190a05ff5101e8f695a34bfec3576626710b8f9ef8cd84936abc2f7c0d8dcadab1678262d0407ee96f7ab7dfeff37d411a247f6c6c07074bb5f SHA512 2f50c0cdb3dafdd169281ebe04aa92ed184f5b4f68c0f37e350177091d379c5df86b0addd3111db722a0274cd7435e66cf3c6aa1776d0f029013aa05d26990b7 diff --git a/www-plugins/adobe-flash/adobe-flash-32.0.0.453.ebuild b/www-plugins/adobe-flash/adobe-flash-32.0.0.453.ebuild deleted file mode 100644 index 577e386..0000000 --- a/www-plugins/adobe-flash/adobe-flash-32.0.0.453.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit xdg-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="bindist mirror strip" - -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() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -}