megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
diff media-tv/mediabrowser-server/mediabrowser-server-9999.ebuild @ 77:09aedc049d57
[mediabrowser-server] cleaned unused old beta builds, fixed keywordes for release, updated development ebuild to reflect recent changes
author | gsnerf <gsnerf@gsnerf.de> |
---|---|
date | Sun, 05 Oct 2014 21:11:36 +0200 |
parents | f336c5c11bfc |
children | 2d2f9db318d2 |
line wrap: on
line diff
--- a/media-tv/mediabrowser-server/mediabrowser-server-9999.ebuild Sun Oct 05 20:53:46 2014 +0200 +++ b/media-tv/mediabrowser-server/mediabrowser-server-9999.ebuild Sun Oct 05 21:11:36 2014 +0200 @@ -10,13 +10,16 @@ HOMEPAGE="http://mediabrowser.tv/" KEYWORDS="-* ~9999" EGIT_REPO_URI="https://github.com/MediaBrowser/MediaBrowser/" -#EGIT_REPO_URI="https://github.com/gsnerf/MediaBrowser/" SLOT="0" LICENSE="GPL-2" IUSE="" RESTRICT="mirror test" -RDEPEND=">=dev-lang/mono-3.2.0 >=dev-dotnet/libgdiplus-2.10 >=media-libs/libmediainfo-0.7" +RDEPEND=">=dev-lang/mono-3.2.7 + >=dev-dotnet/libgdiplus-2.10 + media-video/ffmpeg[vpx] + >=media-libs/libmediainfo-0.7 + >=media-libs/libwebp-0.4.1[jpeg]" DEPEND="app-arch/unzip ${RDEPEND}" INSTALL_DIR="/opt/mediabrowser-server" @@ -24,11 +27,11 @@ STARTUP_LOG="/var/log/mediabrowser_start.log" INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server" -# gentoo expects a specific subfolder in the working directory for the extracted source, so simply extracting won't work here -#src_unpack() { -# unpack ${A} -# mv MediaBrowser-master mediabrowser-server-9999 -#} +# we don't want to use the third party drivers, so we patch the config files to use system ones instead +# attention: do NOT remove the third party libraries before compiling as the build process might fail! +src_prepare() { + epatch "${FILESDIR}/system_libraries_1.patch" +} src_compile() { einfo "updating root certificates for mono certificate store" @@ -46,13 +49,14 @@ einfo "installing compiled files" diropts -omediabrowser -gmediabrowser - #insopts -omediabrowser -gmediabrowser dodir ${INSTALL_DIR} - #insinto ${INSTALL_DIR} - #doins -r "${S}/MediaBrowser.Server.Mono/bin/Release Mono/*" cp -R ${S}/MediaBrowser.Server.Mono/bin/Release\ Mono/* ${D}${INSTALL_DIR}/ || die "install failed, possibly compile did not succeed earlier?" chown mediabrowser:mediabrowser -R ${D}${INSTALL_DIR} + # as we use the system libraries, we delete the local ones now as we couldn't do it before + rm -R ${D}${INSTALL_DIR}/libwebp + rm -R ${D}${INSTALL_DIR}/MediaInfo + einfo "prepare data directory" dodir ${DATA_DIR} } @@ -60,7 +64,7 @@ pkg_setup() { einfo "creating user for MediaBrowser" enewgroup mediabrowser - enewuser mediabrowser -1 /bin/bash /opt/mediabrowser "mediabrowser" --system + enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system } #pkg_preinst() { @@ -98,8 +102,8 @@ } pkg_postinst() { - einfo "MediaBrowser-server was installed to /opt/mediabrowser, to start please use the init script provided." - einfo "All data generated and used by MediaBrowser can be found at /var/opt/mediabrowser after the first start." + einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided." + einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start." einfo "" einfo "If you just updated from an earlier version make sure to restart the service!" }