summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2010-09-25 14:52:35 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2010-09-25 14:52:35 +0000
commitd4fdef32af586ed058cb5ca6336403e3c34cc0c3 (patch)
treef57e46e55ee6caa427df9afb74212ac54c3a0d7b /media-gfx/digikam
parentUSE="static-libs" and punt .la files. (diff)
downloadgentoo-2-d4fdef32af586ed058cb5ca6336403e3c34cc0c3.tar.gz
gentoo-2-d4fdef32af586ed058cb5ca6336403e3c34cc0c3.tar.bz2
gentoo-2-d4fdef32af586ed058cb5ca6336403e3c34cc0c3.zip
Added installation of the handbook and the api documentation
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/digikam')
-rw-r--r--media-gfx/digikam/ChangeLog9
-rw-r--r--media-gfx/digikam/digikam-1.4.0-r1.ebuild121
-rw-r--r--media-gfx/digikam/files/digikam-1.4.0-docs.patch58
3 files changed, 187 insertions, 1 deletions
diff --git a/media-gfx/digikam/ChangeLog b/media-gfx/digikam/ChangeLog
index 9ab1f57638b6..b975c09bef44 100644
--- a/media-gfx/digikam/ChangeLog
+++ b/media-gfx/digikam/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/digikam
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/ChangeLog,v 1.157 2010/09/18 20:17:23 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/ChangeLog,v 1.158 2010/09/25 14:52:35 dilfridge Exp $
+
+*digikam-1.4.0-r1 (25 Sep 2010)
+
+ 25 Sep 2010; Andreas K. Huettel <dilfridge@gentoo.org>
+ +digikam-1.4.0-r1.ebuild, +files/digikam-1.4.0-docs.patch:
+ Added installation of the handbook (use-flag handbook, from a svn
+ snapshot) and the api documentation (use-flag doc)
18 Sep 2010; Andreas K. Huettel <dilfridge@gentoo.org>
digikam-1.4.0.ebuild:
diff --git a/media-gfx/digikam/digikam-1.4.0-r1.ebuild b/media-gfx/digikam/digikam-1.4.0-r1.ebuild
new file mode 100644
index 000000000000..cf6d4c7d8f12
--- /dev/null
+++ b/media-gfx/digikam/digikam-1.4.0-r1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/digikam-1.4.0-r1.ebuild,v 1.1 2010/09/25 14:52:35 dilfridge Exp $
+
+EAPI="2"
+
+KDE_LINGUAS="ar be bg ca cs da de el en_GB eo es et eu fa fi fr ga gl he hi hne hr hu is it ja km
+ko lt lv nb nds ne nl nn pa pl pt pt_BR ro ru se sk sl sv th tr uk vi zh_CN zh_TW"
+KMNAME="extragear/graphics"
+
+CMAKE_MIN_VERSION=2.8
+
+# needed for sufficiently new libkdcraw
+KDE_MINIMAL="4.5"
+inherit kde4-base
+
+MY_P="${PN}-${PV/_/-}"
+
+DESCRIPTION="A digital photo management application for KDE."
+HOMEPAGE="http://www.digikam.org/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
+ handbook? ( mirror://gentoo/${PN}-doc-${PV}.tar.bz2 )"
+
+LICENSE="GPL-2
+ handbook? ( FDL-1.2 )"
+KEYWORDS="~amd64 ~x86"
+SLOT="4"
+IUSE="addressbook debug doc geolocation gphoto2 handbook lensfun semantic-desktop themedesigner +thumbnails video"
+
+CDEPEND="
+ >=kde-base/kdelibs-${KDE_MINIMAL}[semantic-desktop?]
+ >=kde-base/libkdcraw-${KDE_MINIMAL}
+ >=kde-base/libkexiv2-${KDE_MINIMAL}
+ >=kde-base/libkipi-${KDE_MINIMAL}
+ >=kde-base/solid-${KDE_MINIMAL}
+ media-libs/jasper
+ >=media-libs/jpeg-8
+ media-libs/lcms:0
+ media-libs/liblqr
+ media-libs/libpng
+ media-libs/tiff
+ media-libs/libpgf
+ >=media-plugins/kipi-plugins-1.2.0-r1
+ >=sci-libs/clapack-3.2.1-r3
+ virtual/mysql
+ x11-libs/qt-gui[qt3support]
+ x11-libs/qt-sql[mysql,sqlite]
+ addressbook? ( >=kde-base/kdepimlibs-${KDE_MINIMAL} )
+ geolocation? ( >=kde-base/marble-${KDE_MINIMAL} )
+ gphoto2? ( media-libs/libgphoto2 )
+ lensfun? ( media-libs/lensfun )
+"
+RDEPEND="${CDEPEND}
+ >=kde-base/kreadconfig-${KDE_MINIMAL}
+ video? (
+ || (
+ >=kde-base/mplayerthumbs-${KDE_MINIMAL}
+ >=kde-base/ffmpegthumbs-${KDE_MINIMAL}
+ )
+ )
+"
+DEPEND="${CDEPEND}
+ sys-devel/gettext
+"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${P}"-docs.patch "${FILESDIR}/${PN}"-1.3.0-pgf.patch "${FILESDIR}/${P}"-clapack.patch)
+
+src_prepare() {
+ mkdir -p doc
+ [ -f doc/CMakeLists.txt ] || ( echo > doc/CMakeLists.txt )
+
+ kde4-base_src_prepare
+}
+
+src_configure() {
+ local backend
+
+ use semantic-desktop && backend="Nepomuk" || backend="None"
+ # LQR = only allows to choose between bundled/external
+ mycmakeargs=(
+ -DFORCED_UNBUNDLE=ON
+ -DWITH_LQR=ON
+ -DGWENVIEW_SEMANTICINFO_BACKEND=${backend}
+ $(cmake-utils_use_with addressbook KdepimLibs)
+ $(cmake-utils_use_build doc)
+ $(cmake-utils_use_with geolocation MarbleWidget)
+ $(cmake-utils_use_enable gphoto2 GPHOTO2)
+ $(cmake-utils_use_with gphoto2)
+ $(cmake-utils_use_with lensfun LensFun)
+ $(cmake-utils_use_with semantic-desktop Soprano)
+ $(cmake-utils_use_enable themedesigner)
+ $(cmake-utils_use_enable thumbnails THUMBS_DB)
+ )
+
+ kde4-base_src_configure
+}
+
+src_install() {
+ kde4-base_src_install
+
+ if use doc; then
+ # install the api documentation
+ dodir /usr/share/doc/${PF}/html || die
+ insinto /usr/share/doc/${PF}/html
+ doins -r ${CMAKE_BUILD_DIR}/api/html/* || die
+ fi
+
+ if use handbook; then
+ dodoc readme-handbook.txt || die
+ 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-1.4.0-docs.patch b/media-gfx/digikam/files/digikam-1.4.0-docs.patch
new file mode 100644
index 000000000000..2cc2791a8704
--- /dev/null
+++ b/media-gfx/digikam/files/digikam-1.4.0-docs.patch
@@ -0,0 +1,58 @@
+diff -r -u digikam-1.4.0.orig/CMakeLists.txt digikam-1.4.0/CMakeLists.txt
+--- digikam-1.4.0.orig/CMakeLists.txt 2010-08-22 10:59:50.000000000 +0200
++++ digikam-1.4.0/CMakeLists.txt 2010-09-24 23:48:11.557561663 +0200
+@@ -1340,18 +1340,45 @@
+ # ==================================================================================================
+ # API documentation generation
+
+-IF(DOXYGEN_FOUND)
++# Checks if user ask to build documentation.
++IF(BUILD_DOC)
++ IF(DOXYGEN_FOUND)
+
+- SET(API_DIR ${CMAKE_BINARY_DIR}/api)
+- SET(SOURCE_DIR ${CMAKE_SOURCE_DIR})
+- SET(DOXYFILE ${CMAKE_BINARY_DIR}/Doxyfile)
+- SET(WARNFILE ${CMAKE_BINARY_DIR}/doxygen-warn.log)
++ MESSAGE(STATUS "")
++ MESSAGE(STATUS "Documentation will be installed")
++ MESSAGE(STATUS "")
+
+- CONFIGURE_FILE(Doxyfile.cmake ${DOXYFILE})
++ SET(API_DIR ${CMAKE_BINARY_DIR}/api)
++ SET(SOURCE_DIR ${CMAKE_SOURCE_DIR})
++ SET(DOXYFILE ${CMAKE_BINARY_DIR}/Doxyfile)
++ SET(WARNFILE ${CMAKE_BINARY_DIR}/doxygen-warn.log)
+
+- ADD_CUSTOM_TARGET(doc ${DOXYGEN_EXECUTABLE} ${DOXYFILE}
+- WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
++ CONFIGURE_FILE(Doxyfile.cmake ${DOXYFILE})
++
++ ADD_CUSTOM_TARGET(doc ALL ${DOXYGEN_EXECUTABLE} ${DOXYFILE}
++ WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
++
++ ELSE(DOXYGEN_FOUND)
++
++ MESSAGE(STATUS "")
++ MESSAGE(STATUS "Documentation will NOT be installed")
++ MESSAGE(STATUS "Doxygen wasn't found on the system")
++ MESSAGE(STATUS "")
++
++ ENDIF(DOXYGEN_FOUND)
++
++ELSE(BUILD_DOC)
++
++ MESSAGE(STATUS "")
++ MESSAGE(STATUS "Documentation will NOT be installed")
++ MESSAGE(STATUS "Because the option -DBUILD_DOC=ON wasn't passed to cmake")
++ MESSAGE(STATUS "")
++
++ENDIF(BUILD_DOC)
+
+-ENDIF(DOXYGEN_FOUND)
+ include(MacroOptionalAddSubdirectory)
+ macro_optional_add_subdirectory( po )
++
++# Build the handbook
++add_subdirectory( doc )
++