/[gentoo-x86]/net-misc/ps3mediaserver/ps3mediaserver-1.90.1.ebuild
Gentoo

Contents of /net-misc/ps3mediaserver/ps3mediaserver-1.90.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jan 1 15:15:51 2014 UTC (5 years, 11 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Version bump, bug 496614.

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ps3mediaserver-1.90.0.ebuild,v 1.1 2013/08/06 23:36:05 floppym Exp $
4
5 EAPI="5"
6
7 inherit eutils
8
9 DESCRIPTION="DLNA compliant UPNP server for streaming media to Playstation 3"
10 HOMEPAGE="http://code.google.com/p/ps3mediaserver"
11 SRC_URI="mirror://sourceforge/project/ps3mediaserver/pms-${PV}-generic-linux-unix.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="multiuser +transcode tsmuxer"
17
18 DEPEND="app-arch/unzip"
19 RDEPEND=">=virtual/jre-1.6.0
20 media-libs/libmediainfo
21 media-libs/libzen
22 tsmuxer? ( media-video/tsmuxer )
23 transcode? ( media-video/mplayer[encode] )"
24
25 S=${WORKDIR}/pms-${PV}
26 PMS_HOME=/opt/${PN}
27
28 src_prepare() {
29 if use multiuser; then
30 cat > ${PN} <<-EOF
31 #!/bin/sh
32 if [ ! -e ~/.${PN} ]; then
33 echo "Copying ${PMS_HOME} to ~/.${PN}"
34 cp -pPR "${PMS_HOME}" ~/.${PN}
35 fi
36 export PMS_HOME=\${HOME}/.${PN}
37 exec "\${PMS_HOME}/PMS.sh" "\$@"
38 EOF
39 else
40 cat > ${PN} <<-EOF
41 #!/bin/sh
42 export PMS_HOME=${PMS_HOME}
43 exec "\${PMS_HOME}/PMS.sh" "\$@"
44 EOF
45 fi
46
47 cat > ${PN}.desktop <<-EOF
48 [Desktop Entry]
49 Name=PS3 Media Server
50 GenericName=Media Server
51 Exec=${PN}
52 Icon=${PN}
53 Type=Application
54 Categories=Network;
55 EOF
56
57 unzip -j pms.jar resources/images/icon-{32,256}.png || die
58 }
59
60 src_install() {
61 dobin ${PN}
62
63 exeinto ${PMS_HOME}
64 doexe PMS.sh
65
66 insinto ${PMS_HOME}
67 doins -r pms.jar *.conf documentation plugins renderers *.xml
68 use tsmuxer && dosym /opt/tsmuxer/bin/tsMuxeR ${PMS_HOME}/linux/tsMuxeR
69 dodoc CHANGELOG.txt README.md
70
71 newicon -s 32 icon-32.png ${PN}.png
72 newicon -s 256 icon-256.png ${PN}.png
73
74 domenu ${PN}.desktop
75
76 newconfd "${FILESDIR}/${PN}.confd" ${PN}
77 newinitd "${FILESDIR}/${PN}.initd" ${PN}
78 }
79
80 pkg_postinst() {
81 if [[ -z ${REPLACING_VERSIONS} ]]; then
82 ewarn "Don't forget to disable transcoding engines for software"
83 ewarn "that you don't have installed (such as having the VLC"
84 ewarn "transcoding engine enabled when you only have mencoder)."
85 elif use multiuser; then
86 ewarn "Remember to refresh the files in ~/.ps3mediaserver/"
87 fi
88 }

  ViewVC Help
Powered by ViewVC 1.1.20