Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/zotero-bin/
Date: Sat, 21 Aug 2021 09:38:05
Message-Id: 1629538653.46153817ff946616e9cb6915b10aa8501673a5cb.andrewammerlaan@gentoo
1 commit: 46153817ff946616e9cb6915b10aa8501673a5cb
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 21 09:37:33 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 21 09:37:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46153817
7
8 app-text/zotero-bin: add version 5.0.96.3
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 app-text/zotero-bin/Manifest | 1 +
14 app-text/zotero-bin/zotero-bin-5.0.96.3.ebuild | 72 ++++++++++++++++++++++++++
15 2 files changed, 73 insertions(+)
16
17 diff --git a/app-text/zotero-bin/Manifest b/app-text/zotero-bin/Manifest
18 index a3f13bd6299..1d17b0e7ac1 100644
19 --- a/app-text/zotero-bin/Manifest
20 +++ b/app-text/zotero-bin/Manifest
21 @@ -1 +1,2 @@
22 DIST zotero-bin-5.0.96.2.tar.bz2 60475436 BLAKE2B 2c113fbbb78f0e4ca4e12ed31ed43ba6e65eea88039f9fda1d1f97e6407b95e9ac1d89b2504f220ce96634f5404defcdb5f5346dec83d5d9f02832e1573f1a60 SHA512 4fc988bf74179ad5f28a4649cfc6c6c5d4eeabc3b7aa60e717681bc57dd1c3ba6f2d3310fb83e6e2e55475aa9d7077329acc3dff52b63a0759c32f542ef0ef47
23 +DIST zotero-bin-5.0.96.3.tar.bz2 61236517 BLAKE2B 3de6d41349f9cc405dd3d44e8e456169d58bdd1f4522c31cd168182878839fe8ca6280eff7339bcf3d66c87c7d4f5af55d768551abcff3cd579342cae37b64e3 SHA512 0777ec41bc151b0bd30076f8a7f59e431c3435728b4d85298421ef11aea5b7c1e122d3bb7fcc5551bb8c4472922796d9508a56df7a0913515d8568fcf3ca6fee
24
25 diff --git a/app-text/zotero-bin/zotero-bin-5.0.96.3.ebuild b/app-text/zotero-bin/zotero-bin-5.0.96.3.ebuild
26 new file mode 100644
27 index 00000000000..561cabf9e7f
28 --- /dev/null
29 +++ b/app-text/zotero-bin/zotero-bin-5.0.96.3.ebuild
30 @@ -0,0 +1,72 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit desktop xdg
37 +
38 +DESCRIPTION="Helps you collect, organize, cite, and share your research sources"
39 +HOMEPAGE="https://www.zotero.org"
40 +SRC_URI="https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=${PV} -> ${P}.tar.bz2"
41 +
42 +LICENSE="AGPL-3"
43 +SLOT="0"
44 +KEYWORDS="-* ~amd64"
45 +
46 +RDEPEND="
47 + dev-libs/atk
48 + dev-libs/dbus-glib
49 + dev-libs/glib
50 + dev-libs/nspr
51 + dev-libs/nss
52 + media-libs/fontconfig
53 + media-libs/freetype
54 + sys-apps/dbus
55 + x11-libs/cairo
56 + x11-libs/gdk-pixbuf
57 + x11-libs/gtk+:2
58 + x11-libs/gtk+:3
59 + x11-libs/libX11
60 + x11-libs/libxcb
61 + x11-libs/libXcomposite
62 + x11-libs/libXcursor
63 + x11-libs/libXdamage
64 + x11-libs/libXext
65 + x11-libs/libXfixes
66 + x11-libs/libXi
67 + x11-libs/libXrender
68 + x11-libs/libXt
69 + x11-libs/pango
70 +"
71 +
72 +S="${WORKDIR}/Zotero_linux-x86_64"
73 +
74 +QA_PREBUILT="/opt/zotero/*"
75 +
76 +src_prepare() {
77 + # disable auto-update
78 + sed -i -e 's/\(pref("app.update.enabled"\).*/\1, false);/' defaults/preferences/prefs.js || die
79 +
80 + # disable default oo installation questions - manual installation is still possible
81 + sed -i -e 's/\(pref("extensions.zoteroOpenOfficeIntegration.skipInstallation"\).*/\1, true);/' \
82 + extensions/zoteroOpenOfficeIntegration@××××××.org/defaults/preferences/zoteroOpenOfficeIntegration.js || die
83 +
84 + # fix desktop-file
85 + sed -i -e 's#^Exec=.*#Exec=zotero#' zotero.desktop
86 + sed -i -e 's#Icon=zotero.*#Icon=zotero#' zotero.desktop
87 +
88 + default
89 +}
90 +
91 +src_install() {
92 + dodir opt/zotero
93 + cp -a "${S}"/* "${ED}/opt/zotero" || die
94 +
95 + dosym ../../opt/zotero/zotero usr/bin/zotero
96 +
97 + domenu zotero.desktop
98 +
99 + for size in 16 32 48 256; do
100 + newicon -s ${size} chrome/icons/default/default${size}.png zotero.png
101 + done
102 +}