From nobody Mon Feb 28 12:50:41 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C08C719F22BB; Mon, 28 Feb 2022 12:50:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K6gGT4L8Yz3hKm; Mon, 28 Feb 2022 12:50:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646052641; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ftr7ajA3h0NEN8+aer0gxkMAWnWilmEmD1Eq1pM2EE4=; b=wLj6isRsPrjEiG+3Z1okpQCcMO3c8fA0DGBPn+975fR7dwcOzpJUOdgq5CdavNM8aWAI0z /mnE0B7O8utHQfD9WIgu3tEaaDTnZxqKgt2UkQhClYnr0t1slFyGWuqMkfWom6HXYnAMpp Q53DXD2dnTKTdMW6a5tCB3nkaT6LDcOUjsWRBk//0POC6GRHHObCTie8mXzqnHZ9t3++9W mmAdkN/MhXCo+PcWvtHJqqL0ic4gVnsxuVcYu1e8mXbf64H6HoYjEQ5RjJ1kkt7fPdiMML BrG+LbEcb0AjhDZq1tHAt+WVwDMJM3xiqeRNT3PrrkUvO6TeFQCoTNipTY1S6Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6FCA81B86A; Mon, 28 Feb 2022 12:50:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21SCofp7058955; Mon, 28 Feb 2022 12:50:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21SCofPj058954; Mon, 28 Feb 2022 12:50:41 GMT (envelope-from git) Date: Mon, 28 Feb 2022 12:50:41 GMT Message-Id: <202202281250.21SCofPj058954@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: b2b4bd7983b1 - main - devel/py-autopage: Add py-autopage 0.5.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2b4bd7983b1b38466f2dee983ed275e1af290ab Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646052641; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ftr7ajA3h0NEN8+aer0gxkMAWnWilmEmD1Eq1pM2EE4=; b=W4IIIOGGh0WW4L5kZ3pkDGyh0dq8+GBb5VUKDm6K8EJB5YDwXgqLbPvv5Q9REbMPHUjT5W otQ/eusrkXZ33/Jhpvd8/Qut14CbcQuxJ2g/XgwLt5IzgfUrxJSzWXYR9PvPlIvnWDE2/Z CVrgX9RNUwNEFHA7anjbgZzwENB+2wrr66ZKf10CuaZ+k51KSRX+kNj0u1dwPTNb2FCvYC shUA5DEdhf4JpjAgpSoO6hpt22X6DV5+mPegmtaiDT1d4HsBwH0jCfaYE2MBOuPh6dP4gK G3zabLfumWAS+XAjTaMlLCKbAJ5zlJ4Hix46aou/DbQQfBh969+HXHyH+Mbm0A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646052641; a=rsa-sha256; cv=none; b=MHI0WUKUIzYFlhMaLdt7A2pCiYb8jAH1Z6rIBqjviz355nyxsKG+mQBIwu5CutgwdkPl8i B/XABcklrftD4GrGiALqcaXr42JQsUPzSttsCR1/z2TsPQCavoZ7lIyQoeLnpRZXFsWrm6 g5sMf+SKA4EbQ5+KRgRtfx7DiVaktW4LyGOxfsd6r82FdKsH3YbbHD5yvUnUp/Wjfr6N4W 4uIE/tDMq0bf5O/dpgCCVgxIqbmbpcztjK+LrE7I00TWQ9kD7GZQBo34BMP5ozC87d2pAR AhXWer0hyVBHGyalffqmOFeaIcFOsZu4yonELapNhwSw663OLL5whC1tVRFfxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b2b4bd7983b1b38466f2dee983ed275e1af290ab commit b2b4bd7983b1b38466f2dee983ed275e1af290ab Author: Po-Chuan Hsieh AuthorDate: 2022-02-28 09:54:39 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-02-28 12:45:54 +0000 devel/py-autopage: Add py-autopage 0.5.0 Autopage is a Python library to automatically display terminal output from a program in a pager (like less) whenever you need it, and never when you don't. And it only takes one line of code. You know how some CLI programs like git (and a handful of others, including man and systemctl) automatically pipe their output to less? Except not if there's less than one screen's worth of data. And if you redirect the output to a file or a pipe, it does the right thing instead. Colours are preserved. Don't you wish all programs worked like that? Now at least all of your Python programs can. WWW: https://github.com/zaneb/autopage --- devel/Makefile | 1 + devel/py-autopage/Makefile | 23 +++++++++++++++++++++++ devel/py-autopage/distinfo | 3 +++ devel/py-autopage/files/setup.py | 3 +++ devel/py-autopage/pkg-descr | 12 ++++++++++++ 5 files changed, 42 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index a7cde7f8e11b..e55d0fb13dab 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4193,6 +4193,7 @@ SUBDIR += py-autocommand SUBDIR += py-autoflake SUBDIR += py-automaton + SUBDIR += py-autopage SUBDIR += py-autoprop SUBDIR += py-avro SUBDIR += py-awesomeversion diff --git a/devel/py-autopage/Makefile b/devel/py-autopage/Makefile new file mode 100644 index 000000000000..4493485ac0d6 --- /dev/null +++ b/devel/py-autopage/Makefile @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= autopage +PORTVERSION= 0.5.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Provide automatic paging for console output + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +post-patch: + @${CP} ${FILESDIR}/setup.py ${WRKSRC}/ + +.include diff --git a/devel/py-autopage/distinfo b/devel/py-autopage/distinfo new file mode 100644 index 000000000000..7fc031389ad7 --- /dev/null +++ b/devel/py-autopage/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1643970964 +SHA256 (autopage-0.5.0.tar.gz) = 5305b43cc0798170d7124e5a2feecf969e45f4a0baf75cb351138114eaf76b83 +SIZE (autopage-0.5.0.tar.gz) = 30212 diff --git a/devel/py-autopage/files/setup.py b/devel/py-autopage/files/setup.py new file mode 100644 index 000000000000..606849326a40 --- /dev/null +++ b/devel/py-autopage/files/setup.py @@ -0,0 +1,3 @@ +from setuptools import setup + +setup() diff --git a/devel/py-autopage/pkg-descr b/devel/py-autopage/pkg-descr new file mode 100644 index 000000000000..4a84fffc1e91 --- /dev/null +++ b/devel/py-autopage/pkg-descr @@ -0,0 +1,12 @@ +Autopage is a Python library to automatically display terminal output from a +program in a pager (like less) whenever you need it, and never when you don't. +And it only takes one line of code. + +You know how some CLI programs like git (and a handful of others, including man +and systemctl) automatically pipe their output to less? Except not if there's +less than one screen's worth of data. And if you redirect the output to a file +or a pipe, it does the right thing instead. Colours are preserved. Don't you +wish all programs worked like that? Now at least all of your Python programs +can. + +WWW: https://github.com/zaneb/autopage