1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib readme.gentoo toolchain-funcs user
8 DESCRIPTION="uShare is a UPnP (TM) A/V & DLNA Media Server"
9 HOMEPAGE="http://ushare.geexbox.org/"
10 SRC_URI="http://ushare.geexbox.org/releases/${P}.tar.bz2"
17 RDEPEND=">=net-libs/libupnp-1.6.14
18 dlna? ( >=media-libs/libdlna-0.2.4 )"
23 EPATCH_SOURCE="${FILESDIR}" EPATCH_SUFFIX="patch" \
24 EPATCH_OPTS="-p1" epatch
26 DOC_CONTENTS="Please edit /etc/conf.d/ushare to set the shared directories
27 and other important settings. Check system log if ushare is
33 myconf="--prefix=/usr --disable-sysconf --disable-strip $(use_enable dlna)"
34 # nls can only be disabled, on by default.
35 use nls || myconf="${myconf} --disable-nls"
38 # --host is not implemented in ./configure file
41 ./configure ${myconf} || die "./configure failed"
45 emake DESTDIR="${D}" install
47 newconfd "${FILESDIR}"/ushare.conf.d ushare
48 newinitd "${FILESDIR}"/ushare.init.d ushare
49 dodoc NEWS README TODO THANKS AUTHORS
50 readme.gentoo_create_doc
55 readme.gentoo_print_elog