Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[request] Mendeley ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 339
Location: Around 2.4GHz

PostPosted: Wed Feb 24, 2010 6:54 pm    Post subject: [request] Mendeley ebuild Reply with quote

Anyone could provide an ebuild for Mendeley?

Thank you in advance! :wink:
_________________
Linux Proud User: HP Pavilion 15-an002ns laptop (KDE Neon), Xiaomi Mi Air 12 (KDE Neon), Raspberry Pi 3 (Nextcloudpi), Docooler MS9 Pro (LibreElec)
Back to top
View user's profile Send private message
pelopor
n00b
n00b


Joined: 20 May 2008
Posts: 6

PostPosted: Thu Mar 04, 2010 5:26 am    Post subject: Re: [request] Mendeley ebuild Reply with quote

el_Salmon wrote:
Anyone could provide an ebuild for Mendeley?


Here it is. I've checked on x86 and amd64.

% cat /usr/local/portage/app-misc/mendeleydesktop/mendeleydesktop-0.9.6.1.ebuild
Code:

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:  $

EAPI=2

inherit eutils

if [ "${ARCH}" = "amd64" ] ; then
        LNXARCH="linux-x86_64"
else
        LNXARCH="linux-i486"
fi

DESCRIPTION="A free research management tool for desktop & web"
HOMEPAGE="http://www.mendeley.com/"
SRC_URI="http://www.mendeley.com/downloads/linux/${P}-${LNXARCH}.tar.bz2"

LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="mirror strip"
#IUSE="qt-bundled"

RDEPEND=""

S="${WORKDIR}/${P}-${LNXARCH}"

MENDELEY_INSTALL_DIR="/opt/${PN}"

