summaryrefslogtreecommitdiff
path: root/misc/calibre
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-02-08 00:37:09 +0000
committerwiz <wiz@pkgsrc.org>2015-02-08 00:37:09 +0000
commit793034e8da272f108da0afd7679de322da7ae376 (patch)
treee5cc29ac138811f26e6bc30cc3c97e22581c78b5 /misc/calibre
parent7c230b226b4f18935d99d314f83fbca43de16b89 (diff)
downloadpkgsrc-793034e8da272f108da0afd7679de322da7ae376.tar.gz
Update to 2.18. Lots of changes since 1.x, most significant one probably
the switch from qt4 to qt5; but also support for more new readers and more recipes. Based on wip package by myself.
Diffstat (limited to 'misc/calibre')
-rw-r--r--misc/calibre/Makefile69
-rw-r--r--misc/calibre/PLIST116
-rw-r--r--misc/calibre/distinfo16
-rw-r--r--misc/calibre/patches/patch-setup_build__environment.py57
-rw-r--r--misc/calibre/patches/patch-setup_extensions.py24
-rw-r--r--misc/calibre/patches/patch-src_calibre_linux.py17
6 files changed, 215 insertions, 84 deletions
diff --git a/misc/calibre/Makefile b/misc/calibre/Makefile
index 8a68d99fb7b..23fc7b81640 100644
--- a/misc/calibre/Makefile
+++ b/misc/calibre/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.89 2015/01/08 10:20:34 wiz Exp $
+# $NetBSD: Makefile,v 1.90 2015/02/08 00:37:09 wiz Exp $
-DISTNAME= calibre-1.48.0
-PKGREVISION= 4
+DISTNAME= calibre-2.18.0
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/}
EXTRACT_SUFX= .tar.xz
@@ -12,43 +11,38 @@ HOMEPAGE= http://www.calibre-ebook.com/
COMMENT= E-book library management application
LICENSE= gnu-gpl-v3
-DEPENDS+= help2man>=1.36.4:../../converters/help2man
-DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
+#DEPENDS+= help2man>=1.36.4:../../converters/help2man
+#DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
DEPENDS+= xdg-utils>=1.0.2:../../misc/xdg-utils
-DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
-DEPENDS+= ${PYPKGPREFIX}-lxml>=2.2.1:../../textproc/py-lxml
+#DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
+DEPENDS+= ${PYPKGPREFIX}-lxml>=3.2.1:../../textproc/py-lxml
DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup
DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize
DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect
DEPENDS+= ${PYPKGPREFIX}-cssutils>=0.9.9:../../textproc/py-cssutils
-# Let's depend on the ones we have in pkgsrc instead of the bundled ones.
-DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf
+DEPENDS+= ${PYPKGPREFIX}-psutil>=0.6.1:../../sysutils/py-psutil
+## Let's depend on the ones we have in pkgsrc instead of the bundled ones.
+#DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf
DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy
DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib
-DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet
-DEPENDS+= ${PYPKGPREFIX}-netifaces-[0-9]*:../../net/py-netifaces
-DEPENDS+= ${PYPKGPREFIX}-apsw-[0-9]*:../../databases/py-apsw
+#DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet
+DEPENDS+= ${PYPKGPREFIX}-netifaces>=0.8:../../net/py-netifaces
+DEPENDS+= ${PYPKGPREFIX}-apsw>=3.7.17:../../databases/py-apsw
+# dateutil>=1.4.1
+# dns>=1.6.0
PYTHON_VERSIONED_DEPENDENCIES= dateutil dns
-# We also need the distfile for qt4-libs to extract some private header files
-# If QTVERSION changes, the distinfo file needs to be updated too.
-QTVERSION= 4.8.5 # from ../../x11/qt4/Makefile.common
-# Including that file to avoid hardcoding the version number won't work,
-# since it will occur in the distinfo anyway.
-QTNAME= qt-everywhere-opensource-src-${QTVERSION}
-DISTFILES+= ${QTNAME}.tar.gz
-MASTER_SITES+= http://releases.qt-project.org/qt4/source/
EXTRACT_USING= bsdtar
USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
USE_TOOLS+= pkg-config pax
PYTHON_VERSIONS_ACCEPTED= 27
-PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-mechanize, py-beautifulsoup, py-imaging, py-netifaces
+PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not ported as of 2.1.0; also: py-mechanize, py-beautifulsoup, py-imaging, py-netifaces
PYDISTUTILSPKG= yes
PYSETUPOPTARGS= # empty
PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX}
-WRKSRC= ${WRKDIR}/calibre
INSTALLATION_DIRS= share/applications
INSTALLATION_DIRS= share/icons
@@ -64,7 +58,7 @@ FIX_PYTHON_PATHS+= */*/*/*/*/*.py
FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py
SUBST_CLASSES+= prefix
-SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt4/bin/qmake',"
+SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt5/bin/qmake',"
SUBST_MESSAGE.prefix= Fixing path to QMAKE
SUBST_STAGE.prefix= post-patch
SUBST_FILES.prefix= setup/build_environment.py
@@ -91,6 +85,7 @@ MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig
MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib
MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo
MAKE_ENV+= PODOFO_LIB_DIR=${BUILDLINK_PREFIX.podofo}/lib
+MAKE_ENV+= SIP_BIN=${BUILDLINK_PREFIX.py-sip}/bin/sip${PYVERSSUFFIX}
#MAKE_ENV+= WITH_USB=no
# Let's depend on the ones we have in pkgsrc instead of the bundled ones.
@@ -104,24 +99,23 @@ post-extract:
chmod a-x ${WRKSRC}/src/calibre/utils/Zeroconf.py
chmod a-x ${WRKSRC}/src/calibre/utils/smtplib.py
-# Get access to (some of) the Qt4 private header files (for qt_hack).
-post-wrapper:
- cd ${WRKDIR}/.buildlink/qt4/include/QtGui && \
- ln -s ../../../../${QTNAME}/include/QtGui/private .
- cd ${WRKDIR}/.buildlink/qt4/include/QtCore && \
- ln -s ../../../../${QTNAME}/include/QtCore/private .
-
+# not sure why libheadless installed into wrong directory
+# side effect of patch-setup_extensions.py?
post-install:
cd ${WRKSRC}/recipes && pax -wr -pma *.recipe \
${DESTDIR}${PREFIX}/share/calibre/recipes
cd ${WRKSRC} && pax -wr -pma Changelog* README.md \
COPYRIGHT INSTALL LICENSE.* \
${DESTDIR}${PREFIX}/share/doc/calibre
+ cd ${DESTDIR}${PREFIX} && ${MV} lib/calibre/calibre/plugins/.libs/libheadless.so lib/calibre/calibre/plugins/libheadless.so
.include "../../lang/python/application.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../databases/sqlite3/buildlink3.mk"
+BUILDLINK_API_DEPENDS.chmlib+= chmlib>=0.40
.include "../../devel/chmlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libmtp+= libmtp>=1.1.5
+.include "../../devel/libmtp/buildlink3.mk"
BUILDLINK_API_DEPENDS.libusb+= libusb>=0.1.12
.include "../../devel/libusb/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
@@ -137,12 +131,12 @@ _PYSETUPTOOLSINSTALLARGS= # empty
# because the setup.py is not the standard one and behaves differently.
_PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS}
#.include "../../lang/python/extension.mk"
+BUILDLINK_API_DEPENDS.podofo+= podofo>=0.8.2
.include "../../print/podofo/buildlink3.mk"
-# ??? BUILDLINK_API_DEPENDS.podofo+= podofo>=0.8.2
+BUILDLINK_API_DEPENDS.poppler+= poppler>=0.20.2
.include "../../print/poppler-includes/buildlink3.mk"
.include "../../print/poppler/buildlink3.mk"
-BUILDLINK_API_DEPENDS.poppler-qt4+= poppler-qt4>=0.12.0
-.include "../../print/poppler-qt4/buildlink3.mk"
+.include "../../print/poppler-qt5/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../sysutils/hal/buildlink3.mk"
BUILDLINK_API_DEPENDS.py-dbus+= ${PYPKGPREFIX}-dbus>=0.82.2
@@ -151,10 +145,7 @@ BUILDLINK_API_DEPENDS.py-dbus+= ${PYPKGPREFIX}-dbus>=0.82.2
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../textproc/py-elementtree/buildlink3.mk"
.include "../../x11/py-sip/buildlink3.mk"
-BUILDLINK_API_DEPENDS.py-qt4+= ${PYPKGPREFIX}-qt4>=4.7.0
-.include "../../x11/py-qt4/buildlink3.mk"
-BUILDLINK_API_DEPENDS.qt4-tools+= qt4-tools>=4.7.0
-.include "../../x11/qt4-tools/buildlink3.mk"
-BUILDLINK_API_DEPENDS.qt4-qdbus+= qt4-qdbus>=4.7.0
-.include "../../x11/qt4-qdbus/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+BUILDLINK_API_DEPENDS.py-qt5+= ${PYPKGPREFIX}-qt5>=5.4
+.include "../../x11/py-qt5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/misc/calibre/PLIST b/misc/calibre/PLIST
index 4efac6d216e..2cf1c8f539f 100644
--- a/misc/calibre/PLIST
+++ b/misc/calibre/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.28 2014/08/08 22:02:49 wiz Exp $
+@comment $NetBSD: PLIST,v 1.29 2015/02/08 00:37:09 wiz Exp $
bin/calibre
bin/calibre-complete
bin/calibre-customize
@@ -216,6 +216,7 @@ lib/calibre/calibre/ebooks/conversion/plugins/txt_output.py
lib/calibre/calibre/ebooks/conversion/plumber.py
lib/calibre/calibre/ebooks/conversion/preprocess.py
lib/calibre/calibre/ebooks/conversion/utils.py
+lib/calibre/calibre/ebooks/covers.py
lib/calibre/calibre/ebooks/djvu/__init__.py
lib/calibre/calibre/ebooks/djvu/djvu.py
lib/calibre/calibre/ebooks/djvu/djvubzzdec.py
@@ -242,6 +243,9 @@ lib/calibre/calibre/ebooks/docx/toc.py
lib/calibre/calibre/ebooks/docx/writer/__init__.py
lib/calibre/calibre/ebooks/docx/writer/container.py
lib/calibre/calibre/ebooks/epub/__init__.py
+lib/calibre/calibre/ebooks/epub/cfi/__init__.py
+lib/calibre/calibre/ebooks/epub/cfi/parse.py
+lib/calibre/calibre/ebooks/epub/cfi/tests.py
lib/calibre/calibre/ebooks/epub/pages.py
lib/calibre/calibre/ebooks/epub/periodical.py
lib/calibre/calibre/ebooks/fb2/__init__.py
@@ -416,7 +420,6 @@ lib/calibre/calibre/ebooks/oeb/display/webview.py
lib/calibre/calibre/ebooks/oeb/iterator/__init__.py
lib/calibre/calibre/ebooks/oeb/iterator/book.py
lib/calibre/calibre/ebooks/oeb/iterator/bookmarks.py
-lib/calibre/calibre/ebooks/oeb/iterator/extract_fonts.py
lib/calibre/calibre/ebooks/oeb/iterator/spine.py
lib/calibre/calibre/ebooks/oeb/normalize_css.py
lib/calibre/calibre/ebooks/oeb/parse_utils.py
@@ -443,6 +446,7 @@ lib/calibre/calibre/ebooks/oeb/polish/opf.py
lib/calibre/calibre/ebooks/oeb/polish/parsing.py
lib/calibre/calibre/ebooks/oeb/polish/pretty.py
lib/calibre/calibre/ebooks/oeb/polish/replace.py
+lib/calibre/calibre/ebooks/oeb/polish/report.py
lib/calibre/calibre/ebooks/oeb/polish/spell.py
lib/calibre/calibre/ebooks/oeb/polish/split.py
lib/calibre/calibre/ebooks/oeb/polish/stats.py
@@ -458,6 +462,7 @@ lib/calibre/calibre/ebooks/oeb/reader.py
lib/calibre/calibre/ebooks/oeb/stylizer.py
lib/calibre/calibre/ebooks/oeb/transforms/__init__.py
lib/calibre/calibre/ebooks/oeb/transforms/cover.py
+lib/calibre/calibre/ebooks/oeb/transforms/data_url.py
lib/calibre/calibre/ebooks/oeb/transforms/embed_fonts.py
lib/calibre/calibre/ebooks/oeb/transforms/filenames.py
lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py
@@ -640,6 +645,7 @@ lib/calibre/calibre/gui2/actions/restart.py
lib/calibre/calibre/gui2/actions/save_to_disk.py
lib/calibre/calibre/gui2/actions/show_book_details.py
lib/calibre/calibre/gui2/actions/show_quickview.py
+lib/calibre/calibre/gui2/actions/show_template_tester.py
lib/calibre/calibre/gui2/actions/similar_books.py
lib/calibre/calibre/gui2/actions/sort.py
lib/calibre/calibre/gui2/actions/store.py
@@ -648,9 +654,6 @@ lib/calibre/calibre/gui2/actions/tweak_epub.py
lib/calibre/calibre/gui2/actions/unpack_book.py
lib/calibre/calibre/gui2/actions/view.py
lib/calibre/calibre/gui2/add.py
-lib/calibre/calibre/gui2/add_wizard/__init__.py
-lib/calibre/calibre/gui2/add_wizard/scan_ui.py
-lib/calibre/calibre/gui2/add_wizard/welcome_ui.py
lib/calibre/calibre/gui2/auto_add.py
lib/calibre/calibre/gui2/bars.py
lib/calibre/calibre/gui2/book_details.py
@@ -663,7 +666,6 @@ lib/calibre/calibre/gui2/catalog/catalog_epub_mobi.py
lib/calibre/calibre/gui2/catalog/catalog_epub_mobi_ui.py
lib/calibre/calibre/gui2/catalog/catalog_tab_template_ui.py
lib/calibre/calibre/gui2/comments_editor.py
-lib/calibre/calibre/gui2/complete.py
lib/calibre/calibre/gui2/complete2.py
lib/calibre/calibre/gui2/convert/__init__.py
lib/calibre/calibre/gui2/convert/azw3_output.py
@@ -731,7 +733,16 @@ lib/calibre/calibre/gui2/convert/xexp_edit_ui.py
lib/calibre/calibre/gui2/convert/xpath_wizard.py
lib/calibre/calibre/gui2/convert/xpath_wizard_ui.py
lib/calibre/calibre/gui2/cover_flow.py
+lib/calibre/calibre/gui2/covers.py
lib/calibre/calibre/gui2/custom_column_widgets.py
+lib/calibre/calibre/gui2/dbus_export/__init__.py
+lib/calibre/calibre/gui2/dbus_export/demo.py
+lib/calibre/calibre/gui2/dbus_export/gtk.py
+lib/calibre/calibre/gui2/dbus_export/menu.py
+lib/calibre/calibre/gui2/dbus_export/menu2.py
+lib/calibre/calibre/gui2/dbus_export/tray.py
+lib/calibre/calibre/gui2/dbus_export/utils.py
+lib/calibre/calibre/gui2/dbus_export/widgets.py
lib/calibre/calibre/gui2/device.py
lib/calibre/calibre/gui2/device_drivers/__init__.py
lib/calibre/calibre/gui2/device_drivers/configwidget.py
@@ -764,6 +775,7 @@ lib/calibre/calibre/gui2/dialogs/confirm_delete_location_ui.py
lib/calibre/calibre/gui2/dialogs/confirm_delete_ui.py
lib/calibre/calibre/gui2/dialogs/conversion_error.py
lib/calibre/calibre/gui2/dialogs/conversion_error_ui.py
+lib/calibre/calibre/gui2/dialogs/custom_recipes.py
lib/calibre/calibre/gui2/dialogs/delete_matching_from_device.py
lib/calibre/calibre/gui2/dialogs/delete_matching_from_device_ui.py
lib/calibre/calibre/gui2/dialogs/device_category_editor.py
@@ -811,8 +823,6 @@ lib/calibre/calibre/gui2/dialogs/template_dialog_ui.py
lib/calibre/calibre/gui2/dialogs/template_line_editor.py
lib/calibre/calibre/gui2/dialogs/test_email_ui.py
lib/calibre/calibre/gui2/dialogs/trim_image.py
-lib/calibre/calibre/gui2/dialogs/user_profiles.py
-lib/calibre/calibre/gui2/dialogs/user_profiles_ui.py
lib/calibre/calibre/gui2/dnd.py
lib/calibre/calibre/gui2/ebook_download.py
lib/calibre/calibre/gui2/email.py
@@ -897,10 +907,12 @@ lib/calibre/calibre/gui2/preferences/tweaks.py
lib/calibre/calibre/gui2/preferences/tweaks_ui.py
lib/calibre/calibre/gui2/proceed.py
lib/calibre/calibre/gui2/progress_indicator/__init__.py
+lib/calibre/calibre/gui2/save.py
lib/calibre/calibre/gui2/search_box.py
lib/calibre/calibre/gui2/search_restriction_mixin.py
lib/calibre/calibre/gui2/shortcuts.py
lib/calibre/calibre/gui2/shortcuts_ui.py
+lib/calibre/calibre/gui2/splash.py
lib/calibre/calibre/gui2/store/__init__.py
lib/calibre/calibre/gui2/store/basic_config.py
lib/calibre/calibre/gui2/store/basic_config_widget_ui.py
@@ -929,7 +941,6 @@ lib/calibre/calibre/gui2/store/search/search.py
lib/calibre/calibre/gui2/store/search/search_ui.py
lib/calibre/calibre/gui2/store/search_result.py
lib/calibre/calibre/gui2/store/stores/__init__.py
-lib/calibre/calibre/gui2/store/stores/allegro_plugin.py
lib/calibre/calibre/gui2/store/stores/amazon_ca_plugin.py
lib/calibre/calibre/gui2/store/stores/amazon_de_plugin.py
lib/calibre/calibre/gui2/store/stores/amazon_es_plugin.py
@@ -942,6 +953,8 @@ lib/calibre/calibre/gui2/store/stores/baen_webscription_plugin.py
lib/calibre/calibre/gui2/store/stores/beam_ebooks_de_plugin.py
lib/calibre/calibre/gui2/store/stores/biblio_plugin.py
lib/calibre/calibre/gui2/store/stores/bn_plugin.py
+lib/calibre/calibre/gui2/store/stores/bubok_portugal_plugin.py
+lib/calibre/calibre/gui2/store/stores/bubok_publishing_plugin.py
lib/calibre/calibre/gui2/store/stores/cdp_plugin.py
lib/calibre/calibre/gui2/store/stores/chitanka_plugin.py
lib/calibre/calibre/gui2/store/stores/ebook_nl_plugin.py
@@ -1005,6 +1018,11 @@ lib/calibre/calibre/gui2/tweak_book/__init__.py
lib/calibre/calibre/gui2/tweak_book/boss.py
lib/calibre/calibre/gui2/tweak_book/char_select.py
lib/calibre/calibre/gui2/tweak_book/check.py
+lib/calibre/calibre/gui2/tweak_book/completion/__init__.py
+lib/calibre/calibre/gui2/tweak_book/completion/basic.py
+lib/calibre/calibre/gui2/tweak_book/completion/popup.py
+lib/calibre/calibre/gui2/tweak_book/completion/utils.py
+lib/calibre/calibre/gui2/tweak_book/completion/worker.py
lib/calibre/calibre/gui2/tweak_book/diff/__init__.py
lib/calibre/calibre/gui2/tweak_book/diff/highlight.py
lib/calibre/calibre/gui2/tweak_book/diff/main.py
@@ -1014,17 +1032,26 @@ lib/calibre/calibre/gui2/tweak_book/editor/canvas.py
lib/calibre/calibre/gui2/tweak_book/editor/help.py
lib/calibre/calibre/gui2/tweak_book/editor/image.py
lib/calibre/calibre/gui2/tweak_book/editor/insert_resource.py
-lib/calibre/calibre/gui2/tweak_book/editor/smart/__init__.py
-lib/calibre/calibre/gui2/tweak_book/editor/smart/css.py
-lib/calibre/calibre/gui2/tweak_book/editor/smart/html.py
+lib/calibre/calibre/gui2/tweak_book/editor/smarts/__init__.py
+lib/calibre/calibre/gui2/tweak_book/editor/smarts/css.py
+lib/calibre/calibre/gui2/tweak_book/editor/smarts/html.py
+lib/calibre/calibre/gui2/tweak_book/editor/smarts/python.py
+lib/calibre/calibre/gui2/tweak_book/editor/smarts/utils.py
+lib/calibre/calibre/gui2/tweak_book/editor/snippets.py
lib/calibre/calibre/gui2/tweak_book/editor/syntax/__init__.py
lib/calibre/calibre/gui2/tweak_book/editor/syntax/base.py
lib/calibre/calibre/gui2/tweak_book/editor/syntax/css.py
lib/calibre/calibre/gui2/tweak_book/editor/syntax/html.py
+lib/calibre/calibre/gui2/tweak_book/editor/syntax/javascript.py
+lib/calibre/calibre/gui2/tweak_book/editor/syntax/pygments_highlighter.py
+lib/calibre/calibre/gui2/tweak_book/editor/syntax/python.py
+lib/calibre/calibre/gui2/tweak_book/editor/syntax/utils.py
+lib/calibre/calibre/gui2/tweak_book/editor/syntax/xml.py
lib/calibre/calibre/gui2/tweak_book/editor/text.py
lib/calibre/calibre/gui2/tweak_book/editor/themes.py
lib/calibre/calibre/gui2/tweak_book/editor/widget.py
lib/calibre/calibre/gui2/tweak_book/file_list.py
+lib/calibre/calibre/gui2/tweak_book/function_replace.py
lib/calibre/calibre/gui2/tweak_book/job.py
lib/calibre/calibre/gui2/tweak_book/live_css.py
lib/calibre/calibre/gui2/tweak_book/main.py
@@ -1033,6 +1060,7 @@ lib/calibre/calibre/gui2/tweak_book/plugin.py
lib/calibre/calibre/gui2/tweak_book/polish.py
lib/calibre/calibre/gui2/tweak_book/preferences.py
lib/calibre/calibre/gui2/tweak_book/preview.py
+lib/calibre/calibre/gui2/tweak_book/reports.py
lib/calibre/calibre/gui2/tweak_book/save.py
lib/calibre/calibre/gui2/tweak_book/search.py
lib/calibre/calibre/gui2/tweak_book/spell.py
@@ -1049,6 +1077,7 @@ lib/calibre/calibre/gui2/viewer/config.py
lib/calibre/calibre/gui2/viewer/config_ui.py
lib/calibre/calibre/gui2/viewer/documentview.py
lib/calibre/calibre/gui2/viewer/flip.py
+lib/calibre/calibre/gui2/viewer/footnote.py
lib/calibre/calibre/gui2/viewer/gestures.py
lib/calibre/calibre/gui2/viewer/image_popup.py
lib/calibre/calibre/gui2/viewer/inspector.py
@@ -1070,6 +1099,7 @@ lib/calibre/calibre/gui2/wizard/library_ui.py
lib/calibre/calibre/gui2/wizard/send_email.py
lib/calibre/calibre/gui2/wizard/send_email_ui.py
lib/calibre/calibre/gui2/wizard/stanza_ui.py
+lib/calibre/calibre/gui_launch.py
lib/calibre/calibre/library/__init__.py
lib/calibre/calibre/library/add_to_library.py
lib/calibre/calibre/library/caches.py
@@ -1112,13 +1142,13 @@ lib/calibre/calibre/plugins/_patiencediff_c.so
lib/calibre/calibre/plugins/_regex.so
lib/calibre/calibre/plugins/bzzdec.so
lib/calibre/calibre/plugins/cPalmdoc.so
-lib/calibre/calibre/plugins/calibre_style.so
lib/calibre/calibre/plugins/chm_extra.so
lib/calibre/calibre/plugins/chmlib.so
lib/calibre/calibre/plugins/freetype.so
lib/calibre/calibre/plugins/html.so
lib/calibre/calibre/plugins/hunspell.so
lib/calibre/calibre/plugins/icu.so
+lib/calibre/calibre/plugins/libheadless.so
lib/calibre/calibre/plugins/lzx.so
lib/calibre/calibre/plugins/magick.so
lib/calibre/calibre/plugins/matcher.so
@@ -1156,6 +1186,7 @@ lib/calibre/calibre/utils/complete.py
lib/calibre/calibre/utils/config.py
lib/calibre/calibre/utils/config_base.py
lib/calibre/calibre/utils/date.py
+lib/calibre/calibre/utils/dbus_service.py
lib/calibre/calibre/utils/file_associations.py
lib/calibre/calibre/utils/filenames.py
lib/calibre/calibre/utils/fonts/__init__.py
@@ -1193,6 +1224,7 @@ lib/calibre/calibre/utils/imghdr.py
lib/calibre/calibre/utils/ipc/__init__.py
lib/calibre/calibre/utils/ipc/job.py
lib/calibre/calibre/utils/ipc/launch.py
+lib/calibre/calibre/utils/ipc/pool.py
lib/calibre/calibre/utils/ipc/proxy.py
lib/calibre/calibre/utils/ipc/server.py
lib/calibre/calibre/utils/ipc/simple_worker.py
@@ -1217,7 +1249,6 @@ lib/calibre/calibre/utils/opensearch/description.py
lib/calibre/calibre/utils/opensearch/query.py
lib/calibre/calibre/utils/opensearch/url.py
lib/calibre/calibre/utils/ordered_dict.py
-lib/calibre/calibre/utils/osx_symlinks.py
lib/calibre/calibre/utils/pdftk.py
lib/calibre/calibre/utils/podofo/__init__.py
lib/calibre/calibre/utils/pyconsole/__init__.py
@@ -1302,7 +1333,6 @@ lib/calibre/odf/text.py
lib/calibre/odf/thumbnail.py
lib/calibre/odf/userfield.py
lib/calibre/odf/xforms.py
-lib/calibre/qtcurve/test_rendering.py
lib/calibre/regex/__init__.py
lib/calibre/regex/_regex_core.py
lib/calibre/routes/__init__.py
@@ -1312,7 +1342,6 @@ lib/calibre/routes/mapper.py
lib/calibre/routes/middleware.py
lib/calibre/routes/route.py
lib/calibre/routes/util.py
-lib/calibre/six.py
lib/calibre/templite/__init__.py
lib/calibre/tinycss/__init__.py
lib/calibre/tinycss/color3.py
@@ -1335,6 +1364,9 @@ lib/calibre/tinycss/token_data.py
lib/calibre/tinycss/tokenizer.py
lib/calibre/tinycss/version.py
${PYSITELIB}/init_calibre.py
+share/appdata/calibre-ebook-edit.appdata.xml
+share/appdata/calibre-ebook-viewer.appdata.xml
+share/appdata/calibre-gui.appdata.xml
share/applications/calibre-ebook-edit.desktop
share/applications/calibre-ebook-viewer.desktop
share/applications/calibre-gui.desktop
@@ -1412,6 +1444,7 @@ share/calibre/dictionaries/es-ES/es-ES.aff
share/calibre/dictionaries/es-ES/es-ES.dic
share/calibre/dictionaries/es-ES/locales
share/calibre/ebook-convert-complete.pickle
+share/calibre/editor-functions.json
share/calibre/editor-help/css.json
share/calibre/editor-help/html.json
share/calibre/editor-help/mathml.json
@@ -1454,6 +1487,7 @@ share/calibre/images/connect_share.png
share/calibre/images/connect_share_on.png
share/calibre/images/console.png
share/calibre/images/convert.png
+share/calibre/images/copy-to-library.png
share/calibre/images/cover_flow.png
share/calibre/images/cover_texture.png
share/calibre/images/debug.png
@@ -1480,6 +1514,7 @@ share/calibre/images/document_open.png
share/calibre/images/donate.png
share/calibre/images/dot_green.png
share/calibre/images/dot_red.png
+share/calibre/images/download-metadata.png
share/calibre/images/drawer.png
share/calibre/images/drm-locked.png
share/calibre/images/drm-unlocked.png
@@ -1606,6 +1641,7 @@ share/calibre/images/publisher.png
share/calibre/images/random.png
share/calibre/images/rating.png
share/calibre/images/reader.png
+share/calibre/images/reports.png
share/calibre/images/resize.png
share/calibre/images/rotate-right.png
share/calibre/images/save.png
@@ -1618,6 +1654,7 @@ share/calibre/images/search_copy_saved.png
share/calibre/images/search_delete_saved.png
share/calibre/images/series.png
share/calibre/images/smarten-punctuation.png
+share/calibre/images/snippets.png
share/calibre/images/spell-check.png
share/calibre/images/store.png
share/calibre/images/subset-fonts.png
@@ -1690,6 +1727,7 @@ share/calibre/recipes/aftenposten.recipe
share/calibre/recipes/agrogerila.recipe
share/calibre/recipes/aif_ru.recipe
share/calibre/recipes/air_force_times.recipe
+share/calibre/recipes/ajans_firat.recipe
share/calibre/recipes/ajc.recipe
share/calibre/recipes/ajiajin.recipe
share/calibre/recipes/aksiyon_derigisi.recipe
@@ -1699,6 +1737,7 @@ share/calibre/recipes/aktualne.cz.recipe
share/calibre/recipes/al_ahram.recipe
share/calibre/recipes/al_jazeera.recipe
share/calibre/recipes/al_masry_al_youm.recipe
+share/calibre/recipes/al_monitor.recipe
share/calibre/recipes/albert_mohler.recipe
share/calibre/recipes/alejakomiksu_com.recipe
share/calibre/recipes/alo_novine.recipe
@@ -1720,6 +1759,7 @@ share/calibre/recipes/apcom.recipe
share/calibre/recipes/apod.recipe
share/calibre/recipes/app_funds.recipe
share/calibre/recipes/apple_daily.recipe
+share/calibre/recipes/appledaily_tw.recipe
share/calibre/recipes/applefobia.recipe
share/calibre/recipes/aprospect.recipe
share/calibre/recipes/ara_info.recipe
@@ -1741,6 +1781,7 @@ share/calibre/recipes/astroflesz.recipe
share/calibre/recipes/astronomia_pl.recipe
share/calibre/recipes/athens_news.recipe
share/calibre/recipes/atlantic.recipe
+share/calibre/recipes/atlantic_com.recipe
share/calibre/recipes/attac_es.recipe
share/calibre/recipes/auto.recipe
share/calibre/recipes/auto_blog.recipe
@@ -1770,6 +1811,7 @@ share/calibre/recipes/barrons.recipe
share/calibre/recipes/bash_org_pl.recipe
share/calibre/recipes/bay_citizen.recipe
share/calibre/recipes/bbc.recipe
+share/calibre/recipes/bbc_arabic.recipe
share/calibre/recipes/bbc_brasil.recipe
share/calibre/recipes/bbc_chinese.recipe
share/calibre/recipes/bbc_es.recipe
@@ -1801,7 +1843,6 @@ share/calibre/recipes/biweekly.recipe
share/calibre/recipes/biz_portal.recipe
share/calibre/recipes/blesk.recipe
share/calibre/recipes/blic.recipe
-share/calibre/recipes/blind_buch_de.recipe
share/calibre/recipes/blog_biszopa.recipe
share/calibre/recipes/blog_da_cidadania.recipe
share/calibre/recipes/blognexto.recipe
@@ -1910,6 +1951,7 @@ share/calibre/recipes/cosmopolitan_uk.recipe
share/calibre/recipes/cotidianul.recipe
share/calibre/recipes/counterpunch.recipe
share/calibre/recipes/countryfile.recipe
+share/calibre/recipes/courier_mail.recipe
share/calibre/recipes/courrier.recipe
share/calibre/recipes/courrierinternational.recipe
share/calibre/recipes/cracked_com.recipe
@@ -1925,6 +1967,7 @@ share/calibre/recipes/cyberpresse.recipe
share/calibre/recipes/cynewslive.recipe
share/calibre/recipes/cyprus_weekly.recipe
share/calibre/recipes/czas_gentlemanow.recipe
+share/calibre/recipes/dachauer_nachrichten.recipe
share/calibre/recipes/dagens_industri.recipe
share/calibre/recipes/daily_express.recipe
share/calibre/recipes/daily_mail.recipe
@@ -2008,6 +2051,7 @@ share/calibre/recipes/dobanevinosti.recipe
share/calibre/recipes/dobreprogamy.recipe
share/calibre/recipes/doghousediaries.recipe
share/calibre/recipes/dominion.recipe
+share/calibre/recipes/dorfener_anzeiger.recipe
share/calibre/recipes/dosisdiarias.recipe
share/calibre/recipes/dot_net.recipe
share/calibre/recipes/dotpod.recipe
@@ -2028,6 +2072,7 @@ share/calibre/recipes/dziennik_polski.recipe
share/calibre/recipes/dziennik_wschodni.recipe
share/calibre/recipes/dziennik_zachodni.recipe
share/calibre/recipes/e_novine.recipe
+share/calibre/recipes/ebetrsberger_zeitung.recipe
share/calibre/recipes/echo_dnia.recipe
share/calibre/recipes/echo_moskvy.recipe
share/calibre/recipes/echo_online.recipe
@@ -2041,6 +2086,7 @@ share/calibre/recipes/economist_free.recipe
share/calibre/recipes/ecotrend.recipe
share/calibre/recipes/ecuisine.recipe
share/calibre/recipes/edebistan.recipe
+share/calibre/recipes/edebiyat_haber.recipe
share/calibre/recipes/edge_conversations.recipe
share/calibre/recipes/editor_and_publisher.recipe
share/calibre/recipes/editoriali.recipe
@@ -2101,6 +2147,7 @@ share/calibre/recipes/epicurious.recipe
share/calibre/recipes/epl_talk.recipe
share/calibre/recipes/epw.recipe
share/calibre/recipes/equipped.recipe
+share/calibre/recipes/erdinger_anzeiger.recipe
share/calibre/recipes/escrevinhador.recipe
share/calibre/recipes/esenja.recipe
share/calibre/recipes/esensja_(rss).recipe
@@ -2168,11 +2215,13 @@ share/calibre/recipes/frazpc.recipe
share/calibre/recipes/freakonomics.recipe
share/calibre/recipes/freenature.recipe
share/calibre/recipes/freeway.recipe
+share/calibre/recipes/freisinger_tagblatt.recipe
share/calibre/recipes/fria.recipe
share/calibre/recipes/frontlineonnet.recipe
share/calibre/recipes/fstream.recipe
share/calibre/recipes/ftd.recipe
share/calibre/recipes/fudzilla.recipe
+share/calibre/recipes/furstenfeldbrucker_tagblatt.recipe
share/calibre/recipes/futurismic.recipe
share/calibre/recipes/galaxys_edge.recipe
share/calibre/recipes/galicia_confidential.recipe
@@ -2182,6 +2231,7 @@ share/calibre/recipes/gamekult.recipe
share/calibre/recipes/gameplay_pl.recipe
share/calibre/recipes/gamespot.recipe
share/calibre/recipes/gandul.recipe
+share/calibre/recipes/garmischer_tagblatt.recipe
share/calibre/recipes/gawker.recipe
share/calibre/recipes/gazeta-prawna-calibre-v1.recipe
share/calibre/recipes/gazeta_krakowska.recipe
@@ -2197,10 +2247,12 @@ share/calibre/recipes/gazeta_wyborcza.recipe
share/calibre/recipes/gcn.recipe
share/calibre/recipes/geek_poke.recipe
share/calibre/recipes/geopolityka.recipe
+share/calibre/recipes/geretsrieder_merkur.recipe
share/calibre/recipes/german_gov.recipe
share/calibre/recipes/gezgin_dergi.recipe
share/calibre/recipes/gildia_pl.recipe
share/calibre/recipes/gizmodo.recipe
+share/calibre/recipes/gkt.recipe
share/calibre/recipes/glamour.recipe
share/calibre/recipes/glas_srpske.recipe
share/calibre/recipes/glasgow_herald.recipe
@@ -2235,6 +2287,7 @@ share/calibre/recipes/guardian.recipe
share/calibre/recipes/gulfnews.recipe
share/calibre/recipes/gulli.recipe
share/calibre/recipes/gva_be.recipe
+share/calibre/recipes/gwup.recipe
share/calibre/recipes/h1.recipe
share/calibre/recipes/h2.recipe
share/calibre/recipes/h3.recipe
@@ -2255,7 +2308,6 @@ share/calibre/recipes/hartford_courant.recipe
share/calibre/recipes/hatalska.recipe
share/calibre/recipes/hawaii.recipe
share/calibre/recipes/hbr.recipe
-share/calibre/recipes/hbr_blogs.recipe
share/calibre/recipes/heavy_metal_it.recipe
share/calibre/recipes/heise.recipe
share/calibre/recipes/heise_online.recipe
@@ -2281,6 +2333,8 @@ share/calibre/recipes/hln_be.recipe
share/calibre/recipes/hna.recipe
share/calibre/recipes/hnonline.recipe
share/calibre/recipes/hola.recipe
+share/calibre/recipes/hollywood_reporter.recipe
+share/calibre/recipes/holzkirchener_merkur.recipe
share/calibre/recipes/homopedia_pl.recipe
share/calibre/recipes/hotair.recipe
share/calibre/recipes/hotcity.recipe
@@ -2292,6 +2346,7 @@ share/calibre/recipes/hoy.recipe
share/calibre/recipes/hrt.recipe
share/calibre/recipes/huffingtonpost.recipe
share/calibre/recipes/huffingtonpost_uk.recipe
+share/calibre/recipes/hurriyet_daily_news.recipe
share/calibre/recipes/hvg.recipe
share/calibre/recipes/ibm_smarter_planet.recipe
share/calibre/recipes/ideal_almeria.recipe
@@ -2346,10 +2401,12 @@ share/calibre/recipes/ionline_pt.recipe
share/calibre/recipes/iprofesional.recipe
share/calibre/recipes/irish_independent.recipe
share/calibre/recipes/irish_times.recipe
+share/calibre/recipes/isar-loisachbote.recipe
share/calibre/recipes/ittechblog.recipe
share/calibre/recipes/ivanamilakovic.recipe
share/calibre/recipes/izdiham.com.recipe
share/calibre/recipes/izvestia.recipe
+share/calibre/recipes/jagran_josh.recipe
share/calibre/recipes/jakarta_globe.recipe
share/calibre/recipes/jakarta_post.recipe
share/calibre/recipes/jalopnik.recipe
@@ -2405,6 +2462,7 @@ share/calibre/recipes/korespondent.recipe
share/calibre/recipes/kosmonauta_pl.recipe
share/calibre/recipes/kotaku.recipe
share/calibre/recipes/kp.recipe
+share/calibre/recipes/krebs_on_security.recipe
share/calibre/recipes/kresy_pl.recipe
share/calibre/recipes/krstarica.recipe
share/calibre/recipes/krstarica_en.recipe
@@ -2551,6 +2609,7 @@ share/calibre/recipes/metropol_tv.recipe
share/calibre/recipes/miami_herald.recipe
share/calibre/recipes/michalkiewicz.recipe
share/calibre/recipes/michellemalkin.recipe
+share/calibre/recipes/miesbacher_merkur.recipe
share/calibre/recipes/milenio.recipe
share/calibre/recipes/military_times.recipe
share/calibre/recipes/ming_pao.recipe
@@ -2582,6 +2641,11 @@ share/calibre/recipes/msdnmag_en.recipe
share/calibre/recipes/msnbc.recipe
share/calibre/recipes/msnsankei.recipe
share/calibre/recipes/mumbai_mirror.recipe
+share/calibre/recipes/munchner_merkur_nord.recipe
+share/calibre/recipes/munchner_merkur_stadt.recipe
+share/calibre/recipes/munchner_merkur_sud.recipe
+share/calibre/recipes/munchner_merkur_wurmtal.recipe
+share/calibre/recipes/murnauer_tagblatt.recipe
share/calibre/recipes/mwjournal.recipe
share/calibre/recipes/myapple_pl.recipe
share/calibre/recipes/nachdenkseiten.recipe
@@ -2716,12 +2780,12 @@ share/calibre/recipes/oriental_daily.recipe
share/calibre/recipes/origo_hu.recipe
share/calibre/recipes/orlando_sentinel.recipe
share/calibre/recipes/orsai.recipe
+share/calibre/recipes/osel_cz.recipe
share/calibre/recipes/osw.recipe
share/calibre/recipes/osworld_pl.recipe
share/calibre/recipes/ottawa_citizen.recipe
share/calibre/recipes/ourdailybread.recipe
share/calibre/recipes/outlook_india.recipe
-share/calibre/recipes/outside_magazine.recipe
share/calibre/recipes/overclock_pl.recipe
share/calibre/recipes/oxford_mail.recipe
share/calibre/recipes/padreydecano.recipe
@@ -2745,6 +2809,7 @@ share/calibre/recipes/pcworld_hu.recipe
share/calibre/recipes/pcworldro.recipe
share/calibre/recipes/pecat.recipe
share/calibre/recipes/penguin_news.recipe
+share/calibre/recipes/penzberger_merkur.recipe
share/calibre/recipes/people_daily.recipe
share/calibre/recipes/people_us_mashup.recipe
share/calibre/recipes/perfil.recipe
@@ -2764,6 +2829,7 @@ share/calibre/recipes/pilot.recipe
share/calibre/recipes/piratska_strana.recipe
share/calibre/recipes/piratske_noviny.recipe
share/calibre/recipes/planet_kde.recipe
+share/calibre/recipes/planet_python.recipe
share/calibre/recipes/plus_info.recipe
share/calibre/recipes/pnn.recipe
share/calibre/recipes/pobjeda.recipe
@@ -2898,6 +2964,7 @@ share/calibre/recipes/satkurier.recipe
share/calibre/recipes/satmagazine.recipe
share/calibre/recipes/sb_nation.recipe
share/calibre/recipes/schattenblick.recipe
+share/calibre/recipes/schongauer_nachrichten.recipe
share/calibre/recipes/science_aas.recipe
share/calibre/recipes/science_based_medicine.recipe
share/calibre/recipes/science_news.recipe
@@ -2965,6 +3032,7 @@ share/calibre/recipes/standardmedia_ke.recipe
share/calibre/recipes/standardmoney.recipe
share/calibre/recipes/star_gazetesi.recipe
share/calibre/recipes/staradvertiser.recipe
+share/calibre/recipes/starnberger_merkur.recipe
share/calibre/recipes/stars_and_stripes.recipe
share/calibre/recipes/starwars.recipe
share/calibre/recipes/statesman.recipe
@@ -3005,6 +3073,7 @@ share/calibre/recipes/technology_review.recipe
share/calibre/recipes/technology_review_de.recipe
share/calibre/recipes/techtarget.recipe
share/calibre/recipes/tedneward.recipe
+share/calibre/recipes/tegernseer_zeitung.recipe
share/calibre/recipes/telam.recipe
share/calibre/recipes/telegraph_in.recipe
share/calibre/recipes/telegraph_uk.recipe
@@ -3018,6 +3087,7 @@ share/calibre/recipes/thairath.recipe
share/calibre/recipes/the_age.recipe
share/calibre/recipes/the_budget_fashionista.recipe
share/calibre/recipes/the_clinic_online.recipe
+share/calibre/recipes/the_conversation.recipe
share/calibre/recipes/the_daily_news_egypt.recipe
share/calibre/recipes/the_escapist.recipe
share/calibre/recipes/the_feature.recipe
@@ -3041,6 +3111,7 @@ share/calibre/recipes/the_verge.recipe
share/calibre/recipes/the_week_magazine_free.recipe
share/calibre/recipes/the_workingham_times.recipe
share/calibre/recipes/thecultofghoul.recipe
+share/calibre/recipes/thedailywtf.recipe
share/calibre/recipes/thedgesingapore.recipe
share/calibre/recipes/theecocolapse.recipe
share/calibre/recipes/theeconomictimes_india.recipe
@@ -3070,6 +3141,7 @@ share/calibre/recipes/tnxm.recipe
share/calibre/recipes/today_online.recipe
share/calibre/recipes/todays_zaman.recipe
share/calibre/recipes/toi.recipe
+share/calibre/recipes/tolzer_kurier.recipe
share/calibre/recipes/tomshardware.recipe
share/calibre/recipes/tomshardware_de.recipe
share/calibre/recipes/tomshardware_it.recipe
@@ -3124,6 +3196,7 @@ share/calibre/recipes/veintitres.recipe
share/calibre/recipes/version2.recipe
share/calibre/recipes/vfr_magazine.recipe
share/calibre/recipes/vic_times.recipe
+share/calibre/recipes/vice.recipe
share/calibre/recipes/vice_magazine.recipe
share/calibre/recipes/vice_magazine_de.recipe
share/calibre/recipes/vignette.recipe
@@ -3149,6 +3222,7 @@ share/calibre/recipes/wash_times.recipe
share/calibre/recipes/watchingamerica.recipe
share/calibre/recipes/weblogs_sl.recipe
share/calibre/recipes/websecurity_pl.recipe
+share/calibre/recipes/weilheimer_tagblatt.recipe
share/calibre/recipes/welt.recipe
share/calibre/recipes/welt_der_physik.recipe
share/calibre/recipes/wenxuecity-znjy.recipe
@@ -3216,9 +3290,12 @@ share/calibre/templates/html.css
share/calibre/templates/html_export_default.css
share/calibre/templates/html_export_default.tmpl
share/calibre/templates/html_export_default_index.tmpl
+share/calibre/templates/inline_toc_styles.css
share/calibre/templates/lrf.xsl
+share/calibre/templates/new_book.html
share/calibre/templates/rtf.xsl
share/calibre/tracer.epub
+share/calibre/user-manual-translation-stats.json
share/calibre/viewer/blank.html
share/calibre/viewer/bookmarks.js
share/calibre/viewer/hyphenate/Hyphenator.js
@@ -3428,4 +3505,3 @@ share/pixmaps/calibre-ebook-edit.png
share/pixmaps/calibre-gui.png
share/pixmaps/calibre-lrf.png
share/pixmaps/calibre-viewer.png
-@pkgdir share/appdata
diff --git a/misc/calibre/distinfo b/misc/calibre/distinfo
index 65ec3fa21fb..f34425e1dd2 100644
--- a/misc/calibre/distinfo
+++ b/misc/calibre/distinfo
@@ -1,10 +1,8 @@
-$NetBSD: distinfo,v 1.29 2014/08/08 22:02:49 wiz Exp $
+$NetBSD: distinfo,v 1.30 2015/02/08 00:37:10 wiz Exp $
-SHA1 (calibre-1.48.0.tar.xz) = 9a466a33f5d2076d7ed7d096b5247b89a12b1625
-RMD160 (calibre-1.48.0.tar.xz) = ff8e1bf0daa3c2ec6ace3cb9280c9bca3952c8a0
-Size (calibre-1.48.0.tar.xz) = 35126680 bytes
-SHA1 (qt-everywhere-opensource-src-4.8.5.tar.gz) = 745f9ebf091696c0d5403ce691dc28c039d77b9e
-RMD160 (qt-everywhere-opensource-src-4.8.5.tar.gz) = 1e7bb099d5d1cda0b663cebe207c846c8d04750d
-Size (qt-everywhere-opensource-src-4.8.5.tar.gz) = 241491467 bytes
-SHA1 (patch-setup_extensions.py) = 285ab1aff5b0d5f7c0a016f68e705d312a120d65
-SHA1 (patch-src_calibre_linux.py) = 5abce220798f9a32ffda45080227a8bc937de838
+SHA1 (calibre-2.18.0.tar.xz) = e104aa9ed9b6dd732802471d139e4f550575984d
+RMD160 (calibre-2.18.0.tar.xz) = f963a4aae13586e9bfc164692d4bbdd0cfb64c86
+Size (calibre-2.18.0.tar.xz) = 36196564 bytes
+SHA1 (patch-setup_build__environment.py) = b620c36fee9a4c403af0fecced8ea8189dc8e25c
+SHA1 (patch-setup_extensions.py) = dcf89bab3a9ff7012af6e009bf68779302d2a556
+SHA1 (patch-src_calibre_linux.py) = 2bab5511078e20893136a8f1098bab703f739b0d
diff --git a/misc/calibre/patches/patch-setup_build__environment.py b/misc/calibre/patches/patch-setup_build__environment.py
new file mode 100644
index 00000000000..a4f5e6e2268
--- /dev/null
+++ b/misc/calibre/patches/patch-setup_build__environment.py
@@ -0,0 +1,57 @@
+$NetBSD: patch-setup_build__environment.py,v 1.1 2015/02/08 00:37:10 wiz Exp $
+
+Avoid problem on NetBSD:
+
+####### Building extension magick #######
+Compiling magick
+Traceback (most recent call last):
+ File "setup.py", line 99, in <module>
+ sys.exit(main())
+ File "setup.py", line 85, in main
+ command.run_all(opts)
+ File "/scratch/wip/calibre/work/calibre-2.15.0/setup/__init__.py", line 181, in run_all
+ self.run_cmd(self, opts)
+ File "/scratch/wip/calibre/work/calibre-2.15.0/setup/__init__.py", line 178, in run_cmd
+ cmd.run(opts)
+ File "/scratch/wip/calibre/work/calibre-2.15.0/setup/extensions.py", line 412, in run
+ self.build(ext, dest)
+ File "/scratch/wip/calibre/work/calibre-2.15.0/setup/extensions.py", line 456, in build
+ if not parallel_build(jobs, self.info):
+ File "/scratch/wip/calibre/work/calibre-2.15.0/setup/parallel_build.py", line 32, in parallel_build
+ p = Pool(cpu_count)
+ File "/usr/pkg/lib/python2.7/multiprocessing/dummy/__init__.py", line 151, in Pool
+ return ThreadPool(processes, initializer, initargs)
+ File "/usr/pkg/lib/python2.7/multiprocessing/pool.py", line 718, in __init__
+ Pool.__init__(self, processes, initializer, initargs)
+ File "/usr/pkg/lib/python2.7/multiprocessing/pool.py", line 159, in __init__
+ self._repopulate_pool()
+ File "/usr/pkg/lib/python2.7/multiprocessing/pool.py", line 223, in _repopulate_pool
+ w.start()
+ File "/usr/pkg/lib/python2.7/multiprocessing/dummy/__init__.py", line 75, in start
+ threading.Thread.start(self)
+ File "/usr/pkg/lib/python2.7/threading.py", line 745, in start
+ _start_new_thread(self.__bootstrap, ())
+thread.error: can't start new thread
+ *** Error code 1
+
+(The same chunk works fine in the interactive shell, not sure why
+it so reliably breaks. -- wiz 20150207)
+
+See also
+http://debian.2.n7.nabble.com/Bug-760865-calibre-FTBFS-on-mips-thread-error-can-t-start-new-thread-td3353306.html
+
+--- setup/build_environment.py.orig 2015-02-07 14:26:27.000000000 +0000
++++ setup/build_environment.py
+@@ -43,11 +43,7 @@ if iswindows:
+ import win32api
+ cpu_count = win32api.GetSystemInfo()[5]
+ else:
+- from multiprocessing import cpu_count
+- try:
+- cpu_count = cpu_count()
+- except NotImplementedError:
+- cpu_count = 1
++ cpu_count = 1
+
+ def run_pkgconfig(name, envvar, default, flag, prefix):
+ ans = []
diff --git a/misc/calibre/patches/patch-setup_extensions.py b/misc/calibre/patches/patch-setup_extensions.py
index b16912cd8ee..a8d20f704a3 100644
--- a/misc/calibre/patches/patch-setup_extensions.py
+++ b/misc/calibre/patches/patch-setup_extensions.py
@@ -1,15 +1,15 @@
-$NetBSD: patch-setup_extensions.py,v 1.4 2014/04/16 17:22:30 wiz Exp $
+$NetBSD: patch-setup_extensions.py,v 1.5 2015/02/08 00:37:10 wiz Exp $
-Correct directory name.
+Fix build for pictureflow.
---- setup/extensions.py.orig 2014-04-04 02:33:40.000000000 +0000
+--- setup/extensions.py.orig 2014-08-29 03:59:29.000000000 +0000
+++ setup/extensions.py
-@@ -567,7 +567,7 @@ class Build(Command):
- self.check_call(qmc + ['qtcurve.pro'])
- self.check_call([make]+([] if iswindows else ['-j%d'%(cpu_count()
- or 1)]))
-- src = (glob.glob('*.so') + glob.glob('release/*.dll') +
-+ src = (glob.glob('.libs/*.so') + glob.glob('release/*.dll') +
- glob.glob('*.dylib'))
- ext = 'pyd' if iswindows else 'so'
- if not os.path.exists(dest):
+@@ -602,7 +602,7 @@ class Build(Command):
+ if iswindows:
+ qmc += ['-spec', 'win32-msvc2008']
+ fext = 'dll' if iswindows else 'dylib' if isosx else 'so'
+- name = '%s%s.%s' % ('release/' if iswindows else 'lib', sip['target'], fext)
++ name = '%s%s.%s' % ('release/' if iswindows else '.libs/lib', sip['target'], fext)
+ try:
+ os.chdir(src_dir)
+ if self.newer(dest, sip['headers'] + sip['sources'] + ext.sources + ext.headers):
diff --git a/misc/calibre/patches/patch-src_calibre_linux.py b/misc/calibre/patches/patch-src_calibre_linux.py
index 84530866733..b996190450a 100644
--- a/misc/calibre/patches/patch-src_calibre_linux.py
+++ b/misc/calibre/patches/patch-src_calibre_linux.py
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_calibre_linux.py,v 1.4 2014/07/12 15:48:02 wiz Exp $
+$NetBSD: patch-src_calibre_linux.py,v 1.5 2015/02/08 00:37:10 wiz Exp $
Lifted from ArchLinux, saves mime and desktop files on disk
instead of trying to add them directly.
@@ -7,9 +7,9 @@ See https://www.archlinux.org/packages/community/x86_64/calibre/ ->
https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/calibre ->
https://projects.archlinux.org/svntogit/community.git/plain/trunk/desktop_integration.patch?h=packages/calibre
---- src/calibre/linux.py.orig 2014-07-11 02:19:43.000000000 +0000
+--- src/calibre/linux.py.orig 2014-08-29 03:59:29.000000000 +0000
+++ src/calibre/linux.py
-@@ -644,18 +644,6 @@ class PostInstall:
+@@ -691,18 +691,6 @@ class PostInstall:
self.setup_completion()
if islinux or isbsd:
self.setup_desktop_integration()
@@ -28,7 +28,7 @@ https://projects.archlinux.org/svntogit/community.git/plain/trunk/desktop_integr
if warn is None and self.warnings:
self.info('\n\nThere were %d warnings\n'%len(self.warnings))
-@@ -729,56 +717,39 @@ class PostInstall:
+@@ -776,56 +764,39 @@ class PostInstall:
with TemporaryDirectory() as tdir, CurrentDir(tdir), \
PreserveMIMEDefaults():
@@ -99,3 +99,12 @@ https://projects.archlinux.org/svntogit/community.git/plain/trunk/desktop_integr
f.write(GUI)
write_mimetypes(f)
f.close()
+@@ -845,7 +816,7 @@ class PostInstall:
+
+ APPDATA = get_appdata()
+ for x in des:
+- cmd = ['xdg-desktop-menu', 'install', '--noupdate', './'+x]
++ cmd = ['xdg-desktop-menu', 'install', '--noupdate', appdata + '/../applications/'+x]
+ cc(' '.join(cmd), shell=True)
+ self.menu_resources.append(x)
+ ak = x.partition('.')[0]