diff options
author | Stefan Cristian B. <steven.darklight@gmail.com> | 2014-12-03 01:24:03 +0200 |
---|---|---|
committer | Stefan Cristian B. <steven.darklight@gmail.com> | 2014-12-03 01:24:03 +0200 |
commit | 6bcb94a835c0532067f59725f727fb7a5c73746b (patch) | |
tree | 20c2220c42945036087f87c334057e240e99027a /www-plugins/freshplayerplugin/freshplayerplugin-0.2.1.ebuild | |
parent | cf7fb7814fcf274a3f49436ab2875709bd15d9c2 (diff) | |
parent | 202f5de2cfb8744a7fc89191605d42869cdbe56f (diff) |
Merge pull request #12 from V3n3RiX/master
PPAPI2NPAPI flash plugin wrapper, aka run chrome PPAPI flash on Firefox
Diffstat (limited to 'www-plugins/freshplayerplugin/freshplayerplugin-0.2.1.ebuild')
-rw-r--r-- | www-plugins/freshplayerplugin/freshplayerplugin-0.2.1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/www-plugins/freshplayerplugin/freshplayerplugin-0.2.1.ebuild b/www-plugins/freshplayerplugin/freshplayerplugin-0.2.1.ebuild new file mode 100644 index 00000000..18773f15 --- /dev/null +++ b/www-plugins/freshplayerplugin/freshplayerplugin-0.2.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils cmake-multilib nsplugins + +DESCRIPTION="ppapi2npapi compatibility layer" +HOMEPAGE="https://github.com/i-rinat/freshplayerplugin" +SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT LGPL-2.1" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND=" + dev-util/ragel + dev-libs/libconfig + >=dev-libs/glib-2.38.2-r1:2 + >=media-libs/alsa-lib-1.0.28 + >=x11-libs/pango-1.36.5 + >=media-libs/mesa-10.0.4 + >=dev-libs/libevent-2.38.2-r1" +RDEPEND=" + www-plugins/chrome-binary-plugins" + +S="${WORKDIR}/${PN}-${PV}" + +src_prepare() { + epatch "${FILESDIR}"/find-chrome-binary-plugins-flash.patch +} + +multilib_src_configure() { + local mycmakeargs="-DFRESHPLAYERPLUGINPATH=${EPREFIX}/usr/$(get_libdir)/freshplayerplugin" + + cmake-utils_src_configure +} + +multilib_src_install() { + # install the wrapper + exeinto /usr/$(get_libdir)/${PLUGINS_DIR} + doexe libfreshwrapper-pepperflash.so + # install wrapper configuration file + cd "${S}" + dodir /usr/share/${PN} || die + insinto /usr/share/${PN} || die + doins -r "${S}"/data/freshwrapper.conf.example || die + dosym /usr/share/${PN}/freshwrapper.conf.example /etc/freshwrapper.conf || die +} |