e1d1045bc7
PR: 271797
40 lines
988 B
Makefile
40 lines
988 B
Makefile
PORTNAME= texlab
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 4.2.0
|
|
PORTREVISION= 8
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= antranigv@freebsd.am
|
|
COMMENT= Language Server Protocol for LaTeX
|
|
WWW= https://texlab.netlify.app/
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= cargo
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= latex-lsp
|
|
|
|
# Fixes: error: the linked panic runtime `panic_unwind` is not compiled with
|
|
# this crate's panic strategy `abort`
|
|
LTO_UNSAFE= yes
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
man/man1/${PORTNAME}.1.gz
|
|
PORTDOCS= CHANGELOG.md README.md docs/*
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_DEFAULT= DOCS
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \
|
|
${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGELOG.md ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|