src_install() {
   # install menu
   domenu ${S}/share/applications/${PN}.desktop || die "Installing desktop files failed."
   # Install commonly used icon sizes
   for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do
      insinto /usr/share/icons/hicolor/${res}/apps
      doins share/icons/hicolor/${res}/apps/${PN}.png || die "Installing icons failed."
   done
   insinto /usr/share/pixmaps
   doins share/icons/hicolor/48x48/apps/${PN}.png || die "Installing pixmap failed."


   # dodoc
   dodoc ${S}/share/doc/${PN}/* || die "Installing docs failed."

   dodir ${MENDELEY_INSTALL_DIR}
   dodir ${MENDELEY_INSTALL_DIR}/lib
   dodir ${MENDELEY_INSTALL_DIR}/share
   #mv ${S}/share/icons ${D}/usr/share
   mv ${S}/bin ${D}${MENDELEY_INSTALL_DIR} || die "Installing bin failed."
   mv ${S}/lib ${D}${MENDELEY_INSTALL_DIR} || die "Installing libs failed."
   mv ${S}/share/${PN} ${D}${MENDELEY_INSTALL_DIR}/share || die "Installing shared files failed."

   dosym /opt/${PN}/bin/${PN} /opt/bin/${PN} || die "Installing launcher symlinks failed."

}
Back to top
View user's profile Send private message
DerBer
n00b
n00b


Joined: 12 Nov 2004
Posts: 22
Location: Germany

PostPosted: Mon Mar 29, 2010 9:22 am    Post subject: "Cannot mix incompatible Qt libraries" Reply with quote

Since version 0.9.6.1 (or some other change in my system) I always get a "Cannot mix incompatible Qt libraries" error when trying to start Mendeley Desktop.
That has nothing to do with your ebuild, but maybe someone has an idea how to solve the problem. I haven't found anything useful on Google.
Back to top
View user's profile Send private message
DerBer
n00b
n00b


Joined: 12 Nov 2004
Posts: 22
Location: Germany

PostPosted: Mon Mar 29, 2010 10:27 am    Post subject: Reply with quote

Ok, I found the problem: Although Mendeley Desktop overrides the library paths to use the local Qt libraries, it loads /usr/lib64/kde4/plugins/styles/qtcurve.so if QtCurve is set as the current window style. Setting another style works around the problem.
Still that's not really satisfying...
Back to top
View user's profile Send private message
pelopor
n00b
n00b


Joined: 20 May 2008
Posts: 6

PostPosted: Wed Mar 31, 2010 11:35 am    Post subject: Reply with quote

Hi, DerBer.

I didn't encounter that bug, maybe because I prevent using kde as much as possible.

As written in
http://feedback.mendeley.com/forums/4941-mendeley-feedback/suggestions/520121-cannot-mix-incompatible-libraries-problem?ref=title
Does "export QT_PLUGIN_PATH=/opt/qt4-mendeley/lib/qt4/plugins/" help?
If it helps, we can replace /opt/bin/mendeleydesktop (symlink to /opt/mendeleydesktop/bin/mendeleydesktop) with a shellscript includin "QT_PLUGIN_PATH" description.
Back to top
View user's profile Send private message
DerBer
n00b
n00b


Joined: 12 Nov 2004
Posts: 22
Location: Germany

PostPosted: Wed Apr 07, 2010 9:32 am    Post subject: Reply with quote

Yes, I've tried that. QT_PLUGIN_PATH is properly set but the QtCurve plugin is always loaded if activated. For now I stick with disabling QtCurve.
Back to top
View user's profile Send private message
robertknight
n00b
n00b


Joined: 09 Apr 2010
Posts: 1

PostPosted: Fri Apr 09, 2010 12:09 pm    Post subject: Reply with quote

Hello - I'm one of the programmers working on Mendeley Desktop. Mendeley ships its own Qt libraries so it can work on Linux systems that were built with an older version of Qt. Unfortunately this can cause problems if Qt tries to load a plugin (eg. a widget style or platform integration plugin) which uses the different system version of Qt (depending on how the plugin itself is linked to Qt).

* To disable the default widget style, run Mendeley with the '-style cleanlooks' argument (where 'cleanlooks' can also be substituted with 'gtk' or 'plastique' amongst others).
* To disable the 'platform integration' plugin (new feature in Qt >= 4.6), set the QT_PLATFORM_PLUGIN environment variable to some nonsense value (eg. "ignoreme") before running Mendeley.

Doing one or both of these things may be necessary if you get a message about incompatible libraries. Hopefully we can fix the launcher script in future to do this automatically if the program fails to load.

The other alternative is to delete Mendeley's Qt libraries and use the ones that come with the system, provided that they are new enough (currently >= 4.6.0). This might make Mendeley work better on your system (eg. have the native look and feel).

On a related note, we've just released an updated version of Mendeley Desktop which fixes a problem with Qt >= 4.6.1 amongst other things.
Back to top
View user's profile Send private message
DerBer
n00b
n00b


Joined: 12 Nov 2004
Posts: 22
Location: Germany

PostPosted: Sat Apr 10, 2010 10:45 am    Post subject: Reply with quote

Thanks for your reply.
The '-style' parameter helps a lot. At least it's the best workaround for me so far :)
I have tried removing Mendeley's Qt libraries before. But that caused crashes with some of Mendeley's functions; I didn't dig deeper to find the causes.

(Maybe you can provide 'official' ebuilds for Mendeley Desktop at some point of time?)

Best, Max
Back to top
View user's profile Send private message
pelopor
n00b
n00b


Joined: 20 May 2008
Posts: 6

PostPosted: Tue Apr 13, 2010 2:32 pm    Post subject: Reply with quote

Hello, ribertknight.

It's so good that you participate in this discussion.

robertknight wrote:

On a related note, we've just released an updated version of Mendeley Desktop which fixes a problem with Qt >= 4.6.1 amongst other things.


We can install mendeley with renaming mendeleydesktop-0.9.6.1.ebuild to mendeleydesktop-0.9.6.2.ebuild. I'll try to add some USE option to remove QT libs in mendeley binary distribution, if I have time.
Of course, I appreciate if you make and post the ebuild yourself!
Back to top
View user's profile Send private message
pelopor
n00b
n00b


Joined: 20 May 2008
Posts: 6

PostPosted: Sun May 23, 2010 1:11 pm    Post subject: Reply with quote

I've just uploaded the new ebuild of mendeley desktop ver. 0.9.6.3 on the bug #308509.
https://bugs.gentoo.org/show_bug.cgi?id=308509
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum