diff options
Diffstat (limited to 'app-misc/wcd')
-rw-r--r-- | app-misc/wcd/Manifest | 1 | ||||
-rw-r--r-- | app-misc/wcd/files/wcd-5.3.4-gentoo.patch | 67 | ||||
-rw-r--r-- | app-misc/wcd/wcd-5.3.4.ebuild | 51 |
3 files changed, 119 insertions, 0 deletions
diff --git a/app-misc/wcd/Manifest b/app-misc/wcd/Manifest index 60d4fdafca7d..6cf0c6fd0ff5 100644 --- a/app-misc/wcd/Manifest +++ b/app-misc/wcd/Manifest @@ -1,3 +1,4 @@ DIST wcd-5.2.7.tar.gz 622613 SHA256 e5f56824e054c6726186271b20a5de3c5b167116b97785a925907981cf3e3b39 SHA512 9f5b89d8160f685b729234cc8c03f16b795797dd6eaf2d9e1bbf1949b27ef971908b78642679d3bf1d99b128b390cd5dbd211e4ff03b0539dd287c578088e02e WHIRLPOOL 3354e380dceaed394e0eb9bac3f474edc819270a117baf5812a1e7252b2cef207862746af2b21dd71de837459bc6281a45a9099f5a6351def49e3c1ce780960d DIST wcd-5.3.2.tar.gz 595071 SHA256 a16434cb7a177ec8e9be67a1cfe7f6406a7c9190726d0ead5c44afdc4b8d3612 SHA512 3bc8fc27f170576530066bdd0af66887a4ffdd8824c36985d55588c575729b25b4c713cf67f2d70c820fdb7ed7fdaef89375673bc96c7251e74f786fb9501c08 WHIRLPOOL eb198f8ea14fd5d9d4f092abce00ece7e7428afe26bb7a4cdb43ee487ad4bc5fae27e0a3c7b357007037ab2d8d4cad6f63f08f9ca2ff90db7b64cf09521fe51b DIST wcd-5.3.3.tar.gz 598963 SHA256 4976545e50601eb47635f230804a7e654a83b9c6ad35c0a7b44d2b3ca264f6eb SHA512 df9b2fffa0bd3c558b2c61633d30a092e79aa8c7a08a64281cff6f0b9b7de5fc4a632d16f74ec5b4166922cf5da6048edfc8a73e0ddae308d3f986f3bd8a0f67 WHIRLPOOL f287d5583c03113201b8a43b9b59f55bf1dc30428cd436586ccbaf6dfc086480dd2ccdb7c6e972d766c85603149d08561abd0d28d5a52742f895b9b23098772d +DIST wcd-5.3.4.tar.gz 610630 SHA256 8c56a76016ff6b5a4be656dd563bf8f58c7be3a6101cef5485e544b12211dae6 SHA512 fdb6e000876fffbc7bce6e6157282c2b8ef9929c896e5dbd8533314d575cf31656df76cd5c408bb2e495a1fda7f179b122ea2a58da94d5d55d1e2b9c658adc94 WHIRLPOOL adb42aae240fd3ae40fc03418d2ace7ea9d72f0aaec38ab37a231b27ba630dd3a00d0e0af3bca8d05932cfb29019bfeed1ad0dcbbb1998c86b324c20d211d87b diff --git a/app-misc/wcd/files/wcd-5.3.4-gentoo.patch b/app-misc/wcd/files/wcd-5.3.4-gentoo.patch new file mode 100644 index 000000000000..0839bdb069d9 --- /dev/null +++ b/app-misc/wcd/files/wcd-5.3.4-gentoo.patch @@ -0,0 +1,67 @@ +--- wcd-5.3.4/src/Makefile ++++ wcd-5.3.4/src/Makefile +@@ -46,12 +46,12 @@ + + CC ?= gcc + STATIC = +-STRIP = strip ++STRIP = + + ENABLE_NLS = 1 + + PACKAGE = wcd +-EXT = .exe ++EXT = + PROGRAM = $(PACKAGE)$(EXT) + BIN = $(PROGRAM) + +@@ -334,9 +334,9 @@ + # possible values: ncurses, curses, pdcurses, pdcursesw or <empty> + + ifdef UCS +- CURSES = ncursesw ++ CURSES = $(shell pkg-config --libs ncursesw) + else +- CURSES = ncurses ++ CURSES = $(shell pkg-config --libs ncurses) + endif + + +@@ -366,7 +366,7 @@ + + ifneq (,$(CURSES)) + DEFS_CURSES = -DWCD_USECURSES +- LIB_CURSES = -l$(CURSES) ++ LIB_CURSES = $(CURSES) + ifeq (os/2,$(OS)) + LIB_CURSES += -ltinfo + endif +@@ -456,15 +456,15 @@ + endif + + LDFLAGS_USER = +-LDFLAGS = $(RPM_OPT_FLAGS) \ ++LIBS = $(RPM_OPT_FLAGS) \ + $(LDFLAGS_EXTRA) \ + $(NLFLAG) \ + $(LDFLAG_STATIC) \ + $(LDFLAGS_USER) + +-LIBS = $(LIB_CURSES) \ +- $(LIB_UNISTRING) \ +- $(LIBS_EXTRA) ++LIBS += $(LIB_CURSES) \ ++ $(LIB_UNISTRING) \ ++ $(LIBS_EXTRA) + + DEFS_USER = + DEFS = $(DEF_UNIX) $(DEFS_CURSES) $(EXTRA_DEFS) $(DEFS_USER) +@@ -521,7 +521,7 @@ + + $(BIN): $(OBJS1) + $(MAKE) status +- $(CC) $(OBJS1) $(LDFLAGS) $(LIBS) -o $@ ++ $(CC) $(LDFLAGS) $(OBJS1) -o $@ $(LIBS) + + %.o: %.c + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(DEFS) -c $< -o $@ 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 000000000000..451e4218a65c --- /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" +} |