summaryrefslogtreecommitdiff
blob: ed54bd44a2e3dc3c76d60e85a9f5920cdccb3ce1 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

DESCRIPTION="Plugins for UCView image capture application"
HOMEPAGE="http://unicap-imaging.org/"
SRC_URI="http://unicap-imaging.org/downloads/${P}.tar.gz"

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

DEPEND=">=media-video/ucview-0.30
	x11-libs/gtk+:2
	nls? ( virtual/libintl )"
RDEPEND=${DEPEND}

src_prepare() {
	# remove unneeded (and not installed) header include
	sed -e 's|^#include <ucview/ucview\.h>$|//\0|' \
			-i ucview_debayer_plugin/src/debayer_plugin.c || die
}

src_configure() {
	econf $(use_enable nls)
}

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

	# remove stray empty dir
	rmdir "${D}"/usr/share/ucview{/glade,}
}