Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Nov 2021 23:34:13 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 29b0025ba676 - main - science/linux-zotero: Clean up
Message-ID:  <202111072334.1A7NYDhc099497@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp:

URL: https://cgit.FreeBSD.org/ports/commit/?id=29b0025ba67634688d0bc3759d4ee39893b7e304

commit 29b0025ba67634688d0bc3759d4ee39893b7e304
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2021-11-07 18:23:41 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2021-11-07 23:33:54 +0000

    science/linux-zotero: Clean up
---
 science/linux-zotero/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/science/linux-zotero/Makefile b/science/linux-zotero/Makefile
index 17774a8fc1aa..a933756c07fd 100644
--- a/science/linux-zotero/Makefile
+++ b/science/linux-zotero/Makefile
@@ -5,9 +5,9 @@ MASTER_SITES=	https://download.zotero.org/client/release/${DISTVERSION}/ \
 		https://raw.githubusercontent.com/zotero/zotero-standalone-build/${DISTVERSION}/:LICENSE
 PKGNAMEPREFIX=	linux-
 DIST_SUBDIR=	${PORTNAME}
-DISTFILES=	Zotero-${DISTVERSION}_linux-x86_64${EXTRACT_SUFX} \
+DISTFILES=	${_MAIN_DISTFILE} \
 		COPYING:LICENSE
-EXTRACT_ONLY=	Zotero-${DISTVERSION}_linux-x86_64${EXTRACT_SUFX}
+EXTRACT_ONLY=	${_MAIN_DISTFILE}
 
 MAINTAINER=	0mp@FreeBSD.org
 COMMENT=	Reference management for bibliographic data and research materials
@@ -26,6 +26,7 @@ USE_LINUX=	dbusglib gtk3
 SUB_FILES=	zotero-wrapper
 
 _BINARIES=	pdftotext pdfinfo zotero-bin
+_MAIN_DISTFILE=	Zotero-${DISTVERSION}_linux-x86_64${EXTRACT_SUFX}
 
 post-extract:
 	${CP} ${DISTDIR}/${DIST_SUBDIR}/COPYING ${WRKDIR}
@@ -39,7 +40,7 @@ do-install:
 	(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}${PREFIX}/share/applications/
+	${MV} ${STAGEDIR}${DATADIR}/zotero.desktop ${STAGEDIR}${DESKTOPDIR}
 	${INSTALL_SCRIPT} ${WRKDIR}/zotero-wrapper ${STAGEDIR}${PREFIX}/bin/zotero
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111072334.1A7NYDhc099497>