You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

47 lines
1019 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Wherever Change Directory"
HOMEPAGE="http://waterlan.home.xs4all.nl/#WCD_ANCHOR"
SRC_URI="http://waterlan.home.xs4all.nl/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
IUSE="nls unicode"
CDEPEND="
sys-libs/ncurses:=[unicode(+)?]
unicode? ( dev-libs/libunistring:= )"
DEPEND="${CDEPEND}"
BDEPEND="
app-text/ghostscript-gpl
virtual/pkgconfig
"
RDEPEND="${CDEPEND}"
S="${WORKDIR}/${P}/src"
src_prepare() {
eapply -p2 "${FILESDIR}"/${PN}-6.0.2-gentoo.patch
eapply -p2 "${FILESDIR}"/${P}-doc-path.patch
eapply_user
tc-export CC PKG_CONFIG
}
src_compile() {
local mycompile="LFS=1"
use nls || mycompile+=" ENABLE_NLS="
use unicode && mycompile+=" UCS=1 UNINORM=1"
emake ${mycompile}
}
src_install() {
local DOCS=( ../README.txt )
default
emake DESTDIR="${D}" DOTWCD=1 install-profile sysconfdir="/etc"
}