summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-03-03 14:22:17 +0000
committerJustin Lecher <jlec@gentoo.org>2011-03-03 14:22:17 +0000
commit9029c7b62b2e362e548e84646599197107444da1 (patch)
tree9d36427dfecaccf62e17eab8832bda5a5757712e /app-misc/wcd
parentMasking zen-sources snapshot release (diff)
downloadgentoo-2-9029c7b62b2e362e548e84646599197107444da1.tar.gz
gentoo-2-9029c7b62b2e362e548e84646599197107444da1.tar.bz2
gentoo-2-9029c7b62b2e362e548e84646599197107444da1.zip
New addition, written by me
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/wcd')
-rw-r--r--app-misc/wcd/ChangeLog10
-rw-r--r--app-misc/wcd/files/5.1.4-gentoo.patch57
-rw-r--r--app-misc/wcd/metadata.xml8
-rw-r--r--app-misc/wcd/wcd-5.1.4.ebuild31
4 files changed, 106 insertions, 0 deletions
diff --git a/app-misc/wcd/ChangeLog b/app-misc/wcd/ChangeLog
new file mode 100644
index 000000000000..52e9c410ab00
--- /dev/null
+++ b/app-misc/wcd/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-misc/wcd
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/wcd/ChangeLog,v 1.1 2011/03/03 14:22:17 jlec Exp $
+
+*wcd-5.1.4 (03 Mar 2011)
+
+ 03 Mar 2011; Justin Lecher <jlec@gentoo.org> +files/5.1.4-gentoo.patch,
+ +wcd-5.1.4.ebuild, +metadata.xml:
+ New addition, written by me
+
diff --git a/app-misc/wcd/files/5.1.4-gentoo.patch b/app-misc/wcd/files/5.1.4-gentoo.patch
new file mode 100644
index 000000000000..37b9be053307
--- /dev/null
+++ b/app-misc/wcd/files/5.1.4-gentoo.patch
@@ -0,0 +1,57 @@
+diff --git a/src/Makefile b/src/Makefile
+index 15a889a..9a699b7 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -46,14 +46,14 @@ endif
+
+ include version.mk
+
+-CC = gcc
++CC ?= gcc
+ STATIC =
+-STRIP = strip
++STRIP =
+
+ ENABLE_NLS = 1
+
+ PACKAGE = wcd
+-EXT = .exe
++EXT =
+ PROGRAM = $(PACKAGE)$(EXT)
+ BIN = $(PROGRAM)
+
+@@ -283,7 +283,7 @@ endif
+ # dynamically) comment the LDFLAGS line and add the 'libncurses.a' file
+ # (often found as /usr/lib/libncurses.a) to the OBJS1 list.
+
+-CFLAGS = -O2 -Wall
++CFLAGS += -Wall
+
+ EXTRA_CFLAGS = -Ic3po \
+ $(CFLAGS_VERSION) \
+@@ -302,7 +302,7 @@ ifdef ASCII_TREE
+ EXTRA_CFLAGS += -DASCII_TREE
+ endif
+
+-LDFLAGS = $(LIB_CURSES) \
++LIBS = $(LIB_CURSES) \
+ $(LDFLAGS_EXTRA) \
+ $(NLFLAG)
+
+@@ -346,6 +346,7 @@ status:
+ @echo "DEFS = $(DEFS)"
+ @echo "DEFS_CURSES = $(DEFS_CURSES)"
+ @echo "EXTRA_DEFS = $(EXTRA_DEFS)"
++ @echo "LIBS = $(LIBS)"
+ @echo "LDFLAGS = $(LDFLAGS)"
+ @echo "LDFLAGS_EXTRA = $(LDFLAGS_EXTRA)"
+ @echo "CFLAGS = $(CFLAGS)"
+@@ -355,7 +356,7 @@ status:
+
+ $(BIN): $(OBJS1)
+ $(MAKE) status
+- $(CC) $(OBJS1) $(LDFLAGS) -o $@
++ $(CC) $(OBJS1) $(LDFLAGS) -o $@ $(LIBS)
+
+ %.o: %.c
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(DEFS) -c $< -o $@
diff --git a/app-misc/wcd/metadata.xml b/app-misc/wcd/metadata.xml
new file mode 100644
index 000000000000..c6273575b04f
--- /dev/null
+++ b/app-misc/wcd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>shell-tools</herd>
+<maintainer>
+ <email>jlec@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/wcd/wcd-5.1.4.ebuild b/app-misc/wcd/wcd-5.1.4.ebuild
new file mode 100644
index 000000000000..32c523a76a9e
--- /dev/null
+++ b/app-misc/wcd/wcd-5.1.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/wcd/wcd-5.1.4.ebuild,v 1.1 2011/03/03 14:22:17 jlec Exp $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Wherever Change Directory"
+HOMEPAGE="http://www.xs4all.nl/~waterlan/#WCD_ANCHOR"
+SRC_URI="http://www.xs4all.nl/~waterlan/${P}-src.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-2"
+IUSE="ncurses nls unicode"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gentoo.patch
+ tc-export CC
+}
+
+src_compile() {
+ local mycompile
+ use nls || mycompile="${mycompile} ENABLE_NLS="
+ use ncurses || mycompile="${mycompile} CURSES="
+ use unicode && mycompile="${mycompile} UCS=1"
+ emake \
+ ${mycompile} \
+ || die
+}