From eeb438d7f85f0d9329c039a974fe1ed6702f6362 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Wed, 24 Jun 2015 00:46:35 +0000 Subject: [PATCH] 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/ --- textproc/Makefile | 1 + textproc/asciinema/Makefile | 39 ++++++++++++++++++++++++++++++++++++ textproc/asciinema/distinfo | 2 ++ textproc/asciinema/pkg-descr | 4 ++++ 4 files changed, 46 insertions(+) create mode 100644 textproc/asciinema/Makefile create mode 100644 textproc/asciinema/distinfo create mode 100644 textproc/asciinema/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index 18bd9642f891..d3026db753a1 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -30,6 +30,7 @@ SUBDIR += archmage SUBDIR += artha SUBDIR += asciidoc + SUBDIR += asciinema SUBDIR += asm-xml SUBDIR += asm2html SUBDIR += aspell diff --git a/textproc/asciinema/Makefile b/textproc/asciinema/Makefile new file mode 100644 index 000000000000..95e428cb0a0e --- /dev/null +++ b/textproc/asciinema/Makefile @@ -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 diff --git a/textproc/asciinema/distinfo b/textproc/asciinema/distinfo new file mode 100644 index 000000000000..cebfab689be5 --- /dev/null +++ b/textproc/asciinema/distinfo @@ -0,0 +1,2 @@ +SHA256 (asciinema-asciinema-v1.1.1_GH0.tar.gz) = 841b3393a65a4f49a01354aed4e2da6c30822dc83bcd988ff100fabda7038055 +SIZE (asciinema-asciinema-v1.1.1_GH0.tar.gz) = 94902 diff --git a/textproc/asciinema/pkg-descr b/textproc/asciinema/pkg-descr new file mode 100644 index 000000000000..0081a77e9e8e --- /dev/null +++ b/textproc/asciinema/pkg-descr @@ -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/