commit: c200b479ffbb0b0ab75972c7665a42fc8f64dcf3 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Thu Apr 26 19:13:57 2018 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Thu Apr 26 20:05:58 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c200b479
sci-misc/mendeleydesktop: Restore 1.17.13 and fix Qt version-dep Non-maintainer commit. Bug: https://bugs.gentoo.org/653396 Package-Manager: Portage-2.3.31, Repoman-2.3.9 sci-misc/mendeleydesktop/Manifest | 2 + .../mendeleydesktop-1.17.13-r1.ebuild | 133 +++++++++++++++++++++ 2 files changed, 135 insertions(+) diff --git a/sci-misc/mendeleydesktop/Manifest b/sci-misc/mendeleydesktop/Manifest index b6e634eed68..43829d226f6 100644 --- a/sci-misc/mendeleydesktop/Manifest +++ b/sci-misc/mendeleydesktop/Manifest @@ -1,2 +1,4 @@ +DIST mendeleydesktop-1.17.13-linux-i486.tar.bz2 131684415 BLAKE2B 57e87fc00dc1978ecd0b46603cb504652c8c68ce2eed554f8a04967a574e12f05f19f1a4159e4a4c0c476f435ac39489cdcd466eb7bf72bf3a07e6cf1f450aac SHA512 b86f33b21661074737fca1262bd731dd07e3a5457b546b6c99b2794459052902c2ba831a7d8071a5b5edc061fc03a0fb79cbf79e6778960f7045729071216d2a +DIST mendeleydesktop-1.17.13-linux-x86_64.tar.bz2 126266490 BLAKE2B 97ea8af93d7f2b42fa7941acad09514fa59c46af1b5d5974ba177f08183f23340c589f18a06f0bfa91d711bd70c85f48e61b82f4cfc6ccfb8388fd754f86b772 SHA512 ffb5a33fbc3b4b28e34037760b670a088c7c5c3d4624d3767d26562dd53f4fd0dbbdeb366e8d8673dd6c2f68dc43d8f1c0492400b62729ceab33f73954956325 DIST mendeleydesktop-1.18-linux-i486.tar.bz2 143543267 BLAKE2B e4196bc19673b17599380a5cf789c20a0e689272f0dbaf0f8542a9985d963827e477c4f808c97ac1e60bb89e63002701cdc3e54a045f1db35e514f86b4ef4e85 SHA512 63a82863a824e5ce180a31453e68c900ba4bcebf0c228f515db87fe523a3cef8a284dd8c81729741fe7c9795b918d7a25503024aa63692014ce5e4a87a7cad11 DIST mendeleydesktop-1.18-linux-x86_64.tar.bz2 147509182 BLAKE2B 86f8b9827320fbd53df6d7dc343cad79410e7d25f1f757dbc0cc8f5613206e6dc6f80e6539dd5ae5309e42cdcf1681cf4a3585114159a20a4ed5dcdfebc60569 SHA512 9e72ca02beae2412fb427cfc22da3495ae0bcdcc23b188e5f09e4e29a942a276635be54bf22bbcf08c63cdee102c257c145cce00a361c4b8b48e0f538a81b108 diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.17.13-r1.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.17.13-r1.ebuild new file mode 100644 index 00000000000..a09df10b573 --- /dev/null +++ b/sci-misc/mendeleydesktop/mendeleydesktop-1.17.13-r1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit desktop gnome2-utils python-single-r1 xdg-utils + +MY_P_AMD64="${P}-linux-x86_64" +MY_P_X86="${P}-linux-i486" + +DESCRIPTION="Research management tool for desktop and web" +HOMEPAGE="https://www.mendeley.com/" +SRC_URI=" + amd64? ( ${MY_P_AMD64}.tar.bz2 ) + x86? ( ${MY_P_X86}.tar.bz2 ) + amd64-linux? ( ${MY_P_AMD64}.tar.bz2 ) + x86-linux? ( ${MY_P_X86}.tar.bz2 )" + +LICENSE="Mendeley-terms" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RESTRICT="fetch" + +DEPEND="" +RDEPEND=" + =dev-qt/qtcore-5.9*:5 + =dev-qt/qtdeclarative-5.9*:5 + =dev-qt/qtgui-5.9*:5 + =dev-qt/qtnetwork-5.9*:5 + =dev-qt/qtpositioning-5.9*:5 + =dev-qt/qtprintsupport-5.9*:5 + =dev-qt/qtsvg-5.9*:5 + =dev-qt/qtwebengine-5.9*:5[widgets] + =dev-qt/qtwebkit-5.9*:5 + =dev-qt/qtxml-5.9*:5 + sys-libs/zlib + virtual/opengl + x11-libs/libX11 + ${PYTHON_DEPS}" + +QA_PREBUILT="/opt/mendeleydesktop/.*" + +PATCHES=( + "${FILESDIR}"/${PN}-1.17.8-libdir.patch + "${FILESDIR}"/${PN}-1.17.8-qt5plugins.patch + "${FILESDIR}"/${PN}-1.17.8-unix-distro-build.patch +) + +pkg_nofetch() { + elog "Please download ${A} from:" + elog "http://www.mendeley.com/download-mendeley-desktop/" + elog "and move it to ${DISTDIR}" +} + +src_unpack() { + unpack ${A} + + cd "${WORKDIR}" || die + + if use amd64 || use amd64-linux ; then + mv -f "${MY_P_AMD64}" "${P}" || die + else + mv -f "${MY_P_X86}" "${P}" || die + fi +} + +src_prepare() { + default + + # remove bundled Qt libraries + rm -r lib/mendeleydesktop/plugins \ + || die "failed to remove plugin directory" + rm -r lib/qt || die + + # fix qt library path + sed -e "s:/usr/lib/qt5/plugins:${EROOT}usr/$(get_libdir)/qt5/plugins:g" \ + -i bin/mendeleydesktop || die + + # fix library paths + sed -e "s:lib/mendeleydesktop:$(get_libdir)/mendeleydesktop:g" \ + -e "s:MENDELEY_BASE'] + \"/lib/\":MENDELEY_BASE'] + \"/$(get_libdir)/\":g" \ + -i bin/mendeleydesktop || die +} + +src_install() { + # install menu + domenu share/applications/${PN}.desktop + + # install application icons + insinto /usr/share/icons + doins -r share/icons/hicolor + + # install default icon + insinto /usr/share/pixmaps + doins share/icons/hicolor/48x48/apps/${PN}.png + + # install documentation, but no license file + dodoc share/doc/${PN}/Readme.txt + + # install binary + python_fix_shebang bin/${PN} + into /opt/${PN} + dobin bin/* + + # install libraries + dolib.so lib/lib*.so* + + # install programs + exeinto /opt/mendeleydesktop/$(get_libdir)/mendeleydesktop/libexec + doexe lib/mendeleydesktop/libexec/* + + # install shared files + insinto /opt/${PN}/share + doins -r share/mendeleydesktop + + # symlink launch script + dosym ../mendeleydesktop/bin/mendeleydesktop /opt/bin/mendeleydesktop +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_icon_cache_update +}