commit: f875a676f99c4efc9cd8ae01c58f01384a504b48 Author: Mykyta Holubakha <hilobakho <AT> gmail <DOT> com> AuthorDate: Tue Jun 14 11:17:11 2016 +0000 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> CommitDate: Wed Jun 22 03:27:27 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f875a676
app-editors/kakoune: fix a linking bug Fix a ncurses[tinfo] linking bug (see upstream https://github.com/mawww/kakoune/issues/695): moved configuration of ncurses linker libs to ebuild, until upstream supports pkg-config bind to current ncurses slot app-editors/kakoune/files/kakoune-makefile.patch | 6 ++++-- ..._pre20160515.ebuild => kakoune-0_pre20160515-r1.ebuild} | 14 ++++---------- app-editors/kakoune/kakoune-9999.ebuild | 14 ++++---------- 3 files changed, 12 insertions(+), 22 deletions(-) diff --git a/app-editors/kakoune/files/kakoune-makefile.patch b/app-editors/kakoune/files/kakoune-makefile.patch index 076c42f..54a22d5 100644 --- a/app-editors/kakoune/files/kakoune-makefile.patch +++ b/app-editors/kakoune/files/kakoune-makefile.patch @@ -24,9 +24,11 @@ index c79c270..9409a8c 100644 sharedir := $(DESTDIR)$(PREFIX)/share/kak docdir := $(DESTDIR)$(PREFIX)/share/doc/kak @@ -53,11 +51,10 @@ else ifneq (,$(findstring CYGWIN,$(os))) - LIBS += -lncursesw -lboost_regex -ldbghelp +- LIBS += -lncursesw -lboost_regex -ldbghelp ++ LIBS += -lboost_regex -ldbghelp else - LIBS += -lncursesw -lboost_regex +- LIBS += -lncursesw -lboost_regex ++ LIBS += -lboost_regex - CPPFLAGS += -I$(NCURSESW_INCLUDE) LDFLAGS += -rdynamic endif diff --git a/app-editors/kakoune/kakoune-0_pre20160515.ebuild b/app-editors/kakoune/kakoune-0_pre20160515-r1.ebuild similarity index 83% rename from app-editors/kakoune/kakoune-0_pre20160515.ebuild rename to app-editors/kakoune/kakoune-0_pre20160515-r1.ebuild index 524324d..42293c8 100644 --- a/app-editors/kakoune/kakoune-0_pre20160515.ebuild +++ b/app-editors/kakoune/kakoune-0_pre20160515-r1.ebuild @@ -18,7 +18,7 @@ KEYWORDS="~amd64 ~x86" IUSE="debug" RDEPEND=" - sys-libs/ncurses:*[unicode] + sys-libs/ncurses:=[unicode] dev-libs/boost " DEPEND=" @@ -31,18 +31,12 @@ PATCHES=( "${FILESDIR}/${PN}-makefile.patch" ) src_configure() { append-cppflags $(pkg-config --cflags ncursesw) + append-libs $(pkg-config --libs ncursesw) export CXX=$(tc-getCXX) export debug=$(usex debug) -} - -src_compile() { - emake -C src -} - -src_test() { - emake -C src test + S="${WORKDIR}/${P}/src" } src_install() { - emake -C src DESTDIR="${D}" PREFIX="/usr" install + emake DESTDIR="${D}" PREFIX="/usr" install } diff --git a/app-editors/kakoune/kakoune-9999.ebuild b/app-editors/kakoune/kakoune-9999.ebuild index f448c1b..96ba498 100644 --- a/app-editors/kakoune/kakoune-9999.ebuild +++ b/app-editors/kakoune/kakoune-9999.ebuild @@ -16,7 +16,7 @@ KEYWORDS="" IUSE="debug" RDEPEND=" - sys-libs/ncurses:*[unicode] + sys-libs/ncurses:=[unicode] dev-libs/boost " DEPEND=" @@ -29,18 +29,12 @@ PATCHES=( "${FILESDIR}/${PN}-makefile.patch" ) src_configure() { append-cppflags $(pkg-config --cflags ncursesw) + append-libs $(pkg-config --libs ncursesw) export CXX=$(tc-getCXX) export debug=$(usex debug) -} - -src_compile() { - emake -C src -} - -src_test() { - emake -C src test + S="${WORKDIR}/${P}/src" } src_install() { - emake -C src DESTDIR="${D}" PREFIX="/usr" install + emake DESTDIR="${D}" PREFIX="/usr" install }
