commit:     0edd4e1a7ec91e7e254d15b5b2f2830ecd0ef987
Author:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
AuthorDate: Sun May 18 14:40:04 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Sun May 18 14:41:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0edd4e1a

app-text/zotero-bin: add 7.0.15

Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 app-text/zotero-bin/Manifest                 |  2 +
 app-text/zotero-bin/zotero-bin-7.0.15.ebuild | 84 ++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

diff --git a/app-text/zotero-bin/Manifest b/app-text/zotero-bin/Manifest
index d0933f3bc7ff..f3918fee3563 100644
--- a/app-text/zotero-bin/Manifest
+++ b/app-text/zotero-bin/Manifest
@@ -1,2 +1,4 @@
 DIST zotero-bin-7.0.11-amd64.tar.bz2 109387437 BLAKE2B 
1af59f2b768c962dfe9575a3f6fb50572eb57db26412dd91abca10c2d476023a8a2d44ba93d2607b6f084c91c4e8d0d3788dfdf85c989fb574d6eea5dc565e8c
 SHA512 
ec69ba264a3bf05a579057122738a38316f7de43ce46229d3b6ef6b13c4a43b01d647179206b46a1c46d5e093579f81dc875d022675d167ad7e023ac7558f806
 DIST zotero-bin-7.0.11-x86.tar.bz2 113321965 BLAKE2B 
5c25e1c825a964b4c3a4371c7ec67132662d77f5e64ca0dc8c8f2346f25a106068da0a8193047c09b7645ae699ce0e5256bc46664cf221634ea225a1b54b3ae2
 SHA512 
b83af4e6b8e3748cc6ea04046bc4e6c4299c510af6154ccce4df9fd50e356376a675170187521da8009a17240907030929c61145e45702ee90610716e2d4873d
+DIST zotero-bin-7.0.15-amd64.tar.bz2 109456108 BLAKE2B 
3778ee21880f7bfe3f56c4197b22c19bb26e33a79998d29973137b86f9fab376846db1a263b599296ee6bf40113104928c7c2d6b63d4ef6e051a61da7da83e3a
 SHA512 
a564955e4a18eabed30d3442781fd771d25c4d3e5b321d6906642bb918390dbc99abb0a6f5b1265ee980da62746a53513a7bfafee17156844b0639c07304dc05
+DIST zotero-bin-7.0.15-x86.tar.bz2 113391204 BLAKE2B 
8b6a69b172b17b7bc12593c502c28985bb62d90ea0da4f950d6e10537bdc740e6587a6aa9b79ea4209c80c8a4cc3d616299fa2f173d3508f7c73ce6f199df5ff
 SHA512 
20ce498216686117fddf769eacff35f6a75ba6deaa275ab6209f3d1dc2177cad0a5fc416916e193bb4c0be7d0b400bed66fe2ca23cbc94cd702fc85c9a4edf25

diff --git a/app-text/zotero-bin/zotero-bin-7.0.15.ebuild 
b/app-text/zotero-bin/zotero-bin-7.0.15.ebuild
new file mode 100644
index 000000000000..a146fc26427b
--- /dev/null
+++ b/app-text/zotero-bin/zotero-bin-7.0.15.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2025 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="
+       amd64? ( 
https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=${PV}
 -> ${P}-amd64.tar.bz2 )
+       x86? ( 
https://www.zotero.org/download/client/dl?channel=release&platform=linux-i686&version=${PV}
 -> ${P}-x86.tar.bz2 )
+"
+S="${WORKDIR}"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="-* amd64 ~x86"
+
+RDEPEND="
+       app-accessibility/at-spi2-core
+       dev-libs/dbus-glib
+       dev-libs/glib
+       dev-libs/nspr
+       dev-libs/nss
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       sys-apps/dbus
+       sys-libs/glibc
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf
+       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/libXrandr
+       x11-libs/libXrender
+       x11-libs/libXtst
+       x11-libs/pango
+"
+
+QA_PREBUILT="opt/zotero/*"
+
+src_prepare() {
+       if use amd64; then
+               cd Zotero_linux-x86_64 || die
+       elif use x86; then
+               cd Zotero_linux-i686 || die
+       fi
+
+       # disable auto-update
+       sed -i -e 's#URL=.*#URL=#' app/application.ini || die
+
+       # fix desktop-file
+       sed -i -e 's#^Exec=.*#Exec=zotero -url %U#' zotero.desktop || die
+       sed -i -e 's#Icon=zotero.*#Icon=zotero#' zotero.desktop || die
+
+       default
+}
+
+src_install() {
+       if use amd64; then
+               cd Zotero_linux-x86_64 || die
+       elif use x86; then
+               cd Zotero_linux-i686 || die
+       fi
+
+       dodir opt/zotero
+       cp -a * "${ED}/opt/zotero" || die
+
+       dosym ../../opt/zotero/zotero usr/bin/zotero
+
+       domenu zotero.desktop
+
+       for size in 32 64 128; do
+               newicon -s ${size} icons/icon${size}.png zotero.png
+       done
+}

Reply via email to