forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-gfx/digikam: 5.5.0 version bump, dropped USE=video
video depends on not yet packaged QtAV Gentoo-bug: 605800 Package-Manager: Portage-2.3.3, Repoman-2.3.1
- Loading branch information
Showing
2 changed files
with
168 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST digikam-5.3.0.tar.xz 121417224 SHA256 b36cfa27278936d41ab5f33c99fe9ccdfd545eada3e1e32efe9f9e3fdf2c3e5c SHA512 6190944d09badec6ddac194f2029e86d0ef658e08a6a120f04c86109dc2b9d9cd2e772a900d09781b563fcd0caaff186fb5fd6cde9744ce3b4e8dcc9ff29d421 WHIRLPOOL c1c0987e23587356968484d936a0a99f10d6e6ce004ffe1f5eb4d0a42b59fc1e84ec4a03f491c91c93be172ab6b78444c684221fb515e1562cc76bcc61346158 | ||
DIST digikam-5.5.0.tar.xz 129499600 SHA256 df9cbf1b8dbfb9235cebc97e77c02fcb1498c5a905c7fd3b9fb42fd7accc6252 SHA512 3c64774916d4804d932009ba3753d387ecf31e9e3d435c580497d3badb6cc3e57ab5ef1a2334a23379d0987d96dd107be4f01adbb63039f4510aa94ac6d71344 WHIRLPOOL e67b444975ad37e939b2f62bba949bcafb41eee2975470daa02e4ffdd62c6c792b6656edf4811daead52fdc1bf064951fbec7b687192e5d5ee542d5d706140be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
if [[ ${KDE_BUILD_TYPE} != live ]]; then | ||
KDE_HANDBOOK="true" | ||
KDE_TEST="true" | ||
fi | ||
CMAKE_MAKEFILE_GENERATOR="emake" | ||
inherit kde5 toolchain-funcs | ||
|
||
DESCRIPTION="Digital photo management application" | ||
HOMEPAGE="https://www.digikam.org/" | ||
|
||
LICENSE="GPL-2" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="addressbook calendar gphoto2 jpeg2k +kipi +lensfun marble semantic-desktop mysql opengl openmp +panorama scanner X" | ||
|
||
if [[ ${KDE_BUILD_TYPE} != live ]]; then | ||
MY_PV=${PV/_/-} | ||
MY_P=${PN}-${MY_PV} | ||
SRC_BRANCH=stable | ||
[[ ${PV} =~ beta[0-9]$ ]] && SRC_BRANCH=unstable | ||
SRC_URI="mirror://kde/${SRC_BRANCH}/digikam/${MY_P}.tar.xz" | ||
S="${WORKDIR}/${MY_P}/core" | ||
fi | ||
|
||
# TODO: Package QtAV http://www.qtav.org/ | ||
# video? ( media-video/qtav ) | ||
COMMON_DEPEND=" | ||
$(add_frameworks_dep kconfig) | ||
$(add_frameworks_dep kconfigwidgets) | ||
$(add_frameworks_dep kcoreaddons) | ||
$(add_frameworks_dep kiconthemes) | ||
$(add_frameworks_dep ki18n) | ||
$(add_frameworks_dep kio) | ||
$(add_frameworks_dep knotifications) | ||
$(add_frameworks_dep knotifyconfig) | ||
$(add_frameworks_dep kservice) | ||
$(add_frameworks_dep kwidgetsaddons) | ||
$(add_frameworks_dep kwindowsystem) | ||
$(add_frameworks_dep kxmlgui) | ||
$(add_frameworks_dep solid) | ||
$(add_qt_dep qtdbus) | ||
$(add_qt_dep qtgui '-gles2') | ||
$(add_qt_dep qtprintsupport) | ||
$(add_qt_dep qtsql 'mysql?') | ||
$(add_qt_dep qtwebkit) | ||
$(add_qt_dep qtwidgets) | ||
$(add_qt_dep qtxml) | ||
dev-libs/expat | ||
media-gfx/exiv2:= | ||
media-libs/lcms:2 | ||
media-libs/liblqr | ||
>=media-libs/libpgf-6.12.27 | ||
media-libs/libpng:0= | ||
media-libs/opencv:=[-qt4(-)] | ||
|| ( <media-libs/opencv-3.0.0 >=media-libs/opencv-3.1.0 ) | ||
media-libs/tiff:0 | ||
virtual/jpeg:0 | ||
addressbook? ( | ||
$(add_kdeapps_dep akonadi-contacts) | ||
$(add_kdeapps_dep kcontacts) | ||
) | ||
calendar? ( $(add_kdeapps_dep kcalcore) ) | ||
gphoto2? ( media-libs/libgphoto2:= ) | ||
jpeg2k? ( media-libs/jasper:= ) | ||
kipi? ( $(add_kdeapps_dep libkipi '' '16.03.80') ) | ||
lensfun? ( media-libs/lensfun ) | ||
marble? ( | ||
$(add_frameworks_dep kbookmarks) | ||
$(add_kdeapps_dep marble) | ||
$(add_qt_dep qtconcurrent) | ||
$(add_qt_dep qtnetwork) | ||
) | ||
mysql? ( virtual/mysql ) | ||
opengl? ( | ||
$(add_qt_dep qtopengl) | ||
virtual/opengl | ||
) | ||
panorama? ( $(add_frameworks_dep threadweaver) ) | ||
scanner? ( $(add_kdeapps_dep libksane) ) | ||
semantic-desktop? ( $(add_frameworks_dep kfilemetadata) ) | ||
X? ( | ||
$(add_qt_dep qtx11extras) | ||
x11-libs/libX11 | ||
) | ||
" | ||
DEPEND="${COMMON_DEPEND} | ||
$(add_qt_dep qtconcurrent) | ||
dev-cpp/eigen:3 | ||
dev-libs/boost[threads] | ||
sys-devel/gettext | ||
panorama? ( | ||
sys-devel/bison | ||
sys-devel/flex | ||
) | ||
" | ||
RDEPEND="${COMMON_DEPEND} | ||
media-plugins/kipi-plugins:5 | ||
panorama? ( media-gfx/hugin ) | ||
!media-gfx/digikam:4 | ||
" | ||
|
||
RESTRICT=test | ||
# bug 366505 | ||
|
||
pkg_pretend() { | ||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp | ||
kde5_pkg_pretend | ||
} | ||
|
||
pkg_setup() { | ||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp | ||
kde5_pkg_setup | ||
} | ||
|
||
# FIXME: Unbundle libraw (libs/rawengine/libraw) | ||
src_prepare() { | ||
if [[ ${KDE_BUILD_TYPE} != live ]]; then | ||
# prepare the translations | ||
mv "${WORKDIR}/${MY_P}/po" po || die | ||
find po -name "*.po" -and -not -name "digikam.po" -delete || die | ||
echo "set_property(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS 1)" >> CMakeLists.txt || die | ||
echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt || die | ||
echo "add_subdirectory( po )" >> CMakeLists.txt || die | ||
|
||
if use handbook; then | ||
# subdirs need to be preserved b/c relative paths... | ||
# doc-translated is, in fact, broken, and ignored | ||
mv "${WORKDIR}/${MY_P}/doc/${PN}" doc-default || die | ||
echo "find_package(KF5DocTools REQUIRED)" >> CMakeLists.txt || die | ||
echo "add_subdirectory( doc-default )" >> CMakeLists.txt || die | ||
fi | ||
fi | ||
|
||
if ! use marble; then | ||
punt_bogus_dep Qt5 Network | ||
fi | ||
|
||
kde5_src_prepare | ||
} | ||
|
||
src_configure() { | ||
local mycmakeargs=( | ||
-DENABLE_APPSTYLES=ON | ||
-DENABLE_AKONADICONTACTSUPPORT=$(usex addressbook) | ||
-DENABLE_MYSQLSUPPORT=$(usex mysql) | ||
-DENABLE_MEDIAPLAYER=OFF | ||
-DENABLE_OPENCV3=$(has_version ">=media-libs/opencv-3" && echo yes || echo no) | ||
$(cmake-utils_use_find_package calendar KF5CalendarCore) | ||
$(cmake-utils_use_find_package gphoto2 Gphoto2) | ||
$(cmake-utils_use_find_package jpeg2k Jasper) | ||
$(cmake-utils_use_find_package kipi KF5Kipi) | ||
$(cmake-utils_use_find_package lensfun LensFun) | ||
$(cmake-utils_use_find_package marble Marble) | ||
$(cmake-utils_use_find_package opengl OpenGL) | ||
$(cmake-utils_use_find_package openmp OpenMP) | ||
$(cmake-utils_use_find_package panorama KF5ThreadWeaver) | ||
$(cmake-utils_use_find_package scanner KF5Sane) | ||
$(cmake-utils_use_find_package semantic-desktop KF5FileMetaData) | ||
$(cmake-utils_use_find_package X X11) | ||
) | ||
|
||
kde5_src_configure | ||
} |