aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Brehler <marbre@linux.sungazer.de>2015-01-13 17:14:15 +0100
committerJustin Lecher <jlec@gentoo.org>2015-01-15 07:52:56 +0100
commit8ae9c3a9c5ce81b18d2cea72f40d3f75eaa0468b (patch)
tree1ceab05fa73eb8e2eaa430720ce6cbdcf7fc3b1a /sci-misc
parentsci-libs/arrayfire: Fix dobin of bin2cpp (diff)
downloadsci-8ae9c3a9c5ce81b18d2cea72f40d3f75eaa0468b.tar.gz
sci-8ae9c3a9c5ce81b18d2cea72f40d3f75eaa0468b.tar.bz2
sci-8ae9c3a9c5ce81b18d2cea72f40d3f75eaa0468b.zip
sci-misc/mendeleydesktop: Add version bumped ebuild
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/mendeleydesktop/ChangeLog8
-rw-r--r--sci-misc/mendeleydesktop/Manifest2
-rw-r--r--sci-misc/mendeleydesktop/mendeleydesktop-1.13.ebuild114
-rw-r--r--sci-misc/mendeleydesktop/metadata.xml9
4 files changed, 133 insertions, 0 deletions
diff --git a/sci-misc/mendeleydesktop/ChangeLog b/sci-misc/mendeleydesktop/ChangeLog
new file mode 100644
index 000000000..032fcadaf
--- /dev/null
+++ b/sci-misc/mendeleydesktop/ChangeLog
@@ -0,0 +1,8 @@
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*mendeleydesktop-1.13 (08 Jan 2015)
+
+ 13 Jan 2015; Marius Brehler <marbre@linux.sungazer.de>,
+ +mendeleydesktop-1.13.ebuild, metadata.xml:
+ Add version bumped ebuild
diff --git a/sci-misc/mendeleydesktop/Manifest b/sci-misc/mendeleydesktop/Manifest
new file mode 100644
index 000000000..06202a7ca
--- /dev/null
+++ b/sci-misc/mendeleydesktop/Manifest
@@ -0,0 +1,2 @@
+DIST mendeleydesktop-1.13-linux-i486.tar.bz2 32921317 SHA256 d2809a954b24d3ac2b00f7f7858557bd911b79951a212d070bbaacdece627254 SHA512 de46280ba715fb5efd97682c237395e51640ea7d77c766834f4f61535942d76651164bae13536a1dcfc55061c3bab4ebea52e1cebf3dd9bf2625547fd59db0b0 WHIRLPOOL df8214cb24d387358d8c0fe051c3c5817e283d2dc3bc6687fdeaed93566d183775e5ce6cfafa54b110a671a4a12a7d7c25e4569dd74656e2f8cad5126ffd0a89
+DIST mendeleydesktop-1.13-linux-x86_64.tar.bz2 32701145 SHA256 eb2beb599b06938f6b12009ac58382936e6e2594a5202fb2e7b67d9772a174f2 SHA512 854906dfe13a654627e07ff850d598a23736d2a7d2efcdf5127ed58ea1466b4240d7b229081da319486dbda00311b16ee1dc1ec9be0369160da1fdfacb161387 WHIRLPOOL 7aacc9c305b83a2de740f03cf731511c641cf53bda2f887f0d55a86777fe936fad81fe9914fb1d47b0bfcfbf22bc20d7ac775ce373d9586a448be67c8428a80b
diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.13.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.13.ebuild
new file mode 100644
index 000000000..e905dc464
--- /dev/null
+++ b/sci-misc/mendeleydesktop/mendeleydesktop-1.13.ebuild
@@ -0,0 +1,114 @@
+# 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-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="fetch"
+
+DEPEND=""
+RDEPEND="
+ >=dev-qt/qtcore-4.6:4
+ >=dev-qt/qtgui-4.6:4
+ >=dev-qt/qtsvg-4.6:4
+ >=dev-qt/qtwebkit-4.6:4
+ >=dev-qt/qtxmlpatterns-4.6: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 -rf lib/mendeleydesktop/plugins \
+ || die "failed to remove plugin directory"
+ rm -rf 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
+ 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
new file mode 100644
index 000000000..067828793
--- /dev/null
+++ b/sci-misc/mendeleydesktop/metadata.xml
@@ -0,0 +1,9 @@
+<?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>