Gentoo Archives: gentoo-commits

From: "Angelo Arrifano (miknix)" <miknix@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/mendeleydesktop: ChangeLog mendeleydesktop-1.8.ebuild mendeleydesktop-1.7.1.ebuild
Date: Mon, 28 Jan 2013 14:27:55
Message-Id: 20130128142752.61DDA2171D@flycatcher.gentoo.org
1 miknix 13/01/28 14:27:52
2
3 Modified: ChangeLog
4 Added: mendeleydesktop-1.8.ebuild
5 Removed: mendeleydesktop-1.7.1.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0720FC74)
10
11 Revision Changes Path
12 1.9 sci-misc/mendeleydesktop/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/mendeleydesktop/ChangeLog?rev=1.9&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/mendeleydesktop/ChangeLog?rev=1.9&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/mendeleydesktop/ChangeLog?r1=1.8&r2=1.9
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-misc/mendeleydesktop/ChangeLog,v
21 retrieving revision 1.8
22 retrieving revision 1.9
23 diff -u -r1.8 -r1.9
24 --- ChangeLog 28 Nov 2012 22:50:12 -0000 1.8
25 +++ ChangeLog 28 Jan 2013 14:27:52 -0000 1.9
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-misc/mendeleydesktop
28 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/mendeleydesktop/ChangeLog,v 1.8 2012/11/28 22:50:12 miknix Exp $
30 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/mendeleydesktop/ChangeLog,v 1.9 2013/01/28 14:27:52 miknix Exp $
32 +
33 +*mendeleydesktop-1.8 (28 Jan 2013)
34 +
35 + 28 Jan 2013; Angelo Arrifano <miknix@g.o>
36 + -mendeleydesktop-1.7.1.ebuild, +mendeleydesktop-1.8.ebuild:
37 + Version bump
38
39 *mendeleydesktop-1.7.1 (28 Nov 2012)
40
41
42
43
44 1.1 sci-misc/mendeleydesktop/mendeleydesktop-1.8.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/mendeleydesktop/mendeleydesktop-1.8.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/mendeleydesktop/mendeleydesktop-1.8.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mendeleydesktop-1.8.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-misc/mendeleydesktop/mendeleydesktop-1.8.ebuild,v 1.1 2013/01/28 14:27:52 miknix Exp $
54
55 EAPI="4"
56
57 inherit eutils multilib
58
59 MY_P_AMD64="${P}-linux-x86_64"
60 MY_P_X86="${P}-linux-i486"
61
62 DESCRIPTION="A free research management tool for desktop and web"
63 HOMEPAGE="http://www.mendeley.com/"
64 SRC_URI="amd64? ( ${MY_P_AMD64}.tar.bz2 )
65 x86? ( ${MY_P_X86}.tar.bz2 )
66 amd64-linux? ( ${MY_P_AMD64}.tar.bz2 )
67 x86-linux? ( ${MY_P_X86}.tar.bz2 )"
68
69 LICENSE="Mendeley-EULA"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86"
72 IUSE=""
73
74 RESTRICT="fetch"
75
76 DEPEND=""
77 RDEPEND=">=x11-libs/qt-core-4.6:4
78 >=x11-libs/qt-gui-4.6:4
79 >=x11-libs/qt-svg-4.6:4
80 >=x11-libs/qt-webkit-4.6:4
81 >=x11-libs/qt-xmlpatterns-4.6:4"
82
83 QA_PRESTRIPPED="
84 /opt/mendeleydesktop/$(get_libdir)/mendeleydesktop/libexec/.*
85 /opt/mendeleydesktop/$(get_libdir)/lib.*so.*"
86
87 pkg_nofetch() {
88 elog "Please download ${A} from:"
89 elog "http://www.mendeley.com/download-mendeley-desktop/"
90 elog "and move it to ${DISTDIR}"
91 }
92
93 src_unpack() {
94 unpack ${A}
95
96 cd "${WORKDIR}"
97
98 if use amd64 || use amd64-linux ; then
99 mv -f "${MY_P_AMD64}" "${P}"
100 else
101 mv -f "${MY_P_X86}" "${P}"
102 fi
103 }
104
105 src_prepare() {
106 # remove bundled Qt libraries
107 rm -rf lib/mendeleydesktop/plugins \
108 || die "failed to remove plugin directory"
109 rm -rf lib/qt || die "failed to remove qt libraries"
110
111 # force use of system Qt libraries
112 sed -i "s:sys\.argv\.count(\"--force-system-qt\") > 0:True:" \
113 bin/mendeleydesktop || die "failed to patch startup script"
114
115 # fix library paths
116 sed -i \
117 -e "s:lib/mendeleydesktop:$(get_libdir)/mendeleydesktop:g" \
118 -e "s:MENDELEY_BASE_PATH + \"/lib/\":MENDELEY_BASE_PATH + \"/$(get_libdir)/\":g" \
119 bin/mendeleydesktop || die "failed to patch library path"
120 }
121
122 src_install() {
123 # install menu
124 domenu share/applications/${PN}.desktop
125
126 # install application icons
127 insinto /usr/share/icons
128 doins -r share/icons/hicolor
129
130 # install default icon
131 insinto /usr/share/pixmaps
132 doins share/icons/hicolor/48x48/apps/${PN}.png
133
134 # install documentation, but no license file
135 dodoc share/doc/${PN}/FAQ.pdf
136 dodoc share/doc/${PN}/Readme.txt
137
138 # install binary
139 into /opt/${PN}
140 dobin bin/*
141
142 # install libraries
143 dolib.so lib/lib*.so*
144
145 # install programs
146 exeinto /opt/mendeleydesktop/$(get_libdir)/mendeleydesktop/libexec
147 doexe lib/mendeleydesktop/libexec/*
148
149 # install shared files
150 insinto /opt/${PN}/share
151 doins -r share/mendeleydesktop
152
153 # make symbolic to known location
154 dosym /opt/${PN}/bin/${PN} /opt/bin/${PN}
155 }