pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/calibre1 Re-Import calibre-1.48.0nb4 from misc/ca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32b94a8d9a65
branches:  trunk
changeset: 646345:32b94a8d9a65
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Feb 08 00:32:34 2015 +0000

description:
Re-Import calibre-1.48.0nb4 from misc/calibre as misc/calibre1
in preparation of update of former to 2.18.

calibre is a ebook library management application. Its features are
divided into the following categories:

* Library Management
* Format conversion (all major ebook formats can be converted from)
* Syncing to ebook reader devices
* Fetching news from the web and converting it into ebook form
* Viewing many different ebook formats
* Giving you access to your book collection over the internet using
  just a browser

diffstat:

 misc/calibre1/DESCR                              |    10 +
 misc/calibre1/Makefile                           |   160 +
 misc/calibre1/PLIST                              |  3431 ++++++++++++++++++++++
 misc/calibre1/distinfo                           |    10 +
 misc/calibre1/patches/patch-setup_extensions.py  |    15 +
 misc/calibre1/patches/patch-src_calibre_linux.py |   101 +
 6 files changed, 3727 insertions(+), 0 deletions(-)

diffs (truncated from 3751 to 300 lines):

diff -r 0215ad70939a -r 32b94a8d9a65 misc/calibre1/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/calibre1/DESCR       Sun Feb 08 00:32:34 2015 +0000
@@ -0,0 +1,10 @@
+calibre is a ebook library management application. Its features are
+divided into the following categories:
+
+* Library Management
+* Format conversion (all major ebook formats can be converted from)
+* Syncing to ebook reader devices
+* Fetching news from the web and converting it into ebook form
+* Viewing many different ebook formats
+* Giving you access to your book collection over the internet using
+  just a browser
diff -r 0215ad70939a -r 32b94a8d9a65 misc/calibre1/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/calibre1/Makefile    Sun Feb 08 00:32:34 2015 +0000
@@ -0,0 +1,160 @@
+# $NetBSD: Makefile,v 1.1 2015/02/08 00:32:34 wiz Exp $
+
+DISTNAME=      calibre-1.48.0
+PKGREVISION=   4
+CATEGORIES=    misc
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=calibre/}
+EXTRACT_SUFX=  .tar.xz
+DISTFILES=     ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+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+=      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+=      ${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}-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
+
+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_TOOLS+=    pkg-config pax
+PYTHON_VERSIONS_ACCEPTED=      27
+PYTHON_VERSIONS_INCOMPATIBLE=  33 34 # 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
+INSTALLATION_DIRS=     share/calibre/recipes
+
+FIX_PYTHON_PATHS+=     *.py
+FIX_PYTHON_PATHS+=     recipes/*.recipe
+FIX_PYTHON_PATHS+=     */*.py
+FIX_PYTHON_PATHS+=     */*/*.py
+FIX_PYTHON_PATHS+=     */*/*/*.py
+FIX_PYTHON_PATHS+=     */*/*/*/*.py
+FIX_PYTHON_PATHS+=     */*/*/*/*/*.py
+FIX_PYTHON_PATHS+=     */*/*/*/*/*/*.py
+
+SUBST_CLASSES+=                prefix
+SUBST_SED.prefix=      -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt4/bin/qmake',"
+SUBST_MESSAGE.prefix=  Fixing path to QMAKE
+SUBST_STAGE.prefix=    post-patch
+SUBST_FILES.prefix=    setup/build_environment.py
+
+# This one is for /usr/bin/env python (or even /usr/bin/env Python or /usr/bin/python2)
+SUBST_CLASSES+=                path
+SUBST_SED.path=                -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN},"
+SUBST_MESSAGE.path=    Fixing path to python.
+SUBST_STAGE.path=      post-patch
+SUBST_FILES.path=      ${FIX_PYTHON_PATHS}
+
+# These ones are for replacing python[0-9*] with PYTHONBIN
+REPLACE_PYTHON+=       recipes/animal_politico.recipe
+REPLACE_PYTHON+=       recipes/respekt_magazine.recipe
+REPLACE_PYTHON+=       recipes/respekt_web.recipe
+REPLACE_PYTHON+=       recipes/kompiutierra.recipe
+REPLACE_PYTHON+=       recipes/trouw.recipe
+REPLACE_PYTHON+=       src/calibre/ebooks/markdown/extensions/*.py
+REPLACE_PYTHON+=       src/calibre/ebooks/metadata/odt.py
+REPLACE_PYTHON+=       src/calibre/utils/*.py
+REPLACE_PYTHON+=       src/odf/*.py
+
+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+=            WITH_USB=no
+
+# Let's depend on the ones we have in pkgsrc instead of the bundled ones.
+pre-configure:
+       cd ${WRKSRC} && rm -rf src/cherrypy src/pyPdf src/html5lib src/chardet
+
+# Turn off x bits on non-executable files.
+post-extract:
+       find  ${WRKSRC}/src/calibre/devices ${WRKSRC}/src/calibre/ebooks ${WRKSRC}/src/calibre/web -name '*.py' -exec chmod a-x \{} \;
+       find  ${WRKSRC}/resources/images/mimetypes  -name '*.png' -exec chmod a-x \{} \;
+       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 .
+
+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
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/versioned_dependencies.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/chmlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libusb+= libusb>=0.1.12
+.include "../../devel/libusb/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+BUILDLINK_API_DEPENDS.ImageMagick+=    ImageMagick>=6.5.9
+.include "../../graphics/ImageMagick/buildlink3.mk"
+BUILDLINK_API_DEPENDS.pyimaging+=      ${PYPKGPREFIX}-imaging>=1.1.6
+.include "../../graphics/py-imaging/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libwmf+= libwmf>=0.2.8
+.include "../../graphics/libwmf/buildlink3.mk"
+.include "../../lang/python/egg.mk"
+_PYSETUPTOOLSINSTALLARGS=      # empty
+# Get rid of --root=${DESTDIR}, use our own version from above instead.
+# because the setup.py is not the standard one and behaves differently.
+_PYSETUPINSTALLARGS=   ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS}
+#.include "../../lang/python/extension.mk"
+.include "../../print/podofo/buildlink3.mk"
+# ??? BUILDLINK_API_DEPENDS.podofo+=   podofo>=0.8.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 "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../sysutils/hal/buildlink3.mk"
+BUILDLINK_API_DEPENDS.py-dbus+=        ${PYPKGPREFIX}-dbus>=0.82.2
+.include "../../sysutils/py-dbus/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.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 "../../mk/bsd.pkg.mk"
diff -r 0215ad70939a -r 32b94a8d9a65 misc/calibre1/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/calibre1/PLIST       Sun Feb 08 00:32:34 2015 +0000
@@ -0,0 +1,3431 @@
+@comment $NetBSD: PLIST,v 1.1 2015/02/08 00:32:34 wiz Exp $
+bin/calibre
+bin/calibre-complete
+bin/calibre-customize
+bin/calibre-debug
+bin/calibre-parallel
+bin/calibre-server
+bin/calibre-smtp
+bin/calibredb
+bin/ebook-convert
+bin/ebook-device
+bin/ebook-edit
+bin/ebook-meta
+bin/ebook-polish
+bin/ebook-viewer
+bin/fetch-ebook-metadata
+bin/lrf2lrs
+bin/lrfviewer
+bin/lrs2lrf
+bin/markdown-calibre
+bin/web2disk
+lib/calibre/calibre/__init__.py
+lib/calibre/calibre/constants.py
+lib/calibre/calibre/customize/__init__.py
+lib/calibre/calibre/customize/builtins.py
+lib/calibre/calibre/customize/conversion.py
+lib/calibre/calibre/customize/profiles.py
+lib/calibre/calibre/customize/ui.py
+lib/calibre/calibre/customize/zipplugin.py
+lib/calibre/calibre/db/__init__.py
+lib/calibre/calibre/db/adding.py
+lib/calibre/calibre/db/backend.py
+lib/calibre/calibre/db/backup.py
+lib/calibre/calibre/db/cache.py
+lib/calibre/calibre/db/categories.py
+lib/calibre/calibre/db/delete_service.py
+lib/calibre/calibre/db/errors.py
+lib/calibre/calibre/db/fields.py
+lib/calibre/calibre/db/lazy.py
+lib/calibre/calibre/db/legacy.py
+lib/calibre/calibre/db/locking.py
+lib/calibre/calibre/db/restore.py
+lib/calibre/calibre/db/schema_upgrades.py
+lib/calibre/calibre/db/search.py
+lib/calibre/calibre/db/tables.py
+lib/calibre/calibre/db/tests/__init__.py
+lib/calibre/calibre/db/tests/add_remove.py
+lib/calibre/calibre/db/tests/base.py
+lib/calibre/calibre/db/tests/filesystem.py
+lib/calibre/calibre/db/tests/legacy.py
+lib/calibre/calibre/db/tests/locking.py
+lib/calibre/calibre/db/tests/main.py
+lib/calibre/calibre/db/tests/profiling.py
+lib/calibre/calibre/db/tests/reading.py
+lib/calibre/calibre/db/tests/utils.py
+lib/calibre/calibre/db/tests/writing.py
+lib/calibre/calibre/db/utils.py
+lib/calibre/calibre/db/view.py
+lib/calibre/calibre/db/write.py
+lib/calibre/calibre/debug.py
+lib/calibre/calibre/devices/__init__.py
+lib/calibre/calibre/devices/android/__init__.py
+lib/calibre/calibre/devices/android/driver.py
+lib/calibre/calibre/devices/apple/__init__.py
+lib/calibre/calibre/devices/apple/driver.py
+lib/calibre/calibre/devices/apple/itunes.py
+lib/calibre/calibre/devices/bambook/__init__.py
+lib/calibre/calibre/devices/bambook/driver.py
+lib/calibre/calibre/devices/bambook/libbambookcore.py
+lib/calibre/calibre/devices/binatone/__init__.py
+lib/calibre/calibre/devices/binatone/driver.py
+lib/calibre/calibre/devices/blackberry/__init__.py
+lib/calibre/calibre/devices/blackberry/driver.py
+lib/calibre/calibre/devices/boeye/__init__.py
+lib/calibre/calibre/devices/boeye/driver.py
+lib/calibre/calibre/devices/cli.py
+lib/calibre/calibre/devices/cybook/__init__.py
+lib/calibre/calibre/devices/cybook/driver.py
+lib/calibre/calibre/devices/cybook/t2b.py
+lib/calibre/calibre/devices/cybook/t4b.py
+lib/calibre/calibre/devices/eb600/__init__.py
+lib/calibre/calibre/devices/eb600/driver.py
+lib/calibre/calibre/devices/edge/__init__.py
+lib/calibre/calibre/devices/edge/driver.py
+lib/calibre/calibre/devices/errors.py
+lib/calibre/calibre/devices/eslick/__init__.py
+lib/calibre/calibre/devices/eslick/driver.py
+lib/calibre/calibre/devices/folder_device/__init__.py
+lib/calibre/calibre/devices/folder_device/driver.py
+lib/calibre/calibre/devices/hanlin/__init__.py
+lib/calibre/calibre/devices/hanlin/driver.py
+lib/calibre/calibre/devices/hanvon/__init__.py
+lib/calibre/calibre/devices/hanvon/driver.py
+lib/calibre/calibre/devices/idevice/__init__.py
+lib/calibre/calibre/devices/idevice/libimobiledevice.py
+lib/calibre/calibre/devices/idevice/parse_xml.py
+lib/calibre/calibre/devices/iliad/__init__.py
+lib/calibre/calibre/devices/iliad/driver.py
+lib/calibre/calibre/devices/interface.py
+lib/calibre/calibre/devices/irexdr/__init__.py
+lib/calibre/calibre/devices/irexdr/driver.py
+lib/calibre/calibre/devices/iriver/__init__.py
+lib/calibre/calibre/devices/iriver/driver.py
+lib/calibre/calibre/devices/jetbook/__init__.py
+lib/calibre/calibre/devices/jetbook/driver.py
+lib/calibre/calibre/devices/kindle/__init__.py
+lib/calibre/calibre/devices/kindle/apnx.py
+lib/calibre/calibre/devices/kindle/bookmark.py
+lib/calibre/calibre/devices/kindle/driver.py
+lib/calibre/calibre/devices/kobo/__init__.py
+lib/calibre/calibre/devices/kobo/bookmark.py
+lib/calibre/calibre/devices/kobo/books.py
+lib/calibre/calibre/devices/kobo/driver.py
+lib/calibre/calibre/devices/manager.py
+lib/calibre/calibre/devices/mime.py
+lib/calibre/calibre/devices/misc.py
+lib/calibre/calibre/devices/mtp/__init__.py
+lib/calibre/calibre/devices/mtp/base.py



Home | Main Index | Thread Index | Old Index