textproc/asciinema: create port

asciinema is a free and open source solution for recording terminal sessions
and sharing them on the web.

WWW: https://asciinema.org/
This commit is contained in:
Steve Wills 2015-06-24 00:46:35 +00:00
parent 963c4b6259
commit eeb438d7f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390467
4 changed files with 46 additions and 0 deletions

View file

@ -30,6 +30,7 @@
SUBDIR += archmage
SUBDIR += artha
SUBDIR += asciidoc
SUBDIR += asciinema
SUBDIR += asm-xml
SUBDIR += asm2html
SUBDIR += aspell

View file

@ -0,0 +1,39 @@
# $FreeBSD$
PORTNAME= asciinema
PORTVERSION= 1.1.1
DISTVERSIONPREFIX= v
CATEGORIES= textproc
MAINTAINER= swills@FreeBSD.org
COMMENT= Terminal session recorder
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
USE_GITHUB= yes
PLIST_FILES= bin/${PORTNAME}
STRIP= # stripping can break go binaries
PORTDOCS= CHANGELOG.md LICENSE README.md
post-patch:
@cd ${WRKSRC} ; ${MKDIR} src/github.com/${GH_ACCOUNT} ; \
${MKDIR} Godeps/_workspace/src/github.com/${GH_ACCOUNT} ; \
${LN} -s ../../../../../ Godeps/_workspace/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \
${LN} -s ../../.. src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
do-build:
@cd ${WRKSRC} ; \
${SETENV} GOPATH=${WRKSRC}/Godeps/_workspace go build -o bin/asciinema
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGELOG.md ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (asciinema-asciinema-v1.1.1_GH0.tar.gz) = 841b3393a65a4f49a01354aed4e2da6c30822dc83bcd988ff100fabda7038055
SIZE (asciinema-asciinema-v1.1.1_GH0.tar.gz) = 94902

View file

@ -0,0 +1,4 @@
asciinema is a free and open source solution for recording terminal sessions
and sharing them on the web.
WWW: https://asciinema.org/