blob: 1b45d4df293f85e7ef1c8cf2cc82c770e98d2322 (
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
45
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-lensfun/gimp-lensfun-0.2.3.ebuild,v 1.1 2014/05/30 13:15:03 swift Exp $
EAPI="5"
inherit eutils toolchain-funcs
MY_PN="GIMP-Lensfun"
DESCRIPTION="Lensfun plugin for GIMP"
HOMEPAGE="http://seebk.github.io/GIMP-Lensfun/"
SRC_URI="https://github.com/seebk/GIMP-Lensfun/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="openmp"
RDEPEND="media-gfx/gimp
media-gfx/exiv2
media-libs/lensfun"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${MY_PN}-${PV}
pkg_setup() {
if use openmp ; then
tc-has-openmp || die "Please switch to an openmp compatible compiler"
fi
}
src_prepare() {
if ! use openmp; then
sed -i "s/-fopenmp//g" Makefile
fi
tc-export CXX
}
src_install() {
exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
doexe ${PN}
}
|