app-editors/kakoune: version bump to 0_pre20171120
authorMykyta Holubakha <hilobakho@gmail.com>
Mon, 20 Nov 2017 00:03:40 +0000 (02:03 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 29 Nov 2017 23:19:21 +0000 (00:19 +0100)
drop depend on boost

app-editors/kakoune/Manifest
app-editors/kakoune/kakoune-0_pre20171120.ebuild [new file with mode: 0644]

index 0ef5c4bdd7bf58f81e281e802afbd9f9c25ed037..d4876ffa11da5ca41f9b4e76e2f09b1d73b4f6f1 100644 (file)
@@ -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 (file)
index 0000000..db8236e
--- /dev/null
@@ -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
+}