[137873] trunk/dports/sysutils

larryv at macports.org larryv at macports.org
Mon Jun 22 07:25:15 PDT 2015


Revision: 137873
          https://trac.macports.org/changeset/137873
Author:   larryv at macports.org
Date:     2015-06-22 07:25:15 -0700 (Mon, 22 Jun 2015)
Log Message:
-----------
asciinema: New port

Text-based terminal session recorder and companion to https://asciinema.org.

Added Paths:
-----------
    trunk/dports/sysutils/asciinema/
    trunk/dports/sysutils/asciinema/Portfile
    trunk/dports/sysutils/asciinema/files/
    trunk/dports/sysutils/asciinema/files/pass-flags.patch
    trunk/dports/sysutils/asciinema/files/skip-tests.patch

Added: trunk/dports/sysutils/asciinema/Portfile
===================================================================
--- trunk/dports/sysutils/asciinema/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/asciinema/Portfile	2015-06-22 14:25:15 UTC (rev 137873)
@@ -0,0 +1,47 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           github 1.0
+
+github.setup        asciinema asciinema d6f7cabcd085e237872f13d0ab5580964cb64fb2
+version             1.1.1
+categories          sysutils
+platforms           darwin
+license             GPL-3+
+maintainers         larryv
+
+description         Record and share your terminal sessions, the right way
+long_description    Forget screen recording apps and blurry video. \
+                    Enjoy a lightweight, purely text based approach to \
+                    terminal recording. asciinema is a free and open \
+                    source solution for recording terminal sessions \
+                    and sharing them on the web.
+homepage            https://asciinema.org
+
+depends_build       port:go
+
+checksums           rmd160  8418b7c12eba9f28d56823f5a813253f06aa7afe \
+                    sha256  30bcf2577ff33fcc67d577b1370f7722e26f87c743c29d2ee42e00e31b187a2b
+
+worksrcdir          src/github.com/${name}/${name}
+post-extract {
+    file mkdir [file dirname ${worksrcpath}]
+    move ${workpath}/${distname} ${worksrcpath}
+}
+
+patchfiles          pass-flags.patch \
+                    skip-tests.patch
+
+use_configure       no
+
+build.args          COMMIT=[string range ${github.version} 0 6] \
+                    GOPATH='${workpath}' \
+                    MP_GOFLAGS='-p ${build.jobs} -v -x'
+
+destroot.args       PREFIX='${prefix}'
+
+livecheck.type      regex
+livecheck.url       ${github.homepage}/releases.atom
+livecheck.regex     {<id>tag:github.com,2008:Repository/2823326/v(\d+(\.\d+)+)</id>}
+livecheck.version   ${version}


Property changes on: trunk/dports/sysutils/asciinema/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/sysutils/asciinema/files/pass-flags.patch
===================================================================
--- trunk/dports/sysutils/asciinema/files/pass-flags.patch	                        (rev 0)
+++ trunk/dports/sysutils/asciinema/files/pass-flags.patch	2015-06-22 14:25:15 UTC (rev 137873)
@@ -0,0 +1,13 @@
+Index: Makefile
+===================================================================
+--- Makefile.orig
++++ Makefile
+@@ -15,7 +15,7 @@ DOC_DIR=$(PREFIX)/share/doc/$(NAME)
+ all: build
+ 
+ build: test
+-	go build -o bin/asciinema -ldflags "-X main.GitCommit $(COMMIT)"
++	go build -o bin/asciinema -ldflags "-X main.GitCommit $(COMMIT)" $(MP_GOFLAGS)
+ 
+ test:
+ 	go test ./...

Added: trunk/dports/sysutils/asciinema/files/skip-tests.patch
===================================================================
--- trunk/dports/sysutils/asciinema/files/skip-tests.patch	                        (rev 0)
+++ trunk/dports/sysutils/asciinema/files/skip-tests.patch	2015-06-22 14:25:15 UTC (rev 137873)
@@ -0,0 +1,28 @@
+Skip tests for now, as they fail:
+
+    go test ./...
+    ?       github.com/asciinema/asciinema  [no test files]
+    ?       github.com/asciinema/asciinema/api  [no test files]
+    ok      github.com/asciinema/asciinema/asciicast    0.005s
+    ok      github.com/asciinema/asciinema/commands 0.007s
+    ?       github.com/asciinema/asciinema/ptyx [no test files]
+    --- FAIL: TestTerminal_Record (0.00s)
+        terminal_test.go:33: got error: open /dev/ptmx: operation not permitted
+    FAIL
+    FAIL    github.com/asciinema/asciinema/terminal 0.005s
+    ok      github.com/asciinema/asciinema/util 0.006s
+    make: *** [test] Error 1
+
+Index: Makefile
+===================================================================
+--- Makefile.orig
++++ Makefile
+@@ -14,7 +14,7 @@ DOC_DIR=$(PREFIX)/share/doc/$(NAME)
+ 
+ all: build
+ 
+-build: test
++build:
+ 	go build -o bin/asciinema -ldflags "-X main.GitCommit $(COMMIT)" $(MP_GOFLAGS)
+ 
+ test:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150622/39c2a87d/attachment-0001.html>


More information about the macports-changes mailing list