science/linux-zotero: Install icons
Also, remove .orig files that were getting installed by accident.
This commit is contained in:
parent
a7d72f205e
commit
b7240d45e8
2 changed files with 13 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue