Updated pipelight ebuild

This commit is contained in:
layman 2014-05-26 00:00:40 +02:00
parent 82a96982fb
commit e548c353dd
3 changed files with 144 additions and 50 deletions

View File

@ -1,50 +0,0 @@
SRCS+= adb.c
SRCS+= adb_client.c
SRCS+= commandline.c
SRCS+= console.c
SRCS+= fdevent.c
SRCS+= file_sync_client.c
SRCS+= file_sync_service.c
SRCS+= framebuffer_service.c
SRCS+= get_my_path_linux.c
SRCS+= services.c
SRCS+= sockets.c
SRCS+= transport.c
SRCS+= transport_local.c
SRCS+= transport_usb.c
SRCS+= usb_linux.c
SRCS+= usb_linux_client.c
SRCS+= usb_vendors.c
SRCS+= utils.c
VPATH+= ../libcutils
SRCS+= list.c
SRCS+= load_file.c
SRCS+= socket_inaddr_any_server.c
SRCS+= socket_local_client.c
SRCS+= socket_local_server.c
SRCS+= socket_loopback_client.c
SRCS+= socket_loopback_server.c
SRCS+= socket_network_client.c
VPATH+= ../libzipfile
SRCS+= centraldir.c
SRCS+= zipfile.c
CPPFLAGS+= -DADB_HOST=1
CPPFLAGS+= -DHAVE_FORKEXEC=1
CPPFLAGS+= -I.
CPPFLAGS+= -I../include
LIBS+= -lpthread -lz
OBJS= $(SRCS:.c=.o)
all: adb
adb: $(OBJS)
cc -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
install:
test -d '$(DESTDIR)/usr/bin' || mkdir -p '$(DESTDIR)/usr/bin'
cp adb '$(DESTDIR)/usr/bin'

View File

@ -1,3 +1,4 @@
DIST pipelight-0.2.6.tar.gz 138153 SHA256 79fa11ed70b98d82f723b7825236489a5bdf2109ca5cb16f8aa226fc81db129a SHA512 27d64d3cdb0bf4a04d1abf13906ed7a740eb0956b4d21bf26f9743dda985b0d8241c7e1f87d8de905f97e98fcdc29924a91667fc0affd66fcd6ca7bb9eeee380 WHIRLPOOL 2839c0cf24afad873305f704aac3ae2a8620b3b5514711863f1cb200d9defb6dcf3335f3489fdbb3647f6e9182b57ad212b0c9917a2cb94ea049aa542c22710e DIST pipelight-0.2.6.tar.gz 138153 SHA256 79fa11ed70b98d82f723b7825236489a5bdf2109ca5cb16f8aa226fc81db129a SHA512 27d64d3cdb0bf4a04d1abf13906ed7a740eb0956b4d21bf26f9743dda985b0d8241c7e1f87d8de905f97e98fcdc29924a91667fc0affd66fcd6ca7bb9eeee380 WHIRLPOOL 2839c0cf24afad873305f704aac3ae2a8620b3b5514711863f1cb200d9defb6dcf3335f3489fdbb3647f6e9182b57ad212b0c9917a2cb94ea049aa542c22710e
DIST pluginloader-prebuilt-v0.2.6.tar.gz 467738 SHA256 afb6a3a50861b3700901c8c21f5c79a6e1beaffa59e949a0d6150ee9a03bfe27 SHA512 e3892243ca40950dfff2a916bb3fce16eca6936ec0bd419945a585513526d4b9c380ecb1d1cf418ae08422fc59ab3948e2b256ce989bb33334f2038bb391970e WHIRLPOOL 75ce2c8391b0966b889aef8abebdc16c9f3b464b439ec9e55d6c69cbfc4334c28e986db42719024ddb83b69c398a670dd7f87b1be40db50671fd75383f13b00a DIST pluginloader-prebuilt-v0.2.6.tar.gz 467738 SHA256 afb6a3a50861b3700901c8c21f5c79a6e1beaffa59e949a0d6150ee9a03bfe27 SHA512 e3892243ca40950dfff2a916bb3fce16eca6936ec0bd419945a585513526d4b9c380ecb1d1cf418ae08422fc59ab3948e2b256ce989bb33334f2038bb391970e WHIRLPOOL 75ce2c8391b0966b889aef8abebdc16c9f3b464b439ec9e55d6c69cbfc4334c28e986db42719024ddb83b69c398a670dd7f87b1be40db50671fd75383f13b00a
EBUILD pipelight-0.2.6-r1.ebuild 6897 SHA256 a8eab94ad5f75c6eff094e0161ab391788708823d61084019eb1704638a8ee6b SHA512 9016835d7b880707194831b3d95c4e32500da2724ca8d79cae08fd5c0bb2c374ee5e9caa89841634b89a3759b77e103f95b30f4b704d9d0ecd711a82e39f1894 WHIRLPOOL 50e87d7d015463b8829b274beaad6e3303a874118d75b5b3a930764492cf71175e4a883491aaaf5c8ed00a42998f76397687209db7e6aa00d931c6e05e79320e
EBUILD pipelight-0.2.6.ebuild 6897 SHA256 89b879393ea4c7af68f935482278b8dd5f0118f3efa19d528a6e1303526d73e4 SHA512 1c08171029d692ea94c430e6116edb7a4e51f7ac0af4fc2915c811231d67d346c9bab9b99f762199e5102854de38f4e4c34bb98e6e119220b9d2092b1a6dce4d WHIRLPOOL 381343bfc97e000b69678c1dbb6795bc197e5a534fbc20c4a8dd64bfb9644bf2b2b5238c25b13b91b9bd6760f1d05b02449108e204f7d3fce11f4869778fe4fb EBUILD pipelight-0.2.6.ebuild 6897 SHA256 89b879393ea4c7af68f935482278b8dd5f0118f3efa19d528a6e1303526d73e4 SHA512 1c08171029d692ea94c430e6116edb7a4e51f7ac0af4fc2915c811231d67d346c9bab9b99f762199e5102854de38f4e4c34bb98e6e119220b9d2092b1a6dce4d WHIRLPOOL 381343bfc97e000b69678c1dbb6795bc197e5a534fbc20c4a8dd64bfb9644bf2b2b5238c25b13b91b9bd6760f1d05b02449108e204f7d3fce11f4869778fe4fb

