aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2022-07-29 13:04:00 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2022-07-29 13:05:40 +0000
commitb7240d45e8043eda676c9e714aceabff0c359b68 (patch)
tree7d602742b8e9f0cb6d8e6e648f316f97efdab457 /science
parenta7d72f205ee96d5eb37f1746b92dac678341c321 (diff)
downloadports-b7240d45e8043eda676c9e714aceabff0c359b68.tar.gz
ports-b7240d45e8043eda676c9e714aceabff0c359b68.zip
science/linux-zotero: Install icons
Also, remove .orig files that were getting installed by accident.
Diffstat (limited to 'science')
-rw-r--r--science/linux-zotero/Makefile10
-rw-r--r--science/linux-zotero/pkg-plist6
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