summaryrefslogtreecommitdiff
blob: 851197bf523b1e14a0a468ccd1dda7190b8b179f (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/kio-upnp-ms/kio-upnp-ms-0.8.0_p20110313.ebuild,v 1.2 2011/04/28 19:36:00 ottxor Exp $

EAPI="3"

inherit kde4-base

DESCRIPTION="A upnp KIO slave for KDE"
HOMEPAGE="https://projects.kde.org/projects/playground/base/kio-upnp-ms"
SRC_URI="mirror://gentoo/${P}.tar.gz"

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

RDEPEND="~media-libs/herqq-1.0.0
	kde-base/kdelibs
	x11-libs/qt-core"
DEPEND="${RDEPEND}"

src_prepare() {
	sed -i -e '/HUPNP_VER/s/0/1/' -e '/HUPNP_VER/s/9/0/' CMakeLists.txt || die
	cp "${FILESDIR}"/FindHUpnp.cmake "${T}" || die
	kde4-base_src_prepare || die
	mycmakeargs=( -DCMAKE_MODULE_PATH="${T}" -DHUPNP_INCLUDE_DIR="${EPREFIX}/usr/include" )
}