diff options
author | Mike Gilbert <floppym@gentoo.org> | 2011-11-30 06:38:30 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2011-11-30 06:38:30 +0000 |
commit | de43d806102238977109a885b7067aabce297ac1 (patch) | |
tree | 0cc958c6147a51f95c90b2b516e4aed204c12314 /net-misc/ps3mediaserver | |
parent | New snapshot, thanks to Nikoli <nikoli@lavabit.com> for the updated ebuild in... (diff) | |
download | gentoo-2-de43d806102238977109a885b7067aabce297ac1.tar.gz gentoo-2-de43d806102238977109a885b7067aabce297ac1.tar.bz2 gentoo-2-de43d806102238977109a885b7067aabce297ac1.zip |
Version bump. Add multiuser use flag to control launcher behavior.
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/ps3mediaserver')
-rw-r--r-- | net-misc/ps3mediaserver/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/ps3mediaserver/metadata.xml | 1 | ||||
-rw-r--r-- | net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild | 89 |
3 files changed, 97 insertions, 1 deletions
diff --git a/net-misc/ps3mediaserver/ChangeLog b/net-misc/ps3mediaserver/ChangeLog index b6c9c3676f08..311ca05db0c3 100644 --- a/net-misc/ps3mediaserver/ChangeLog +++ b/net-misc/ps3mediaserver/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/ps3mediaserver # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ChangeLog,v 1.3 2011/11/04 04:16:52 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ChangeLog,v 1.4 2011/11/30 06:38:30 floppym Exp $ + +*ps3mediaserver-1.50.0 (30 Nov 2011) + + 30 Nov 2011; Mike Gilbert <floppym@gentoo.org> +ps3mediaserver-1.50.0.ebuild, + metadata.xml: + Version bump. Add multiuser use flag to control launcher behavior. *ps3mediaserver-1.40.0 (04 Nov 2011) diff --git a/net-misc/ps3mediaserver/metadata.xml b/net-misc/ps3mediaserver/metadata.xml index 3e679af3e318..780e66f87fba 100644 --- a/net-misc/ps3mediaserver/metadata.xml +++ b/net-misc/ps3mediaserver/metadata.xml @@ -9,6 +9,7 @@ <name>Mike Gilbert</name> </maintainer> <use> + <flag name="multiuser">Allow renderer customization per-user.</flag> <flag name="transcode">Install optional dependencies for transcoding support via media-video/mplayer</flag> <flag name="tsmuxer">Install optional dependencies for transcoding support via media-video/tsmuxer</flag> </use> diff --git a/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild b/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild new file mode 100644 index 000000000000..bf508bd21083 --- /dev/null +++ b/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild,v 1.1 2011/11/30 06:38:30 floppym Exp $ + +EAPI="4" + +inherit eutils + +DESCRIPTION="DLNA compliant UPNP server for streaming media to Playstation 3" +HOMEPAGE="http://code.google.com/p/ps3mediaserver" +SRC_URI="http://ps3mediaserver.googlecode.com/files/pms-generic-linux-unix-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="multiuser +transcode tsmuxer" + +DEPEND="app-arch/unzip" +RDEPEND=">=virtual/jre-1.6.0 + media-libs/libmediainfo + media-libs/libzen + tsmuxer? ( media-video/tsmuxer ) + transcode? ( media-video/mplayer[encode] )" + +S=${WORKDIR}/pms-linux-${PV} +PMS_HOME=/opt/${PN} + +src_prepare() { + if use multiuser; then + echo multiuser is on + cat > ${PN} <<-EOF + #!/bin/sh + if [ ! -e ~/.${PN} ]; then + echo "Copying ${PMS_HOME} to ~/.${PN}" + cp -pPR "${PMS_HOME}" ~/.${PN} + fi + export PMS_HOME=~/.${PN} + exec "\${PMS_HOME}/PMS.sh" "\$@" + EOF + else + cat > ${PN} <<-EOF + #!/bin/sh + export PMS_HOME=${PMS_HOME} + exec "\${PMS_HOME}/PMS.sh" "\$@" + EOF + fi + + cat > ${PN}.desktop <<-EOF + [Desktop Entry] + Name=PS3 Media Server + GenericName=Media Server + Exec=${PN} + Icon=${PN} + Type=Application + Categories=Network; + EOF + + unzip -j pms.jar resources/images/icon-{32,256}.png || die +} + +src_install() { + dobin ${PN} + + exeinto ${PMS_HOME} + doexe PMS.sh + + insinto ${PMS_HOME} + doins -r pms.jar *.conf documentation plugins renderers *.xml + use tsmuxer && dosym /opt/tsmuxer/bin/tsMuxeR ${PMS_HOME}/linux/tsMuxeR + dodoc CHANGELOG README + + insinto /usr/share/icons/hicolor/32x32/apps + newins icon-32.png ${PN}.png + insinto /usr/share/icons/hicolor/256x256/apps + newins icon-256.png ${PN}.png + + domenu ${PN}.desktop +} + +pkg_postinst() { + ewarn "Don't forget to disable transcoding engines for software" + ewarn "that you don't have installed (such as having the VLC" + ewarn "transcoding engine enabled when you only have mencoder)." + if use multiuser; then + echo + ewarn "Make sure to refresh the .${PN} in your home directory if you are" + ewarn "upgrading from a previous version." + fi +} |