diff options
Diffstat (limited to 'app-editors/kakoune')
-rw-r--r-- | app-editors/kakoune/Manifest | 1 | ||||
-rw-r--r-- | app-editors/kakoune/kakoune-0_pre20171120.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-editors/kakoune/Manifest b/app-editors/kakoune/Manifest index 0ef5c4bdd7b..d4876ffa11d 100644 --- a/app-editors/kakoune/Manifest +++ b/app-editors/kakoune/Manifest @@ -1 +1,2 @@ DIST kakoune-0_pre20170523.tar.gz 420837 SHA256 3a083916729336dfd9e1e49cda62b5e3e881dbda7d6c7b5826377d5af15b1af9 SHA512 6d7d8f7afda75b824e4150512d9e0710cf22ef79af985c68b724a0f8e6949e5b0e7aab288f165a229f17706b30b51b462305538c7b56fd50689019118e913219 WHIRLPOOL 2e3a4c6b57944be46dbc8ddbc466fe3953453719146f4feabf8ae9688248a0d20ba2da3379fc7a503e7de7669df5f92d02e25dfc54c711a6ecdbee133b7a6ef8 +DIST kakoune-0_pre20171120.tar.gz 460659 SHA256 10aea28840e2b58ce224fbf54c899797852bb0361e8c6363f0cc6af451d30b65 SHA512 0208fd932dcf6cef3fac3338dfc15f0ba36ed4e3fa282cc5ffac5ad823f91b553a8c34747ff33ec4382257a1eb71f21181b63595031f9f237cba3bc8eeda3626 WHIRLPOOL d611723d726f52ba08ef1580a7d286b853d78722374897ad78743eba3946e995aa89da7ca2cbb61472d3245101ef1bef9aa62b113b949494cead061fa7a961c9 diff --git a/app-editors/kakoune/kakoune-0_pre20171120.ebuild b/app-editors/kakoune/kakoune-0_pre20171120.ebuild new file mode 100644 index 00000000000..db8236e59f2 --- /dev/null +++ b/app-editors/kakoune/kakoune-0_pre20171120.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs vcs-snapshot versionator + +REF="079b006cdab6f0ae594f80fff18ad61b71b0754d" + +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] +" +DEPEND=" + app-text/asciidoc + virtual/pkgconfig + ${RDEPEND} +" + +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_prepare() { + default + + sed -i -e '/CXXFLAGS += -O3/d' src/Makefile || \ + die "Failed to patch makefile" +} + +src_configure() { + 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 +} |