diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-05-12 11:17:11 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-05-12 11:17:11 +0000 |
commit | c61d524851e2bade2568924610f1f7130a0136e3 (patch) | |
tree | de065396e27bedd7d9d41bc65fd99740b63c0fc1 /app-text | |
parent | Stable on ppc wrt bug 221731 (diff) | |
download | historical-c61d524851e2bade2568924610f1f7130a0136e3.tar.gz historical-c61d524851e2bade2568924610f1f7130a0136e3.tar.bz2 historical-c61d524851e2bade2568924610f1f7130a0136e3.zip |
Initial import of calibre (formerly libprs500), software to handle PRS-500 and PRS-505 e-Book readers by Sony. Thanks to drac who committed the xdg-utils patch it can finally enter the tree.
Package-Manager: portage-2.1.5_rc10
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/calibre/ChangeLog | 12 | ||||
-rw-r--r-- | app-text/calibre/Manifest | 14 | ||||
-rw-r--r-- | app-text/calibre/calibre-0.4.53.ebuild | 86 | ||||
-rw-r--r-- | app-text/calibre/metadata.xml | 8 |
4 files changed, 120 insertions, 0 deletions
diff --git a/app-text/calibre/ChangeLog b/app-text/calibre/ChangeLog new file mode 100644 index 000000000000..29bd89440972 --- /dev/null +++ b/app-text/calibre/ChangeLog @@ -0,0 +1,12 @@ +# 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.1 2008/05/12 11:17:11 flameeyes Exp $ + +*calibre-0.4.53 (12 May 2008) + + 12 May 2008; Diego Pettenò <flameeyes@gentoo.org> +metadata.xml, + +calibre-0.4.53.ebuild: + Initial import of calibre (formerly libprs500), software to handle PRS-500 + and PRS-505 e-Book readers by Sony. Thanks to drac who committed the + xdg-utils patch it can finally enter the tree. + diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest new file mode 100644 index 000000000000..be13678b52cc --- /dev/null +++ b/app-text/calibre/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST calibre-0.4.53.tar.bz2 3825138 RMD160 de99049d79bae36a023ee7f73bd9b6f48801e85e SHA1 1d0ae70bc38c4eee3c5afdd0f2585b9621fb0167 SHA256 11de8615c0c65f80b3a5c426578a003cdc5cdafec5555ac139098efe6eb46dc4 +EBUILD calibre-0.4.53.ebuild 2241 RMD160 497605a32690bf0cbd63c8ae54725744b2e5916e SHA1 ec429d70e5f4c9cb9544574c863e7902cb5ce5e0 SHA256 d683ca7837d1ee4d49c5d3f6b25115e92faa0e7952f2b6ada5b4f91eecbc5ef6 +MISC ChangeLog 531 RMD160 c3f9e7dcd54d7daf8c5da2b1e7ff80545746a81c SHA1 79e3fc4c8b102d82cb1e13d8a4d8e2f1c2d8f13e SHA256 e07384fc063b017c5d19b4c0027b3318fb202613e1299747bc4364916c7744b2 +MISC metadata.xml 233 RMD160 da5a1d3b7836dcebb5fec29696b5bfb583fe346c SHA1 1c7142c677598358888a6cfc6f6f65df2e8b6901 SHA256 4d1294dc1b2a6f96aa637a0b8d340bc67191103af0f15197d07fc62446b4a709 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkgoJz0ACgkQAiZjviIA2XiF2ACgqxXwg/TEEelge7zTN8YAupAa +EZ8AoOuSW/PTzVXFWX1K6pNK86U2vUOL +=RhCa +-----END PGP SIGNATURE----- diff --git a/app-text/calibre/calibre-0.4.53.ebuild b/app-text/calibre/calibre-0.4.53.ebuild new file mode 100644 index 000000000000..51fb085079ea --- /dev/null +++ b/app-text/calibre/calibre-0.4.53.ebuild @@ -0,0 +1,86 @@ +# 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.53.ebuild,v 1.1 2008/05/12 11:17:11 flameeyes Exp $ + +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,mime.cache,magic,aliases} \ + "${D}"/usr/share/applnk +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + distutils_pkg_postinst +} diff --git a/app-text/calibre/metadata.xml b/app-text/calibre/metadata.xml new file mode 100644 index 000000000000..2d083ce3bc66 --- /dev/null +++ b/app-text/calibre/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> +</pkgmetadata> |