summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-24 22:35:39 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-24 22:35:39 +0000
commit355443c30d4e306fad164aea869796beff49defc (patch)
tree6b589bb658baef2ed39c351208fdb93c4eae540f /app-text/calibre
parentstable x86, bug 229231 (diff)
downloadgentoo-2-355443c30d4e306fad164aea869796beff49defc.tar.gz
gentoo-2-355443c30d4e306fad164aea869796beff49defc.tar.bz2
gentoo-2-355443c30d4e306fad164aea869796beff49defc.zip
Update calibre to version 0.4.73.
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r4 x86_64)
Diffstat (limited to 'app-text/calibre')
-rw-r--r--app-text/calibre/ChangeLog7
-rw-r--r--app-text/calibre/calibre-0.4.73.ebuild88
2 files changed, 94 insertions, 1 deletions
diff --git a/app-text/calibre/ChangeLog b/app-text/calibre/ChangeLog
index 7e47cfff4a13..3a785fbf7e85 100644
--- a/app-text/calibre/ChangeLog
+++ b/app-text/calibre/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/calibre
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.4 2008/05/30 17:41:36 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.5 2008/06/24 22:35:39 flameeyes Exp $
+
+*calibre-0.4.73 (24 Jun 2008)
+
+ 24 Jun 2008; Diego Pettenò <flameeyes@gentoo.org> +calibre-0.4.73.ebuild:
+ Update calibre to version 0.4.73.
*calibre-0.4.64 (30 May 2008)
diff --git a/app-text/calibre/calibre-0.4.73.ebuild b/app-text/calibre/calibre-0.4.73.ebuild
new file mode 100644
index 000000000000..b5768bd49f71
--- /dev/null
+++ b/app-text/calibre/calibre-0.4.73.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.4.73.ebuild,v 1.1 2008/06/24 22:35:39 flameeyes Exp $
+
+NEED_PYTHON=2.5
+
+inherit distutils eutils fdo-mime
+
+MY_P="${P/_p/-p}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Ebook management application."
+HOMEPAGE="http://calibre.kovidgoyal.net"
+SRC_URI="http://calibre.kovidgoyal.net/downloads/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64"
+
+SLOT="0"
+
+IUSE=""
+
+RDEPEND=">=dev-python/imaging-1.1.6
+ >=dev-libs/libusb-0.1.12
+ >=dev-python/PyQt4-4.3.1
+ >=dev-python/fonttools-2.0_beta1
+ >=app-text/unrtf-0.20.1
+ >=dev-python/mechanize-0.1.7b
+ >=media-gfx/imagemagick-6.3.5
+ >=dev-python/dbus-python-0.82.2
+ >=app-text/convertlit-1.8
+ >=dev-python/lxml-1.3.3
+ dev-python/ttfquery
+ dev-python/genshi"
+
+DEPEND="${RDEPEND}
+ dev-python/setuptools
+ >=gnome-base/librsvg-2.0.0
+ >=x11-misc/xdg-utils-1.0.2-r2
+ sys-apps/help2man"
+
+src_compile() {
+ emake || die "pre-build failed"
+ distutils_src_compile
+}
+
+src_install() {
+ distutils_src_install
+
+ # Create directory before running the postinst script
+ # otherwise it will bail out.
+ dodir /usr/share/icons/hicolor
+ dodir /etc/xdg/menus
+ dodir /usr/share/applications
+ dodir /usr/share/desktop-directories
+ dodir /usr/share/applnk
+ dodir /usr/share/mime/packages
+
+ # Bypass the default kde-config output, and force it to
+ # tell xdg-mime to use a different path.
+ cat - > "${T}/kde-config" <<EOF
+#!/bin/bash
+
+case \$1:\$2 in
+ --version:) echo -e "Qt: 3.3.8\nKDE: 3.5.8\nkde-config: 1.0" ;;
+ --path:mime) echo "${D}/usr/share/mimelnk/" ;;
+esac
+EOF
+
+ chmod +x "${T}/kde-config"
+
+ PATH="${T}:${PATH}" KDEDIRS="${D}/usr" XDG_DATA_DIRS="${D}/usr/share" DESTDIR="${D}" PYTHONPATH="${S}/build/lib" \
+ python "${S}"/src/${PN}/linux.py \
+ --use-destdir --do-not-reload-udev-hal \
+ --group-file="${ROOT}"/etc/group --dont-check-root \
+ || die "post-installation failed."
+
+ rm -r "${D}"/usr/share/applications/{mimeinfo.cache,defaults.list} \
+ "${D}"/usr/share/mime/{subclasses,XMLnamespaces,globs{,2},mime.cache,magic,aliases,{generic-,}icons} \
+ "${D}"/usr/share/applnk
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ distutils_pkg_postinst
+}