diff options
author | Ben de Groot <yngwin@gentoo.org> | 2015-08-05 09:10:43 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2015-08-05 09:10:43 +0000 |
commit | fa85eb4897d5f5dd909f9f25455d73dafd592eed (patch) | |
tree | 9f4ba0937ab6631541a30a4993f373812430a410 /app-text | |
parent | Dropping myself from maintainers (diff) | |
download | historical-fa85eb4897d5f5dd909f9f25455d73dafd592eed.tar.gz historical-fa85eb4897d5f5dd909f9f25455d73dafd592eed.tar.bz2 historical-fa85eb4897d5f5dd909f9f25455d73dafd592eed.zip |
Version bump. Update SRC_URI and deps.
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Manifest-Sign-Key: 0x4FDF9CFD2FAC514E!
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/calibre/ChangeLog | 7 | ||||
-rw-r--r-- | app-text/calibre/Manifest | 32 | ||||
-rw-r--r-- | app-text/calibre/calibre-2.33.0.ebuild | 228 |
3 files changed, 251 insertions, 16 deletions
diff --git a/app-text/calibre/ChangeLog b/app-text/calibre/ChangeLog index c2849fe1d145..428122a7dd1d 100644 --- a/app-text/calibre/ChangeLog +++ b/app-text/calibre/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-text/calibre # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.347 2015/07/01 08:40:42 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.348 2015/08/05 09:10:29 yngwin Exp $ + +*calibre-2.33.0 (05 Aug 2015) + + 05 Aug 2015; Ben de Groot <yngwin@gentoo.org> +calibre-2.33.0.ebuild: + Version bump. Update SRC_URI and deps. *calibre-2.31.0 (01 Jul 2015) diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest index ba928478223d..ebf164a9fb84 100644 --- a/app-text/calibre/Manifest +++ b/app-text/calibre/Manifest @@ -13,29 +13,31 @@ DIST calibre-1.47.0.tar.xz 36581960 SHA256 efeb71a5bb4742a9c0a99038fdd97baa55c35 DIST calibre-1.48.0.tar.xz 35126680 SHA256 e704090f6611c5e374252c3f1b58e077ccd3170a3ea39893e5bf687287abf472 SHA512 0b70f16b10e6c9bbc24955baf74e8fc8e116aaaa1d75d018f5135f657606286de3bfffbebf3b367b2be52708deb05a162de919bba930dcbff59c4ec15c13b28d WHIRLPOOL 1a07a8c916119e92bdf41276db1aef572b704271808bcd6c3a0a4e823c8a76bd2f4267765dee2f378430beec401288b25b35dee6859980adf5b7a9ebe885eff9 DIST calibre-2.27.0.tar.xz 36776876 SHA256 6567d58a9878f4ad30756c5ce984fe555393fd94167cb23e279c2a83450e2d8e SHA512 0a87549e40f6a3da5489e29fd6969a16ca1e2d8e52ee4d1520ec146b973c3bf4aac73b182b6bb8a0d520137ebe71804543d65ca313ae1560064258c7fa9ff5fa WHIRLPOOL 11f5157c6e1121b68f50f0a923956e6130233aa04790a61ead3dd36ef601cceb15f6d58e5434e0d94cddbbcdc0f9ea84bfb0fa3839752795d8b6271d39679c90 DIST calibre-2.31.0.tar.xz 37521892 SHA256 7f7e181d3247e41a1122d572a1980fc4ab1926a393aaafe3e26f5345c4602490 SHA512 099450acb2df68800b810ce19d6c8f650b3484d37ebbf30d74f5b26b3724db326d4c4c0d6cc960bd685adfe24e08bc380449b3ee0957275aad76e95fdf60a910 WHIRLPOOL 0673f3caf8c7fd2252d40d2c2a9b5cf886c03afe9a725317031570aaf7f0a8177cb698a34882ba0344de40cdd30826a93f8504d1ef82da88329fee83708b2033 +DIST calibre-2.33.0.tar.xz 37269672 SHA256 0917248454d120f0a3c6c1aec90ad88818ccc1b7747935acce263a272b8b3548 SHA512 1bc63baecd1c1cd3c239b89c102696d39bd7975860bfc3d9fd6cd4bfdbe1e3b81ed6ec40ff3999568d9b0be3fa46efe0490d1c86edf52d67a84fdc7a890e9525 WHIRLPOOL f59ce44f513730675d59fdf42bce4d7c142c39fcd3e148215686604bbf5c9ac18af1dde7f923c25b68edaec6fa3cccce1f4d5066ea7e1c0361491e94e1d6cd93 EBUILD calibre-1.20.ebuild 6864 SHA256 f72bad654047edc0d438edbef206230658563b4b4aede88779d34470f40d37ba SHA512 7448c04c3d4ab79da6a25f103ec13f980dae3b65bddd81c71a5d2a369816282e506f89c77b4fccf218f0dad3af4393fa928b90be4eb03c3abc57be4c07e3a98a WHIRLPOOL d9626f4350c65a84974acc361ff3194674c1a8e21d88e3fb7c3e59462dc93e6a73d0fcfb5d77e72952a0ea1e10f7bcaf74e01c7c0de3eabe494d06c690f2801d EBUILD calibre-1.47.ebuild 7928 SHA256 ade95436b733ff6f03bca9389d3c42b45c5786ee62dcf8d3360e0c39adf1fb44 SHA512 13f53ba909b309368b413d16f125e44cb2a9ac0e927b19ba6e898b24f77768a4f862e442846ab4570410a4cc01b4e6a308aa85905b3bfe1ce2eb8d814a38344c WHIRLPOOL 74c4ee4e9cad8936ecd39e8fb3fcbba46c19dc59ab3629165682c51f5eea833885226a798e3949decbd308d5e63a5c937902b2c79215e72592c2ca9f411609cb EBUILD calibre-1.48-r1.ebuild 7828 SHA256 096ce258db2208a54df84876cecd2ae2a88ac17097c6430651b171506228b43c SHA512 0808b869979f3ad50c67bcc8e6e9626a343fcde1f9804036bb104c6697a0fb1046434ce72ffcd491cebfb0eedc1da3b28890cdc6530a94a25266feaab6c1d24a WHIRLPOOL 53fa6241fb283369bff2e7d532e9b2f3f36488139490263ac68b2af5cc67cd3c98caec73c4acc9eba2e818bc7b3e13d2e40faa3537ce8b0978691c61ec5f30a2 EBUILD calibre-2.27.0.ebuild 8115 SHA256 976d399e78ca6b8605fd194cc14664897d5a6f74fc31b6f91a91d1bee9d593f3 SHA512 8997472aeee360563899ea919bf798d41d420b44529f26f814b22274590132829fd30a026d3d0425ddbffc8b781963ebe9d4c062d27b6632c53b6f56362470e0 WHIRLPOOL d0fbcb681dbfcbcfbc2683d9f0e7c3f69445b8a9784de8dbac5381d7d7b9d4f8bbb53aab7f92dd16f453b3347b77b2ffd56aba1272402654d71ddf1b49317985 EBUILD calibre-2.31.0.ebuild 8115 SHA256 3dd5d31c202d39e6afd2b87945622674207392a2469824d83131dec5c332a1ff SHA512 512b8540b77c6c7a99f3825b1b9e4fa6f1d7137c9aac1f059a6106af662fb689f44420b1ee699e83af65a1d94f1d269b744d825f5048dbb3bb1bf6a539631e4a WHIRLPOOL e59261cdcea1f9914af1e1fadf5c1d8acdb2b4eb86db539f8b3826edf372236b582fa1ee7f1afdb4e35a1e6a66f74acb74f6974b5a213c633d4d5cbff44d726d -MISC ChangeLog 55619 SHA256 54fe4969a495fb177507f3e634a4c40c73d999afa9a3e02057567964dc99f4d7 SHA512 3c413b8970bd3b5e7a58fb02850d63c41a6f8d893302f34a72f42da6f92d8803e7589f68c0cc6bca080c1767cfd43dd07f9aac0266be440bb78116cbca183d22 WHIRLPOOL 2f60ccf6741cda28c179bcbde604ed52d7e14a22164411d5b4c9f294fc242823bd6530af83766e265d25fda236ac3ce8aeae949fa95e260070022d34a3cec95d +EBUILD calibre-2.33.0.ebuild 8025 SHA256 2f7cb1f423c86ad14782d994702872bca84c6940464a9fc1410c04970dd519c1 SHA512 a3f1a7eb3e868f041bd07d1e2c62906c5321463670d63582ebfbe91ac0c2f96c0c6ffbf7a353c0b013da036552152a358418f01f5d5e64e7f413b8e37953ccdd WHIRLPOOL 974097179dd3f8c94e4d82230b10cf048c0a3ba152cb25cdad9fb96bf0f459a65970a0218ff6b21d523b3852d5bde99051d86ef5741080d95d5821443c3fc9bd +MISC ChangeLog 55764 SHA256 646fbdf0734a1e0b37bcbe60db314ed6d429f00855dbc5ad3998b421dc770162 SHA512 e5e3b325fb049600e53d40b0b57bd9cea6e85c42079c7fe7a237f103ed9c3ab2a4efc4d6e0805a1a2aac369fce402b431c3406a89c56df16e05f83e8e7b9275a WHIRLPOOL 74cdf07d68112e9c4a59fcbe7211708184df32f9c86af748382e706b8706d26e8d0dda3df9379d8b6fbba4cca758dcf51883e51d34077202657922f10fac499e MISC metadata.xml 341 SHA256 796a5a95967784ec0e9295b5745962d2a20dd678fd7425e6bd6414b9b1fbae33 SHA512 0fa9fd10e81ff337e7e7d9a55d492f4cbcee79fd1771497214c39c0c2491759ba0ce7f62a1aade44e2165617da40111d0ba3a3802b679db66f60e66bff70e2ca WHIRLPOOL bd14a2fa77fbf2f7e3e30725ef299809e11696d5779ea80d8252efcd64e79bad7db9c331f8617ce220cfeaa6136e932130db85aeecf35412f99d9957cf3e9f08 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1 -iQJ8BAEBCABmBQJVk6eOXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +iQJ8BAEBCABmBQJVwdMNXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5MTlDREQ0NUU5Mjc4RkU2RjJDNTAyNzU0 -RkRGOUNGRDJGQUM1MTRFAAoJEE/fnP0vrFFOX1IP/02Z6diWRjL2A4LsX5I69f78 -SonMvMJYX45R1wdz/9K6sT2WjDeRNVybfruFt4YaEzpOC65eB8yamcRCACkOMudU -nM8D4UgMSiTyxv54Qk/Mta/8/u+EHRKqHJESL8GhpSrbxIibBxiDON9XuwO/AVLD -NPb1bKAFrQOhInJYIZ1AIJ4JlOkY5G6s1CqKflVOMwoZQqxQUZ5eNonw1cFS83JQ -3NhrX8B+gz8u+NbeZCwgumckl4c3+RApMAXqjOerd1NED/LxVzybhV7ClUuSalUR -4zd7xfj//lFl8XAY0KUVHAPtraDmYjPz+wMqe4gJsXigVECEPMGolydsf1R0nldY -fmSXNiXbCZHqL+sa5YgIrBsVa/XDPYhkYCbZkSVWvbEe2ewSIDhBbiiUISqQ462g -uuIJjEszQQl4bQibp/8VKTAwRRU/JXCrillK08TA/MJL08uhIG7+ZKLcporfVSV1 -De9oIdvWJ0fZjMCK8V7hZ3iZ1HKiV04hr5c1t6R8SzPcwI1LVoMi0krn1YxxahzQ -H9y5F9AwJhBgoRdEbAmkNi5SWEOdQvlQkF0Ts+l7znxClpneyRReWnIAgvODHnlt -UWfEjOEENk9l+LeHfMFYhqagjzC2TPZoYCkk3R+lTXHM6fDIj0uZIff+dPx7shUx -fH6CojUEBterKssjOSUT -=UYE7 +RkRGOUNGRDJGQUM1MTRFAAoJEE/fnP0vrFFOC2UP/jhsP37205lLabZe7XlRtjZb +WKxr7X362exKqE19sDgo6GwadSYggGsEo9cGcldk43sJ/gr1d1X1vnPnwJeXlWvw +Q2p0JCqXeVxVbHGuxmtCzMudT79w3ecH9Z2uI1lwbrUSRkliuzmunrGkkHCINLe7 +fmWt7dLEWVcBMLk9wbtdgKgAXGkLO1ZviOGiSq+yGIezoe2D3j7EOV53/5j6lGBR +h/B9jwMVtpFY2j7Mn9GRICJAyO61Xy22pu5K+mPRfqazjlfmbrMSL2RuPHOiNOSA +rfu0Isp2HxX/jqDmVNRX6oeABd7U0Ums7hhoE4b0k4KUBpcVArT4RDcr7oT/bIjC +N7Vr2A+tXSJyMhHOJ/yNzixdH0o/n3qYssljbxzXmDoiH7C7i3APrzYIW1KKx1RE +zxvwg6i970Q1nrnoaNiQQsJSeWjHsOHxCyCAgxeqOJo9Bjf0W03bBGHUWGLr8v+a +UUjulX66KXxCsZXLkN2nexRmnSy7mvSCDsRUOZSRYJQRpLsmhHL0lcX48uLY+H1k +pdoex4ainVM7jc2pdjfF5vuaI/Rv5TZ1em4uXNqWWJD46ckjiBwtnzgBaN0Zd8UI +rbKKswvx59KSr++JOskpv/794R+XYrUP6QjHuU24CXnEMyna2PrrrOrTdHMP6DKe +6ZT91fzwiDUicW9v9hAF +=bgn+ -----END PGP SIGNATURE----- diff --git a/app-text/calibre/calibre-2.33.0.ebuild b/app-text/calibre/calibre-2.33.0.ebuild new file mode 100644 index 000000000000..af05ba0e3f1a --- /dev/null +++ b/app-text/calibre/calibre-2.33.0.ebuild @@ -0,0 +1,228 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-2.33.0.ebuild,v 1.1 2015/08/05 09:10:29 yngwin Exp $ + +EAPI=5 +inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs + +DESCRIPTION="Ebook management application" +HOMEPAGE="http://calibre-ebook.com/" +SRC_URI="http://download.calibre-ebook.com/${PV}/${P}.tar.xz" + +LICENSE=" + GPL-3+ + GPL-3 + GPL-2+ + GPL-2 + GPL-1+ + LGPL-3+ + LGPL-2.1+ + LGPL-2.1 + BSD + MIT + Old-MIT + Apache-2.0 + public-domain + || ( Artistic GPL-1+ ) + CC-BY-3.0 + OFL-1.1 + PSF-2 + unRAR +" +KEYWORDS="~amd64 ~arm ~x86" +SLOT="0" +IUSE="+udisks" + +COMMON_DEPEND=" + >=app-text/podofo-0.8.2:= + >=app-text/poppler-0.26.5[qt5] + >=dev-lang/python-2.7.9:2.7[sqlite,ssl] + >=dev-libs/chmlib-0.40:= + dev-libs/glib:2 + >=dev-libs/icu-4.4:= + >=dev-python/apsw-3.7.17[python_targets_python2_7(-)] + >=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)] + >=dev-python/dnspython-1.6.0[python_targets_python2_7(-)] + >=dev-python/cssselect-0.7.1[python_targets_python2_7(-)] + >=dev-python/cssutils-0.9.9[python_targets_python2_7(-)] + >=dev-python/dbus-python-1.2.0[python_targets_python2_7(-)] + >=dev-python/lxml-3.2.1[python_targets_python2_7(-)] + >=dev-python/mechanize-0.1.11[python_targets_python2_7(-)] + dev-python/netifaces[python_targets_python2_7(-)] + dev-python/psutil[python_targets_python2_7(-)] + >=dev-python/pygments-2.0.1[python_targets_python2_7(-)] + >=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)] + >=dev-python/PyQt5-5.3.1[gui,svg,webkit,widgets,network,printsupport,python_targets_python2_7(-)] + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + media-fonts/liberation-fonts + >=media-gfx/imagemagick-6.5.9[jpeg,png] + media-libs/fontconfig + >=media-libs/freetype-2:= + >=media-libs/libmtp-1.1.5:= + >=media-libs/libwmf-0.2.8 + sys-libs/zlib + virtual/libusb:1= + virtual/python-imaging[python_targets_python2_7(-)] + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrender + >=x11-misc/xdg-utils-1.0.2-r2 + udisks? ( virtual/libudev )" +RDEPEND="${COMMON_DEPEND} + udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" +DEPEND="${COMMON_DEPEND} + >=dev-python/setuptools-0.6_rc5 + >=virtual/podofo-build-0.8.2" + +src_prepare() { + # Fix outdated version constant. + #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ + # -i src/calibre/constants.py || \ + # die "sed failed to patch constants.py" + + # Avoid sandbox violation in /usr/share/gnome/apps when linux.py + # calls xdg-* (bug #258938). + sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ + -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ + -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ + -e "s|PreserveMIMEDefaults():||" \ + -e "s|xdg-icon-resource install|\\0 --mode user|" \ + -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ + -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ + -i src/calibre/linux.py || die "sed failed to patch linux.py" + + # Disable unnecessary privilege dropping for bug #287067. + sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ + -i setup/install.py || die "sed failed to patch install.py" + + sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ +\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ +'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ +'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ +'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ +'-i', 'Makefile'])" \ + -i setup/extensions.py || die "sed failed to patch extensions.py" + + # use system beautifulsoup, instead of bundled + rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \ + || die "could not remove bundled beautifulsoup" + find "${S}" -type f -name \*.py -exec \ + sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \ + || die "could not sed bundled beautifulsoup out of the source tree" + + # avoid failure of xdg tools to recognize vendor prefix + sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \ + -e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \ + -e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \ + -i "${S}"/src/calibre/linux.py || die 'sed failed' + + # no_updates: do not annoy user with "new version is availible all the time + # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface + epatch \ + "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ + "${FILESDIR}/${PN}-disable_plugins.patch" +} + +src_install() { + # Bypass kbuildsycoca and update-mime-database in order to + # avoid sandbox violations if xdg-mime tries to call them. + cat - > "${T}/kbuildsycoca" <<-EOF + #!${BASH} + echo $0 : $@ + exit 0 + EOF + + cp "${T}"/{kbuildsycoca,update-mime-database} + chmod +x "${T}"/{kbuildsycoca,update-mime-database} + + export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" + + # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox + # violation with kbuildsycoca as in bug #287067, comment #13. + export -n DISPLAY + + # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: + # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale + # return _parse_localename(localename) + # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename + # raise ValueError, 'unknown locale: %s' % localename + #ValueError: unknown locale: 46 + export -n LANGUAGE + + # Bug #295672 - Avoid sandbox violation in ~/.config by forcing + # variables to point to our fake temporary $HOME. + export HOME="${T}/fake_homedir" + export XDG_CONFIG_HOME="${HOME}/.config" + export XDG_DATA_HOME="${HOME}/.local/share" + export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" + mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" + + tc-export CC CXX + # Bug #334243 - respect LDFLAGS when building extensions + export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" + local libdir=$(get_libdir) + [[ -n $libdir ]] || die "get_libdir returned an empty string" + + # Bug #472690 - Avoid sandbox violation for /dev/dri/card0. + local x + for x in /dev/dri/card[0-9] ; do + [[ -e ${x} ]] && addpredict ${x} + done + + dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py + PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ + "${EPREFIX}"/usr/bin/python2.7 setup.py install \ + --root="${D}" \ + --prefix="${EPREFIX}/usr" \ + --libdir="${EPREFIX}/usr/${libdir}" \ + --staging-root="${ED}usr" \ + --staging-libdir="${ED}usr/${libdir}" || die + + grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || + die "failed to fix harcoded \$D in paths" + + # The menu entries end up here due to '--mode user' being added to + # xdg-* options in src_prepare. + dodir /usr/share/mime/packages + chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local + mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || + die "failed to register mime types" + dodir /usr/share/icons + mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || + die "failed to install icon files" + + domenu "${HOME}"/.local/share/applications/*.desktop || + die "failed to install .desktop menu files" + + find "${ED}"usr/share -type d -empty -delete + + cd "${ED}"/usr/share/calibre/fonts/liberation || die + local x + for x in * ; do + [[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue + ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die + done + + einfo "Converting python shebangs" + while read -r -d $'\0' ; do + local shebang=$(head -n1 "$REPLY") + if [[ ${shebang} == "#!"*python* ]] ; then + sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \ + die "sed failed" + fi + done < <(find "${ED}" -type f -print0) + + einfo "Compiling python modules" + "${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \ + -d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die + + newinitd "${FILESDIR}"/calibre-server.init calibre-server + newconfd "${FILESDIR}"/calibre-server.conf calibre-server +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} |