1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Photo processor for RAW and Bitmap images"
10 HOMEPAGE="http://www.photivo.org"
11 SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND="dev-qt/qtcore:4
28 media-gfx/graphicsmagick[q16,-lcms]
29 media-gfx/greycstoration[lapack]
32 gimp? ( media-gfx/gimp )"
35 S=${WORKDIR}/${PN}-${PV/0_pre/}
38 # remove ccache dependency
40 for File in $(find "${S}" -type f); do
41 if grep -sq ccache ${File}; then
42 sed -e 's/ccache//' -i "${File}"
46 # useless check (no pkgconfig file is provided)
47 sed -e "/PKGCONFIG += CImg/d" \
48 -i photivoProject/photivoProject.pro || die
53 local config="WithSystemCImg"
55 config+=" WithoutGimp"
58 eqmake4 "CONFIG+=${config}"
65 exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
67 doexe "mm extern photivo.py"