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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Jun 15 17:07:31 2013 UTC (6 years, 7 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Version bump.

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

1 floppym 1.1 # Copyright 1999-2013 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.81.0.ebuild,v 1.1 2013/05/12 21:54:20 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-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     ewarn "Don't forget to disable transcoding engines for software"
82     ewarn "that you don't have installed (such as having the VLC"
83     ewarn "transcoding engine enabled when you only have mencoder)."
84     if use multiuser; then
85     echo
86     ewarn "Make sure to refresh the .${PN} in your home directory if you are"
87     ewarn "upgrading from a previous version."
88     fi
89     }

  ViewVC Help
Powered by ViewVC 1.1.20