diff options
author | Ioannis Aslanidis <deathwing00@gentoo.org> | 2006-08-22 13:09:32 +0000 |
---|---|---|
committer | Ioannis Aslanidis <deathwing00@gentoo.org> | 2006-08-22 13:09:32 +0000 |
commit | 029658834ef950fdad8b890f4e39540fe3982e19 (patch) | |
tree | 741e6fe19c7d71fdb16bbe36cf3c3ad13affc6bf /media-gfx/digikam/digikam-0.9.0_beta1-r1.ebuild | |
parent | Stable on SPARC. (diff) | |
download | gentoo-2-029658834ef950fdad8b890f4e39540fe3982e19.tar.gz gentoo-2-029658834ef950fdad8b890f4e39540fe3982e19.tar.bz2 gentoo-2-029658834ef950fdad8b890f4e39540fe3982e19.zip |
Memory leak fix added. Resolves bug #144433. Thanks to Peter Gantner for reporting it.
(Portage version: 2.1-r2)
Diffstat (limited to 'media-gfx/digikam/digikam-0.9.0_beta1-r1.ebuild')
-rw-r--r-- | media-gfx/digikam/digikam-0.9.0_beta1-r1.ebuild | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/media-gfx/digikam/digikam-0.9.0_beta1-r1.ebuild b/media-gfx/digikam/digikam-0.9.0_beta1-r1.ebuild new file mode 100644 index 000000000000..4764cff97cdb --- /dev/null +++ b/media-gfx/digikam/digikam-0.9.0_beta1-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/digikam-0.9.0_beta1-r1.ebuild,v 1.1 2006/08/22 13:09:32 deathwing00 Exp $ + +inherit kde + +P_DOC="${PN}-doc-0.8.0" +MY_P="${P/_/-}" +S="${WORKDIR}/${MY_P}" +S_DOC="${WORKDIR}/${P_DOC}" + +DESCRIPTION="A digital photo management application for KDE." +HOMEPAGE="http://www.digikam.org/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="nfs doc kdehiddenvisibility exif" + +DEPEND=">=media-libs/libgphoto2-2 + >=dev-db/sqlite-3 + >=media-libs/libkipi-0.1.1 + media-libs/tiff + sys-libs/gdbm + media-gfx/dcraw + media-gfx/exiv2 + media-libs/lcms" +RDEPEND="${DEPEND} + || ( ( kde-base/kgamma kde-base/kamera ) kde-base/kdegraphics )" + +need-kde 3.4 + +LANGS="bg bn br ca cs cy da de el en_GB es et eu fi fr ga gl he hu is it ja km +lt mk ms mt nb nl nn pa pl pt pt_BR ro ru rw sl sr sr@Latn sv ta tr uk vi zh_CN" +LANGS_DOC="da es et it nl pt_BR pt sv" + +DOC_URI="mirror://sourceforge/digikam/${P_DOC}.tar.bz2" +SRC_URI="${DOC_URI}" + +for lang in ${LANGS}; do + IUSE="${IUSE} linguas_${lang}" + [[ " ${LANGS_DOC} " != *" ${lang} "* ]] && SRC_URI="!linguas_${lang}? ( ${SRC_URI} )" +done + +for lang in ${LANGS_DOC}; do + IUSE="${IUSE} linguas_${lang}" + SRC_URI="linguas_${lang}? ( + mirror://gentoo/${P_DOC}-${lang}.tar.bz2 + mirror://gentoo/${P_DOC}-gentoo.tar.bz2 + ) + !linguas_${lang}? ( ${SRC_URI} )" +done + +SRC_URI="mirror://sourceforge/digikam/${MY_P}.tar.bz2 + doc? ( linguas_en? ( mirror://gentoo/${P_DOC}-gentoo.tar.bz2 ) + !linguas_en? ( ${SRC_URI} ) )" + +pkg_setup(){ + slot_rebuild "media-libs/libkipi media-libs/libkexif" && die + kde_pkg_setup +} + +src_unpack(){ + kde_src_unpack + rm -f "${S}/configure" "${S_DOC}/configure" + + local MAKE_PO=$(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d | tr '\n' ' ') + einfo "Enabling translations for: en ${MAKE_PO}" + sed -i -e "s:^SUBDIRS =.*:SUBDIRS = . ${MAKE_PO}:" "${S}/po/Makefile.am" || die "sed for locale failed" + + if use doc; then + local MAKE_DOC=$(echo "${LINGUAS} ${LANGS_DOC}" | fmt -w 1 | sort | uniq -d | tr '\n' ' ') + einfo "Enabling documentation for: en ${LANG_DOCS}" + fi + epatch ${FILESDIR}/${P}-memory-leak-fix.patch +} + +src_compile(){ + local myconf + + myconf="$(use_enable nfs nfs-hack)" + kde_src_compile + myconf="" + [[ -d "${S_DOC}" ]] && KDE_S="${S_DOC}" kde_src_compile +} + +src_install(){ + kde_src_install + [[ -d "${S_DOC}" ]] && KDE_S="${S_DOC}" kde_src_install + + # Install the .desktop in FDO's suggested directory + dodir /usr/share/applications/kde + mv "${D}/usr/share/applnk/Graphics/digikam.desktop" \ + "${D}/usr/share/applications/kde" +} |