Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/mendeleydesktop/
Date: Tue, 02 Apr 2019 21:55:17
Message-Id: 1554242074.af48d49280d6a4fa77468e611dcc84fb414da9b9.pacho@gentoo
1 commit: af48d49280d6a4fa77468e611dcc84fb414da9b9
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 2 21:54:34 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 2 21:54:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af48d492
7
8 sci-misc/mendeleydesktop: Version bump
9
10 Closes: https://bugs.gentoo.org/679584
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13
14 sci-misc/mendeleydesktop/Manifest | 2 +
15 .../mendeleydesktop/mendeleydesktop-1.19.3.ebuild | 127 +++++++++++++++++++++
16 2 files changed, 129 insertions(+)
17
18 diff --git a/sci-misc/mendeleydesktop/Manifest b/sci-misc/mendeleydesktop/Manifest
19 index 9e2a709a189..493cc9d0c8a 100644
20 --- a/sci-misc/mendeleydesktop/Manifest
21 +++ b/sci-misc/mendeleydesktop/Manifest
22 @@ -1,2 +1,4 @@
23 DIST mendeleydesktop-1.19.2-linux-i486.tar.bz2 155393374 BLAKE2B 1863d2ee2dd907495365d602729dea01d0ca6d8023729e66dc14bb1d5ff3c247738374e7199193b0adb20936cb1e8d772135a8148b13d7b4377eb6059805f739 SHA512 b8b8b291a2b2d3cf43ec96005f891b9acd73090c945252b0b22abbc71c631bd74c9cf600c3c5e2c75ee3784a3ac3d06d8d925b5a70a3e47e34901047f67ca587
24 DIST mendeleydesktop-1.19.2-linux-x86_64.tar.bz2 159146426 BLAKE2B e3b1240459a252e7fe32e65f1ad271b0a473c7ef84202a71b65066ea33ff9ea0c9f0c7c8ff81fd34dbfdf7e954b090e2d4cfbc7576bdff65f6105fb84b2b55ec SHA512 ddcbac4f863706f1226157a4528d89801502af6d5af105558ee1b3a5ecad4ba4c90ff64dffd822f485d45670c6ad54cae93f9a582a5bc82bc23e404c767aca40
25 +DIST mendeleydesktop-1.19.3-linux-i486.tar.bz2 155511701 BLAKE2B 0aaa0329c2287c6bb98f94a2a4ba708ea4a6c0cae72bb400c4f028aca35ff749460b97af7eb8e960abae2cbad480f3c039bbcf2a5daa9e12efee483fd1221290 SHA512 30e0460522474e68c1664256afc6e1d3af68443f75b0b5a76b76102ea812ed680d8d20e1d3f9dc4fc29408dd5e7718a8436ba34fc91a896fd9cbda702abcc3e8
26 +DIST mendeleydesktop-1.19.3-linux-x86_64.tar.bz2 159153513 BLAKE2B d0929043a053a73658070d8598c8e989f345fe1294cda479bb06f672dd60d4a3ab88754f6d3a9ae619011f5c7ce3f8259235544884865c95d4a8f182ad44627e SHA512 2c2d92d45730797f93eec74b23ea8d7f654388fd778063dcd92705fe019939f6d557bcaac13a14b021fcc4d785938921b19a9c8b821dfe6c18fb5c213eaa8a26
27
28 diff --git a/sci-misc/mendeleydesktop/mendeleydesktop-1.19.3.ebuild b/sci-misc/mendeleydesktop/mendeleydesktop-1.19.3.ebuild
29 new file mode 100644
30 index 00000000000..b901d27232f
31 --- /dev/null
32 +++ b/sci-misc/mendeleydesktop/mendeleydesktop-1.19.3.ebuild
33 @@ -0,0 +1,127 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
39 +
40 +inherit desktop python-single-r1 xdg
41 +
42 +MY_P_AMD64="${P}-linux-x86_64"
43 +MY_P_X86="${P}-linux-i486"
44 +
45 +DESCRIPTION="Research management tool for desktop and web"
46 +HOMEPAGE="https://www.mendeley.com/"
47 +SRC_URI="
48 + amd64? ( ${MY_P_AMD64}.tar.bz2 )
49 + x86? ( ${MY_P_X86}.tar.bz2 )
50 + amd64-linux? ( ${MY_P_AMD64}.tar.bz2 )
51 + x86-linux? ( ${MY_P_X86}.tar.bz2 )"
52 +
53 +LICENSE="Mendeley-terms"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +IUSE=""
57 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
58 +
59 +RESTRICT="fetch"
60 +
61 +DEPEND=""
62 +BDEPEND=""
63 +RDEPEND="${PYTHON_DEPS}
64 + dev-qt/qtcore:5
65 + dev-qt/qtdeclarative:5
66 + dev-qt/qtgui:5
67 + dev-qt/qtnetwork:5
68 + dev-qt/qtpositioning:5
69 + dev-qt/qtprintsupport:5
70 + dev-qt/qtsvg:5
71 + dev-qt/qtwebengine:5[widgets]
72 + dev-qt/qtwebkit:5
73 + dev-qt/qtxml:5
74 + sys-libs/zlib
75 + virtual/opengl
76 + x11-libs/libX11
77 +"
78 +
79 +QA_PREBUILT="/opt/mendeleydesktop/.*"
80 +
81 +PATCHES=(
82 + "${FILESDIR}"/${PN}-1.17.8-libdir.patch
83 + "${FILESDIR}"/${PN}-1.17.8-qt5plugins.patch
84 + "${FILESDIR}"/${PN}-1.17.8-unix-distro-build.patch
85 +)
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 your DISTDIR directory."
91 +}
92 +
93 +src_unpack() {
94 + unpack ${A}
95 +
96 + cd "${WORKDIR}" || die
97 +
98 + if use amd64 || use amd64-linux ; then
99 + mv -f "${MY_P_AMD64}" "${P}" || die
100 + else
101 + mv -f "${MY_P_X86}" "${P}" || die
102 + fi
103 +}
104 +
105 +src_prepare() {
106 + xdg_src_prepare
107 +
108 + # remove bundled Qt libraries
109 + rm -r lib/mendeleydesktop/plugins \
110 + || die "failed to remove plugin directory"
111 + rm -r lib/qt || die
112 +
113 + # fix qt library path
114 + sed -e "s:/usr/lib/qt5/plugins:${EROOT}/usr/$(get_libdir)/qt5/plugins:g" \
115 + -i bin/mendeleydesktop || die
116 +
117 + # fix library paths
118 + sed -e "s:lib/mendeleydesktop:$(get_libdir)/mendeleydesktop:g" \
119 + -e "s:MENDELEY_BASE'] + \"/lib/\":MENDELEY_BASE'] + \"/$(get_libdir)/\":g" \
120 + -i bin/mendeleydesktop || die
121 +}
122 +
123 +src_install() {
124 + # install menu
125 + domenu share/applications/${PN}.desktop
126 +
127 + # install application icons
128 + insinto /usr/share/icons
129 + doins -r share/icons/hicolor
130 +
131 + # install default icon
132 + insinto /usr/share/pixmaps
133 + doins share/icons/hicolor/48x48/apps/${PN}.png
134 +
135 + # install documentation, but no license file
136 + dodoc share/doc/${PN}/Readme.txt
137 +
138 + # install binary
139 + python_fix_shebang bin/${PN}
140 + into /opt/${PN}
141 + dobin bin/*
142 +
143 + # install libraries
144 + dolib.so lib/lib*.so*
145 +
146 + # remove qtconf and qt-5.10 workaround
147 + rm lib/mendeleydesktop/libexec/qt.conf
148 + rm "lib/mendeleydesktop/libexec/QtWebEngineProcess --type=zygote --lang=en-US"
149 +
150 + # install programs
151 + exeinto /opt/mendeleydesktop/$(get_libdir)/mendeleydesktop/libexec
152 + doexe lib/mendeleydesktop/libexec/*
153 +
154 + # install shared files
155 + insinto /opt/${PN}/share
156 + doins -r share/mendeleydesktop
157 +
158 + # symlink launch script
159 + dosym ../mendeleydesktop/bin/mendeleydesktop /opt/bin/mendeleydesktop
160 +}