app-text/tldr-c - 1.6.1 (ryans)

Search

Package Information

Description:
C command-line client for tldr pages
Homepage:
https://github.com/tldr-pages/tldr-c-client
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.6.1 8 ~amd64 ~arm64-macos 0
View Raw Ebuild
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit bash-completion-r1

DESCRIPTION="C command-line client for tldr pages"
HOMEPAGE="https://github.com/tldr-pages/tldr-c-client"
SRC_URI="https://github.com/tldr-pages/tldr-c-client/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64-macos"

# no test target
RESTRICT="test"

DEPEND="
	dev-libs/libzip
	net-misc/curl
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

DOCS=( CHANGELOG.md CONTRIBUTING.md LICENSE README.md )

PATCHES=(
	"${FILESDIR}/use-xdg-default-dir-1.6.0.diff"
)

S="${WORKDIR}/${PN}-client-${PV}/"

src_install() {
	dobin tldr

	einstalldocs

	doman "${S}"/man/tldr.1

	newbashcomp "${FILESDIR}"/completion.bash tldr

	insinto /usr/share/zsh/site-functions
	newins "${FILESDIR}"/completion.zsh _tldr
}

Dependencies

DEPEND

	dev-libs/libzip
	net-misc/curl

RDEPEND

	dev-libs/libzip
	net-misc/curl

BDEPEND

virtual/pkgconfig

Manifest for 1.6.1

Type File Size Source URLs
DIST tldr-c-1.6.1.tar.gz 25274 bytes https://github.com/tldr-pages/tldr-c-client/archive/refs/tags/v1.6.1.tar.gz