commit: 4745fb188bf61a405a9ae786b2b47560527bc99b Author: Justin Lecher <jlec <AT> gentoo <DOT> org> AuthorDate: Sun Jan 25 16:41:19 2015 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Sun Jan 25 16:41:19 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4745fb18
Moved to tree Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> --- sci-misc/mendeleydesktop/ChangeLog | 18 ---- .../files/mendeleydesktop-fix-python3.patch | 16 --- .../mendeleydesktop/mendeleydesktop-1.13.1.ebuild | 117 --------------------- sci-misc/mendeleydesktop/metadata.xml | 9 -- 4 files changed, 160 deletions(-) diff --git a/sci-misc/mendeleydesktop/ChangeLog b/sci-misc/mendeleydesktop/ChangeLog deleted file mode 100644 index b8e6ec6..0000000 --- a/sci-misc/mendeleydesktop/ChangeLog +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - - 19 Jan 2015; Marius Brehler <mar...@linux.sungazer.de> - mendeleydesktop-1.13.1.ebuild, +files/mendeleydesktop-fix-python3.patch: - Fix for python3 as discussed in #536656, thanks to Alexander Shamov - -*mendeleydesktop-1.13.1 (14 Jan 2015) - - 14 Jan 2015; Marius Brehler <mar...@linux.sungazer.de> - -mendeleydesktop-1.13.ebuild, +mendeleydesktop-1.13.1.ebuild: - Version bump; Drop old - -*mendeleydesktop-1.13 (13 Jan 2015) - - 13 Jan 2015; Marius Brehler <mar...@linux.sungazer.de> - +mendeleydesktop-1.13.ebuild, metadata.xml: - Add version bumped ebuild diff --git a/sci-misc/mendeleydesktop/files/mendeleydesktop-fix-python3.patch b/sci-misc/mendeleydesktop/files/mendeleydesktop-fix-python3.patch deleted file mode 100644 index e1b1abc..0000000 --- a/sci-misc/mendeleydesktop/files/mendeleydesktop-fix-python3.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- mendeleydesktop-1.13.1/bin/mendeleydesktop.orig 2015-01-15 15:49:15.589870680 +0100 -+++ mendeleydesktop-1.13.1/bin/mendeleydesktop 2015-01-15 15:46:49.308954069 +0100 -@@ -95,11 +95,11 @@ - # Both version components are non-numeric, treat - # them as equal - return False -- elif (version_part_a and version_part_b is None): -+ elif (type(version_part_a) is int and version_part_b is None): - # Left version component is numeric, right component is not. - # Treat the numeric part as greater - return False -- elif (version_part_b and version_part_a is None): -+ elif (type(version_part_b) is int and version_part_a is None): - # Right version component is numeric, left component is not. - # Treat the numeric part as greater - return True diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.13.1.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.13.1.ebuild deleted file mode 100644 index b374ef7..0000000 --- a/sci-misc/mendeleydesktop/mendeleydesktop-1.13.1.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils fdo-mime multilib - -MY_P_AMD64="${P}-linux-x86_64" -MY_P_X86="${P}-linux-i486" - -DESCRIPTION="A free 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="" - -RESTRICT="fetch" - -DEPEND="" -RDEPEND=" - dev-qt/qtcore:4 - dev-qt/qtgui:4 - dev-qt/qtsvg:4 - dev-qt/qtwebkit:4 - dev-qt/qtxmlpatterns:4" - -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" - - # patch for python3 - epatch "${FILESDIR}/mendeleydesktop-fix-python3.patch" -} - -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 - 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/metadata.xml b/sci-misc/mendeleydesktop/metadata.xml deleted file mode 100644 index 0678287..0000000 --- a/sci-misc/mendeleydesktop/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <longdescription> -Mendeley(TM) is a free reference manager and academic social network that can -help you organize your research, collaborate with others online, and discover -the latest research. -</longdescription> -</pkgmetadata>