[145849] trunk/dports/lang
eborisch at macports.org
eborisch at macports.org
Thu Feb 18 20:55:49 PST 2016
Revision: 145849
https://trac.macports.org/changeset/145849
Author: eborisch at macports.org
Date: 2016-02-18 20:55:49 -0800 (Thu, 18 Feb 2016)
Log Message:
-----------
cppman: New port; 'man pages' for STL.
Added Paths:
-----------
trunk/dports/lang/cppman/
trunk/dports/lang/cppman/Portfile
trunk/dports/lang/cppman/files/
trunk/dports/lang/cppman/files/cppman_util_py.patch
Added: trunk/dports/lang/cppman/Portfile
===================================================================
--- trunk/dports/lang/cppman/Portfile (rev 0)
+++ trunk/dports/lang/cppman/Portfile 2016-02-19 04:55:49 UTC (rev 145849)
@@ -0,0 +1,29 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+PortGroup python 1.0
+
+github.setup aitjcize cppman 0.4.6
+python.default_version 35
+
+maintainers eborisch \
+ openmaintainer
+
+categories devel lang
+license GPL-3+
+
+description C++ 98/11/14 manual page fetcher / interface.
+long_description ${description} Sourced from cplusplus.com and \
+ cppreference.com.
+
+platforms darwin
+
+checksums \
+ rmd160 019d1d151e47434d8f6bd3fe342ed12d0caecce9 \
+ sha256 eb4e92dac70c99c46b094a6574e7e6a2ba0431bdec2cc60272a5a5de35c0a8a1
+
+patchfiles cppman_util_py.patch
+
+depends_lib-append port:py${python.default_version}-beautifulsoup4
Property changes on: trunk/dports/lang/cppman/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/lang/cppman/files/cppman_util_py.patch
===================================================================
--- trunk/dports/lang/cppman/files/cppman_util_py.patch (rev 0)
+++ trunk/dports/lang/cppman/files/cppman_util_py.patch 2016-02-19 04:55:49 UTC (rev 145849)
@@ -0,0 +1,13 @@
+--- cppman/util.py.orig 2016-02-18 22:44:02.000000000 -0600
++++ cppman/util.py 2016-02-18 22:46:16.000000000 -0600
+@@ -82,9 +82,7 @@
+ def get_width():
+ """Get terminal width"""
+ # Get terminal size
+- ws = struct.pack("HHHH", 0, 0, 0, 0)
+- ws = fcntl.ioctl(0, termios.TIOCGWINSZ, ws)
+- lines, columns, x, y = struct.unpack("HHHH", ws)
++ columns = int(subprocess.check_output(('tput', 'cols')))
+ width = columns * 39 / 40
+ if width >= columns - 2:
+ width = columns - 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160218/feef615b/attachment.html>
More information about the macports-changes
mailing list