From 6e21484a8fe6f09b2d3f46bbfc2355eab6d01806 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Thu, 14 Dec 2017 16:14:46 +0100 Subject: sci-misc/mendeleydesktop: Version bump, improve icon/.desktop situation. Package-Manager: Portage-2.3.18, Repoman-2.3.6 --- sci-misc/mendeleydesktop/Manifest | 4 +- .../mendeleydesktop/mendeleydesktop-1.17.12.ebuild | 131 +++++++++++++++++++++ .../mendeleydesktop/mendeleydesktop-1.17.9.ebuild | 131 --------------------- 3 files changed, 133 insertions(+), 133 deletions(-) create mode 100644 sci-misc/mendeleydesktop/mendeleydesktop-1.17.12.ebuild delete mode 100644 sci-misc/mendeleydesktop/mendeleydesktop-1.17.9.ebuild (limited to 'sci-misc') diff --git a/sci-misc/mendeleydesktop/Manifest b/sci-misc/mendeleydesktop/Manifest index d2664297fd37..48db29256cc9 100644 --- a/sci-misc/mendeleydesktop/Manifest +++ b/sci-misc/mendeleydesktop/Manifest @@ -1,2 +1,2 @@ -DIST mendeleydesktop-1.17.9-linux-i486.tar.bz2 130729175 SHA256 f904bbd00b346bb7541563205453cdf74e61dd709b667e808785ccd44f67b37e SHA512 e7d307eb96b8d59d5cd16d12ff1b58082dcd67c76863d6c672f2e7340107d943e46f39fa91b1f2d1485eb6d2cadca96b01d6ecbedf5d9bb448593abcb88bbaca WHIRLPOOL 23b7b9d2c68994431f749aab813831fe2420db50e2a032885bda37549d82c23fe19ad53e8fec9bbb29a76c0923969debe7d345f2803ab8d92bb4ce2eb08e87e2 -DIST mendeleydesktop-1.17.9-linux-x86_64.tar.bz2 125308028 SHA256 af062ef5c2129d718a1a612c15acfbc9891e747243c4ebc00f21cc3177a446f5 SHA512 a244716d0620a3553411eb7b1fdb2502cc32837a77db95e2bcae6a12016606abf53410a9e3119a858e188d0ad663f5191b06de22fb6915424c9495851ed6a36f WHIRLPOOL d398cf6ce34ca875de1791fcd29589db432d34ff98e100ed5815664073e7bc1740c5ac7e85f996d872c37b80027c8972bbbf6a3df2a270bce8f7afb579476cc2 +DIST mendeleydesktop-1.17.12-linux-i486.tar.bz2 131697751 BLAKE2B b9105ccb8829ae65fb74cb8f86aa85c66c8bec26a53139a763fe1156add08b35ab99ab40ee1d041a0f71f07fd8b5d1e839ab8b9a7670d842449874b010b51f04 SHA512 b900b6506b3ce03924d6547ea87bdaf25d7fd92674b1c65bd0494c758768813a5a09d5ed56b64a1f7f348a2697c405eb1263ca953cbdef30e580d1402ae69727 +DIST mendeleydesktop-1.17.12-linux-x86_64.tar.bz2 126264588 BLAKE2B e1f4f608a33d88cd0771732e6f00dcf22b9b5382d8ebd32949bcc56e6703c9e546f5bc005b48e1166c3a9b6774052d5a89e773f56c1545c267b1bddf25c50889 SHA512 45a5502304bd5966d9bfc2f24437a00e5215fd4d895dbd6aebde5e67f1b56e8ff5615072be5a6f7dd695e33eaf2967b8a3ce802eee788fb5f5d38b7e7a4db663 diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.17.12.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.17.12.ebuild new file mode 100644 index 000000000000..02f773e11e85 --- /dev/null +++ b/sci-misc/mendeleydesktop/mendeleydesktop-1.17.12.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2017 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 eutils multilib python-single-r1 xdg gnome2-utils + +MY_P_AMD64="${P}-linux-x86_64" +MY_P_X86="${P}-linux-i486" + +DESCRIPTION="Research management tool for desktop and web" +HOMEPAGE="http://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 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtpositioning:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwebengine:5[widgets] + dev-qt/qtwebkit:5 + dev-qt/qtxml: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 +} diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.17.9.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.17.9.ebuild deleted file mode 100644 index bbe2006a449c..000000000000 --- a/sci-misc/mendeleydesktop/mendeleydesktop-1.17.9.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2017 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 eutils fdo-mime multilib python-single-r1 - -MY_P_AMD64="${P}-linux-x86_64" -MY_P_X86="${P}-linux-i486" - -DESCRIPTION="Research management tool for desktop and web" -HOMEPAGE="http://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 - dev-qt/qtdeclarative:5 - dev-qt/qtgui:5 - dev-qt/qtnetwork:5 - dev-qt/qtpositioning:5 - dev-qt/qtprintsupport:5 - dev-qt/qtsvg:5 - dev-qt/qtwebengine:5[widgets] - dev-qt/qtwebkit:5 - dev-qt/qtxml: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 /opt/mendeleydesktop/bin/mendeleydesktop /opt/bin/mendeleydesktop -} - -pkg_postinst() { - fdo-mime_desktop_database_update - fdo-mime_mime_database_update -} - -pkg_postrm() { - fdo-mime_desktop_database_update - fdo-mime_mime_database_update -} -- cgit v1.2.3-65-gdbad