Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 468788
Collapse All | Expand All

(-)gimp-lensfun-0.2.2-r2.ebuild (-12 / +9 lines)
Lines 1-21 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-lensfun/gimp-lensfun-0.2.2-r2.ebuild,v 1.1 2012/10/28 17:30:19 hwoarang Exp $
3
# $Header: $
4
4
5
EAPI="4"
5
EAPI="5"
6
6
7
inherit eutils toolchain-funcs
7
inherit eutils toolchain-funcs
8
8
9
MY_PN="gimplensfun"
9
MY_PN="GIMP-Lensfun"
10
MY_P="${MY_PN}-${PV}"
11
10
12
DESCRIPTION="Lensfun plugin for GIMP"
11
DESCRIPTION="Lensfun plugin for GIMP"
13
HOMEPAGE="http://lensfun.sebastiankraft.net/"
12
HOMEPAGE="http://seebk.github.io/GIMP-Lensfun/"
14
SRC_URI="http://lensfun.sebastiankraft.net/${MY_P}.tar.gz"
13
SRC_URI="https://github.com/seebk/GIMP-Lensfun/archive/${PV}.tar.gz -> ${P}.tar.gz"
15
14
16
LICENSE="GPL-3"
15
LICENSE="GPL-3"
17
SLOT="0"
16
SLOT="0"
18
KEYWORDS="~amd64"
17
KEYWORDS="~amd64 ~x86"
19
IUSE="openmp"
18
IUSE="openmp"
20
19
21
RDEPEND="media-gfx/gimp
20
RDEPEND="media-gfx/gimp
Lines 24-30 Link Here
24
DEPEND="${RDEPEND}
23
DEPEND="${RDEPEND}
25
	virtual/pkgconfig"
24
	virtual/pkgconfig"
26
25
27
S="${WORKDIR}/${MY_P}"
26
S=${WORKDIR}/${MY_PN}-${PV}
28
27
29
pkg_setup() {
28
pkg_setup() {
30
        if use openmp ; then
29
        if use openmp ; then
Lines 33-40 Link Here
33
}
32
}
34
33
35
src_prepare() {
34
src_prepare() {
36
	epatch "${FILESDIR}"/${P}-build.patch
37
38
	if ! use openmp; then
35
	if ! use openmp; then
39
		sed -i "s/-fopenmp//g" Makefile
36
		sed -i "s/-fopenmp//g" Makefile
40
	fi
37
	fi
Lines 44-48 Link Here
44
41
45
src_install() {
42
src_install() {
46
	exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
43
	exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
47
	doexe ${MY_PN}
44
	doexe ${PN}
48
}
45
}

Return to bug 468788