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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 11 00:13:38 2012 UTC (7 years, 3 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump for bug 434608.

(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.54.0.ebuild,v 1.1 2012/07/01 00:38:05 floppym Exp $
4
5 EAPI="4"
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="http://ps3mediaserver.googlecode.com/files/pms-generic-linux-unix-${PV}.tgz"
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-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )
21 media-libs/libmediainfo
22 media-libs/libzen
23 tsmuxer? ( media-video/tsmuxer )
24 transcode? ( media-video/mplayer[encode] )"
25
26 S=${WORKDIR}/pms-${PV}
27 PMS_HOME=/opt/${PN}
28
29 src_prepare() {
30 if use multiuser; then
31 cat > ${PN} <<-EOF
32 #!/bin/sh
33 if [ ! -e ~/.${PN} ]; then
34 echo "Copying ${PMS_HOME} to ~/.${PN}"
35 cp -pPR "${PMS_HOME}" ~/.${PN}
36 fi
37 export PMS_HOME=\${HOME}/.${PN}
38 exec "\${PMS_HOME}/PMS.sh" "\$@"
39 EOF
40 else
41 cat > ${PN} <<-EOF
42 #!/bin/sh
43 export PMS_HOME=${PMS_HOME}
44 exec "\${PMS_HOME}/PMS.sh" "\$@"
45 EOF
46 fi
47
48 cat > ${PN}.desktop <<-EOF
49 [Desktop Entry]
50 Name=PS3 Media Server
51 GenericName=Media Server
52 Exec=${PN}
53 Icon=${PN}
54 Type=Application
55 Categories=Network;
56 EOF
57
58 unzip -j pms.jar resources/images/icon-{32,256}.png || die
59 }
60
61 src_install() {
62 dobin ${PN}
63
64 exeinto ${PMS_HOME}
65 doexe PMS.sh
66
67 insinto ${PMS_HOME}
68 doins -r pms.jar *.conf documentation plugins renderers *.xml
69 use tsmuxer && dosym /opt/tsmuxer/bin/tsMuxeR ${PMS_HOME}/linux/tsMuxeR
70 dodoc CHANGELOG README.md
71
72 insinto /usr/share/icons/hicolor/32x32/apps
73 newins icon-32.png ${PN}.png
74 insinto /usr/share/icons/hicolor/256x256/apps
75 newins icon-256.png ${PN}.png
76
77 domenu ${PN}.desktop
78
79 newconfd "${FILESDIR}/${PN}.confd" ${PN}
80 newinitd "${FILESDIR}/${PN}.initd" ${PN}
81 }
82
83 pkg_postinst() {
84 ewarn "Don't forget to disable transcoding engines for software"
85 ewarn "that you don't have installed (such as having the VLC"
86 ewarn "transcoding engine enabled when you only have mencoder)."
87 if use multiuser; then
88 echo
89 ewarn "Make sure to refresh the .${PN} in your home directory if you are"
90 ewarn "upgrading from a previous version."
91 fi
92 }

  ViewVC Help
Powered by ViewVC 1.1.20