aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/calibre
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-07-02 02:34:45 +0800
committermadpilot <madpilot@FreeBSD.org>2013-07-02 02:34:45 +0800
commit55fa52572b4a6b7dc714d9a9c21a0f92e29e318d (patch)
treee730bc8f158ea528a34fe2a1167b48594d18e6f6 /deskutils/calibre
parentc71baa0bfea8a7576d0121bbbc6d354ebf3b7650 (diff)
downloadfreebsd-ports-gnome-55fa52572b4a6b7dc714d9a9c21a0f92e29e318d.tar.gz
freebsd-ports-gnome-55fa52572b4a6b7dc714d9a9c21a0f92e29e318d.tar.zst
freebsd-ports-gnome-55fa52572b4a6b7dc714d9a9c21a0f92e29e318d.zip
- Update to 0.9.37
- Add rc script for calibre-server PR: ports/180046 Submitted by: Rusty Nejdl <rnejdl@ringofsaturn.com> (maintainer)
Diffstat (limited to 'deskutils/calibre')
-rw-r--r--deskutils/calibre/Makefile7
-rw-r--r--deskutils/calibre/distinfo4
-rw-r--r--deskutils/calibre/files/calibre.in66
-rw-r--r--deskutils/calibre/pkg-plist26
4 files changed, 95 insertions, 8 deletions
diff --git a/deskutils/calibre/Makefile b/deskutils/calibre/Makefile
index 5d5b7b8f1467..e334accfa318 100644
--- a/deskutils/calibre/Makefile
+++ b/deskutils/calibre/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= calibre
-PORTVERSION= 0.9.30
+PORTVERSION= 0.9.37
CATEGORIES= deskutils python
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/
@@ -46,12 +46,15 @@ RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils \
pdftohtml:${PORTSDIR}/graphics/poppler-utils \
lshal:${PORTSDIR}/sysutils/hal
+USE_RC_SUBR= calibre
+EXTRACT_BEFORE_ARGS= -x -s '/^calibre/~-src/' -f
+
USES= shared-mime-info
USE_XZ= yes
USE_PYTHON= 2.7
USE_QT4= qmake_build moc_build
INSTALLS_ICONS= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}-src
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= FC_INC_DIR="${LOCALBASE}/include/fontconfig" \
diff --git a/deskutils/calibre/distinfo b/deskutils/calibre/distinfo
index 84c0ee3d193a..d738d31d09ed 100644
--- a/deskutils/calibre/distinfo
+++ b/deskutils/calibre/distinfo
@@ -1,2 +1,2 @@
-SHA256 (calibre-0.9.30.tar.xz) = eab88d0d5ade70dd1bae9522f444ddd3ab71b2d57a159d6ecc6276cd674fc927
-SIZE (calibre-0.9.30.tar.xz) = 28894864
+SHA256 (calibre-0.9.37.tar.xz) = b0c88ae578b192a4906f40c497c075fcf5edc887e1878a8800512abcdd255daf
+SIZE (calibre-0.9.37.tar.xz) = 29203040
diff --git a/deskutils/calibre/files/calibre.in b/deskutils/calibre/files/calibre.in
new file mode 100644
index 000000000000..0081429b1d80
--- /dev/null
+++ b/deskutils/calibre/files/calibre.in
@@ -0,0 +1,66 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: calibre
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable calibre_server:
+#
+# calibre_enable (bool): Set it to "YES" to enable calibre
+# Default is "NO".
+# calibre_port (int): port that calibre_server listens on
+# Default is 8080
+# calibre_user (string): user that calibre_server runs as
+# Default is calibre
+# calibre_username (string): username for calibre authentication
+# Default is calibre
+# calibre_password (string): If set then access is restricted
+# default is unrestricted
+# calibre_url_prefix (string): prefix to append to all URLs
+# default is unset
+# calibre_library (string): path to library folder to serve content from
+#
+#
+##########################################################
+
+. /etc/rc.subr
+
+name=calibre
+rcvar=calibre_enable
+
+load_rc_config $name
+
+: ${calibre_enable:=NO}
+: ${calibre_user:=calibre}
+: ${calibre_library:=/nonexistent}
+
+pidfile=/var/run/${name}/${name}.pid
+command=/usr/local/bin/calibre-server
+command_interpreter=python2.7
+required_dirs=${calibre_library}
+
+start_cmd=${name}_start
+
+start_precmd="install -d -o ${calibre_user} -m755 /var/run/${name}"
+
+calibre_start()
+{
+ if [ ! -z "${calibre_port}" ]; then
+ command_args="${command_args} --port=${calibre_port}"
+ fi
+ if [ ! -z "${calibre_username}" ]; then
+ command_args="${command_args} --username=${calibre_username}"
+ fi
+ if [ ! -z "${calibre_password}" ]; then
+ command_args="${command_args} --password=${calibre_password}"
+ fi
+ if [ ! -z "${calibre_url_prefix}" ]; then
+ command_args="${command_args} --url_prefx=${calibre_url_prefix}"
+ fi
+
+ /usr/sbin/daemon -f -u ${calibre_user} -p ${pidfile} ${command} ${command_args} --with-library ${calibre_library}
+}
+
+run_rc_command "$1"
diff --git a/deskutils/calibre/pkg-plist b/deskutils/calibre/pkg-plist
index 0ee17a452cfd..fbd0913ee023 100644
--- a/deskutils/calibre/pkg-plist
+++ b/deskutils/calibre/pkg-plist
@@ -82,6 +82,9 @@ 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/libimobiledevice.py
+lib/calibre/calibre/devices/idevice/parse_xml.py
+lib/calibre/calibre/devices/idevice/__init__.py
lib/calibre/calibre/devices/iliad/__init__.py
lib/calibre/calibre/devices/iliad/driver.py
lib/calibre/calibre/devices/interface.py
@@ -166,6 +169,7 @@ lib/calibre/calibre/ebooks/conversion/plugins/azw4_input.py
lib/calibre/calibre/ebooks/conversion/plugins/chm_input.py
lib/calibre/calibre/ebooks/conversion/plugins/comic_input.py
lib/calibre/calibre/ebooks/conversion/plugins/djvu_input.py
+lib/calibre/calibre/ebooks/conversion/plugins/docx_input.py
lib/calibre/calibre/ebooks/conversion/plugins/epub_input.py
lib/calibre/calibre/ebooks/conversion/plugins/epub_output.py
lib/calibre/calibre/ebooks/conversion/plugins/fb2_input.py
@@ -209,8 +213,17 @@ lib/calibre/calibre/ebooks/docx/names.py
lib/calibre/calibre/ebooks/docx/styles.py
lib/calibre/calibre/ebooks/docx/__init__.py
lib/calibre/calibre/ebooks/docx/char_styles.py
+lib/calibre/calibre/ebooks/docx/cleanup.py
lib/calibre/calibre/ebooks/docx/container.py
+lib/calibre/calibre/ebooks/docx/dump.py
+lib/calibre/calibre/ebooks/docx/fonts.py
+lib/calibre/calibre/ebooks/docx/footnotes.py
+lib/calibre/calibre/ebooks/docx/images.py
+lib/calibre/calibre/ebooks/docx/numbering.py
+lib/calibre/calibre/ebooks/docx/tables.py
+lib/calibre/calibre/ebooks/docx/theme.py
lib/calibre/calibre/ebooks/docx/to_html.py
+lib/calibre/calibre/ebooks/docx/toc.py
lib/calibre/calibre/ebooks/docx/block_styles.py
lib/calibre/calibre/ebooks/docx/lcid.py
lib/calibre/calibre/ebooks/epub/__init__.py
@@ -396,6 +409,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/embed_fonts.py
lib/calibre/calibre/ebooks/oeb/transforms/filenames.py
lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py
lib/calibre/calibre/ebooks/oeb/transforms/guide.py
@@ -451,6 +465,7 @@ lib/calibre/calibre/ebooks/pdf/render/graphics.py
lib/calibre/calibre/ebooks/pdf/render/links.py
lib/calibre/calibre/ebooks/pdf/render/serialize.py
lib/calibre/calibre/ebooks/pdf/render/test.py
+lib/calibre/calibre/ebooks/pdf/render/toc.py
lib/calibre/calibre/ebooks/pdf/writer.py
lib/calibre/calibre/ebooks/pml/__init__.py
lib/calibre/calibre/ebooks/pml/pmlconverter.py
@@ -604,6 +619,8 @@ lib/calibre/calibre/gui2/convert/comic_input.py
lib/calibre/calibre/gui2/convert/comic_input_ui.py
lib/calibre/calibre/gui2/convert/debug.py
lib/calibre/calibre/gui2/convert/debug_ui.py
+lib/calibre/calibre/gui2/convert/docx_input_ui.py
+lib/calibre/calibre/gui2/convert/docx_input.py
lib/calibre/calibre/gui2/convert/djvu_input.py
lib/calibre/calibre/gui2/convert/djvu_input_ui.py
lib/calibre/calibre/gui2/convert/epub_output.py
@@ -873,7 +890,6 @@ lib/calibre/calibre/gui2/store/stores/ebookshoppe_uk_plugin.py
lib/calibre/calibre/gui2/store/stores/eharlequin_plugin.py
lib/calibre/calibre/gui2/store/stores/eknigi_plugin.py
lib/calibre/calibre/gui2/store/stores/empik_plugin.py
-lib/calibre/calibre/gui2/store/stores/escapemagazine_plugin.py
lib/calibre/calibre/gui2/store/stores/feedbooks_plugin.py
lib/calibre/calibre/gui2/store/stores/foyles_uk_plugin.py
lib/calibre/calibre/gui2/store/stores/google_books_plugin.py
@@ -904,6 +920,7 @@ lib/calibre/calibre/gui2/store/stores/publio_plugin.py
lib/calibre/calibre/gui2/store/stores/rw2010_plugin.py
lib/calibre/calibre/gui2/store/stores/smashwords_plugin.py
lib/calibre/calibre/gui2/store/stores/sony_plugin.py
+lib/calibre/calibre/gui2/store/stores/sony_au_plugin.py
lib/calibre/calibre/gui2/store/stores/virtualo_plugin.py
lib/calibre/calibre/gui2/store/stores/waterstones_uk_plugin.py
lib/calibre/calibre/gui2/store/stores/weightless_books_plugin.py
@@ -943,6 +960,7 @@ lib/calibre/calibre/gui2/viewer/printing.py
lib/calibre/calibre/gui2/viewer/table_popup.py
lib/calibre/calibre/gui2/viewer/toc.py
lib/calibre/calibre/gui2/widgets.py
+lib/calibre/calibre/gui2/widgets2.py
lib/calibre/calibre/gui2/wizard/__init__.py
lib/calibre/calibre/gui2/wizard/device_ui.py
lib/calibre/calibre/gui2/wizard/finish_ui.py
@@ -1008,8 +1026,6 @@ lib/calibre/calibre/plugins/woff.so
lib/calibre/calibre/ptempfile.py
lib/calibre/calibre/startup.py
lib/calibre/calibre/test_build.py
-lib/calibre/calibre/trac/__init__.py
-lib/calibre/calibre/trac/bzr_commit_plugin.py
lib/calibre/calibre/translations/__init__.py
lib/calibre/calibre/translations/dynamic.py
lib/calibre/calibre/translations/msgfmt.py
@@ -1120,12 +1136,14 @@ lib/calibre/calibre/utils/zipfile.py
lib/calibre/calibre/web/__init__.py
lib/calibre/calibre/web/feeds/__init__.py
lib/calibre/calibre/web/feeds/feedparser.py
+lib/calibre/calibre/web/feeds/jsnews.py
lib/calibre/calibre/web/feeds/news.py
lib/calibre/calibre/web/feeds/recipes/__init__.py
lib/calibre/calibre/web/feeds/recipes/collection.py
lib/calibre/calibre/web/feeds/recipes/model.py
lib/calibre/calibre/web/feeds/templates.py
lib/calibre/calibre/web/fetch/__init__.py
+lib/calibre/calibre/web/fetch/javascript.py
lib/calibre/calibre/web/fetch/simple.py
lib/calibre/calibre/web/jsbrowser/__init__.py
lib/calibre/calibre/web/jsbrowser/browser.py
@@ -1932,7 +1950,6 @@ share/zsh/site-functions/_calibre
@dirrm lib/calibre/calibre/utils/chm
@dirrm lib/calibre/calibre/utils
@dirrm lib/calibre/calibre/translations
-@dirrm lib/calibre/calibre/trac
@dirrm lib/calibre/calibre/plugins
@dirrm lib/calibre/calibre/library/server
@dirrm lib/calibre/calibre/library/catalogs
@@ -2039,6 +2056,7 @@ share/zsh/site-functions/_calibre
@dirrm lib/calibre/calibre/devices/iriver
@dirrm lib/calibre/calibre/devices/irexdr
@dirrm lib/calibre/calibre/devices/iliad
+@dirrm lib/calibre/calibre/devices/idevice
@dirrm lib/calibre/calibre/devices/hanvon
@dirrm lib/calibre/calibre/devices/hanlin
@dirrm lib/calibre/calibre/devices/folder_device