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: Mon, 02 May 2022 10:18:30
Message-Id: 1651486691.2988bc86b303075b1b53e9f06c0bcce23eb0bb21.andrewammerlaan@gentoo
1 commit: 2988bc86b303075b1b53e9f06c0bcce23eb0bb21
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 09:13:10 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 10:18:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2988bc86
7
8 app-text/zotero-bin: add 6.0.6
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 app-text/zotero-bin/Manifest | 1 +
13 app-text/zotero-bin/zotero-bin-6.0.6.ebuild | 72 +++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/app-text/zotero-bin/Manifest b/app-text/zotero-bin/Manifest
17 index 7e3718263d7e..1c9e8938a4e3 100644
18 --- a/app-text/zotero-bin/Manifest
19 +++ b/app-text/zotero-bin/Manifest
20 @@ -1 +1,2 @@
21 DIST zotero-bin-6.0.5.tar.bz2 68482314 BLAKE2B 77c17665b8584b828764a07012f3f91237dc73b334a9635fe50fae9da1ca20901a7bab22ef7008baf14c60209fc0ed9d1f6791c0a4bf3bd9414713a1071c9685 SHA512 568583c44436d9830e0b9271bfaedf7380556498c757de0bcea07ba97202aa853f92501c9aa755637ba4810d266a43c2ee17a1eedef564d22821e7f4ee337ff0
22 +DIST zotero-bin-6.0.6.tar.bz2 68462336 BLAKE2B 5d42f0439d9bf6188a602d44aa75613e257a17efc76e089fdbdc5fe036a383e74fba39086bbc05f8275477b79bab4a840132f7e839fcd904d25f218c1959fee8 SHA512 b38990497ff1471e763f4bbc96c09aaa89fc0d10a0e55a584edd3bb35f9d446d359eac1d8637a9af4bb8585870bbb27393ffb12379dab1b04dab3469c68b4741
23
24 diff --git a/app-text/zotero-bin/zotero-bin-6.0.6.ebuild b/app-text/zotero-bin/zotero-bin-6.0.6.ebuild
25 new file mode 100644
26 index 000000000000..b9f2fd5004e0
27 --- /dev/null
28 +++ b/app-text/zotero-bin/zotero-bin-6.0.6.ebuild
29 @@ -0,0 +1,72 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit desktop xdg
36 +
37 +DESCRIPTION="Helps you collect, organize, cite, and share your research sources"
38 +HOMEPAGE="https://www.zotero.org"
39 +SRC_URI="https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=${PV} -> ${P}.tar.bz2"
40 +S="${WORKDIR}/Zotero_linux-x86_64"
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 + sys-libs/glibc
56 + x11-libs/cairo
57 + x11-libs/gdk-pixbuf
58 + x11-libs/gtk+:2
59 + x11-libs/gtk+:3
60 + x11-libs/libX11
61 + x11-libs/libxcb
62 + x11-libs/libXcomposite
63 + x11-libs/libXcursor
64 + x11-libs/libXdamage
65 + x11-libs/libXext
66 + x11-libs/libXfixes
67 + x11-libs/libXi
68 + x11-libs/libXrender
69 + x11-libs/libXt
70 + x11-libs/pango
71 +"
72 +
73 +QA_PREBUILT="opt/zotero/*"
74 +
75 +src_prepare() {
76 + # disable auto-update
77 + sed -i -e 's/\(pref("app.update.enabled"\).*/\1, false);/' defaults/preferences/prefs.js || die
78 +
79 + # disable default oo installation questions - manual installation is still possible
80 + sed -i -e 's/\(pref("extensions.zoteroOpenOfficeIntegration.skipInstallation"\).*/\1, true);/' \
81 + extensions/zoteroOpenOfficeIntegration@××××××.org/defaults/preferences/zoteroOpenOfficeIntegration.js || die
82 +
83 + # fix desktop-file
84 + sed -i -e 's#^Exec=.*#Exec=zotero#' zotero.desktop || die
85 + sed -i -e 's#Icon=zotero.*#Icon=zotero#' zotero.desktop || die
86 +
87 + default
88 +}
89 +
90 +src_install() {
91 + dodir opt/zotero
92 + cp -a "${S}"/* "${ED}/opt/zotero" || die
93 +
94 + dosym ../../opt/zotero/zotero usr/bin/zotero
95 +
96 + domenu zotero.desktop
97 +
98 + for size in 16 32 48 256; do
99 + newicon -s ${size} chrome/icons/default/default${size}.png zotero.png
100 + done
101 +}