summaryrefslogtreecommitdiff
blob: 71486c2ea9b72335cfc894065d739cbe1b5d7833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/djmount/djmount-0.71-r1.ebuild,v 1.4 2010/10/12 08:40:57 phajdan.jr Exp $

EAPI="2"

DESCRIPTION="Mount UPnP audio/video servers as a filesystem"
HOMEPAGE="http://djmount.sf.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug test"

RDEPEND="sys-fs/fuse
	net-libs/libupnp"
DEPEND="${RDEPEND}
	test? ( sys-libs/readline )"

src_unpack() {
	default
	rm -rf libupnp/*/{src,inc} libupnp/configure # make sure we use external
}

src_prepare() {
	sed -i 's:SetLogFileNames:UpnpSetLogFileNames:' djmount/fuse_main.c #267508
	sed -i 's:InitLog:UpnpInitLog:' djmount/test_device.c #277557
}

src_configure() {
	econf $(use_enable debug) --with-external-libupnp
}

src_test() {
	# wants to do mounts :x
	printf '#!/bin/sh\nexit 0\n' > djmount/test_vfs.sh
	default
}

src_install() {
	emake DESTDIR="${D}" install || die
	dodoc AUTHORS ChangeLog NEWS README search_help.txt THANKS
}