krita-4.1.3.ebuild (2871B)
1 # Copyright 1999-2018 Gentoo Foundation 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI=6 5 6 KDE_TEST="forceoptional" 7 VIRTUALX_REQUIRED="test" 8 PYTHON_COMPAT=( python3_{4,5,6} ) 9 inherit kde5 python-single-r1 10 11 DESCRIPTION="Free digital painting application. Digital Painting, Creative Freedom!" 12 HOMEPAGE="https://www.kde.org/applications/graphics/krita/ https://krita.org/" 13 SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.gz" 14 15 LICENSE="GPL-3" 16 KEYWORDS="~amd64 ~x86" 17 IUSE="color-management +exiv2 fftw gif +gsl +jpeg openexr pdf python qtmedia +raw tiff vc threads curl zlib" 18 19 COMMON_DEPEND=" 20 $(add_frameworks_dep karchive) 21 $(add_frameworks_dep kcompletion) 22 $(add_frameworks_dep kconfig) 23 $(add_frameworks_dep kcoreaddons) 24 $(add_frameworks_dep kguiaddons) 25 $(add_frameworks_dep ki18n) 26 $(add_frameworks_dep kitemmodels) 27 $(add_frameworks_dep kitemviews) 28 $(add_frameworks_dep kwidgetsaddons) 29 $(add_frameworks_dep kwindowsystem) 30 $(add_qt_dep qtconcurrent) 31 $(add_qt_dep qtgui '-gles2') 32 $(add_qt_dep qtnetwork) 33 $(add_qt_dep qtprintsupport) 34 $(add_qt_dep qtsvg) 35 $(add_qt_dep qttest) 36 $(add_qt_dep qtwidgets) 37 $(add_qt_dep qtx11extras) 38 $(add_qt_dep qtxml) 39 color-management? ( media-libs/opencolorio ) 40 curl? ( net-misc/curl ) 41 exiv2? ( media-gfx/exiv2:= ) 42 dev-libs/boost:= 43 fftw? ( sci-libs/fftw:3.0= ) 44 gif? ( media-libs/giflib ) 45 gsl? ( sci-libs/gsl:= ) 46 jpeg? ( virtual/jpeg:0 ) 47 media-libs/lcms 48 media-libs/libpng:0= 49 openexr? ( 50 media-libs/ilmbase:= 51 media-libs/openexr 52 ) 53 pdf? ( app-text/poppler[qt5] ) 54 python? ( 55 ${PYTHON_DEPS} 56 dev-python/PyQt5[${PYTHON_USEDEP}] 57 dev-python/sip[${PYTHON_USEDEP}] 58 ) 59 qtmedia? ( $(add_qt_dep qtmultimedia) ) 60 raw? ( <media-libs/libraw-0.19:= ) 61 threads? ( dev-libs/libpthread-stubs ) 62 tiff? ( media-libs/tiff:0 ) 63 virtual/opengl 64 x11-apps/xinput 65 zlib? ( sys-libs/zlib ) 66 " 67 DEPEND="${COMMON_DEPEND} 68 dev-cpp/eigen:3 69 dev-lang/perl 70 sys-devel/gettext 71 vc? ( >=dev-libs/vc-1.1.0 ) 72 " 73 RDEPEND="${COMMON_DEPEND} 74 !app-office/calligra:4[calligra_features_krita] 75 !app-office/calligra-l10n:4[calligra_features_krita(+)] 76 " 77 78 # https://bugs.gentoo.org/630508 79 RESTRICT+=" test" 80 81 pkg_setup() { 82 use python && python-single-r1_pkg_setup 83 } 84 85 src_configure() { 86 local mycmakeargs=( 87 $(cmake-utils_use_find_package color-management OCIO) 88 $(cmake-utils_use_find_package fftw FFTW3) 89 $(cmake-utils_use_find_package gif GIF) 90 $(cmake-utils_use_find_package gsl GSL) 91 $(cmake-utils_use_find_package jpeg JPEG) 92 $(cmake-utils_use_find_package openexr OpenEXR) 93 $(cmake-utils_use_find_package pdf Poppler) 94 $(cmake-utils_use_find_package python PyQt5) 95 $(cmake-utils_use_find_package python SIP) 96 $(cmake-utils_use_find_package qtmedia Qt5Multimedia) 97 $(cmake-utils_use_find_package raw LibRaw) 98 $(cmake-utils_use_find_package tiff TIFF) 99 $(cmake-utils_use_find_package vc Vc) 100 ) 101 102 kde5_src_configure 103 }