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.
51 lines
1.0 KiB
51 lines
1.0 KiB
8 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
9 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
|
inherit eutils 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"
|
||
|
|
||
|
SLOT="0"
|
||
|
LICENSE="GPL-2"
|
||
|
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||
|
IUSE="nls unicode"
|
||
|
|
||
|
CDEPEND="
|
||
|
sys-libs/ncurses:0=[unicode?]
|
||
|
unicode? ( dev-libs/libunistring )"
|
||
|
DEPEND="${CDEPEND}
|
||
|
app-text/ghostscript-gpl"
|
||
|
RDEPEND="${CDEPEND}"
|
||
|
|
||
|
S="${WORKDIR}"/${P}/src
|
||
|
|
||
9 years ago
|
PATCHES=(
|
||
8 years ago
|
"${FILESDIR}"/${PN}-5.3.4-gentoo.patch
|
||
9 years ago
|
)
|
||
|
|
||
9 years ago
|
src_prepare() {
|
||
9 years ago
|
# Required for stupid eapply function
|
||
|
pushd .. &>/dev/null || die
|
||
|
default
|
||
|
popd &>/dev/null || die
|
||
9 years ago
|
tc-export CC
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
local mycompile="LFS=1"
|
||
|
use nls || mycompile="${mycompile} ENABLE_NLS="
|
||
|
use unicode && mycompile="${mycompile} UCS=1 UNINORM=1"
|
||
|
emake \
|
||
|
${mycompile}
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
8 years ago
|
local DOCS=( ../README.txt )
|
||
9 years ago
|
default
|
||
|
emake DESTDIR="${D}" DOTWCD=1 install-profile sysconfdir="/etc"
|
||
|
}
|