summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-04-30 17:08:13 +0100
committerSam James <sam@gentoo.org>2021-05-04 22:17:01 +0000
commit60d821c5d1cb49b5dca0e4869240dfa742b08209 (patch)
treed722c3e7d31d42987336c99fa58fdcc58f4140d0 /app-editors
parentapp-misc/elasticsearch: Set QA_PREBUILT (diff)
downloadgentoo-60d821c5d1cb49b5dca0e4869240dfa742b08209.tar.gz
gentoo-60d821c5d1cb49b5dca0e4869240dfa742b08209.tar.bz2
gentoo-60d821c5d1cb49b5dca0e4869240dfa742b08209.zip
app-editors/kakoune: Respect CFLAGS, fix gcc-11 compilation
Closes: https://bugs.gentoo.org/727558 Closes: https://bugs.gentoo.org/787029 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/kakoune/files/kakoune-2020.01.16-gcc-11.patch11
-rw-r--r--app-editors/kakoune/kakoune-2020.01.16_p20200601.ebuild28
2 files changed, 29 insertions, 10 deletions
diff --git a/app-editors/kakoune/files/kakoune-2020.01.16-gcc-11.patch b/app-editors/kakoune/files/kakoune-2020.01.16-gcc-11.patch
new file mode 100644
index 000000000000..d558c49347c1
--- /dev/null
+++ b/app-editors/kakoune/files/kakoune-2020.01.16-gcc-11.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/787029
+--- a/src/regex_impl.cc
++++ b/src/regex_impl.cc
+@@ -12,6 +12,7 @@
+
+ #include <cstdio>
+ #include <cstring>
++#include <limits>
+
+ namespace Kakoune
+ {
diff --git a/app-editors/kakoune/kakoune-2020.01.16_p20200601.ebuild b/app-editors/kakoune/kakoune-2020.01.16_p20200601.ebuild
index bcbba4882812..66bf600f4070 100644
--- a/app-editors/kakoune/kakoune-2020.01.16_p20200601.ebuild
+++ b/app-editors/kakoune/kakoune-2020.01.16_p20200601.ebuild
@@ -3,11 +3,13 @@
EAPI=7
-MY_COMMIT="6fa26b8dd2ac0931fe688370728c47086277d883"
+inherit toolchain-funcs
+MY_COMMIT="6fa26b8dd2ac0931fe688370728c47086277d883"
DESCRIPTION="Modal editor inspired by vim"
HOMEPAGE="http://kakoune.org/ https://github.com/mawww/kakoune"
SRC_URI="https://github.com/mawww/kakoune/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/kakoune-${MY_COMMIT}"
LICENSE="Unlicense"
SLOT="0"
@@ -17,25 +19,31 @@ DEPEND="sys-libs/ncurses:0=[unicode]"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
-PATCHES=( "${FILESDIR}"/kakoune-2020.01.16-enable-ebuild-syntax-highlight.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-2020.01.16-enable-ebuild-syntax-highlight.patch
+ "${FILESDIR}"/${PN}-2020.01.16-gcc-11.patch
+)
-S="${WORKDIR}/kakoune-${MY_COMMIT}"
+src_prepare() {
+ sed -i '/CXXFLAGS += -O3/d' src/Makefile || die
+ default
+}
-src_configure() { :; }
+src_configure() {
+ tc-export CXX
+}
src_compile() {
- cd src/ || die
- emake all
+ emake -C src all
}
src_test() {
- cd src/ || die
- emake test
+ emake -C src test
}
src_install() {
- emake PREFIX="${D}"/usr docdir="${D}/usr/share/doc/${PF}" install
+ emake PREFIX="${D}"/usr docdir="${ED}/usr/share/doc/${PF}" install
- rm "${D}/usr/share/man/man1/kak.1.gz" || die
+ rm "${ED}/usr/share/man/man1/kak.1.gz" || die
doman doc/kak.1
}