From 66205c89c660f485266dab29a4a9368aa148a112 Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Thu, 25 Aug 2016 12:32:41 +0200 Subject: sci-misc/mendeleydesktop: Version bump to 1.16.2; Drop python3_3 support Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/2141 Signed-off-by: David Seifert --- sci-misc/mendeleydesktop/Manifest | 4 +- .../mendeleydesktop/mendeleydesktop-1.16.1.ebuild | 124 --------------------- .../mendeleydesktop/mendeleydesktop-1.16.2.ebuild | 124 +++++++++++++++++++++ 3 files changed, 126 insertions(+), 126 deletions(-) delete mode 100644 sci-misc/mendeleydesktop/mendeleydesktop-1.16.1.ebuild create mode 100644 sci-misc/mendeleydesktop/mendeleydesktop-1.16.2.ebuild (limited to 'sci-misc/mendeleydesktop') diff --git a/sci-misc/mendeleydesktop/Manifest b/sci-misc/mendeleydesktop/Manifest index f4bde5e8dcc1..7c29ccd7b32e 100644 --- a/sci-misc/mendeleydesktop/Manifest +++ b/sci-misc/mendeleydesktop/Manifest @@ -1,2 +1,2 @@ -DIST mendeleydesktop-1.16.1-linux-i486.tar.bz2 32028123 SHA256 f3b2781cade8337213da2ce9f63b7bb740a5d5c5563d00e0d6f2c5ced6c41007 SHA512 d7edb348860e386c5a36e213ac7f9e3fe6e2ba2f87a97d758ef1ff27848423b20d592f4c897343612c7776b9c0b2cbdd4b7573c8ac416d0d72062129ae8e5b82 WHIRLPOOL ffc9a39f2a40aed8801fad1ebee85f439060cb66e2fe9220688fb6b7c7a31eabe56e83d8da3836d4126c7bdb404b9ed0f5e516f155dcceea9b7ea4f4f0bdaf21 -DIST mendeleydesktop-1.16.1-linux-x86_64.tar.bz2 31703010 SHA256 e1154f8c2593c41c637c5e6f06f8e17786230ce5bd95b5068f7f90049e36033c SHA512 60b68a31046527435da09e14b4605baf97e696779a6bc1fd63cb4218cd513900205437b8eaaae4c05c2e820f7e1bc28f5255ff0cfa6465740c51b02fb9a790b6 WHIRLPOOL c88be9006510425c0413668a7bfcbf434e21a7e741721a861bd39baf1e60038a3a2b900102a9a5b849d5c9f4a9d618234e3f05c52fc525f44a2e04dcbe9bca6b +DIST mendeleydesktop-1.16.2-linux-i486.tar.bz2 32647465 SHA256 008eea1f4ccdd0c00c415c1201ae2e7ac8207c3fba1e55962ce3fc23dc8c3cfa SHA512 da12f53eec736030ebf1ecc2f53c5d6dffcd587fb3510f1c2d9dfd3a72fc2152e44121f3a9e2171829671e3cfd7820b041caee4934b576b33f7b2c05a9f556e8 WHIRLPOOL 15187d2190eb03670e6920e064f56a26d959886cf27565881691ba7d8dc9e49d9dbcac957fe8b56a156cd89bd2fde454012791da4aac9f171d7d83f1a3d1ec29 +DIST mendeleydesktop-1.16.2-linux-x86_64.tar.bz2 32389300 SHA256 2fc700ed130d4fc6fd15cfac83e5c0481ae3b5bd544fbdecc5a31cec71f768ff SHA512 d9db8e880cb420f61f45d457672b8aff2259f56f13cd264b6ef9c780fe4a4c8d62d5fc4c5419032f075582e82cce0ee95605ee6f4ad7853a622667553315264a WHIRLPOOL e9e8bd690ac48343a731112d3d9f2bb6c1cfa955ac566d51424b962c93c0112149c851e74f60fdd7cb3df522dcea588de2ddaddf80a11b258aa3990b8dcee862 diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.16.1.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.16.1.ebuild deleted file mode 100644 index b87094b719f6..000000000000 --- a/sci-misc/mendeleydesktop/mendeleydesktop-1.16.1.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) - -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="${PYTHON_DEPS} - dev-qt/qtcore:4 - dev-qt/qtgui:4 - dev-qt/qtsvg:4 - dev-qt/qtwebkit:4 - dev-qt/qtxmlpatterns:4 - x11-libs/libX11 - " - -QA_PREBUILT="/opt/mendeleydesktop/.*" - -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() { - # remove bundled Qt libraries - rm -r lib/mendeleydesktop/plugins \ - || die "failed to remove plugin directory" - rm -r lib/qt || die "failed to remove qt libraries" - - # force use of system Qt libraries - sed -i "s:sys\.argv\.count(\"--force-system-qt\") > 0:True:" \ - bin/mendeleydesktop || die "failed to patch startup script" - - # fix library paths - sed -i \ - -e "s:lib/mendeleydesktop:$(get_libdir)/mendeleydesktop:g" \ - -e "s:MENDELEY_BASE_PATH + \"/lib/\":MENDELEY_BASE_PATH + \"/$(get_libdir)/\":g" \ - bin/mendeleydesktop || die "failed to patch library path" - - default -} - -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 - - # install launch script - into /opt - make_wrapper ${PN} "/opt/${PN}/bin/${PN} --unix-distro-build" -} - -pkg_postinst() { - fdo-mime_desktop_database_update - fdo-mime_mime_database_update -} - -pkg_postrm() { - fdo-mime_desktop_database_update - fdo-mime_mime_database_update -} diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.16.2.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.16.2.ebuild new file mode 100644 index 000000000000..0f5f7fbb4256 --- /dev/null +++ b/sci-misc/mendeleydesktop/mendeleydesktop-1.16.2.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +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="${PYTHON_DEPS} + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtsvg:4 + dev-qt/qtwebkit:4 + dev-qt/qtxmlpatterns:4 + x11-libs/libX11 + " + +QA_PREBUILT="/opt/mendeleydesktop/.*" + +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() { + # remove bundled Qt libraries + rm -r lib/mendeleydesktop/plugins \ + || die "failed to remove plugin directory" + rm -r lib/qt || die "failed to remove qt libraries" + + # force use of system Qt libraries + sed -i "s:sys\.argv\.count(\"--force-system-qt\") > 0:True:" \ + bin/mendeleydesktop || die "failed to patch startup script" + + # fix library paths + sed -i \ + -e "s:lib/mendeleydesktop:$(get_libdir)/mendeleydesktop:g" \ + -e "s:MENDELEY_BASE_PATH + \"/lib/\":MENDELEY_BASE_PATH + \"/$(get_libdir)/\":g" \ + bin/mendeleydesktop || die "failed to patch library path" + + default +} + +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 + + # install launch script + into /opt + make_wrapper ${PN} "/opt/${PN}/bin/${PN} --unix-distro-build" +} + +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