Commits

Bela Hausmann committed 64dfca9

Up-to-date version of mendeleydesktop (1.7.1) - ebuild copied from gentoo

Comments (0)

Files changed (2)

sci-misc/mendeleydesktop/Manifest

+DIST mendeleydesktop-1.7.1-linux-i486.tar.bz2 30790548 SHA256 c33747ce223ea264bf8ebe3de77e4c25487141d73c66f8b541c4fb1c3e146617 SHA512 0ab8a688fbc9f7460d52acec3dd4fa5c139716190dc76ecad9762a733475f4de511d5d65410572e3cf2db7993421dff9ccc8a26ae751aef270c2fd98a5b17c93 WHIRLPOOL c4016c3c2c0bdfdaae2ba03b9c665645e8f1bdbea9877c5829a105682ca7de9535bc3a7a7019a37ef6e3e4baaa46a9431a45f8ae774fd4ab6e55d368613249a7
+DIST mendeleydesktop-1.7.1-linux-x86_64.tar.bz2 30923644 SHA256 875dfcfa9754a14d801b242cc6525ebc89546c13f876c6a1612334685393dd27 SHA512 24fd0a41d4177491c150eecc5732814f9c3e413c7facb28833dd0f7cab3375f69ba6a11ebe5226d7d347841f69d8dcc7ec142368b2b5905a47a785cf7948eff5 WHIRLPOOL 05e43ff78f3e50fce49c7d225ca853bed368d9d969ebe0ce3ec54c367e105c38992c0397e3787fa76d347f7a34d97b3c99c1264d247fe2e85849c9a958411ffc
+EBUILD mendeleydesktop-1.7.1.ebuild 2601 SHA256 50219ce17716a7efca75c09d4fdbcf00e6f873fafe061233ab058054d9bac81e SHA512 581b4ad42c4837f128110c1da1e7e6e8d61228594c72e7cf072f1dafbbd638f95b0fe77c0390aa8f5ce19ec8cf685b82ed3cf20da7b66bf1f74b928ba496256e WHIRLPOOL d7e596b9adb0363f18c5a89690e5b24a381b5da1897f8fdd9b79f9b217e71896abdea078896bb446b460068ff444945a6ebbc28c27c3c2a131b0415e17e08aea

sci-misc/mendeleydesktop/mendeleydesktop-1.7.1.ebuild

+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/mendeleydesktop/mendeleydesktop-1.6.ebuild,v 1.2 2012/09/11 18:17:52 miknix Exp $
+
+EAPI="4"
+
+inherit eutils 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=">=x11-libs/qt-core-4.6:4
+	>=x11-libs/qt-gui-4.6:4
+	>=x11-libs/qt-svg-4.6:4
+	>=x11-libs/qt-webkit-4.6:4
+	>=x11-libs/qt-xmlpatterns-4.6:4"
+
+QA_PRESTRIPPED="
+	/opt/mendeleydesktop/$(get_libdir)/mendeleydesktop/libexec/.*
+	/opt/mendeleydesktop/$(get_libdir)/lib.*so.*"
+
+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}"
+
+	if use amd64 || use amd64-linux ; then
+		mv -f "${MY_P_AMD64}" "${P}"
+	else
+		mv -f "${MY_P_X86}" "${P}"
+	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}/FAQ.pdf
+	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
+
+	# make symbolic to known location
+	dosym /opt/${PN}/bin/${PN} /opt/bin/${PN}
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.