summaryrefslogtreecommitdiff
blob: 4a8fd6e19d888bb8f8772fc614b549fe202a6d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit git-2 cmake-utils

DESCRIPTION="Chromium Flash wrapper for Mozilla Firefox"
HOMEPAGE="https://github.com/i-rinat/freshplayerplugin"
SRC_URI=""
EGIT_REPO_URI="https://github.com/i-rinat/${PN}.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="
	dev-libs/glib
	dev-libs/libconfig
	dev-libs/libevent[threads]
	dev-libs/uriparser
	media-libs/alsa-lib
	media-libs/freetype
	media-libs/mesa[egl,gles2]
	x11-libs/cairo
	x11-libs/gtk+:2
	x11-libs/libX11
	x11-libs/libXinerama
	x11-libs/pango
	"
RDEPEND="${DEPEND}
	|| (
		www-plugins/chrome-binary-plugins[flash]
		www-client/google-chrome
		www-client/google-chrome-beta
		www-client/google-chrome-unstable
	)
	"

src_install() {
	insinto /etc
	newins data/freshwrapper.conf.example freshwrapper.conf
	ewarn 'Depending on what branch of Google Chrome you use, the path to libpepflashplayer.so may need editing in /etc/freshwrapper.conf .'

	insinto /usr/lib/nsbrowser/plugins/
	doins "${BUILD_DIR}"/libfreshwrapper.so
}