Browse Source

app-text/zotero-bin: move to ::gentoo

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
master
Andrew Ammerlaan 4 months ago
parent
commit
a6f98d950c
No known key found for this signature in database GPG Key ID: A2E2304370447E8E
  1. 1
      app-text/zotero-bin/Manifest
  2. 11
      app-text/zotero-bin/metadata.xml
  3. 53
      app-text/zotero-bin/zotero-bin-5.0.96.ebuild

1
app-text/zotero-bin/Manifest

@ -1 +0,0 @@
DIST zotero-bin-5.0.96.tar.bz2 60474165 BLAKE2B 5330ea95360cd20cbcf9366481bf715ca0b50fe6919814bba6192cd71b6c94724bd3edb2b6cde3b894b06d2f232f867b6b52426e6ab57668150c23d487c53655 SHA512 aa755b280ac9f03031d70105ada7be9ba9da17f858bffc33e8b7598e85b53b2915854b57c78c2644d181c1368aa3fdcb87f08e6bd2a0f40592acfa7faccbb124

11
app-text/zotero-bin/metadata.xml

@ -1,11 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrewammerlaan@gentoo.org</email>
<name>Andrew Ammerlaan</name>
</maintainer>
<upstream>
<remote-id type="github">zotero/zotero</remote-id>
</upstream>
</pkgmetadata>

53
app-text/zotero-bin/zotero-bin-5.0.96.ebuild

@ -1,53 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-libs/dbus-glib
dev-libs/nss
x11-libs/gtk+:3
x11-libs/libXt
"
S="${WORKDIR}/Zotero_linux-x86_64"
QA_PREBUILT="*"
src_prepare() {
# disable 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
sed -i -e 's#Icon=zotero.*#Icon=zotero#' zotero.desktop
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; do
newicon -s ${size} chrome/icons/default/default${size}.png zotero.png
done
}
Loading…
Cancel
Save