commit: 2650252d33835405bec20dfe23dba1cb4dbf070c Author: Wu, Zhenyu <wuzhenyu <AT> ustc <DOT> edu> AuthorDate: Tue Nov 5 04:56:43 2024 +0000 Commit: Wu Zhenyu <Wuzy01 <AT> qq <DOT> com> CommitDate: Tue Nov 5 04:56:43 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2650252d
app-shells/manpager: new package, add 0.0.3 Signed-off-by: Wu, Zhenyu <wuzhenyu <AT> ustc.edu> app-shells/manpager/Manifest | 1 + app-shells/manpager/manpager-0.0.3.ebuild | 30 ++++++++++++++++++++++++++++++ app-shells/manpager/metadata.xml | 11 +++++++++++ 3 files changed, 42 insertions(+) diff --git a/app-shells/manpager/Manifest b/app-shells/manpager/Manifest new file mode 100644 index 000000000..faa24c2a7 --- /dev/null +++ b/app-shells/manpager/Manifest @@ -0,0 +1 @@ +DIST manpager-0.0.3.tar.gz 19824 BLAKE2B 19be8abc7c85d0d92e08c7769f3b9805df97a60aaff19da0c3939cde96310c94219d03962d1fe11f34a1f928cf5c8dd3cca287914a37469e24643f6d699e331b SHA512 b7920eeccd0d3b9e669d5da4f2074a88a5944d781088428550100fc53bdf7d7c8e0877b16aa71bf667c8b01908ba90454f2d8c4145cf619fb41c1f516586c55f diff --git a/app-shells/manpager/manpager-0.0.3.ebuild b/app-shells/manpager/manpager-0.0.3.ebuild new file mode 100644 index 000000000..9bee9abd3 --- /dev/null +++ b/app-shells/manpager/manpager-0.0.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="colorize man pages" +HOMEPAGE="https://github.com/Freed-Wu/manpager" + +SRC_URI=" + $HOMEPAGE/archive/${PV}.tar.gz -> $P.tar.gz +" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~arm64-macos ~x64-macos" + +LICENSE="GPL-3" +SLOT="0" + +RDEPEND=" + sys-apps/bat + app-text/ansifilter +" + +src_prepare() { + default + sed -i s=/usr=$EPREFIX/usr=g bin/$PN +} + +src_install() { + dobin bin/$PN + echo "MANPAGER=manpager" | newenvd - 00manpager +} diff --git a/app-shells/manpager/metadata.xml b/app-shells/manpager/metadata.xml new file mode 100644 index 000000000..fcd312795 --- /dev/null +++ b/app-shells/manpager/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Wu, Zhenyu</name> + </maintainer> + <upstream> + <remote-id type="github">Freed-Wu/manpager</remote-id> + </upstream> +</pkgmetadata>
