summaryrefslogtreecommitdiff
blob: 5ecb1754ebadb3ab1f28c18d1ac306623994941d (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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/digikamimageplugins/digikamimageplugins-0.7.4.ebuild,v 1.2 2005/11/27 18:09:41 cryos Exp $

inherit kde

MY_P=${P/_/-}
S=${WORKDIR}/${MY_P}

DESCRIPTION="DigikamImagePlugins are a collection of plugins for Digikam Image Editor."
HOMEPAGE="http://www.digikam.org/"
SRC_URI="mirror://sourceforge/digikam/${MY_P}.tar.bz2
	doc? ( mirror://sourceforge/digikam/${PN}-doc-${PV}.tar.bz2 )"

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

DEPEND="=media-gfx/digikam-${PV}
	>=media-gfx/imagemagick-5.5.4
	>=media-video/mjpegtools-1.6.0
	virtual/opengl"

need-kde 3.2

src_compile(){
	kde_src_compile
	if use doc; then
		cd ${WORKDIR}/${PN}-doc-${PV}
		econf $(use_with arts) || die "econf failed for docs."
		emake || die "emake failed for docs."
	fi
}

src_install() {
	kde_src_install
	if use doc; then
		cd ${WORKDIR}/${PN}-doc-${PV}
		make install DESTDIR=${D} || "make install failed for docs."
	fi
}