Gentoo Archives: gentoo-commits

From: Markos Chandras <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/ushare/
Date: Sun, 06 Mar 2016 10:58:51
Message-Id: 1457261865.ac4ae84779cbc73d81ac4e3a289a75ea62698f41.hwoarang@gentoo
1 commit: ac4ae84779cbc73d81ac4e3a289a75ea62698f41
2 Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 6 10:50:30 2016 +0000
4 Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 6 10:57:45 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac4ae847
7
8 media-video/ushare: Drop libdlna support. Bug #571078
9
10 Package-Manager: portage-2.2.27
11
12 media-video/ushare/ushare-1.1a-r7.ebuild | 63 ++++++++++++++++++++++++++++++++
13 1 file changed, 63 insertions(+)
14
15 diff --git a/media-video/ushare/ushare-1.1a-r7.ebuild b/media-video/ushare/ushare-1.1a-r7.ebuild
16 new file mode 100644
17 index 0000000..43b638f
18 --- /dev/null
19 +++ b/media-video/ushare/ushare-1.1a-r7.ebuild
20 @@ -0,0 +1,63 @@
21 +# Copyright 1999-2013 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +inherit eutils multilib readme.gentoo toolchain-funcs user systemd
27 +
28 +DESCRIPTION="uShare is a UPnP (TM) A/V & DLNA Media Server"
29 +HOMEPAGE="http://ushare.geexbox.org/"
30 +SRC_URI="http://ushare.geexbox.org/releases/${P}.tar.bz2"
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~x86"
35 +IUSE="nls"
36 +
37 +RDEPEND=">=net-libs/libupnp-1.6.14"
38 +DEPEND="${RDEPEND}
39 + virtual/pkgconfig"
40 +
41 +src_prepare() {
42 + EPATCH_EXCLUDE="06_all_ushare_disable_sysconf.patch"
43 + EPATCH_SOURCE="${FILESDIR}" EPATCH_SUFFIX="patch" \
44 + EPATCH_OPTS="-p1" epatch
45 +
46 + DOC_CONTENTS="Please edit /etc/ushare.conf to set the shared directories
47 + and other important settings. Check system log if ushare is
48 + not booting."
49 +}
50 +
51 +src_configure() {
52 + local myconf
53 + myconf="--prefix=/usr --sysconfdir=/etc --disable-strip"
54 + # nls can only be disabled, on by default.
55 + use nls || myconf="${myconf} --disable-nls"
56 +
57 + # I can't use econf
58 + # --host is not implemented in ./configure file
59 + tc-export CC CXX
60 +
61 + ./configure ${myconf} || die "./configure failed"
62 +}
63 +
64 +src_install() {
65 + emake DESTDIR="${D}" install
66 + doman src/ushare.1
67 + newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
68 + newinitd "${FILESDIR}"/${PN}.init.d.ng ${PN}
69 + dodoc NEWS README TODO THANKS AUTHORS
70 + systemd_dounit "${FILESDIR}"/${PN}.service
71 + readme.gentoo_create_doc
72 +}
73 +
74 +pkg_postinst() {
75 + enewuser ushare
76 + readme.gentoo_print_elog
77 + elog
78 + elog "The config file has been moved to /etc/ushare.conf"
79 + elog "Please migrate your settings from /etc/conf.d/ushare"
80 + elog "to /etc/ushare.conf in order to use the ushare init script"
81 + elog "and systemd unit service."
82 + elog
83 +}