summaryrefslogtreecommitdiff
blob: 5e90cd433878521ed37be019fe6a5488c6e4f6bd (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/brewtarget/brewtarget-1.2.4.ebuild,v 1.3 2013/07/18 21:57:13 creffett Exp $

EAPI=4

inherit cmake-utils

DESCRIPTION="Application to create and manage beer recipes"
HOMEPAGE="http://brewtarget.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz"

LICENSE="GPL-3 WTFPL-2"
SLOT="0"
KEYWORDS="~amd64"

IUSE="kde"

DEPEND="
	>=dev-qt/qtcore-4.6:4
	>=dev-qt/qtgui-4.6:4
	>=dev-qt/qtsvg-4.6:4
	>=dev-qt/qtwebkit-4.6:4
	kde? ( media-libs/phonon )
	!kde? ( || ( >=dev-qt/qtphonon-4.6:4 media-libs/phonon ) )
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/${PV}-find-phonon.patch"
)

src_prepare() {
	cmake-utils_src_prepare

	# Fix docs install path
	sed -i -e "/DOCDIR / s:\${CMAKE_PROJECT_NAME}:${PF}:" \
		CMakeLists.txt || die

	# Append missing semicolon to Categories in desktop file
	sed -i -e '/^Categories=/ s:$:;:' ${PN}.desktop.in || die
}