Merge updates from master

This commit is contained in:
Repository mirror & CI
2020-04-21 10:52:50 +00:00
6 changed files with 139 additions and 1 deletions

1
app-misc/rdfind/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST rdfind-1.4.1.tar.gz 53708 BLAKE2B 18778fa65f9c5fda18a59e4021b6346bc5722c19a3796f2b4a85e5c8d919c5f8beeeb8fed572fcce0016e2939568f5e3dc3d3e567178a54ad9ac4e89a1ea77ff SHA512 00d34f46e8534074577a0cd32f71dd8da0b9a7c9a175a612a4a858693ca679de3b77fca1796b543ead796c806a693e97611c0a9fdc743229d317136b32ce89dc

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@tastytea.de</email>
<name>Ronny (tastytea) Gutbrod</name>
</maintainer>
<longdescription lang="en">
Rdfind is a command line tool that finds duplicate files. It is
useful for compressing backup directories or just finding
duplicate files. It compares files based on their content, NOT
on their file names.
</longdescription>
<upstream>
<bugs-to>https://github.com/pauldreik/rdfind/issues</bugs-to>
<doc>https://rdfind.pauldreik.se/rdfind.1.html</doc>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,29 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="Find duplicate files"
HOMEPAGE="https://github.com/pauldreik/rdfind"
SRC_URI="https://github.com/pauldreik/rdfind/archive/releases/${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm"
IUSE=""
DEPEND="dev-libs/nettle"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}-releases-${PV}"
src_configure() {
# NOTE: Commands are from bootstrap.sh.
eaclocal
eautoheader
eautomake --add-missing
eautoconf
default
}

View File

@@ -1 +1,2 @@
DIST lazygit-0.19.tar.gz 9193308 BLAKE2B c07141661387094651cb6137579dea8ab5231b3e08b0733124cc97f1392251db592e01d60297356c8c5df1f1db554bc8a3be86cd07beed158d33b9eabdb015d4 SHA512 6259fdb98ae74ee59f395bd79fcbe3280b679883cbc0c190e64a36464c258597e18a6b70842cb242696536cfea35ea9c83f43b05ad20ead4f5120e436875abad
DIST lazygit-0.20.tar.gz 9193540 BLAKE2B e48b68dc68f124e0dc63c1a846232e45f4e8ab0113b10a80d34adf6d28454d9b30cc6b03ab17a0b23700031b59ac9f809c00d5b9a6ee729e136e9cd68cbc83c4 SHA512 9e45a117322be87d56d1824cb87ecd1fb6c5dad8de3ef950f25d9e3fbe3bc712507575d59702c1614acbc999cdc482ab9fe852e5b16424ac40f2c94f070cef9b

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGO_PN="github.com/jesseduffield/lazygit"
inherit golang-build golang-vcs-snapshot
DESCRIPTION="Lazygit, a simple terminal UI for git commands"
HOMEPAGE="https://github.com/jesseduffield/lazygit"
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
DEPEND=( sys-libs/glibc )
RDEPEND=(
${DEPEND}
dev-vcs/git
)
DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
src_compile() {
GOPATH="${S}" go build -v -o bin/lazygit src/${EGO_PN}/main.go || die
}
src_install() {
dobin bin/lazygit
use doc && dodoc -r "src/${EGO_PN}/docs/."
einstalldocs
}

View File

@@ -89,6 +89,15 @@ esac
#
# Defaults to ${DOCDIR}/_build/html
# @ECLASS-VARIABLE: DOCS_CONFIG_NAME
# @DESCRIPTION:
# Name of the doc builder config file.
#
# Only relevant for doxygen, as it allows
# config files with non-standard names
#
# Defaults to Doxyfile for doxygen
if [[ ! ${_DOCS} ]]; then
# For the python based DOCBUILDERS we need to inherit python-any-r1
@@ -108,6 +117,10 @@ case "${DOCBUILDER}" in
inherit python-any-r1
fi
;;
"doxygen")
# do not need to inherit anything for doxygen
true
;;
"")
die "DOCBUILDER unset, should be set to use ${ECLASS}"
;;
@@ -243,6 +256,40 @@ mkdocs_compile() {
rm "${OUTDIR}"/*.gz || die
}
# @FUNCTION: doxygen_setup
# @DESCRIPTION:
# Sets dependencies for doxygen
doxygen_setup() {
debug-print-function ${FUNCNAME}
DOCDEPEND="app-doc/doxygen
${DOCDEPEND}"
}
# @FUNCTION: doxygen_compile
# @DESCRIPTION:
# Calls doxygen to build docs.
#
# If you overwrite src_compile or python_compile_all
# do not call this function, call docs_compile instead
doxygen_compile() {
debug-print-function ${FUNCNAME}
use doc || return
: ${DOCS_CONFIG_NAME:="Doxyfile"}
local doxyfile=${DOCDIR}/${DOCS_CONFIG_NAME}
[[ -f ${doxyfile} ]] ||
die "${doxyfile} not found, DOCDIR=${DOCDIR} or DOCS_CONFIG_NAME=${DOCS_CONFIG_NAME} wrong"
# doxygen wants the HTML_OUTPUT dir to already exist
mkdir -p "${OUTDIR}"
pushd "${DOCDIR}"
(cat "${doxyfile}" ; echo "HTML_OUTPUT=${OUTDIR}") | doxygen - || die
popd
}
# @FUNCTION: docs_compile
# @DESCRIPTION:
# Calls DOCBUILDER and sets HTML_DOCS
@@ -270,6 +317,9 @@ docs_compile() {
"mkdocs")
mkdocs_compile
;;
"doxygen")
doxygen_compile
;;
esac
HTML_DOCS+=( "${OUTDIR}/." )
@@ -294,6 +344,9 @@ case "${DOCBUILDER}" in
python_append_deps
mkdocs_setup
;;
"doxygen")
doxygen_setup
;;
esac
if [[ ${EAPI} == [56] ]]; then
@@ -305,7 +358,7 @@ fi
# If this is a python package using distutils-r1
# then put the compile function in the specific
# python function, else just put it in src_compile
if [[ ${_DISTUTILS_R1} ]]; then
if [[ ${_DISTUTILS_R1} && ( ${DOCBUILDER}="mkdocs" || ${DOCBUILDER}="sphinx" ) ]]; then
python_compile_all() { docs_compile; }
else
src_compile() { docs_compile; }