1 |
1 |
# Copyright 1999-2022 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
inherit flag-o-matic optfeature toolchain-funcs
|
|
6 |
inherit cmake optfeature
|
7 |
7 |
|
8 |
8 |
DESCRIPTION="Tail with multiple windows"
|
9 |
|
HOMEPAGE="http://www.vanheusden.com/multitail/"
|
10 |
|
SRC_URI="http://www.vanheusden.com/multitail/${P}.tgz"
|
|
9 |
HOMEPAGE="http://www.vanheusden.com/multitail/ https://github.com/folkertvanheusden/multitail/"
|
|
10 |
SRC_URI="https://github.com/folkertvanheusden/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
11 |
11 |
|
12 |
12 |
LICENSE="GPL-2"
|
13 |
13 |
SLOT="0"
|
14 |
14 |
KEYWORDS="amd64 ~hppa ~ia64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux"
|
15 |
15 |
IUSE="debug examples unicode"
|
16 |
|
RESTRICT="test" # bug 492270
|
17 |
16 |
|
18 |
17 |
RDEPEND="sys-libs/ncurses:=[unicode(+)?]"
|
19 |
18 |
DEPEND="${RDEPEND}"
|
20 |
19 |
BDEPEND="virtual/pkgconfig"
|
21 |
20 |
|
22 |
|
PATCHES=( "${FILESDIR}"/${PN}-6.4.1-gentoo.patch )
|
|
21 |
PATCHES=(
|
|
22 |
"${FILESDIR}"/${PN}-7.0.0-gentoo.patch
|
|
23 |
"${FILESDIR}"/${PN}-7.0.0-fix-clang16-build.patch
|
|
24 |
"${FILESDIR}"/${PN}-7.0.0-fix-lto-type-mismatch.patch
|
|
25 |
)
|
23 |
26 |
|
24 |
27 |
src_prepare() {
|
25 |
|
default
|
26 |
|
|
27 |
|
sed \
|
28 |
|
-e "/^DESTDIR/s:=.*$:=${EPREFIX}:g" \
|
29 |
|
-i Makefile || die
|
30 |
|
|
31 |
|
sed \
|
32 |
|
-e "s:/usr/bin/xclip:${EPREFIX}/usr/bin/xclip:g" \
|
33 |
|
-i xclip.c ${PN}.conf || die
|
|
28 |
cmake_src_prepare
|
|
29 |
# cmake looks for licence.txt to install it, which does not exist in the package
|
|
30 |
cp LICENSE license.txt || die
|
34 |
31 |
}
|
35 |
32 |
|
36 |
33 |
src_configure() {
|
37 |
|
tc-export CC PKG_CONFIG
|
38 |
|
use debug && append-flags -D_DEBUG
|
39 |
|
}
|
|
34 |
local mycmakeargs=(
|
|
35 |
-DUTF8_SUPPORT=$(usex unicode)
|
|
36 |
)
|
|
37 |
CMAKE_BUILD_TYPE=$(usex debug Debug)
|
40 |
38 |
|
41 |
|
src_compile() {
|
42 |
|
emake UTF8_SUPPORT=$(usex unicode)
|
|
39 |
cmake_src_configure
|
43 |
40 |
}
|
44 |
41 |
|
45 |
42 |
src_install() {
|
46 |
|
dobin multitail
|
|
43 |
cmake_src_install
|
47 |
44 |
|
48 |
45 |
insinto /etc
|
49 |
46 |
doins multitail.conf
|
50 |
47 |
|
|
48 |
rm -rf "${ED}"/usr/{ect,etc} || die
|
|
49 |
rm -rf "${ED}"/usr/share/doc/multitail-VERSION=6.4.3 || die
|
|
50 |
|
51 |
51 |
DOCS=( readme.txt thanks.txt )
|
52 |
52 |
HTML_DOCS=( manual.html )
|
53 |
53 |
einstalldocs
|
54 |
54 |
|
55 |
|
doman multitail.1
|
56 |
|
|
57 |
55 |
if use examples; then
|
58 |
56 |
docinto examples
|
59 |
57 |
dodoc conversion-scripts/colors-example.{pl,sh} conversion-scripts/convert-{geoip,simple}.pl
|