summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2016-11-11 01:55:43 +0200
committerDavid Seifert <soap@gentoo.org>2016-11-12 16:01:54 +0100
commit75357f680cb57e4e31e130e042cfde2d9edbb994 (patch)
treee47783d3d93fc635f06486a7f58168d151d739a7 /app-editors/kakoune
parentsci-physics/rivet: Fixing URL for refs.bib (diff)
downloadgentoo-75357f680cb57e4e31e130e042cfde2d9edbb994.tar.gz
gentoo-75357f680cb57e4e31e130e042cfde2d9edbb994.tar.bz2
gentoo-75357f680cb57e4e31e130e042cfde2d9edbb994.zip
app-editors/kakoune: version bump to 0_pre20161111
introduce static use flag Closes: https://github.com/gentoo/gentoo/pull/2802 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-editors/kakoune')
-rw-r--r--app-editors/kakoune/Manifest1
-rw-r--r--app-editors/kakoune/files/kakoune-0_pre20161111-makefile.patch47
-rw-r--r--app-editors/kakoune/kakoune-0_pre20161111.ebuild50
3 files changed, 98 insertions, 0 deletions
diff --git a/app-editors/kakoune/Manifest b/app-editors/kakoune/Manifest
index 15067d95931a..c9a77b31ef12 100644
--- a/app-editors/kakoune/Manifest
+++ b/app-editors/kakoune/Manifest
@@ -1,2 +1,3 @@
DIST kakoune-0_pre20160620.tar.gz 370523 SHA256 4344bc78a15942c01818c8e8a80f228249557f5d2d20c2fdc845faeef86abe2e SHA512 c186b9024db7956d9bcae925727c3f30dd2c2fb49995e97c56dbdf59c3f17989feb405086957818685a08530da0f2b58b5798687959267da7e9e2a25dd78003c WHIRLPOOL c555754e4fc3456ce7912d60adb72191349692d0465996893ceb1162cc5f7f61b08b0098f13a54d5d44c861aaf3b23eaea343813f055b8ca06f6ce1305a30f4d
DIST kakoune-0_pre20160826.tar.gz 377788 SHA256 c54c7b7ed4cca371477bfa6bf9e17ef8fe343debd83c5ae165538899e968a05f SHA512 98a679a9ecf22cb5ea4648b766164c8fc72d818d6b839b35e8c66ca2b73c109e5dfadf6745ae25a9eda9e426b4775d2f3c677417217c31cdabe7919ef1bf0839 WHIRLPOOL bd13b26bda0c1f92edd7c77f691ff5d2b576dc17dcba453272e5e4eac66edaabc9f0f7f4aaf626b5f2475e275eafa7bee38197d49033db85b11a5e7c87df75f0
+DIST kakoune-0_pre20161111.tar.gz 394608 SHA256 3c12a79360b83490429952ace10de1f80cff88ea8e8ffe7e27d1b6a00f2a63e7 SHA512 7d7893800519626f2eff2a4dccd8e0c36e374b67e419c4f7682b1e9c14817e2bdae30d6cbb49db22a9b2ffd5a5e5fa1558c3e731eea225c804bff3bf5027d18c WHIRLPOOL 190c427f691c9cf903bf86390606ba71295ea2d21d91f739f71818ba15da01bf946c6c08fdfa912be773e95900a2a6203aaa17fdf8e74d98712bf45f7884f860
diff --git a/app-editors/kakoune/files/kakoune-0_pre20161111-makefile.patch b/app-editors/kakoune/files/kakoune-0_pre20161111-makefile.patch
new file mode 100644
index 000000000000..1084ea6a9caa
--- /dev/null
+++ b/app-editors/kakoune/files/kakoune-0_pre20161111-makefile.patch
@@ -0,0 +1,47 @@
+diff --git a/src/Makefile b/src/Makefile
+index 966582d..cdac6ba 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -4,10 +4,10 @@ pedantic ?= yes
+
+ ifeq ($(debug),yes)
+ CPPFLAGS += -DKAK_DEBUG
++ CXXFLAGS += -g
+ suffix := .debug
+ else
+ ifeq ($(debug),no)
+- CXXFLAGS += -O3
+ suffix := .opt
+ else
+ $(error debug should be either yes or no)
+@@ -27,8 +27,6 @@ mandocs := $(docs:.asciidoc=.gz)
+ PREFIX ?= /usr/local
+ DESTDIR ?= # root dir
+
+-NCURSESW_INCLUDE ?= /usr/include/ncursesw
+-
+ bindir := $(DESTDIR)$(PREFIX)/bin
+ sharedir := $(DESTDIR)$(PREFIX)/share/kak
+ docdir := $(DESTDIR)$(PREFIX)/share/doc/kak
+@@ -52,10 +50,9 @@ else ifeq ($(os),DragonFly)
+ LDFLAGS += -L/usr/local/lib
+ else ifneq (,$(findstring CYGWIN,$(os)))
+ CPPFLAGS += -D_XOPEN_SOURCE=700
+- LIBS += -lncursesw -lboost_regex -ldbghelp
++ LIBS += -lboost_regex -ldbghelp
+ else
+- LIBS += -lncursesw -lboost_regex
+- CPPFLAGS += -I$(NCURSESW_INCLUDE)
++ LIBS += -lboost_regex
+ LDFLAGS += -rdynamic
+ endif
+
+@@ -64,7 +61,7 @@ ifeq ($(static),yes)
+ LDFLAGS += -static -pthread
+ endif
+
+-CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -Wno-address
++CXXFLAGS += -std=gnu++11 -Wall -Wno-reorder -Wno-sign-compare -Wno-address
+
+ all : kak
+ kak : $(objects)
diff --git a/app-editors/kakoune/kakoune-0_pre20161111.ebuild b/app-editors/kakoune/kakoune-0_pre20161111.ebuild
new file mode 100644
index 000000000000..1e7e6df595fd
--- /dev/null
+++ b/app-editors/kakoune/kakoune-0_pre20161111.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs vcs-snapshot versionator
+
+REF="85ce5db08a6461f5fef13cc4f6b090c858698d91"
+
+DESCRIPTION="Selection-oriented code editor inspired by vim"
+HOMEPAGE="https://github.com/mawww/kakoune"
+SRC_URI="https://github.com/mawww/${PN}/tarball/${REF} -> ${P}.tar.gz"
+
+LICENSE="Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug static"
+
+RDEPEND="
+ sys-libs/ncurses:0=[unicode]
+ dev-libs/boost:=
+"
+DEPEND="
+ app-text/asciidoc
+ virtual/pkgconfig
+ ${RDEPEND}
+"
+
+PATCHES=( "${FILESDIR}/${PN}-0_pre20161111-makefile.patch" )
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ if tc-is-gcc && ! version_is_at_least 5.0 $(gcc-version); then
+ die "Clang or GCC >=5.0 is required to build this version"
+ fi
+ fi
+}
+
+src_configure() {
+ append-cppflags $($(tc-getPKG_CONFIG) --cflags ncursesw)
+ append-libs $($(tc-getPKG_CONFIG) --libs ncursesw)
+ tc-export CXX
+ export debug=$(usex debug)
+ export static=$(usex static)
+}
+
+src_install() {
+ emake -C src DESTDIR="${D}" PREFIX="${EPREFIX}/usr" docdir="${ED%/}/usr/share/doc/${PF}" install
+}