summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Riley <justin.t.riley@gmail.com>2014-03-18 12:38:45 -0400
committerJustin Riley <justin.t.riley@gmail.com>2014-03-18 12:38:45 -0400
commit61e21b3c063e17b833aac517b372070550eabe08 (patch)
tree6b05fde32825c07d576cddad6cda355927864836
parentadd gizmod live ebuild (diff)
downloadjtriley-61e21b3c063e17b833aac517b372070550eabe08.tar.gz
jtriley-61e21b3c063e17b833aac517b372070550eabe08.tar.bz2
jtriley-61e21b3c063e17b833aac517b372070550eabe08.zip
add www-plugins/fullscreenhack-9999 live ebuild
-rw-r--r--www-plugins/fullscreenhack/fullscreenhack-9999.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/www-plugins/fullscreenhack/fullscreenhack-9999.ebuild b/www-plugins/fullscreenhack/fullscreenhack-9999.ebuild
new file mode 100644
index 0000000..1e7e75b
--- /dev/null
+++ b/www-plugins/fullscreenhack/fullscreenhack-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit git-2 multilib unpacker
+
+DESCRIPTION="Fullscreen hack for Flash Plugin (Chrome and Firefox)"
+HOMEPAGE="https://github.com/ali1234/fullscreenhack"
+SLOT="live"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/ali1234/fullscreenhack.git"
+
+LICENSE="unknown"
+KEYWORDS=""
+IUSE="+npapi +ppapi chrome-preload"
+RESTRICT=""
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ chrome-preload? ( www-client/chromium )"
+DEPEND="${RDEPEND}"
+
+FSHACK_HOME=/opt/fullscreenhack
+NPAPI_LIB="libfshack-npapi.so"
+PPAPI_LIB="libfshack-ppapi.so"
+
+src_unpack() {
+ git-2_src_unpack
+}
+
+src_compile() {
+ if use npapi; then
+ emake ${NPAPI_LIB}
+ fi
+ if use ppapi; then
+ emake ${PPAPI_LIB}
+ fi
+}
+
+src_install() {
+ insinto ${FSHACK_HOME}
+ doins README
+ insinto ${FSHACK_HOME}/$(get_libdir)/
+ if use npapi; then
+ doins ${NPAPI_LIB}
+ fi
+ if use ppapi; then
+ doins ${PPAPI_LIB}
+ fi
+ if use chrome-preload; then
+ mkdir chrome;
+ echo "export LD_PRELOAD=${FSHACK_HOME}/$(get_libdir)/${PPAPI_LIB}" > chrome/fshack
+ insinto /etc/chromium
+ doins chrome/fshack
+ fi
+}