mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
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)
This commit is contained in:
parent
182ebe1f66
commit
59d778fbc3
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user