diff options
author | 2022-03-26 12:04:48 +0100 | |
---|---|---|
committer | 2022-03-26 12:04:48 +0100 | |
commit | 27304bf0e24b39ed117f12900e27504ee399280f (patch) | |
tree | 33f16f844cc43d3d2c677cb6a5794e7d10392c59 /app-text | |
parent | sci-visualization/scidavis: drop 2.4.0_p20211117 (diff) | |
download | gentoo-27304bf0e24b39ed117f12900e27504ee399280f.tar.gz gentoo-27304bf0e24b39ed117f12900e27504ee399280f.tar.bz2 gentoo-27304bf0e24b39ed117f12900e27504ee399280f.zip |
app-text/zotero-bin: add 6.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/zotero-bin/Manifest | 1 | ||||
-rw-r--r-- | app-text/zotero-bin/zotero-bin-6.0.3.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/app-text/zotero-bin/Manifest b/app-text/zotero-bin/Manifest index 88755cde6230..b34fbabde4fc 100644 --- a/app-text/zotero-bin/Manifest +++ b/app-text/zotero-bin/Manifest @@ -1 +1,2 @@ DIST zotero-bin-5.0.96.3.tar.bz2 61236517 BLAKE2B 3de6d41349f9cc405dd3d44e8e456169d58bdd1f4522c31cd168182878839fe8ca6280eff7339bcf3d66c87c7d4f5af55d768551abcff3cd579342cae37b64e3 SHA512 0777ec41bc151b0bd30076f8a7f59e431c3435728b4d85298421ef11aea5b7c1e122d3bb7fcc5551bb8c4472922796d9508a56df7a0913515d8568fcf3ca6fee +DIST zotero-bin-6.0.3.tar.bz2 68405653 BLAKE2B 53b0312fad219a7b7bb76caaac3e596427e27f6f2f317ec06c8eb9a12833b983593f54c287175228cdee40c02f6f8c09ef8a1d8e803476ac35f55d733f589a7d SHA512 f0635597dd8337f6851a7bc45eae288239069865bb95065ad84f4e7905e99a75ee12eb43c1390733ff6b5210569a67d0f66ac31bae7e20d06e2680202b806973 diff --git a/app-text/zotero-bin/zotero-bin-6.0.3.ebuild b/app-text/zotero-bin/zotero-bin-6.0.3.ebuild new file mode 100644 index 000000000000..831f9a1eb8cf --- /dev/null +++ b/app-text/zotero-bin/zotero-bin-6.0.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg + +DESCRIPTION="Helps you collect, organize, cite, and share your research sources" +HOMEPAGE="https://www.zotero.org" +SRC_URI="https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=${PV} -> ${P}.tar.bz2" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="-* ~amd64" + +RDEPEND=" + dev-libs/atk + dev-libs/dbus-glib + dev-libs/glib + dev-libs/nspr + dev-libs/nss + media-libs/fontconfig + media-libs/freetype + sys-apps/dbus + sys-libs/glibc + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrender + x11-libs/libXt + x11-libs/pango +" + +S="${WORKDIR}/Zotero_linux-x86_64" + +QA_PREBUILT="opt/zotero/*" + +src_prepare() { + # disable auto-update + sed -i -e 's/\(pref("app.update.enabled"\).*/\1, false);/' defaults/preferences/prefs.js || die + + # disable default oo installation questions - manual installation is still possible + sed -i -e 's/\(pref("extensions.zoteroOpenOfficeIntegration.skipInstallation"\).*/\1, true);/' \ + extensions/zoteroOpenOfficeIntegration@zotero.org/defaults/preferences/zoteroOpenOfficeIntegration.js || die + + # fix desktop-file + sed -i -e 's#^Exec=.*#Exec=zotero#' zotero.desktop || die + sed -i -e 's#Icon=zotero.*#Icon=zotero#' zotero.desktop || die + + default +} + +src_install() { + dodir opt/zotero + cp -a "${S}"/* "${ED}/opt/zotero" || die + + dosym ../../opt/zotero/zotero usr/bin/zotero + + domenu zotero.desktop + + for size in 16 32 48 256; do + newicon -s ${size} chrome/icons/default/default${size}.png zotero.png + done +} |