Remove remaining references to boost from documentation/contrib files

This commit is contained in:
Maxime Coste 2017-11-01 14:15:11 +08:00
parent 51de90f366
commit 09de0686ef
6 changed files with 9 additions and 30 deletions

View File

@ -104,7 +104,6 @@ Kakoune dependencies are:
* A {cpp}14 compliant compiler (GCC >= 5 or clang >= 3.9) along with its * A {cpp}14 compliant compiler (GCC >= 5 or clang >= 3.9) along with its
associated {cpp} standard library (libstdc{pp} or libc{pp}) associated {cpp} standard library (libstdc{pp} or libc{pp})
* boost (>= 1.50)
* ncurses with wide-characters support (>= 5.3, generally referred to as libncursesw) * ncurses with wide-characters support (>= 5.3, generally referred to as libncursesw)
* asciidoc (for the `a2k` tool), to generate man pages * asciidoc (for the `a2k` tool), to generate man pages
@ -207,12 +206,12 @@ sudo zypper install kakoune
Building on Ubuntu 16.04. Building on Ubuntu 16.04.
Make sure you have .local/bin in your path to make the kak binary available from your shell. Make sure you have .local/bin in your path to make the kak binary available from your shell.
-------------------------------------------------------------------------- ----------------------------------------------------------------
sudo apt install libncursesw5-dev libboost-regex-dev asciidoc libboost-dev sudo apt install libncursesw5-dev asciidoc
git clone https://github.com/mawww/kakoune.git && cd kakoune/src git clone https://github.com/mawww/kakoune.git && cd kakoune/src
make make
PREFIX=$HOME/.local make install PREFIX=$HOME/.local make install
-------------------------------------------------------------------------- ----------------------------------------------------------------
==== ====
Running Running
@ -1169,9 +1168,8 @@ Kakoune trying to be smart.
Regex syntax Regex syntax
~~~~~~~~~~~~ ~~~~~~~~~~~~
The regex syntax supported by Kakoune is the Perl syntax currently provided The regex syntax based on the ECMAScript regex syntax, documentation can be
by Boost : accessed through `:doc regex`
http://www.boost.org/doc/libs/release/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html[Perl Regular Expression Syntax].
Exec and Eval Exec and Eval
~~~~~~~~~~~~~ ~~~~~~~~~~~~~

View File

@ -35,15 +35,15 @@ ifeq ($(static),yes)
endif endif
ifeq (@(TUP_PLATFORM),macosx) ifeq (@(TUP_PLATFORM),macosx)
LIBS += -lncurses -lboost_regex-mt LIBS += -lncurses
CPPFLAGS += -I/usr/local/opt/ncurses/include CPPFLAGS += -I/usr/local/opt/ncurses/include
LDFLAGS += -L/usr/local/opt/ncurses/lib LDFLAGS += -L/usr/local/opt/ncurses/lib
else else
ifeq (@(TUP_PLATFORM),win32) ifeq (@(TUP_PLATFORM),win32)
LIBS += -lncursesw -lboost_regex -ldbghelp LIBS += -lncursesw -ldbghelp
CPPFLAGS += -D_XOPEN_SOURCE=700 CPPFLAGS += -D_XOPEN_SOURCE=700
else else
LIBS += -lncursesw -lboost_regex LIBS += -lncursesw
CPPFLAGS += -I/usr/include/ncursesw CPPFLAGS += -I/usr/include/ncursesw
ifeq ($(CXX),g++) ifeq ($(CXX),g++)

View File

@ -4,7 +4,6 @@ class Kakoune < Formula
homepage "https://github.com/mawww/kakoune" homepage "https://github.com/mawww/kakoune"
head "https://github.com/mawww/kakoune.git" head "https://github.com/mawww/kakoune.git"
depends_on 'boost'
depends_on 'docbook-xsl' => :build depends_on 'docbook-xsl' => :build
depends_on 'ncurses' => [:build, :recommended] depends_on 'ncurses' => [:build, :recommended]
depends_on 'asciidoc' => [:build, 'with-docbook-xsl'] depends_on 'asciidoc' => [:build, 'with-docbook-xsl']

View File

@ -7,10 +7,8 @@ License: Unlicense
URL: http://kakoune.org/ URL: http://kakoune.org/
Source0: kakoune-84f62e6f.tar Source0: kakoune-84f62e6f.tar
BuildRequires: boost-devel >= 1.50
BuildRequires: ncurses-devel >= 5.3 BuildRequires: ncurses-devel >= 5.3
BuildRequires: asciidoc BuildRequires: asciidoc
Requires: boost >= 1.50
Requires: ncurses-libs >= 5.3 Requires: ncurses-libs >= 5.3
%description %description

View File

@ -5,10 +5,6 @@ Kakoune is written in C++11, here are the main coding style points:
* Avoid external dependencies besides posix/stdc++/ncurses * Avoid external dependencies besides posix/stdc++/ncurses
- That means avoid depending on boost, it is only allowed for the regex
implementation. The reference for the current regex support is available under
http://www.boost.org/doc/libs/release/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html[Perl Regular Expression Syntax].
* 4 spaces for indentation, no tabs * 4 spaces for indentation, no tabs
* public interface before private methods/data when defining a class * public interface before private methods/data when defining a class

View File

@ -22,15 +22,6 @@ project to this operating system is pretty low.
Moreover, you can get pretty decent performance by using Kakoune on Cygwin Moreover, you can get pretty decent performance by using Kakoune on Cygwin
(which is officially supported). (which is officially supported).
Can you get rid of the `boost` dependency and just use std::regex ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The `boost-regex` library provides use with several features that are heavily
relied upon across several core scripts, and a few of them are not available
in the standard `std::regex` implementations. Therefore, until the standard
catches up with `boost` in terms of features, the latter will remain a hard
-mandatory- dependency.
Kakoune is very slow on big files, what can I do about it ? Kakoune is very slow on big files, what can I do about it ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -48,10 +39,7 @@ Can I use Kakoune as a pager ?
Kakoune can be used as a pager, either by setting the `PAGER` environment Kakoune can be used as a pager, either by setting the `PAGER` environment
variable to `kak`, or by writing data directly to its standard input using a variable to `kak`, or by writing data directly to its standard input using a
shell pipeline. However, since the program relies on several heavy dynamic shell pipeline.
libraries (`boost` being one of them), it will be slightly less practical
than other regular pagers (such as `less` or `more`) which have a minimal
amount of runtime dependencies.
Are there any non-console based frontends available ? Are there any non-console based frontends available ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~