[gentoo-commits] repo/gentoo:master commit in: app-text/manpager/
commit: 87206146e367a3da8b86217ba67fc11abf0f6407 Author: Fabian Groffen gentoo org> AuthorDate: Wed Feb 3 20:59:34 2021 + Commit: Fabian Groffen gentoo org> CommitDate: Wed Feb 3 20:59:34 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87206146 app-text/manpager: marked *-macos, *-solaris Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Fabian Groffen gentoo.org> app-text/manpager/manpager-1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-text/manpager/manpager-1.ebuild b/app-text/manpager/manpager-1.ebuild index 8d814266873..7a79443f990 100644 --- a/app-text/manpager/manpager-1.ebuild +++ b/app-text/manpager/manpager-1.ebuild @@ -10,7 +10,7 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage; LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" S=${WORKDIR}
[gentoo-commits] repo/gentoo:master commit in: app-text/manpager/
commit: b54cf12224c4c90792c4fa01bf45abdd3d39faa8 Author: David Michael gmail com> AuthorDate: Fri Jan 22 18:22:58 2021 + Commit: Mike Gilbert gentoo org> CommitDate: Fri Jan 22 18:58:01 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b54cf122 app-text/manpager: EAPI 7 Closes: https://bugs.gentoo.org/757564 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: David Michael gmail.com> Signed-off-by: Mike Gilbert gentoo.org> app-text/manpager/manpager-1.ebuild | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app-text/manpager/manpager-1.ebuild b/app-text/manpager/manpager-1.ebuild index 947ef1d31be..8d814266873 100644 --- a/app-text/manpager/manpager-1.ebuild +++ b/app-text/manpager/manpager-1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="5" +EAPI=7 inherit toolchain-funcs @@ -11,7 +11,6 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage; LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux" -IUSE="" S=${WORKDIR} @@ -26,6 +25,5 @@ src_compile() { src_install() { dobin ${PN} - insinto /etc/env.d - echo "MANPAGER=manpager" | newins - 00manpager + echo "MANPAGER=manpager" | newenvd - 00manpager }
[gentoo-commits] repo/gentoo:master commit in: app-text/manpager/
commit: a0cc83429d19633fb8f8dbb269e395eba17cae00 Author: Andreas K. Hüttel gentoo org> AuthorDate: Sat May 4 14:36:08 2019 + Commit: Andreas K. Hüttel gentoo org> CommitDate: Sat May 4 14:42:55 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0cc8342 app-text/manpager: keyword ~riscv Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Andreas K. Hüttel gentoo.org> app-text/manpager/manpager-1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-text/manpager/manpager-1.ebuild b/app-text/manpager/manpager-1.ebuild index 560f4f885be..5bf1e81a9d7 100644 --- a/app-text/manpager/manpager-1.ebuild +++ b/app-text/manpager/manpager-1.ebuild @@ -10,7 +10,7 @@ HOMEPAGE="https://www.gentoo.org/; LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux" IUSE="" S=${WORKDIR}
[gentoo-commits] repo/gentoo:master commit in: app-text/manpager/
commit: 4ba81abe25f996c8dd0427521a1d04f8d5a4b955 Author: Michał Górny gentoo org> AuthorDate: Wed Jan 9 14:32:48 2019 + Commit: Michał Górny gentoo org> CommitDate: Wed Jan 9 15:41:10 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ba81abe app-text/manpager: Keyword 1 ~amd64-fbsd Signed-off-by: Michał Górny gentoo.org> app-text/manpager/manpager-1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-text/manpager/manpager-1.ebuild b/app-text/manpager/manpager-1.ebuild index 88aba7bab89..560f4f885be 100644 --- a/app-text/manpager/manpager-1.ebuild +++ b/app-text/manpager/manpager-1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -10,7 +10,7 @@ HOMEPAGE="https://www.gentoo.org/; LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux" IUSE="" S=${WORKDIR}
[gentoo-commits] repo/gentoo:master commit in: app-text/manpager/
commit: b402520f31962e7b4aed75f320b5be67d7d99c71 Author: Francesco Turco fastmail fm> AuthorDate: Fri Aug 25 20:57:22 2017 + Commit: Michael Palimaka gentoo org> CommitDate: Sun Aug 27 15:25:56 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b402520f app-text/manpager: replace HTTP with HTTPS app-text/manpager/manpager-1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-text/manpager/manpager-1.ebuild b/app-text/manpager/manpager-1.ebuild index aa64fcbe9f4..39b1214d8e0 100644 --- a/app-text/manpager/manpager-1.ebuild +++ b/app-text/manpager/manpager-1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -6,7 +6,7 @@ EAPI="5" inherit toolchain-funcs DESCRIPTION="Enable colorization of man pages" -HOMEPAGE="http://www.gentoo.org/; +HOMEPAGE="https://www.gentoo.org/; LICENSE="GPL-2" SLOT="0"
[gentoo-commits] repo/gentoo:master commit in: app-text/manpager/
commit: febc3cca8f28945608795d788af4b35959bd9f8d Author: Michael Haubenwallner gentoo org> AuthorDate: Mon May 2 11:05:37 2016 + Commit: Michael Haubenwallner gentoo org> CommitDate: Mon May 2 11:05:37 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=febc3cca app-text/manpager: add Prefix keywords ~{amd64,arm,x86}-linux Package-Manager: portage-2.2.26 app-text/manpager/manpager-1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-text/manpager/manpager-1.ebuild b/app-text/manpager/manpager-1.ebuild index 82c4ad3..0657cef 100644 --- a/app-text/manpager/manpager-1.ebuild +++ b/app-text/manpager/manpager-1.ebuild @@ -11,7 +11,7 @@ HOMEPAGE="http://www.gentoo.org/; LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" IUSE="" S=${WORKDIR}
[gentoo-commits] repo/gentoo:master commit in: app-text/manpager/
commit: 1726d17cc91ff671e9b108a3f8c6fb1fef1d91bf Author: Mike Frysinger gentoo org> AuthorDate: Tue Jan 19 16:44:16 2016 + Commit: Mike Frysinger gentoo org> CommitDate: Tue Jan 19 16:46:00 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1726d17c app-text/manpager: stabilize for all app-text/manpager/manpager-1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-text/manpager/manpager-1.ebuild b/app-text/manpager/manpager-1.ebuild index 9fd9c26..82c4ad3 100644 --- a/app-text/manpager/manpager-1.ebuild +++ b/app-text/manpager/manpager-1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -11,7 +11,7 @@ HOMEPAGE="http://www.gentoo.org/; LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" IUSE="" S=${WORKDIR}
[gentoo-commits] repo/gentoo:master commit in: app-text/manpager/, app-text/manpager/files/
commit: 65f60cb497c44cc45f0e02f3661cfce3c5661e2c Author: Mike Frysinger vapier AT gentoo DOT org AuthorDate: Sun Aug 30 03:14:50 2015 + Commit: Mike Frysinger vapier AT gentoo DOT org CommitDate: Sun Aug 30 03:15:41 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65f60cb4 app-text/manpager: initial package #184604 Simple wrapper for colorizing man page output. app-text/manpager/files/manpager.c | 74 + app-text/manpager/manpager-1.ebuild | 32 app-text/manpager/metadata.xml | 5 +++ 3 files changed, 111 insertions(+) diff --git a/app-text/manpager/files/manpager.c b/app-text/manpager/files/manpager.c new file mode 100644 index 000..99b0680 --- /dev/null +++ b/app-text/manpager/files/manpager.c @@ -0,0 +1,74 @@ +/* + * Wrapper to help enable colorized man page output. + * Only works with PAGER=less + * + * https://bugs.gentoo.org/184604 + * https://unix.stackexchange.com/questions/108699/documentation-on-less-termcap-variables + * + * Copyright 2003-2015 Gentoo Foundation + * Distributed under the terms of the GNU General Public License v2 + */ + +#include stdio.h +#include stdlib.h +#include string.h +#include unistd.h + +#define COLOR(c, b) \e[ #c ; #b m + +#define _SE(termcap, col) setenv(LESS_TERMCAP_ #termcap, col, 0) +#define SE(termcap, c, b) _SE(termcap, COLOR(c, b)) + +static int usage(void) +{ + puts( + manpager: display man pages with color!\n + \n + Usage:\n + \texport MANPAGER=manpager\n + \tman man\n + \n + To control the colorization, set these env vars:\n + \tLESS_TERMCAP_mb - start blinking\n + \tLESS_TERMCAP_md - start bolding\n + \tLESS_TERMCAP_me - stop bolding\n + \tLESS_TERMCAP_us - start underlining\n + \tLESS_TERMCAP_ue - stop underlining\n + \tLESS_TERMCAP_so - start standout (reverse video)\n + \tLESS_TERMCAP_se - stop standout (reverse video)\n + \n + You can do so by doing:\n + \texport LESS_TERMCAP_md=\$(printf '\\e[1;36m')\\n + \n + Run 'less --help' or 'man less' for more info + ); + return 0; +} + +int main(int argc, char *argv[]) +{ + if (argc == 2 (!strcmp(argv[1], -h) || !strcmp(argv[1], --help))) + return usage(); + + /* Blinking. */ + SE(mb, 5, 31); /* Start. */ + + /* Bolding. */ + SE(md, 1, 34); /* Start. */ + SE(me, 0, 0); /* Stop. */ + + /* Underlining. */ + SE(us, 4, 36); /* Start. */ + SE(ue, 0, 0); /* Stop. */ + +#if 0 + /* Standout (reverse video). */ + SE(so, 1, 32); /* Start. */ + SE(se, 0, 0); /* Stop. */ +#endif + + argv[0] = getenv(PAGER) ? : less; + execvp(argv[0], argv); + perror(could not launch PAGER); + return 1; +} diff --git a/app-text/manpager/manpager-1.ebuild b/app-text/manpager/manpager-1.ebuild new file mode 100644 index 000..9fd9c26 --- /dev/null +++ b/app-text/manpager/manpager-1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION=Enable colorization of man pages +HOMEPAGE=http://www.gentoo.org/; + +LICENSE=GPL-2 +SLOT=0 +KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 +IUSE= + +S=${WORKDIR} + +src_compile() { + local cmd=( + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} + ${FILESDIR}/manpager.c -o ${PN} + ) + echo ${cmd[@]} + ${cmd[@]} || die +} + +src_install() { + dobin ${PN} + insinto /etc/env.d + echo MANPAGER=manpager | newins - 00manpager +} diff --git a/app-text/manpager/metadata.xml b/app-text/manpager/metadata.xml new file mode 100644 index 000..96a2d58 --- /dev/null +++ b/app-text/manpager/metadata.xml @@ -0,0 +1,5 @@ +?xml version=1.0 encoding=UTF-8? +!DOCTYPE pkgmetadata SYSTEM http://www.gentoo.org/dtd/metadata.dtd; +pkgmetadata +herdbase-system/herd +/pkgmetadata