logo

overlay

My (experimental) gentoo overlay

krita-9999.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 git-r3
     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=""
     14 EGIT_REPO_URI="git://anongit.kde.org/krita.git"
     15 
     16 LICENSE="GPL-3"
     17 KEYWORDS=""
     18 IUSE="color-management exiv2 fftw gif +gsl +jpeg openexr pdf python qtmedia +raw tiff vc threads curl zlib"
     19 
     20 COMMON_DEPEND="
     21 	$(add_frameworks_dep karchive)
     22 	$(add_frameworks_dep kcompletion)
     23 	$(add_frameworks_dep kconfig)
     24 	$(add_frameworks_dep kcoreaddons)
     25 	$(add_frameworks_dep kguiaddons)
     26 	$(add_frameworks_dep ki18n)
     27 	$(add_frameworks_dep kitemmodels)
     28 	$(add_frameworks_dep kitemviews)
     29 	$(add_frameworks_dep kwidgetsaddons)
     30 	$(add_frameworks_dep kwindowsystem)
     31 	$(add_qt_dep qtconcurrent)
     32 	$(add_qt_dep qtgui '-gles2')
     33 	$(add_qt_dep qtnetwork)
     34 	$(add_qt_dep qtprintsupport)
     35 	$(add_qt_dep qtsvg)
     36 	$(add_qt_dep qttest)
     37 	$(add_qt_dep qtwidgets)
     38 	$(add_qt_dep qtx11extras)
     39 	$(add_qt_dep qtxml)
     40 	color-management? ( media-libs/opencolorio )
     41 	curl? ( net-misc/curl )
     42 	exiv2? ( media-gfx/exiv2:= )
     43 	dev-libs/boost:=
     44 	fftw? ( sci-libs/fftw:3.0= )
     45 	gif? ( media-libs/giflib )
     46 	gsl? ( sci-libs/gsl:= )
     47 	jpeg? ( virtual/jpeg:0 )
     48 	media-libs/lcms
     49 	media-libs/libpng:0=
     50 	openexr? (
     51 		media-libs/ilmbase:=
     52 		media-libs/openexr
     53 	)
     54 	pdf? ( app-text/poppler[qt5] )
     55 	python? (
     56 		${PYTHON_DEPS}
     57 		dev-python/PyQt5[${PYTHON_USEDEP}]
     58 		dev-python/sip[${PYTHON_USEDEP}]
     59 	)
     60 	qtmedia? ( $(add_qt_dep qtmultimedia) )
     61 	raw? ( <media-libs/libraw-0.19:= )
     62 	threads? ( dev-libs/libpthread-stubs )
     63 	tiff? ( media-libs/tiff:0 )
     64 	virtual/opengl
     65 	x11-apps/xinput
     66 	zlib? ( sys-libs/zlib )
     67 "
     68 DEPEND="${COMMON_DEPEND}
     69 	dev-cpp/eigen:3
     70 	dev-lang/perl
     71 	sys-devel/gettext
     72 	vc? ( >=dev-libs/vc-1.1.0 )
     73 "
     74 RDEPEND="${COMMON_DEPEND}
     75 	!app-office/calligra:4[calligra_features_krita]
     76 	!app-office/calligra-l10n:4[calligra_features_krita(+)]
     77 "
     78 
     79 # https://bugs.gentoo.org/630508
     80 RESTRICT+=" test"
     81 
     82 pkg_setup() {
     83 	use python && python-single-r1_pkg_setup
     84 }
     85 
     86 src_configure() {
     87 	local mycmakeargs=(
     88 		$(cmake-utils_use_find_package color-management OCIO)
     89 		$(cmake-utils_use_find_package fftw FFTW3)
     90 		$(cmake-utils_use_find_package gif GIF)
     91 		$(cmake-utils_use_find_package gsl GSL)
     92 		$(cmake-utils_use_find_package jpeg JPEG)
     93 		$(cmake-utils_use_find_package openexr OpenEXR)
     94 		$(cmake-utils_use_find_package pdf Poppler)
     95 		$(cmake-utils_use_find_package python PyQt5)
     96 		$(cmake-utils_use_find_package python SIP)
     97 		$(cmake-utils_use_find_package qtmedia Qt5Multimedia)
     98 		$(cmake-utils_use_find_package raw LibRaw)
     99 		$(cmake-utils_use_find_package tiff TIFF)
    100 		$(cmake-utils_use_find_package vc Vc)
    101 	)
    102 
    103 	kde5_src_configure
    104 }