blob: 30ee0b1bae6b1b843230092343491f92ca69608e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools bash-completion-r1 flag-o-matic
MY_PV="${PV//_beta/-beta}"
DESCRIPTION="Unix-like rewrite of some of the applications from DF-EDIT"
HOMEPAGE="https://github.com/roberthawdon/dfshow"
SRC_URI="https://github.com/roberthawdon/dfshow/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
sys-apps/acl
dev-libs/libconfig:=
sys-libs/ncurses:0=
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-use-PKG_CHECK_MODULES-for-ncurses-libconfig.patch
)
src_prepare() {
default
if [[ ${CHOST} == *-darwin* ]] ; then
# Standard on macOS
# No real motivation to push libtool upstream just for this
append-ldflags -Wl,-undefined -Wl,dynamic_lookup
fi
eautoreconf
}
src_configure() {
# -Werror=lto-type-mismatch
# https://bugs.gentoo.org/854726
# https://github.com/roberthawdon/dfshow/issues/172
filter-lto
default
}
src_install() {
default
newbashcomp "${S}/misc/auto-completion/bash/sf-completion.bash" sf
newbashcomp "${S}/misc/auto-completion/bash/show-completion.bash" show
insinto /usr/share/zsh/site-functions
doins "${S}/misc/auto-completion/zsh/_sf"
doins "${S}/misc/auto-completion/zsh/_show"
}
|