summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2012-06-17 03:26:18 +0000
committerMike Gilbert <floppym@gentoo.org>2012-06-17 03:26:18 +0000
commitd5bbc85dab92db057f65262876b097e87557e2e4 (patch)
tree99e7eeda5ae175d68a72f471201225d1d9a13bf7 /net-misc/ps3mediaserver
parentremoved redundant ispc license (bug #421401) (diff)
downloadgentoo-2-d5bbc85dab92db057f65262876b097e87557e2e4.tar.gz
gentoo-2-d5bbc85dab92db057f65262876b097e87557e2e4.tar.bz2
gentoo-2-d5bbc85dab92db057f65262876b097e87557e2e4.zip
Version bump.
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/ps3mediaserver')
-rw-r--r--net-misc/ps3mediaserver/ChangeLog7
-rw-r--r--net-misc/ps3mediaserver/ps3mediaserver-1.53.0.ebuild92
2 files changed, 98 insertions, 1 deletions
diff --git a/net-misc/ps3mediaserver/ChangeLog b/net-misc/ps3mediaserver/ChangeLog
index 2b7253f2f968..b16eefa16016 100644
--- a/net-misc/ps3mediaserver/ChangeLog
+++ b/net-misc/ps3mediaserver/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/ps3mediaserver
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ChangeLog,v 1.11 2012/04/11 05:19:10 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ChangeLog,v 1.12 2012/06/17 03:26:18 floppym Exp $
+
+*ps3mediaserver-1.53.0 (17 Jun 2012)
+
+ 17 Jun 2012; Mike Gilbert <floppym@gentoo.org> +ps3mediaserver-1.53.0.ebuild:
+ Version bump.
*ps3mediaserver-1.52.1 (11 Apr 2012)
diff --git a/net-misc/ps3mediaserver/ps3mediaserver-1.53.0.ebuild b/net-misc/ps3mediaserver/ps3mediaserver-1.53.0.ebuild
new file mode 100644
index 000000000000..cdf6f1e8793e
--- /dev/null
+++ b/net-misc/ps3mediaserver/ps3mediaserver-1.53.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ps3mediaserver-1.53.0.ebuild,v 1.1 2012/06/17 03:26:18 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-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )
+ media-libs/libmediainfo
+ media-libs/libzen
+ tsmuxer? ( media-video/tsmuxer )
+ transcode? ( media-video/mplayer[encode] )"
+
+S=${WORKDIR}/pms-${PV}
+PMS_HOME=/opt/${PN}
+
+src_prepare() {
+ if use multiuser; then
+ cat > ${PN} <<-EOF
+ #!/bin/sh
+ if [ ! -e ~/.${PN} ]; then
+ echo "Copying ${PMS_HOME} to ~/.${PN}"
+ cp -pPR "${PMS_HOME}" ~/.${PN}
+ fi
+ export PMS_HOME=\${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.md
+
+ 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
+
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+}
+
+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
+}