diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-01 03:04:39 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-01 03:04:39 +0000 |
commit | 407525b571b48cfd65e1ad7a02d250a927c967c9 (patch) | |
tree | 844bea44d85dc7218f54970af1c42cc9d55c3f1a /app-editors/kakoune/kakoune-0_pre20171120.ebuild | |
parent | 89c6c06b8c42107dd231687a1012354e7d3039fc (diff) |
gentoo resync : 01.12.2017
Diffstat (limited to 'app-editors/kakoune/kakoune-0_pre20171120.ebuild')
-rw-r--r-- | app-editors/kakoune/kakoune-0_pre20171120.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-editors/kakoune/kakoune-0_pre20171120.ebuild b/app-editors/kakoune/kakoune-0_pre20171120.ebuild new file mode 100644 index 000000000000..862daa7fc9be --- /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 +} |