From a4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 28 Apr 2018 20:02:04 +0100 Subject: gentoo resync : 28.04.2018 --- www-plugins/gnash/Manifest | 2 +- www-plugins/gnash/gnash-0.8.10_p20160329-r1.ebuild | 261 --------------------- www-plugins/gnash/gnash-0.8.10_p20160329-r2.ebuild | 260 ++++++++++++++++++++ 3 files changed, 261 insertions(+), 262 deletions(-) delete mode 100644 www-plugins/gnash/gnash-0.8.10_p20160329-r1.ebuild create mode 100644 www-plugins/gnash/gnash-0.8.10_p20160329-r2.ebuild (limited to 'www-plugins/gnash') diff --git a/www-plugins/gnash/Manifest b/www-plugins/gnash/Manifest index 26c843967571..d1b1d0706bb1 100644 --- a/www-plugins/gnash/Manifest +++ b/www-plugins/gnash/Manifest @@ -4,5 +4,5 @@ AUX gnash-0.8.9-external-dejagnu.patch 700 BLAKE2B c01f515259aa96076cf47f0f3a555 AUX gnash-0.8.9-kde4-libdir.patch 498 BLAKE2B ae7d071ef8026e134415481b613c343fea78e038ba7568a6b05e319eaf7c02ec6a20502a7486e560beec30f05d50716ec468456f5a0fd5b88c94c64f71bc5c1a SHA512 df1a6faf5b3cae8a519b590ee3e26009b5a194a01f5dacc5b1862751118d1172f0babf85f7641d6b8e898d5013b6c11002c593df589c57312d842930ab964341 AUX gnash-0.8.9-klash.patch 471 BLAKE2B 0006bfe83a78dd923766972b44138ceea36befaaf5e9b09560e2a06b0d902791a8d7645e32d357196264fc126c34d448585672647cf800085e07a48138fd5980 SHA512 4a57310522ac2323eee26bb027432b12606d91add6d528b31afd69e172c73aa9f80bafc7c0a84fed4214773f901b65ddea4a7de67865f82a2984ac1dfe274c4d DIST gnash-0.8.10_p20160329.tar.xz 4079572 BLAKE2B 4d5f4799add9d2e00a9b9322dc48be0b8b3c9f790dc5881d9fba6e4d9646537786f7644d3dbbf3bd259d1975062438af071eb2ab28c661de2b5510368c9d218e SHA512 e8956d6277dde29a22bfe5af4279b40f80dad5659961d042e0bb57505b084f3ef1b489cf6fdf06730a8f3e2f9fdb737d7b1bc015a0255a80b167b98e686aa245 -EBUILD gnash-0.8.10_p20160329-r1.ebuild 6537 BLAKE2B acc1f9857c52e9eaa21a2ace58b201e295e79bac86d98077fc41d772ad74b1040d2359efb074bc1e0106a3bfbfd6ac3da223527de9d3a0ac28870c6abac3dd42 SHA512 c9199f8183f2f7b42893874f365247bcf2ff7084ba3918378073ff908f0a9e3dc3bf4a74f79aac7174db48772970b43c474117ffd9a020016c4b1520bd5714e2 +EBUILD gnash-0.8.10_p20160329-r2.ebuild 6519 BLAKE2B 218f0ce4a1c7e4a4553dcb3f833a420bc9c73032ff3e14c4941dd67293bff9ec47bac70de2fb8be6b5d77a55d0fb8d1fa0961139054d02156404437616a0837a SHA512 9336aa523ecb5a4d2ca3d6bc3f0166a91d2e3a46334b6e93a4e7af24c8b81229f67325d60d6d772e8efaf7c8d854f4a114ecc7ef1e726cf891a2aa74d8295f7d MISC metadata.xml 1139 BLAKE2B 9734261c64faac7dd8d8326bb939f154577ae0540e9b259bad40e871249b3878bdee4ef941b6e8c787e11779a7ef793f3505d2207d7166d0c1db4b098f5895f8 SHA512 10fea436cf59f26ccf534d869379a101ee0e3fb1a47950b58e12a0e3027314b0f4ac1bc4f72817dd1be0ca64f18b2463ef89587dd8d45b7a20929218dccef41e diff --git a/www-plugins/gnash/gnash-0.8.10_p20160329-r1.ebuild b/www-plugins/gnash/gnash-0.8.10_p20160329-r1.ebuild deleted file mode 100644 index 97d6669ea4e7..000000000000 --- a/www-plugins/gnash/gnash-0.8.10_p20160329-r1.ebuild +++ /dev/null @@ -1,261 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -AT_M4DIR="cygnal" -# won't build with python-3, bug #392969 -PYTHON_COMPAT=( python2_7 ) - -inherit autotools eutils multilib nsplugins python-any-r1 flag-o-matic xdg-utils - -DESCRIPTION="GNU Flash movie player that supports many SWF v7,8,9 features" -HOMEPAGE="https://www.gnu.org/software/gnash/" - -if [[ ${PV} = 9999* ]]; then - SRC_URI="" - EGIT_REPO_URI="git://git.savannah.gnu.org/gnash.git" - inherit git-2 -else -# Release tarball is b0rked, upstream #35612 -# SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2" - SRC_URI="mirror://gentoo/${P}.tar.xz" -fi - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="amd64 ppc ~ppc64 ~sparc x86" -IUSE="X +agg cairo cygnal dbus directfb doc dump egl fbcon +ffmpeg libav libressl gnome gtk harden jemalloc lirc mysql +nls nsplugin opengl openvg python sdl +sdl-sound ssh ssl test vaapi" -REQUIRED_USE=" - dump? ( agg ffmpeg ) - fbcon? ( agg ) - nsplugin? ( gtk ) - openvg? ( egl ) - python? ( gtk ) - vaapi? ( agg ffmpeg ) - || ( agg cairo opengl openvg ) - || ( dump fbcon gtk sdl ) -" - -RDEPEND=" - >=dev-libs/boost-1.41.0:0= - dev-libs/expat - dev-libs/libxml2:2 - virtual/jpeg:0 - media-libs/libpng:0= - net-misc/curl - x11-libs/libX11 - x11-libs/libXi - x11-libs/libXmu - x11-libs/libXt - media-libs/giflib:= - x11-proto/xproto - agg? ( x11-libs/agg ) - cairo? ( x11-libs/cairo ) - directfb? ( - dev-libs/DirectFB - ) - doc? ( - >=app-text/docbook2X-0.8.8 - app-text/docbook-sgml-utils - ) - egl? ( - media-libs/mesa[egl] - ) - fbcon? ( - x11-libs/tslib - ) - ffmpeg? ( - libav? ( media-video/libav:0=[vaapi?] ) - !libav? ( media-video/ffmpeg:0=[vaapi?] ) - ) - gtk? ( - x11-libs/gtk+:2 - python? ( dev-python/pygtk:2 ) - ) - jemalloc? ( dev-libs/jemalloc ) - opengl? ( - virtual/glu - virtual/opengl - gtk? ( x11-libs/gtkglext ) - ) - openvg? ( - media-libs/mesa[openvg] - ) - sdl? ( media-libs/libsdl[X] ) - sdl-sound? ( media-libs/libsdl ) - >=media-libs/speex-1.2.0 - media-libs/speexdsp - sys-libs/zlib - >=sys-devel/libtool-2.2 - mysql? ( virtual/mysql ) - lirc? ( app-misc/lirc ) - dbus? ( sys-apps/dbus ) - ssh? ( >=net-libs/libssh-0.4[server] ) - ssl? ( - libressl? ( dev-libs/libressl:0= ) - !libressl? ( dev-libs/openssl:0= ) - ) - vaapi? ( x11-libs/libva[opengl?] ) - " -DEPEND="${RDEPEND} - virtual/pkgconfig - nls? ( sys-devel/gettext ) - gnome? ( app-text/rarian ) - nsplugin? ( net-misc/npapi-sdk ) - test? ( dev-util/dejagnu ) - ${PYTHON_DEPS} -" -# Tests hang with sandbox, bug #321017 -RESTRICT="test" - -pkg_setup() { - python-any-r1_pkg_setup - - if use !ffmpeg; then - ewarn "You are trying to build Gnash without choosing a media handler." - ewarn "Sound and video playback will not work." - fi -} - -src_unpack() { - default - # rename git snapshot directory to what portage expects - mv ${PN}-*/ ${P} || die -} - -src_prepare() { - default - - xdg_environment_reset # 591014 - - # Fix paths for klash, bug #339610 - eapply "${FILESDIR}"/${PN}-0.8.9-klash.patch - - # Use external dejagnu for tests, bug #321017 - eapply "${FILESDIR}"/${PN}-0.8.9-external-dejagnu.patch - - # Fix building on ppc64, bug #342535 - use ppc64 && append-flags -mminimal-toc - - # Fix kde multilib library path, bug #391283 - eapply "${FILESDIR}"/${PN}-0.8.9-kde4-libdir.patch - - # Fix libamf includes - eapply "${FILESDIR}"/${PN}-0.8.10-amf-include.patch - - # Fix new adjacent_tokens_only() in >=boost-1.59 (bug 579142) - # See https://savannah.gnu.org/bugs/?46148 - eapply "${FILESDIR}"/${PN}-0.8.10_p20150316-boost-1.60.patch - - eautoreconf -} -src_configure() { - local device gui input media myconf myext renderers - - # Set nsplugin install directory. - use nsplugin && myconf="${myconf} --with-npapi-plugindir=/usr/$(get_libdir)/gnash/npapi/" - - # Set hardware acceleration. - use X && device+=",x11" - use directfb && device+=",directfb" - use egl && device+=",egl" - use fbcon && device+=",rawfb" - use vaapi && device+=",vaapi" - [[ "${device}x" == "x" ]] && device+=",none" - - # Set rendering engine. - use agg && renderers+=",agg" - use cairo && renderers+=",cairo" - use opengl && renderers+=",opengl" - use openvg && renderers+=",openvg" - - # Set media handler. - use ffmpeg || media+=",none" - use ffmpeg && media+=",ffmpeg" - - # Set gui. - use dump && gui+=",dump" - use fbcon && gui+=",fb" - use gtk && gui+=",gtk" - use sdl && gui+=",sdl" - - if use sdl-sound; then - myconf="${myconf} --enable-sound=sdl" - else - myconf="${myconf} --enable-sound=none" - fi - - # Set extensions - use mysql && myext=",mysql" - use gtk && myext="${myext},gtk" - use lirc && myext="${myext},lirc" - use dbus && myext="${myext},dbus" - - # Strip extra comma from gui, myext, hwaccel and renderers. - device=$( echo $device | sed -e 's/,//' ) - gui=$( echo $gui | sed -e 's/^,//' ) - myext=$( echo $myext | sed -e 's/,//' ) - renderers=$( echo $renderers | sed -e 's/,//' ) - media=$( echo $media | sed -e 's/,//' ) - - econf \ - --disable-kparts3 \ - --disable-kparts4 \ - --without-gconf \ - $(use_enable cygnal) \ - $(use_enable cygnal cgibins) \ - $(use_enable doc docbook) \ - $(use_enable gnome ghelp) \ - $(use_enable harden) \ - $(use_enable jemalloc) \ - $(use_enable nls) \ - $(use_enable nsplugin npapi) \ - $(use_enable python) \ - $(use_enable ssh) \ - $(use_enable ssl) \ - $(use_enable test testsuite) \ - --enable-gui=${gui} \ - --enable-device=${device} \ - --enable-extensions=${myext} \ - --enable-renderer=${renderers} \ - --enable-media=${media} \ - ${myconf} -} -src_test() { - local log=testsuite-results.txt - cd testsuite - emake check || die "make check failed" - ./anaylse-results.sh > $log || die "results analyze failed" - cat $log -} -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - # Install nsplugin in directory set by --with-npapi-plugindir. - if use nsplugin; then - emake DESTDIR="${D}" install-plugin || die "install plugins failed" - fi - - # Create a symlink in /usr/$(get_libdir)/nsbrowser/plugins to the nsplugin install directory. - use nsplugin && inst_plugin /usr/$(get_libdir)/gnash/npapi/libgnashplugin.so - - # Remove eglinfo, bug #463654 - if use egl; then - rm -f "${D}"/usr/bin/eglinfo || die - fi - - einstalldocs -} -pkg_postinst() { - if use !gnome || use !ffmpeg ; then - ewarn "" - ewarn "Gnash was built without a media handler and or http handler !" - ewarn "" - ewarn "If you want Gnash to support video then you will need to" - ewarn "rebuild Gnash with the ffmpeg and gnome use flags set." - ewarn "" - fi - ewarn "${PN} is still in heavy development" - ewarn "Please first report bugs on upstream gnashdevs and deal with them" - ewarn "And then report a Gentoo bug to the maintainer" -} diff --git a/www-plugins/gnash/gnash-0.8.10_p20160329-r2.ebuild b/www-plugins/gnash/gnash-0.8.10_p20160329-r2.ebuild new file mode 100644 index 000000000000..a57919c38bc9 --- /dev/null +++ b/www-plugins/gnash/gnash-0.8.10_p20160329-r2.ebuild @@ -0,0 +1,260 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +AT_M4DIR="cygnal" +# won't build with python-3, bug #392969 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils multilib nsplugins python-any-r1 flag-o-matic xdg-utils + +DESCRIPTION="GNU Flash movie player that supports many SWF v7,8,9 features" +HOMEPAGE="https://www.gnu.org/software/gnash/" + +if [[ ${PV} = 9999* ]]; then + SRC_URI="" + EGIT_REPO_URI="git://git.savannah.gnu.org/gnash.git" + inherit git-2 +else +# Release tarball is b0rked, upstream #35612 +# SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2" + SRC_URI="mirror://gentoo/${P}.tar.xz" +fi + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 ~sparc x86" +IUSE="X +agg cairo cygnal dbus directfb doc dump egl fbcon +ffmpeg libav libressl gnome gtk harden jemalloc lirc mysql +nls nsplugin opengl openvg python sdl +sdl-sound ssh ssl test vaapi" +REQUIRED_USE=" + dump? ( agg ffmpeg ) + fbcon? ( agg ) + nsplugin? ( gtk ) + openvg? ( egl ) + python? ( gtk ) + vaapi? ( agg ffmpeg ) + || ( agg cairo opengl openvg ) + || ( dump fbcon gtk sdl ) +" + +RDEPEND=" + >=dev-libs/boost-1.41.0:0= + dev-libs/expat + dev-libs/libxml2:2 + virtual/jpeg:0 + media-libs/libpng:0= + net-misc/curl + x11-libs/libX11 + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXt + media-libs/giflib:= + agg? ( x11-libs/agg ) + cairo? ( x11-libs/cairo ) + directfb? ( + dev-libs/DirectFB + ) + doc? ( + >=app-text/docbook2X-0.8.8 + app-text/docbook-sgml-utils + ) + egl? ( + media-libs/mesa[egl] + ) + fbcon? ( + x11-libs/tslib + ) + ffmpeg? ( + libav? ( media-video/libav:0=[vaapi?] ) + !libav? ( media-video/ffmpeg:0=[vaapi?] ) + ) + gtk? ( + x11-libs/gtk+:2 + python? ( dev-python/pygtk:2 ) + ) + jemalloc? ( dev-libs/jemalloc ) + opengl? ( + virtual/glu + virtual/opengl + gtk? ( x11-libs/gtkglext ) + ) + openvg? ( + media-libs/mesa[openvg] + ) + sdl? ( media-libs/libsdl[X] ) + sdl-sound? ( media-libs/libsdl ) + >=media-libs/speex-1.2.0 + media-libs/speexdsp + sys-libs/zlib + >=sys-devel/libtool-2.2 + mysql? ( virtual/mysql ) + lirc? ( app-misc/lirc ) + dbus? ( sys-apps/dbus ) + ssh? ( >=net-libs/libssh-0.4[server] ) + ssl? ( + libressl? ( dev-libs/libressl:0= ) + !libressl? ( dev-libs/openssl:0= ) + ) + vaapi? ( x11-libs/libva[opengl?] ) + " +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext ) + gnome? ( app-text/rarian ) + nsplugin? ( net-misc/npapi-sdk ) + test? ( dev-util/dejagnu ) + ${PYTHON_DEPS} +" +# Tests hang with sandbox, bug #321017 +RESTRICT="test" + +pkg_setup() { + python-any-r1_pkg_setup + + if use !ffmpeg; then + ewarn "You are trying to build Gnash without choosing a media handler." + ewarn "Sound and video playback will not work." + fi +} + +src_unpack() { + default + # rename git snapshot directory to what portage expects + mv ${PN}-*/ ${P} || die +} + +src_prepare() { + default + + xdg_environment_reset # 591014 + + # Fix paths for klash, bug #339610 + eapply "${FILESDIR}"/${PN}-0.8.9-klash.patch + + # Use external dejagnu for tests, bug #321017 + eapply "${FILESDIR}"/${PN}-0.8.9-external-dejagnu.patch + + # Fix building on ppc64, bug #342535 + use ppc64 && append-flags -mminimal-toc + + # Fix kde multilib library path, bug #391283 + eapply "${FILESDIR}"/${PN}-0.8.9-kde4-libdir.patch + + # Fix libamf includes + eapply "${FILESDIR}"/${PN}-0.8.10-amf-include.patch + + # Fix new adjacent_tokens_only() in >=boost-1.59 (bug 579142) + # See https://savannah.gnu.org/bugs/?46148 + eapply "${FILESDIR}"/${PN}-0.8.10_p20150316-boost-1.60.patch + + eautoreconf +} +src_configure() { + local device gui input media myconf myext renderers + + # Set nsplugin install directory. + use nsplugin && myconf="${myconf} --with-npapi-plugindir=/usr/$(get_libdir)/gnash/npapi/" + + # Set hardware acceleration. + use X && device+=",x11" + use directfb && device+=",directfb" + use egl && device+=",egl" + use fbcon && device+=",rawfb" + use vaapi && device+=",vaapi" + [[ "${device}x" == "x" ]] && device+=",none" + + # Set rendering engine. + use agg && renderers+=",agg" + use cairo && renderers+=",cairo" + use opengl && renderers+=",opengl" + use openvg && renderers+=",openvg" + + # Set media handler. + use ffmpeg || media+=",none" + use ffmpeg && media+=",ffmpeg" + + # Set gui. + use dump && gui+=",dump" + use fbcon && gui+=",fb" + use gtk && gui+=",gtk" + use sdl && gui+=",sdl" + + if use sdl-sound; then + myconf="${myconf} --enable-sound=sdl" + else + myconf="${myconf} --enable-sound=none" + fi + + # Set extensions + use mysql && myext=",mysql" + use gtk && myext="${myext},gtk" + use lirc && myext="${myext},lirc" + use dbus && myext="${myext},dbus" + + # Strip extra comma from gui, myext, hwaccel and renderers. + device=$( echo $device | sed -e 's/,//' ) + gui=$( echo $gui | sed -e 's/^,//' ) + myext=$( echo $myext | sed -e 's/,//' ) + renderers=$( echo $renderers | sed -e 's/,//' ) + media=$( echo $media | sed -e 's/,//' ) + + econf \ + --disable-kparts3 \ + --disable-kparts4 \ + --without-gconf \ + $(use_enable cygnal) \ + $(use_enable cygnal cgibins) \ + $(use_enable doc docbook) \ + $(use_enable gnome ghelp) \ + $(use_enable harden) \ + $(use_enable jemalloc) \ + $(use_enable nls) \ + $(use_enable nsplugin npapi) \ + $(use_enable python) \ + $(use_enable ssh) \ + $(use_enable ssl) \ + $(use_enable test testsuite) \ + --enable-gui=${gui} \ + --enable-device=${device} \ + --enable-extensions=${myext} \ + --enable-renderer=${renderers} \ + --enable-media=${media} \ + ${myconf} +} +src_test() { + local log=testsuite-results.txt + cd testsuite + emake check || die "make check failed" + ./anaylse-results.sh > $log || die "results analyze failed" + cat $log +} +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # Install nsplugin in directory set by --with-npapi-plugindir. + if use nsplugin; then + emake DESTDIR="${D}" install-plugin || die "install plugins failed" + fi + + # Create a symlink in /usr/$(get_libdir)/nsbrowser/plugins to the nsplugin install directory. + use nsplugin && inst_plugin /usr/$(get_libdir)/gnash/npapi/libgnashplugin.so + + # Remove eglinfo, bug #463654 + if use egl; then + rm -f "${D}"/usr/bin/eglinfo || die + fi + + einstalldocs +} +pkg_postinst() { + if use !gnome || use !ffmpeg ; then + ewarn "" + ewarn "Gnash was built without a media handler and or http handler !" + ewarn "" + ewarn "If you want Gnash to support video then you will need to" + ewarn "rebuild Gnash with the ffmpeg and gnome use flags set." + ewarn "" + fi + ewarn "${PN} is still in heavy development" + ewarn "Please first report bugs on upstream gnashdevs and deal with them" + ewarn "And then report a Gentoo bug to the maintainer" +} -- cgit v1.2.3