git: b7240d45e804 - main - science/linux-zotero: Install icons
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Jul 2022 13:05:47 UTC
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b7240d45e8043eda676c9e714aceabff0c359b68
commit b7240d45e8043eda676c9e714aceabff0c359b68
Author: Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-07-29 13:04:00 +0000
Commit: Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-07-29 13:05:40 +0000
science/linux-zotero: Install icons
Also, remove .orig files that were getting installed by accident.
---
science/linux-zotero/Makefile | 10 +++++++++-
science/linux-zotero/pkg-plist | 6 ++++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/science/linux-zotero/Makefile b/science/linux-zotero/Makefile
index 77d100d69d64..98a01ea33525 100644
--- a/science/linux-zotero/Makefile
+++ b/science/linux-zotero/Makefile
@@ -1,5 +1,6 @@
PORTNAME= zotero
DISTVERSION= 6.0.10
+PORTREVISION= 1
CATEGORIES= science deskutils linux
MASTER_SITES= https://download.zotero.org/client/release/${DISTVERSION}/ \
https://raw.githubusercontent.com/zotero/zotero-standalone-build/${DISTVERSION}/:LICENSE
@@ -29,6 +30,8 @@ SUB_FILES= zotero-wrapper
WRKSRC= ${WRKDIR}/Zotero_linux-x86_64
_BINARIES= pdftotext pdfinfo zotero-bin
+_ICONSDIR= ${PREFIX}/share/icons/hicolor
+_ICON_SIZES= 16 32 48 256
_MAIN_DISTFILE= Zotero-${DISTVERSION}_linux-x86_64${EXTRACT_SUFX}
post-extract:
@@ -39,11 +42,16 @@ do-configure:
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
- (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "! -name '*.orig'")
(cd ${WRKSRC} && ${CHMOD} +x ${_BINARIES})
# Only strip zotero-bin. Other ${_BINARIES} break strip(1).
(cd ${STAGEDIR}${DATADIR} && ${STRIP_CMD} zotero-bin)
${MV} ${STAGEDIR}${DATADIR}/zotero.desktop ${STAGEDIR}${DESKTOPDIR}
${INSTALL_SCRIPT} ${WRKDIR}/zotero-wrapper ${STAGEDIR}${PREFIX}/bin/zotero
+.for _size in ${_ICON_SIZES}
+ @${MKDIR} ${STAGEDIR}${_ICONSDIR}/${_size}x${_size}/apps
+ ${RLN} ${STAGEDIR}${DATADIR}/chrome/icons/default/default${_size}.png \
+ ${STAGEDIR}${_ICONSDIR}/${_size}x${_size}/apps/${PORTNAME}.png
+.endfor
.include <bsd.port.mk>
diff --git a/science/linux-zotero/pkg-plist b/science/linux-zotero/pkg-plist
index 3e16b188efaf..82ee058e89f5 100644
--- a/science/linux-zotero/pkg-plist
+++ b/science/linux-zotero/pkg-plist
@@ -1,5 +1,9 @@
bin/zotero
share/applications/zotero.desktop
+share/icons/hicolor/16x16/apps/zotero.png
+share/icons/hicolor/256x256/apps/zotero.png
+share/icons/hicolor/32x32/apps/zotero.png
+share/icons/hicolor/48x48/apps/zotero.png
%%DATADIR%%/Throbber-small.gif
%%DATADIR%%/application.ini
%%DATADIR%%/chrome.manifest
@@ -13,7 +17,6 @@ share/applications/zotero.desktop
%%DATADIR%%/components/zotero-protocol-handler.js
%%DATADIR%%/components/zotero-service.js
%%DATADIR%%/defaults/preferences/local-settings.js
-%%DATADIR%%/defaults/preferences/local-settings.js.orig
%%DATADIR%%/defaults/preferences/prefs.js
%%DATADIR%%/defaults/preferences/zotero.js
%%DATADIR%%/dependentlibs.list
@@ -66,7 +69,6 @@ share/applications/zotero.desktop
%%DATADIR%%/libxul.so.sig
%%DATADIR%%/minidump-analyzer
%%DATADIR%%/mozilla.cfg
-%%DATADIR%%/mozilla.cfg.orig
%%DATADIR%%/omni.ja
%%DATADIR%%/pdfinfo
%%DATADIR%%/pdftotext