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