diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-07-27 20:51:56 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-07-27 20:51:56 +0000 |
commit | dd153e229766989b13dbb14f88e4d13553583d0d (patch) | |
tree | 9042d60002fe0288441d7d9f6410491d91846040 /media-gfx/digikam | |
parent | Update branding version. (diff) | |
download | gentoo-2-dd153e229766989b13dbb14f88e4d13553583d0d.tar.gz gentoo-2-dd153e229766989b13dbb14f88e4d13553583d0d.tar.bz2 gentoo-2-dd153e229766989b13dbb14f88e4d13553583d0d.zip |
Version bump
(Portage version: 2.1.10.7/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/digikam')
-rw-r--r-- | media-gfx/digikam/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/digikam/digikam-2.0.0_rc.ebuild | 139 | ||||
-rw-r--r-- | media-gfx/digikam/files/digikam-2.0.0_rc-officialpgf.patch | 56 | ||||
-rw-r--r-- | media-gfx/digikam/files/digikam-2.0.0_rc-officialpgf2.patch | 23 | ||||
-rw-r--r-- | media-gfx/digikam/files/digikam-2.0.0_rc-oldpgf.patch | 26 | ||||
-rw-r--r-- | media-gfx/digikam/metadata.xml | 1 |
6 files changed, 253 insertions, 2 deletions
diff --git a/media-gfx/digikam/ChangeLog b/media-gfx/digikam/ChangeLog index f88791b01cd8..064c37517b18 100644 --- a/media-gfx/digikam/ChangeLog +++ b/media-gfx/digikam/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-gfx/digikam # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/ChangeLog,v 1.188 2011/07/05 11:39:35 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/ChangeLog,v 1.189 2011/07/27 20:51:56 dilfridge Exp $ + +*digikam-2.0.0_rc (27 Jul 2011) + + 27 Jul 2011; Andreas K. Huettel <dilfridge@gentoo.org> + +digikam-2.0.0_rc.ebuild, +files/digikam-2.0.0_rc-officialpgf.patch, + +files/digikam-2.0.0_rc-officialpgf2.patch, + +files/digikam-2.0.0_rc-oldpgf.patch, metadata.xml: + Version bump 05 Jul 2011; Andreas K. Huettel <dilfridge@gentoo.org> digikam-1.9.0-r1.ebuild, +files/digikam-1.9.0-newpgf.patch: diff --git a/media-gfx/digikam/digikam-2.0.0_rc.ebuild b/media-gfx/digikam/digikam-2.0.0_rc.ebuild new file mode 100644 index 000000000000..706304cb7e5b --- /dev/null +++ b/media-gfx/digikam/digikam-2.0.0_rc.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/digikam-2.0.0_rc.ebuild,v 1.1 2011/07/27 20:51:56 dilfridge Exp $ + +EAPI=4 + +KDE_LINGUAS="" +#KDE_LINGUAS="be ca ca@valencia de el en_GB eo es et eu fi fr he hi hne hu is it km +# ko lt lv nds nn pa pl pt pt_BR ro se sl sv th tr vi zh_CN zh_TW" +#the release candidate has no internationalization + +KDE_HANDBOOK="optional" +CMAKE_MIN_VERSION="2.8" +KDE_MINIMAL="4.7" + +inherit kde4-base + +MY_P="${PN}-${PV/_/-}" + +DESCRIPTION="Digital photo management application for KDE" +HOMEPAGE="http://www.digikam.org/" +[[ ${PV} != *9999* ]] && SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" + +LICENSE="GPL-2 + handbook? ( FDL-1.2 )" +KEYWORDS="~amd64 ~x86" +SLOT="4" +IUSE="addressbook debug doc gphoto2 mysql semantic-desktop themedesigner +thumbnails video" + +CDEPEND=" + $(add_kdebase_dep kdelibs semantic-desktop) + $(add_kdebase_dep libkdcraw) + $(add_kdebase_dep libkexiv2) + $(add_kdebase_dep libkipi) + $(add_kdebase_dep marble plasma) + $(add_kdebase_dep solid) + media-libs/jasper + media-libs/lcms:0 + >=media-libs/lensfun-0.2.5 + >=media-libs/libkface-${PV} + >=media-libs/libkmap-${PV} + media-libs/liblqr + >=media-libs/libpgf-6.11.24 + media-libs/libpng + media-libs/tiff + media-plugins/kipi-plugins + virtual/jpeg + x11-libs/qt-gui[qt3support] + || ( >=sci-libs/clapack-3.2.1-r6 sci-libs/lapack-atlas ) + || ( x11-libs/qt-sql[mysql] x11-libs/qt-sql[sqlite] ) + addressbook? ( $(add_kdebase_dep kdepimlibs) ) + gphoto2? ( media-libs/libgphoto2 ) + mysql? ( virtual/mysql ) +" +RDEPEND="${CDEPEND} + $(add_kdebase_dep kreadconfig) + video? ( + || ( + $(add_kdebase_dep mplayerthumbs) + $(add_kdebase_dep ffmpegthumbs) + ) + ) +" +DEPEND="${CDEPEND} + sys-devel/gettext + doc? ( app-doc/doxygen ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2.0.0_rc-oldpgf.patch" + "${FILESDIR}/${PN}-2.0.0_rc-officialpgf.patch" + "${FILESDIR}/${PN}-2.0.0_rc-officialpgf2.patch" +) + +S="${WORKDIR}/${MY_P}/core" + +src_prepare() { + # just to make absolutely sure + rm -rf "${WORKDIR}/${MY_P}/extra" || die + + mv "${WORKDIR}/${MY_P}/doc/${PN}" doc || die + echo "add_subdirectory( digikam )" > doc/CMakeLists.txt + echo "add_subdirectory( showfoto )" >> doc/CMakeLists.txt + + kde4-base_src_prepare + + if use handbook; then + echo "add_subdirectory( doc )" >> CMakeLists.txt + fi +} + +src_configure() { + local backend + + use semantic-desktop && backend="Nepomuk" || backend="None" + # LQR = only allows to choose between bundled/external + local mycmakeargs=( + -DFORCED_UNBUNDLE=ON + -DWITH_LQR=ON + -DWITH_LENSFUN=ON + -DGWENVIEW_SEMANTICINFO_BACKEND=${backend} + $(cmake-utils_use_with addressbook KdepimLibs) + -DWITH_MarbleWidget=ON + $(cmake-utils_use_enable gphoto2 GPHOTO2) + $(cmake-utils_use_with gphoto2) + $(cmake-utils_use_with semantic-desktop Soprano) + $(cmake-utils_use_enable themedesigner) + $(cmake-utils_use_enable thumbnails THUMBS_DB) + $(cmake-utils_use_enable mysql INTERNALMYSQL) + $(cmake-utils_use_enable debug DEBUG_MESSAGES) + ) + + kde4-base_src_configure +} + +src_compile() { + local mytargets="all" + use doc && mytargets+=" doc" + + kde4-base_src_compile ${mytargets} +} + +src_install() { + kde4-base_src_install + + if use doc; then + # install the api documentation + insinto /usr/share/doc/${PF}/html + doins -r ${CMAKE_BUILD_DIR}/api/html/* + fi +} + +pkg_postinst() { + kde4-base_pkg_postinst + + if use doc; then + elog "The digikam api documentation has been installed at /usr/share/doc/${PF}/html" + fi +} diff --git a/media-gfx/digikam/files/digikam-2.0.0_rc-officialpgf.patch b/media-gfx/digikam/files/digikam-2.0.0_rc-officialpgf.patch new file mode 100644 index 000000000000..78f777053347 --- /dev/null +++ b/media-gfx/digikam/files/digikam-2.0.0_rc-officialpgf.patch @@ -0,0 +1,56 @@ +diff -ruN digikam-2.0.0-rc.orig/core/cmake/modules/FindPGF.cmake digikam-2.0.0-rc/core/cmake/modules/FindPGF.cmake +--- digikam-2.0.0-rc.orig/core/cmake/modules/FindPGF.cmake 2011-06-28 16:38:50.000000000 +0200 ++++ digikam-2.0.0-rc/core/cmake/modules/FindPGF.cmake 2011-07-04 15:32:50.000000000 +0200 +@@ -1,9 +1,10 @@ + # - Try to find libpgf + # Once done this will define + # +-# PGF_FOUND - system has libgf +-# PGF_INCLUDE_DIRS - the libpgf include directory +-# PGF_LIBRARIES - Link these to use libpgf ++# PGF_FOUND - system has libgf ++# PGF_INCLUDE_DIRS - the libpgf include directory ++# PGF_LIBRARIES - Link these to use libpgf ++# PGF_CODEC_VERSION_ID - PGF codec version ID. + + # PKG-CONFIG is required. + INCLUDE(FindPkgConfig REQUIRED) +@@ -12,4 +13,15 @@ + INCLUDE(FindPkgConfig) + + PKG_CHECK_MODULES(PGF libpgf) ++ ++ MESSAGE(STATUS "PGF_INCLUDE_DIRS = ${PGF_INCLUDE_DIRS}") ++ MESSAGE(STATUS "PGF_INCLUDEDIR = ${PGF_INCLUDEDIR}") ++ MESSAGE(STATUS "PGF_LIBRARIES = ${PGF_LIBRARIES}") ++ MESSAGE(STATUS "PGF_LDFLAGS = ${PGF_LDFLAGS}") ++ MESSAGE(STATUS "PGF_CFLAGS = ${PGF_CFLAGS}") ++ MESSAGE(STATUS "PGF_VERSION = ${PGF_VERSION}") ++ ++ STRING(REPLACE "." "" PGF_CODEC_VERSION_ID "${PGF_VERSION}") ++ MESSAGE(STATUS "PGF_CODEC_VERSION_ID = ${PGF_CODEC_VERSION_ID}") ++ + ENDIF(PKG_CONFIG_FOUND) +diff -ruN digikam-2.0.0-rc.orig/core/digikam/utils/config-digikam.h.cmake digikam-2.0.0-rc/core/digikam/utils/config-digikam.h.cmake +--- digikam-2.0.0-rc.orig/core/digikam/utils/config-digikam.h.cmake 2011-06-28 16:38:50.000000000 +0200 ++++ digikam-2.0.0-rc/core/digikam/utils/config-digikam.h.cmake 2011-07-04 15:29:24.000000000 +0200 +@@ -57,6 +57,8 @@ + /* Define to 1 if we know how to start mysqld */ + #cmakedefine HAVE_INTERNALMYSQL 1 + ++#define PGFCodecVersionID 0x${PGF_CODEC_VERSION_ID} ++ + #define LIBEXEC_INSTALL_DIR "${LIBEXEC_INSTALL_DIR}" + + /* +diff -ruN digikam-2.0.0-rc.orig/core/libs/threadimageio/pgfutils.cpp digikam-2.0.0-rc/core/libs/threadimageio/pgfutils.cpp +--- digikam-2.0.0-rc.orig/core/libs/threadimageio/pgfutils.cpp 2011-06-28 16:38:44.000000000 +0200 ++++ digikam-2.0.0-rc/core/libs/threadimageio/pgfutils.cpp 2011-07-04 15:29:24.000000000 +0200 +@@ -46,6 +46,7 @@ + // LibPGF includes + + #include "PGFimage.h" ++#include "config-digikam.h" + + namespace Digikam + { diff --git a/media-gfx/digikam/files/digikam-2.0.0_rc-officialpgf2.patch b/media-gfx/digikam/files/digikam-2.0.0_rc-officialpgf2.patch new file mode 100644 index 000000000000..184360d9972c --- /dev/null +++ b/media-gfx/digikam/files/digikam-2.0.0_rc-officialpgf2.patch @@ -0,0 +1,23 @@ +diff -ruN digikam-2.0.0-rc.orig/core/libs/dimg/loaders/pgfloader.cpp digikam-2.0.0-rc/core/libs/dimg/loaders/pgfloader.cpp +--- digikam-2.0.0-rc.orig/core/libs/dimg/loaders/pgfloader.cpp 2011-06-28 16:38:45.000000000 +0200 ++++ digikam-2.0.0-rc/core/libs/dimg/loaders/pgfloader.cpp 2011-07-05 13:50:20.036746353 +0200 +@@ -29,6 +29,7 @@ + //#define ENABLE_DEBUG_MESSAGES + + #include "pgfloader.h" ++#include "config-digikam.h" + + // C Ansi includes + +@@ -435,10 +436,8 @@ + CallbackForLibPGF, this); + + UINT32 nWrittenBytes = 0; +-#ifdef PGFCodecVersionID +-# if PGFCodecVersionID >= 0x061124 ++#if PGFCodecVersionID >= 0x061124 + pgf.Write(&stream, &nWrittenBytes, CallbackForLibPGF, this); +-# endif + #else + pgf.Write(&stream, 0, CallbackForLibPGF, &nWrittenBytes, this); + #endif diff --git a/media-gfx/digikam/files/digikam-2.0.0_rc-oldpgf.patch b/media-gfx/digikam/files/digikam-2.0.0_rc-oldpgf.patch new file mode 100644 index 000000000000..c60a7e30b06a --- /dev/null +++ b/media-gfx/digikam/files/digikam-2.0.0_rc-oldpgf.patch @@ -0,0 +1,26 @@ +commit 1f80f35b68702136ebd3d315fe4baf7d75b3c142 +Author: Gilles Caulier <caulier.gilles@gmail.com> +Date: Sun Jul 3 10:57:21 2011 +0200 + + compile with libpgf 6.09.44 + BUGS: 276969 + +diff --git a/libs/threadimageio/pgfutils.cpp b/libs/threadimageio/pgfutils.cpp +index 2b5829f..758f12c 100644 +--- a/libs/threadimageio/pgfutils.cpp ++++ b/libs/threadimageio/pgfutils.cpp +@@ -151,7 +151,14 @@ bool writePGFImageData(const QImage& img, QByteArray& data, int quality) + // TODO : optimize memory allocation... + CPGFMemoryStream stream(256000); + UINT32 nWrittenBytes = 0; ++ ++#ifdef PGFCodecVersionID ++# if PGFCodecVersionID >= 0x061124 + pgfImg.Write(&stream, &nWrittenBytes); ++# endif ++#else ++ pgfImg.Write(&stream, 0, 0, &nWrittenBytes); ++#endif + + data = QByteArray((const char*)stream.GetBuffer(), nWrittenBytes); + diff --git a/media-gfx/digikam/metadata.xml b/media-gfx/digikam/metadata.xml index cf0f6e08d64c..65589fb262bf 100644 --- a/media-gfx/digikam/metadata.xml +++ b/media-gfx/digikam/metadata.xml @@ -6,7 +6,6 @@ <use> <flag name="addressbook">Add support for kdepim</flag> <flag name="geolocation">Add support for marble</flag> - <flag name="lensfun">Enable support for lens-correnction library</flag> <flag name="themedesigner">Build the digikam theme designer</flag> <flag name="thumbnails">Enable thumbnails database support</flag> <flag name="video">Pull in mplayerthumbs to enable video thumbnails</flag> |