<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a79493e56cb89324f1ed86295373eb31fe86739e">https://github.com/macports/macports-ports/commit/a79493e56cb89324f1ed86295373eb31fe86739e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new a79493e tldr-cpp-client: new port
</span>a79493e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a79493e56cb89324f1ed86295373eb31fe86739e
</span>Author: Kurt Hindenburg <khindenburg@macports.org>
AuthorDate: Sat Mar 11 10:16:24 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> tldr-cpp-client: new port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes https://trac.macports.org/ticket/53753
</span>---
sysutils/tldr-cpp-client/Portfile | 57 ++++++++++++++++++++++
sysutils/tldr-cpp-client/files/patch-Makefile.diff | 29 +++++++++++
2 files changed, 86 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/tldr-cpp-client/Portfile b/sysutils/tldr-cpp-client/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..41562af
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/tldr-cpp-client/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,57 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup tldr-pages tldr-cpp-client 1.3.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories sysutils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {khindenburg @kurthindenburg} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description tldr c client - simplified and community-driven man pages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description The TLDR pages are a community effort to simplify \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the beloved man pages with practical examples.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://tldr-pages.github.io
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 29020d3f0fe5a34a7b976af67ad9c1ee868a2d0a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 fa65b9d49ec94034195b1cb985e4238cbc2ce34352d4be8772c0f058b89b41a4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant universal {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:curl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libzip \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-append CC='${configure.cc}' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LD='${configure.cc}' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS='${configure.cflags} [get_canonical_archflags cc]' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LDFLAGS='${configure.ldflags} [get_canonical_archflags ld]'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.args PREFIX=${destroot}${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set docdir ${prefix}/share/${subport}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set compldir ${prefix}/share/${subport}/autocomplete
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${compldir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 -W ${worksrcpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LICENSE \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ README.md \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 {*}[glob ${worksrcpath}/autocomplete/*] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${compldir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To install the autocompletion, source the complete script from the shell's rc:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+echo \"source ${prefix}/share/${name}/autocomplete/complete.bash\" >> ~/.bashrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+echo \"source ${prefix}/share/${name}/autocomplete/complete.zsh\" >> ~/.zshrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/tldr-cpp-client/files/patch-Makefile.diff b/sysutils/tldr-cpp-client/files/patch-Makefile.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..b15762c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/tldr-cpp-client/files/patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile 2016-09-09 04:18:27.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile 2017-03-11 09:51:13.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,6 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # General
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LD = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#LD = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RM = rm -rf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RMDIR = rmdir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ INSTALL = install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -45,16 +45,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ALL_CPPFLAGS := $(CPPFLAGS) -DVERSION='"$(VER)"'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ALL_CPPFLAGS += -D_GNU_SOURCE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ALL_CPPFLAGS += $(shell pkg-config --cflags libzip)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ALL_CPPFLAGS += -I/usr/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ALL_CPPFLAGS += -I/usr/local/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ALL_CPPFLAGS += -I/usr/local/opt/curl/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ALL_CPPFLAGS += -I/usr/local/opt/libzip/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Linker Flags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ALL_LDFLAGS := $(LDFLAGS) -L/usr/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ALL_LDFLAGS += -L/usr/local/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ALL_LDFLAGS += -L/usr/local/opt/curl/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ALL_LDFLAGS += -L/usr/local/opt/libzip/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ALL_LDFLAGS := $(LDFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ALL_LDLIBS := -lc -lm -lcurl -lzip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>