summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-01-04 14:37:13 +0100
committerLars Wendler <polynomial-c@gentoo.org>2017-01-04 14:37:53 +0100
commitd976b59884bf7bbe9415d6c9950d90f4b4f0b1c0 (patch)
tree595358ca0eb603827a95e3b5067892a6039e1e01 /app-misc/wcd/wcd-5.3.4.ebuild
parentmedia-gfx/nvidia-texture-tools: upgrade to EAPI=6 (diff)
downloadgentoo-d976b59884bf7bbe9415d6c9950d90f4b4f0b1c0.tar.gz
gentoo-d976b59884bf7bbe9415d6c9950d90f4b4f0b1c0.tar.bz2
gentoo-d976b59884bf7bbe9415d6c9950d90f4b4f0b1c0.zip
app-misc/wcd: Bump to version 5.3.4
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-misc/wcd/wcd-5.3.4.ebuild')
-rw-r--r--app-misc/wcd/wcd-5.3.4.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/app-misc/wcd/wcd-5.3.4.ebuild b/app-misc/wcd/wcd-5.3.4.ebuild
new file mode 100644
index 00000000000..451e4218a65
--- /dev/null
+++ b/app-misc/wcd/wcd-5.3.4.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.3.4-gentoo.patch
+)
+
+src_prepare() {
+ # Required for stupid eapply function
+ pushd .. &>/dev/null || die
+ default
+ popd &>/dev/null || die
+ 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() {
+ local DOCS=( ../README.txt )
+ default
+ emake DESTDIR="${D}" DOTWCD=1 install-profile sysconfdir="/etc"
+}