diff options
author | Ben de Groot <yngwin@gentoo.org> | 2015-02-10 08:52:47 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2015-02-10 08:52:47 +0000 |
commit | 15794d29dc95dc20f6fdb04ef83f6b92c3c89bba (patch) | |
tree | 4af33dcb54113e1762e90b4549cb4af420d2dcec | |
parent | Fix dependencies, #539530 (diff) | |
download | historical-15794d29dc95dc20f6fdb04ef83f6b92c3c89bba.tar.gz historical-15794d29dc95dc20f6fdb04ef83f6b92c3c89bba.tar.bz2 historical-15794d29dc95dc20f6fdb04ef83f6b92c3c89bba.zip |
version bump
Package-Manager: portage-2.2.16/cvs/Linux x86_64
Manifest-Sign-Key: 0x4FDF9CFD2FAC514E!
-rw-r--r-- | app-text/calibre/ChangeLog | 7 | ||||
-rw-r--r-- | app-text/calibre/Manifest | 26 | ||||
-rw-r--r-- | app-text/calibre/calibre-2.19.0.ebuild | 233 |
3 files changed, 258 insertions, 8 deletions
diff --git a/app-text/calibre/ChangeLog b/app-text/calibre/ChangeLog index afb6145a9b60..f8d1c4cce8b3 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.340 2015/02/02 19:33:00 zlogene Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.341 2015/02/10 08:52:44 yngwin Exp $ + +*calibre-2.19.0 (10 Feb 2015) + + 10 Feb 2015; Ben de Groot <yngwin@gentoo.org> +calibre-2.19.0.ebuild: + version bump 02 Feb 2015; Mikle Kolyada <zlogene@gentoo.org> calibre-2.18.0.ebuild: Add ~arm keyword diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest index 3b97235d0f69..fb081ea6219c 100644 --- a/app-text/calibre/Manifest +++ b/app-text/calibre/Manifest @@ -17,6 +17,7 @@ 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.12.0.tar.xz 35743900 SHA256 8e32f55086ce2f64855fae33df1799758b6b5cfbd9c8052af2ee59e30c56e3e2 SHA512 76c131d1b8c919abf96414f7b782040c75123b06ee9f097c1cd00c19b0b23148b7e4f0c44a95fbb76cb5d2b1219f9af175d5552a3b3344d5633c062567407bfe WHIRLPOOL 57a7422756f4b9cc00f0a35df2581e38af45fcafbca4a3e53280fb649d2f02f37164a80dbb545035462c3931716441740f7361aee4263b6fb120b724eb3d05a5 DIST calibre-2.18.0.tar.xz 36196564 SHA256 bd470b1dc3e286912866e83f2fa23646594065102896f8efb6705502a39bc716 SHA512 bad35d108e5a46c56e901c006e07f4897eab82a02ff1cc064763bcee913cac278ba31454a0ea0a047f214810fda52f9a1dc0357849864f3071994f63ca9e44d9 WHIRLPOOL 5f56cc8337e6d0a8d300eb134beaa88884831b96824cceca138057099aac3e576a6c0f5d67fea5e6f58c54d4154d984a05789ba5efc551d0a992142f004bc3a5 +DIST calibre-2.19.0.tar.xz 36149428 SHA256 76318803979456e9dbac5903436ea8a1a47355a22d69f6a44c292e0a510c92a9 SHA512 8535e4fc27b9196a3f72134d73fb0496ee0c95cb0615f4e1c4abf392022498aabfa7abb3cfa24262e03f77710754a2eea53e5a4d906d76ac815bab72567b975e WHIRLPOOL 5593a9f200ea16a140ad6306253dd80521d2f030437bd9b803794050b5f686cefae1a8989747d9741ffb462d424b2a9b94c35c3562efc1a523856b87d232a1f4 DIST calibre-2.7.0.tar.xz 35548068 SHA256 4100ffc390a4c852a267c959b94d0c6d9606fb2a70f03b120826b99e59bb1e49 SHA512 9fbc9bf6a2bb72e17656b8f09690d6078dd8aa455c6c70b68b421ec24631f80e48928ba1820bd69f18caa29ef0b76d0f34b7910bd8e747003ebab930ea8654dd WHIRLPOOL d913898d024d6e36a04ffc7ddeafa1df6e6db793458a675db7f2880e6202891cd6c897fd3f51fd58f5031a0eb276bcc16f27ce13d90819b73e435279e1b5aa9d DIST calibre-2.9.0.tar.xz 35753312 SHA256 bc517af040066cadf44c62a15b45b4aadacdeeb1ef0dae2a42fa9a71a082db3c SHA512 5d402af6591befa304d35b911cb10fa44eadb744b1fc308043d0689278f31fa6dce150be40aec9f07c12d43ab5cde1b5ec657b8d94ab9f2b9eeb465a33ca0dfa WHIRLPOOL b72179ff97f4e4a9cf3b3aecfb3b9697c6b0076d4628e8957381ecc9e36640db2c51ef788c1f7c90f9d569adbc5adf05505b92ec2ff254fe9a4469ae00ebe1a2 EBUILD calibre-1.2.ebuild 7216 SHA256 627f78a4880d9899c90524d3cc692f45c6d124704602c746fd637e4e2a6229e2 SHA512 4ce7cc4889e254fef24c6b3c3e510d1a4d2d24b1ceeb696a6ddae338cf7b1ceff21138f552bdf715a2f20d1df7fd6f8d59d614b21b0c494e3a09171f42505c8d WHIRLPOOL e53728b654c34d6ced29918ca1de0cc32c992672fa7608eef6d9315f4f7d1f984faf05bc6750aa5c33458a9fedb60726419445b4d9b4dbe73c0190c7d7ecefb9 @@ -29,16 +30,27 @@ EBUILD calibre-1.48-r1.ebuild 7899 SHA256 b07b09db62e9eae94d59c9401bbd39191fd525 EBUILD calibre-1.48.ebuild 7928 SHA256 294a160ad70a49273d2a4a6bbb814426d81cbe5a826616a2810da1dccffc0455 SHA512 31c71cb9f1e05e1f645fdd98080175f0ad9bebab3b5c6482c3216694e3112a2804f4f17308f2a5e2f851c74c5aa690f449a1bf8f8717b441a738dce5e60e2923 WHIRLPOOL 141115e28c2ad2c273edbd54a5113aac5677efcf3738a20e565b4fa051b1161e4ac8278fbf026677681fdc387a6b2c8543991455a97e5179cdf8f47f8bb2406c EBUILD calibre-2.12.0.ebuild 8149 SHA256 5a4946e8d1f8c7847da2e2ba396fc6959382dd86aa99d97e94f7f154d5aed5e1 SHA512 f1e61dcb82f957be7532057e2726512f5b5aa7c610b0d59c4866f128d22827d3b9c300a6aad18f2c597bb3dfc8ff528d2ec9080f69ca81ad1ade370b9d07e05c WHIRLPOOL 111b07280fc544ffd4e22a09ccad72a2e1325500e9bf0ec1fb59c760968021c23d3ed4a498df8839dbc0a278d39bee045c5f67f4c23dde7084732747e49a24d0 EBUILD calibre-2.18.0.ebuild 8158 SHA256 6f9c714d23b8c5b81429de49fc1b4806ba4daf2c260bf5db61dbdb6e8be151f0 SHA512 f57a804c430373a69ee61782d1da360ac3857af3414b8d6411b6d9244c4fd94d9a7eb0c1f8565bec83dbaca2db583c16ba175db1f62a2cbfa9b14f5e45d39499 WHIRLPOOL 6ba860dea665672333c1d33d3f3a9c7d4f6e3ab6dd7c864459bbee597895f689f47bb94d455d43cd12ab5dda7fa356bd3e22b5ad62e080731cc4861493f63198 +EBUILD calibre-2.19.0.ebuild 8157 SHA256 e38be43a75bd14043d490f22b07a5000809bc414c29dcf47c3191b6fdac72bc4 SHA512 9529ab8d74ed4ac8ff77acd22af7a95132ae3efd0b959e7059fd75558441a6130d8cf0f789f5e6bf3c3d33440d63dcea04d3ace3b0b08c9663c757531099b506 WHIRLPOOL 07a545bf258efdc64c4bbf1969beb4186055b82c2bf757eb83130de086fc7ff99e7bd4f9ca93cf4df9714cf015029745e12d9131a2e2e1c7c61f6a4211fe150f EBUILD calibre-2.7.0.ebuild 7885 SHA256 37b95a846898f4456dcb855e32b69882e6c5bf455b0e32e646ecf0bd7b0cc796 SHA512 43ffc977a8c79a8180a2f8b520c7a7564d7625ea80ccf767c523b65d0eaf867d4caa8c162a8a03015e57086cc3a55fd416d43c8ae502317cfcac0caaded9f5ab WHIRLPOOL 9b9de3fc99f5d8428597851c05e328052cd11b60dda11b1db5f55a372446033a2f1a16bdcd2e686f911cbf8faf67315af5d8b7fec4f183b33dd2dc0a49176f6e EBUILD calibre-2.9.0.ebuild 8151 SHA256 0ca512e8e7cadf4cd8b9989397061e546002e100ffb32a090179c4652a70e247 SHA512 6af373d39b1eeeae3b0c1db929a68d43b5eaa064228fe2351a05618dd1ee678ba68028cb942490d917a68f6d02c75bc5728c9cd177bcec68e2ed96450ead1fff WHIRLPOOL 1e1b9b7d8e462f7bd67f350454a4d57f147ca4a490bb282a25fcf497c1285d6275b17357557fb472cd739334ac6d076aa08e2c92fd9b3a60cb12dffb4ffd8c6d -MISC ChangeLog 54192 SHA256 89b278632f86f08480dbc1964882a3b1694ea0b07769c89cc87ce4bb6b009470 SHA512 2daca60b352196eb7924ed74b0fdf0da1394bd20fe0ce14d4dd5438a42c0736e49a9dfa6617815f5b451ba5d3824bbb040d7710ded4a3d53a0d766ddfb16e0e4 WHIRLPOOL 342883842123937ccbca27e6541f37d1fecaf60145399ad791b724431610ce726664dc91123c5d9df989c94b81eab13ac7fa1f8de09598e4337d05112f31a57f +MISC ChangeLog 54310 SHA256 bf54a5e48551a667d4e215c7b5236321e65fa4abd3822e99889e479bb8b3ef38 SHA512 5b6a94dffa5adff8db93b79f5ceafd4b28dcebda275a6d2739f386ea008bb2386a83e205d81289ae3e179f6475f9120c3543c5c29c0d40cea0b4550c90150b1f WHIRLPOOL edcf2677407f34de595468d5466cd350b305e40fae77db9bdc6ecb72b649f9d9273c43e1d2f9fab59fac9a0702aec111f36e72c5026eb782f2231a5aec0ab53d MISC metadata.xml 341 SHA256 796a5a95967784ec0e9295b5745962d2a20dd678fd7425e6bd6414b9b1fbae33 SHA512 0fa9fd10e81ff337e7e7d9a55d492f4cbcee79fd1771497214c39c0c2491759ba0ce7f62a1aade44e2165617da40111d0ba3a3802b679db66f60e66bff70e2ca WHIRLPOOL bd14a2fa77fbf2f7e3e30725ef299809e11696d5779ea80d8252efcd64e79bad7db9c331f8617ce220cfeaa6136e932130db85aeecf35412f99d9957cf3e9f08 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2 +Version: GnuPG v2.0 -iJwEAQEIAAYFAlTP0IoACgkQG9wOWsQutda4mQP/b/aV/T7fUHC/gdOhGcNxIFMW -mXl5JBXkwepdyan6soc8sPMEwHLOJO8sdwyXHwElvbl5WOmGnIuGGfJGv7OcDUM7 -JoOR9S0XZB9I4Cfi9BO+BzKAVBcAbUqHbamL07Djpmc9kURofSzSGHDNikYujzQ7 -A1l0LM8fw9HfhH0dq/8= -=7naI +iQJ8BAEBCABmBQJU2cbeXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5MTlDREQ0NUU5Mjc4RkU2RjJDNTAyNzU0 +RkRGOUNGRDJGQUM1MTRFAAoJEE/fnP0vrFFO0QAQALadGjXI/PS/kEvKXqXv5ULJ +DvmKZrfpVWNqn0datE+1kyjQpsfAu9h1SqA2BQ3fzirWmGkQa70qFXHlMY/gilQf +jnQqITIoszPX+gzCuxYJzebR9m8UEhkPa3W6JhC7HgmykQFo/M39LmsZJcmqM334 +T9OFuhTXrcIsn1/n11G7xzbhFIDR+Sh4iBUgiRPKai99Q94nJPLNzH/SjduY1hGB +gLOakfOy51Fzi4CCRxvlGmoxlQN97UIFD+6bQjggM5uDoypJRG1RkA9kQlVzYsEl +iicTXjcXCtOmyQHEA5Q8Mzx4x12c1sCyeprWv8GcRTdAqTPLx/bNl25RE8SJLU39 +buAWyACI8RsnfBFCKptLa4iNLEQ1w9ENnT1uHo0TyKTGKjbpullGP55I61w69wYI +yx6in3PbVU2FH6JgTkwfqqnSTcLmyhbvptaaEgQQfD0I6i0dx7PM0WsIXQkNpkbR +YFqUksblrle8FXkTtqsTtxLFGH+PzQcHk2Dhrt5ymWV/QBVfbq0MEX+YY6tlv+1h +fa86CI4m5ConAewz0uLndJDZHi0SRy/vG+TfSBer0ce4E+sVoa+zeELGxqPuRiJR +NUJm0PmGVHE0ax3phCP9grZFVe02+gKMxU6LPncFX7VXTn/b0z+goo6dLAN5Yc74 +xxkfYcf3u+APRrQQ/+8Z +=XWPP -----END PGP SIGNATURE----- diff --git a/app-text/calibre/calibre-2.19.0.ebuild b/app-text/calibre/calibre-2.19.0.ebuild new file mode 100644 index 000000000000..7045c985f010 --- /dev/null +++ b/app-text/calibre/calibre-2.19.0.ebuild @@ -0,0 +1,233 @@ +# 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.19.0.ebuild,v 1.1 2015/02/10 08:52:44 yngwin Exp $ + +EAPI=5 + +inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs + +DESCRIPTION="Ebook management application" +HOMEPAGE="http://calibre-ebook.com/" +[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV} +SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.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" + +# Note, dropped dep on >=app-text/poppler-0.20.2:=[qt4,xpdf-headers(+)] as #1, its qt5 now, and +# 2, because repoman blew up when it was there, and my installed copy doesnt seem to link to it. + +COMMON_DEPEND=" + >=app-text/podofo-0.8.2:= + >=dev-lang/python-2.7.1:2.7[sqlite,ssl] + >=dev-libs/chmlib-0.40:= + >=dev-libs/icu-4.4:= + dev-libs/glib:2 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + >=media-gfx/imagemagick-6.5.9[jpeg,png] + media-libs/fontconfig + >=media-libs/freetype-2:= + >=media-libs/libmtp-1.1.5:= + sys-libs/zlib + udisks? ( virtual/libudev ) + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrender + >=dev-python/apsw-3.7.17[python_targets_python2_7(-)] + >=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)] + dev-python/netifaces[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-0.82.2[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/python-dateutil-1.4.1[python_targets_python2_7(-)] + >=dev-python/PyQt5-5.2.0[gui,svg,webkit,widgets,network,printsupport,python_targets_python2_7(-)] + media-fonts/liberation-fonts + >=media-libs/libwmf-0.2.8 + virtual/libusb:1= + virtual/python-imaging[python_targets_python2_7(-)] + >=x11-misc/xdg-utils-1.0.2-r2" + +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="/usr/lib/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 +} |