blob: 3fd97daeb1149e8a313dbf726d2f869591f6fcd0 (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/erwinwaterlander.asc
inherit toolchain-funcs verify-sig
DESCRIPTION="Wherever Change Directory"
HOMEPAGE="https://waterlan.home.xs4all.nl/wcd.html"
SRC_URI="
https://waterlan.home.xs4all.nl/${PN}/${P}.tar.gz
verify-sig? ( https://waterlan.home.xs4all.nl/${PN}/${P}.tar.gz.asc )
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="nls unicode"
RDEPEND="
sys-libs/ncurses:=[unicode(+)?]
unicode? ( dev-libs/libunistring:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
app-text/ghostscript-gpl
virtual/pkgconfig
verify-sig? ( sec-keys/openpgp-keys-erwinwaterlander )
"
PATCHES=(
"${FILESDIR}"/${PN}-6.0.4-gentoo.patch
"${FILESDIR}"/${PN}-6.0.3-doc-path.patch
)
src_prepare() {
default
tc-export CC PKG_CONFIG
}
src_compile() {
cd src || die
local mycompile="LFS=1"
use nls || mycompile+=" ENABLE_NLS="
use unicode || mycompile+=" UCS= UNINORM="
emake ${mycompile}
}
src_install() {
cd src || die
local DOCS=( ../README.txt )
default
emake DESTDIR="${ED}" DOTWCD=1 install-profile sysconfdir="/etc"
}
|