View File

@ -0,0 +1,143 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils multilib
DESCRIPTION="A browser plugin which allows one to use windows-only plugins inside Linux browsers."
HOMEPAGE="http://fds-team.de/cms/index.html https://launchpad.net/pipelight"
SRC_URI="https://bitbucket.org/mmueller2012/pipelight/get/v${PV}.tar.gz -> ${P}.tar.gz
binary-pluginloader? ( http://repos.fds-team.de/pluginloader/v${PV}/pluginloader.tar.gz -> pluginloader-prebuilt-v${PV}.tar.gz )"
LICENSE="GPL-2 LGPL-2.1 MPL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="adobereader +binary-pluginloader flash foxitpdf grandstream installation-dialogs npactivex roblox shockwave +silverlight static unity3d"
DEPEND="app-arch/cabextract
>=app-emulation/wine-1.7.16[pipelight]
x11-apps/mesa-progs"
RDEPEND="${DEPEND}"
S="${WORKDIR}/mmueller2012-pipelight-487f8db5a03d"
src_prepare() {
if use binary-pluginloader; then
mv ${WORKDIR}/src/windows/pluginloader.exe ${S}/src/windows/pluginloader.exe
fi
}
src_configure() {
local myargs
if use binary-pluginloader; then
myargs+="--win32-prebuilt"
elif use !binary-pluginloader; then
if use static; then
myargs+=" --win32-static"
else
myargs+=" --win32-cxx=$(/usr/bin/which wineg++)"
fi
fi
if use installation-dialogs; then
myargs+=" --show-installation-dialogs"
fi
# We're not using econf because this is not an autotools configure script
./configure \
--prefix=/usr \
--wine-path=/usr/bin/wine \
--moz-plugin-path=/usr/$(get_libdir)/nsbrowser/plugins \
${myargs}
}
src_install() {
default
#LICENSE is taken from src/linux/basicplugin.c in the pipelight source code.
sed -n -e '/BEGIN LICENSE/,/END LICENSE/p' ${S}/src/linux/basicplugin.c >> ${S}/LICENSE
dodoc ${S}/LICENSE debian/changelog
}
pkg_postinst() {
einfo "Creating copies of libpipelight.so..."
pipelight-plugin --create-mozilla-plugins
#The following plugins are not created by "pipelight-plugin --create-mozilla-plugins" and must be "unlocked"
use adobereader && pipelight-plugin --unlock-plugin adobereader
use foxitpdf && pipelight-plugin --unlock-plugin foxitpdf
use grandstream && pipelight-plugin --unlock-plugin grandstream
use npactivex && pipelight-plugin --unlock-plugin npactivex
use roblox && pipelight-plugin --unlock-plugin roblox
use shockwave && pipelight-plugin --unlock-plugin shockwave
einfo "Enabling plugins..."
# Setup symlinks to enable plugins based on USE flags
use adobereader && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-adobereader.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-adobereader.so
use flash && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-flash.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-flash.so
use foxitpdf && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-foxitpdf.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-foxitpdf.so
use grandstream && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-grandstream.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-grandstream.so
use npactivex && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-npactivex.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-npactivex.so
use roblox && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-roblox.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-roblox.so
use shockwave && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-shockwave.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-shockwave.so
use silverlight && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-silverlight5.1.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-silverlight5.1.so
use unity3d && ln -sf /usr/$(get_libdir)/pipelight/libpipelight-unity3d.so /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-unity3d.so
echo
elog "When you first start your browser after installing Pipelight, Pipelight will "
elog "download and install any enabled plugins. This may take a few minutes to "
elog "complete. "
elog
elog "Some web sites will check what operating system you are using and will not "
elog "function properly if they detect Linux. For these sites, you will need to "
elog "install and enable a user agent string editor. The user agent string "
elog "recommended by upstream for many Silverlight apps is "
elog "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1 "
elog "and for many Unity 3D apps is "
elog "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like"
elog " Gecko) Version/5.1.3 Safari/534.53.10 "
elog "See https://answers.launchpad.net/pipelight/+faq/2351 for more information. "
elog
elog "GPU acceleration is not enabled by default for all graphics cards. See "
elog "https://answers.launchpad.net/pipelight/+faq/2364 for more information. "
echo
}
pkg_prerm() {
einfo "Removing copies of libpipelight.so..."
pipelight-plugin --remove-mozilla-plugins
einfo "Disabling plugins..."
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-adobereader.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-adobereader.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-flash.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-flash.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-foxitpdf.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-foxitpdf.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-grandstream.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-grandstream.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-npactivex.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-npactivex.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-roblox.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-roblox.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-shockwave.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-shockwave.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-silverlight4.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-silverlight4.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-silverlight5.0.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-silverlight5.0.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-silverlight5.1.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-silverlight5.1.so
fi
if [ -h /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-unity3d.so ] ; then
rm /usr/$(get_libdir)/nsbrowser/plugins/libpipelight-unity3d.so
fi
}