git: 59d778fbc323 - main - www/novnc: Improve port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Aug 2024 10:37:34 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=59d778fbc323eff975b1827f79d73fcab0f57efa
commit 59d778fbc323eff975b1827f79d73fcab0f57efa
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-08-24 03:10:05 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-08-24 10:36:02 +0000
www/novnc: Improve port
* Use DISTVERSIONPREFIX
* Utilize EXTRACT_AFTER_ARGS to reduce I/O
* Isolate COPYTREE_SHARE line in do-install
* Remove commands related to .travis.yml .eslintignore .eslintrc,
these files are no longer packaged
References:
https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github
https://docs.freebsd.org/en/books/porters-handbook/book/#install-copytree
PR: 280603
Approved by: portmgr (maintainer timeout, 2+ weeks)
---
www/novnc/Makefile | 14 +++++++-------
www/novnc/distinfo | 6 +++---
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/www/novnc/Makefile b/www/novnc/Makefile
index 6e1719aad5b3..b297cd22a997 100644
--- a/www/novnc/Makefile
+++ b/www/novnc/Makefile
@@ -1,4 +1,5 @@
PORTNAME= novnc
+DISTVERSIONPREFIX= v
DISTVERSION= 1.5.0
CATEGORIES= www
@@ -13,19 +14,18 @@ USES= cpe
USE_GITHUB= yes
GH_PROJECT= noVNC
-GH_TAGNAME= v1.5.0
+
+EXTRACT_AFTER_ARGS= --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/.gitignore \
+ --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/.gitmodules \
+ --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/.github \
+ --no-same-owner --no-same-permissions
NO_ARCH= yes
NO_BUILD= yes
TARGET_DIR= ${PREFIX}/libexec/novnc
-post-extract:
- @cd ${WRKSRC} && ${RM} .gitignore .gitmodules .travis.yml .eslintignore
- @cd ${WRKSRC} && ${RM} -R .github
- @${FIND} ${WRKSRC} -name '.eslintrc' -delete
-
do-install:
${MKDIR} ${STAGEDIR}${TARGET_DIR}
- cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${TARGET_DIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${TARGET_DIR})
.include <bsd.port.mk>
diff --git a/www/novnc/distinfo b/www/novnc/distinfo
index 69725fbf259e..7b894a5ee8c5 100644
--- a/www/novnc/distinfo
+++ b/www/novnc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1722725839
-SHA256 (novnc-noVNC-1.5.0-v1.5.0_GH0.tar.gz) = 6a73e41f98388a5348b7902f54b02d177cb73b7e5eb0a7a0dcf688cc2c79b42a
-SIZE (novnc-noVNC-1.5.0-v1.5.0_GH0.tar.gz) = 706843
+TIMESTAMP = 1722735379
+SHA256 (novnc-noVNC-v1.5.0_GH0.tar.gz) = 6a73e41f98388a5348b7902f54b02d177cb73b7e5eb0a7a0dcf688cc2c79b42a
+SIZE (novnc-noVNC-v1.5.0_GH0.tar.gz) = 706843