From 1ad75e271e79015f46f24869141f6e178c0c0c9c Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Tue, 2 Feb 2016 14:24:44 +0100 Subject: sci-misc/mendeleydesktop: Version bump, enable python3_5, bump to EAPI=6 Package-Manager: portage-2.2.26 --- sci-misc/mendeleydesktop/Manifest | 4 +- .../mendeleydesktop/mendeleydesktop-1.15.2.ebuild | 122 -------------------- .../mendeleydesktop/mendeleydesktop-1.15.3.ebuild | 124 +++++++++++++++++++++ 3 files changed, 126 insertions(+), 124 deletions(-) delete mode 100644 sci-misc/mendeleydesktop/mendeleydesktop-1.15.2.ebuild create mode 100644 sci-misc/mendeleydesktop/mendeleydesktop-1.15.3.ebuild diff --git a/sci-misc/mendeleydesktop/Manifest b/sci-misc/mendeleydesktop/Manifest index 5b6a57f5015c..d9724ba1bf23 100644 --- a/sci-misc/mendeleydesktop/Manifest +++ b/sci-misc/mendeleydesktop/Manifest @@ -1,2 +1,2 @@ -DIST mendeleydesktop-1.15.2-linux-i486.tar.bz2 33160798 SHA256 1a37f19fad48a300a34369c4cb04e4d9f0f7825e384e982f7add5e3c50d5859a SHA512 d65fbf912e69673dc92031dc93a36302fb5a269d5efb6a4541e575b1fcdc7b1e2eb8bc1400bef67f4e76959d9d2d5935a120ed3fbc2dbc545376b79b04a9e9b6 WHIRLPOOL 1ead09211604deaa4bbac08e33002d0fe5fa7236a311087a04b97f9685032cb2f66257b1d951b871c21ac43073c449625e43d4f64b1038b8f3bf3609ea025014 -DIST mendeleydesktop-1.15.2-linux-x86_64.tar.bz2 32948504 SHA256 e611d6b3c772453f60fd030b51ca238625dfa789796138f484744c6d7c34b4e7 SHA512 3b162de457751fb557925db92ab47e5548d39fb38883fced7361a9ccb909e9421a36c285dfdc5a0a0c885236399ec94f03f0d42f7f04c97ef898ba6656e5149e WHIRLPOOL 49abda550d6a94d281b87f91e4d3b76b9acc411bba4d4138d1b9ba27a6ba1e24845b42d9bcf517a10d69fa3c471663382bdd0b9edde0101b2dbafaee4e98138c +DIST mendeleydesktop-1.15.3-linux-i486.tar.bz2 33154481 SHA256 a4534c1059c74745e6ee4b4cdaf8c72290fc4c2a51d4f15295a9374a4f32d2ca SHA512 a4c5cde08b307b6b623ed64331b3c46d9690b667d3abe75543a59f1167e053ad481c89fd5451eeb81b20629119bb65be4344a16849e24a3d809b2abcbd7b9446 WHIRLPOOL 42404b1f4014464cd83b77280b98a10ae7035e9eb3c9eb961e7e0863dea7780f840b8b525b9964e4acd3c87b648f193d8b890f6debdf4864666e4fe3c6688f50 +DIST mendeleydesktop-1.15.3-linux-x86_64.tar.bz2 33039155 SHA256 352173703e191ae0a7b70be1db1dbaf0abae418a42b1106f624691a4bdf710e1 SHA512 0fe694dde19043b50136206c7c0994696ca5c52347dd4342eb4a8d8861b6fff9eef839d4f8feb97dbcec9a027e5014fac22313bbbd63487d23f65d7750cd5ece WHIRLPOOL 9917d656efc48c807f9c132a6df90f4a5f9e40088471b38af6c382f420cbc0d9866f77779c9a34e64e64c725c090b32ec1b4729e9f7871613f54eab4c57b9a28 diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.15.2.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.15.2.ebuild deleted file mode 100644 index 34b00514635e..000000000000 --- a/sci-misc/mendeleydesktop/mendeleydesktop-1.15.2.ebuild +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python{2_7,3_3,3_4} ) - -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" -} - -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.15.3.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.15.3.ebuild new file mode 100644 index 000000000000..b87094b719f6 --- /dev/null +++ b/sci-misc/mendeleydesktop/mendeleydesktop-1.15.3.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_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 +} -- cgit v1.2.3-65-gdbad