From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2BB4615808B for ; Tue, 15 Mar 2022 22:44:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 407E8E0849; Tue, 15 Mar 2022 22:44:50 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C5314E0849 for ; Tue, 15 Mar 2022 22:44:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BFCD034365D for ; Tue, 15 Mar 2022 22:44:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EB11F2EA for ; Tue, 15 Mar 2022 22:44:46 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1647384263.2a6b4baaf5dcd4bce2fe251b5ae60d56c95e1fca.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ps3mediaserver/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/ps3mediaserver/ps3mediaserver-1.90.1-r2.ebuild X-VCS-Directories: net-misc/ps3mediaserver/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 2a6b4baaf5dcd4bce2fe251b5ae60d56c95e1fca X-VCS-Branch: master Date: Tue, 15 Mar 2022 22:44:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dd8c5bdc-7351-48a7-821c-79e71df085c4 X-Archives-Hash: 1800bebd12199d98c624467978d73649 commit: 2a6b4baaf5dcd4bce2fe251b5ae60d56c95e1fca Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Mon Mar 14 08:15:16 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 15 22:44:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a6b4baa net-misc/ps3mediaserver: min java 1.8:* According to https://marc.info/?l=gentoo-dev&m=161838633318104&w=2 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/24551 Signed-off-by: Sam James gentoo.org> .../ps3mediaserver/ps3mediaserver-1.90.1-r2.ebuild | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/net-misc/ps3mediaserver/ps3mediaserver-1.90.1-r2.ebuild b/net-misc/ps3mediaserver/ps3mediaserver-1.90.1-r2.ebuild new file mode 100644 index 000000000000..2451c9339969 --- /dev/null +++ b/net-misc/ps3mediaserver/ps3mediaserver-1.90.1-r2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg + +DESCRIPTION="DLNA compliant UPNP server for streaming media to Playstation 3" +HOMEPAGE="https://github.com/ps3mediaserver/ps3mediaserver" +SRC_URI="mirror://sourceforge/project/ps3mediaserver/pms-${PV}-generic-linux-unix.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="multiuser +transcode tsmuxer" + +BDEPEND="app-arch/unzip" +RDEPEND=">=virtual/jre-1.8:* + 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() { + default + + if use multiuser; then + cat > ${PN} <<-EOF || die + #!/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 || die + #!/bin/sh + export PMS_HOME=${PMS_HOME} + exec "\${PMS_HOME}/PMS.sh" "\$@" + EOF + fi + + cat > ${PN}.desktop <<-EOF || die + [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.txt README.md + + newicon -s 32 icon-32.png ${PN}.png + newicon -s 256 icon-256.png ${PN}.png + + domenu ${PN}.desktop + + newconfd "${FILESDIR}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${PN}.initd" ${PN} +} + +pkg_postinst() { + xdg_pkg_postinst + if [[ -z ${REPLACING_VERSIONS} ]]; then + 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)." + elif use multiuser; then + ewarn "Remember to refresh the files in ~/.ps3mediaserver/" + fi +}