Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2a46ab
commit 1daa479
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST pms-generic-linux-unix-1.50.0-b1.tgz 12324560 RMD160 03570aa2275f4f3ccb38847770052bfcd4d55e6d SHA1 602622ab7c98c5f24496697cc7a276e5b926b2b0 SHA256 3181ce04134a9aa83ded7bb9dd435d93c4d7e75236c6b6cfcdf07872c4d25a17 | ||
DIST pms-generic-linux-unix-1.50.0.tgz 12336817 RMD160 8f9fd855a18bdc185f32f691e7a347125bef6a6f SHA1 2bd968a792a4409f45aa4cf25c8796c021fd1dd2 SHA256 22bcb820a89b771ce2ca8455e671b0b8372f29b22e0d9ca9c303d30d58ddbdde |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 1999-2011 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# Author: Anders Evenrud <andersevenrud@gmail.com> | ||
|
||
EAPI="2" | ||
|
||
MY_PV="1.50.0" | ||
MY_PV2="1.50.0" | ||
|
||
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-${MY_PV}.tgz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="+transcode tsmuxer" | ||
|
||
DEPEND="" | ||
RDEPEND=">=virtual/jre-1.6.0 | ||
tsmuxer? ( media-video/tsmuxer ) | ||
transcode? ( media-video/mplayer[encode] )" | ||
|
||
S=${WORKDIR}/pms-linux-${MY_PV2} | ||
|
||
src_prepare() { | ||
rm linux/tsMuxeR* || die | ||
cat <<-EOF > ${PN} | ||
#!/bin/sh | ||
echo "Setting up ~/.${PN} based on /usr/share/${PN}/" | ||
if [ ! -e ~/.${PN} ] ; then | ||
mkdir -p ~/.${PN} | ||
cp -pPR /usr/share/${PN}/* ~/.${PN}/ | ||
fi | ||
cd ~/.${PN} | ||
PMS_HOME=\$PWD | ||
EOF | ||
cat PMS.sh >> ${PN} | ||
} | ||
|
||
src_install() { | ||
dobin ${PN} || die | ||
insinto /usr/share/${PN} | ||
doins -r pms.jar *.conf linux plugins renderers || die | ||
use tsmuxer && { dosym /opt/bin/tsMuxeR /usr/share/${PN}/linux/ || die ; } | ||
dodoc CHANGELOG README | ||
} | ||
|
||
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)." | ||
} |