commit: 461cc79c045c0f31db2b5c251405f2789027d66e Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Wed Jul 24 12:02:59 2019 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Wed Jul 24 12:07:07 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=461cc79c
app-misc/ytree: revision bump * Port to EAPI 7 * Fix build with sys-libs/ncurses[tinfo] * Stop installing pre-compressed man page Closes: https://bugs.gentoo.org/690348 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org> app-misc/ytree/files/ytree-1.99-tinfo.patch | 15 +++++++++++ app-misc/ytree/ytree-1.99_p1-r1.ebuild | 42 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/app-misc/ytree/files/ytree-1.99-tinfo.patch b/app-misc/ytree/files/ytree-1.99-tinfo.patch new file mode 100644 index 00000000000..9656cce88d5 --- /dev/null +++ b/app-misc/ytree/files/ytree-1.99-tinfo.patch @@ -0,0 +1,15 @@ +Fix build sys-libs/ncurses[tinfo] + +Bug: https://bugs.gentoo.org/690348 + +--- a/Makefile ++++ b/Makefile +@@ -33,7 +33,7 @@ + #CLOCK = -DCLOCK_SUPPORT # Experimental! + READLINE = -DREADLINE_SUPPORT + CFLAGS += -D_GNU_SOURCE $(COLOR) $(CLOCK) $(READLINE) $(ADD_CFLAGS) +-LDFLAGS += -lncurses -lreadline ++LDFLAGS += `pkg-config --libs ncurses` -lreadline + + ########################### + # LINUX with Wide character support (testet with ncurses 5.4) diff --git a/app-misc/ytree/ytree-1.99_p1-r1.ebuild b/app-misc/ytree/ytree-1.99_p1-r1.ebuild new file mode 100644 index 00000000000..2f5d5986175 --- /dev/null +++ b/app-misc/ytree/ytree-1.99_p1-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="${PN}-1.99pl1" + +inherit toolchain-funcs + +DESCRIPTION="A curses-based file manager" +HOMEPAGE="http://www.han.de/~werner/ytree.html" +SRC_URI="http://www.han.de/~werner/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + sys-libs/ncurses:0= + sys-libs/readline:0= +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/${PN}-1.94-bindir.patch" + "${FILESDIR}/${PN}-1.99-tinfo.patch" +) + +DOCS=( CHANGES README THANKS ytree.conf ) + +pkg_setup() { + tc-export CC +} + +src_install() { + einstalldocs + dobin ${PN} + doman ${PN}.1 +}
