diff options
author | Joonas Niilola <juippis@gentoo.org> | 2021-04-06 13:03:04 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-04-06 13:08:37 +0300 |
commit | 8ff72b5f1a0ade52d8c06ab213d1e2d00bdd90cf (patch) | |
tree | 32e92b5dc9ae3328ac1cb673a9ac16e7c0605159 /dev-util/edi | |
parent | dev-util/bear: add x86 keyword for 2.4.4 (diff) | |
download | gentoo-8ff72b5f1a0ade52d8c06ab213d1e2d00bdd90cf.tar.gz gentoo-8ff72b5f1a0ade52d8c06ab213d1e2d00bdd90cf.tar.bz2 gentoo-8ff72b5f1a0ade52d8c06ab213d1e2d00bdd90cf.zip |
dev-util/edi: add dev-util/bear integration with 'clang' USE
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-util/edi')
-rw-r--r-- | dev-util/edi/edi-0.8.0-r1.ebuild | 61 | ||||
-rw-r--r-- | dev-util/edi/metadata.xml | 5 |
2 files changed, 64 insertions, 2 deletions
diff --git a/dev-util/edi/edi-0.8.0-r1.ebuild b/dev-util/edi/edi-0.8.0-r1.ebuild new file mode 100644 index 000000000000..5f9ff81adc18 --- /dev/null +++ b/dev-util/edi/edi-0.8.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit llvm meson xdg + +DESCRIPTION="An EFL-based IDE" +HOMEPAGE="https://www.enlightenment.org/about-edi + https://phab.enlightenment.org/w/projects/edi/ + https://github.com/Enlightenment/edi" +SRC_URI="https://github.com/Enlightenment/edi/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 GPL-3 LGPL-2.1-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="clang" + +RDEPEND="|| ( dev-libs/efl[X] dev-libs/efl[wayland] ) + >=dev-libs/efl-1.22.0[eet] + clang? ( + dev-util/bear + sys-devel/clang:= + )" +DEPEND="${RDEPEND} + dev-libs/check" +BDEPEND="virtual/pkgconfig" + +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +pkg_setup() { + use clang && llvm_pkg_setup +} + +src_prepare() { + default + + # fix a QA issue with .desktop file, https://phab.enlightenment.org/T7368 + sed -i '/Version=/d' data/desktop/edi.desktop* || die + + # fix 'unexpected path' QA warning + sed -i 's|share/doc/edi/|share/doc/'${PF}'/|g' doc/meson.build || die +} + +src_configure() { + local emesonargs=( + $(meson_use clang bear) + $(meson_use clang libclang) + ) + + if use clang; then + emesonargs+=( + -D libclang-headerdir="$(llvm-config --includedir)" + -D libclang-libdir="$(llvm-config --libdir)" + ) + fi + + meson_src_configure +} diff --git a/dev-util/edi/metadata.xml b/dev-util/edi/metadata.xml index 9fbd2808478f..50630f4a3f49 100644 --- a/dev-util/edi/metadata.xml +++ b/dev-util/edi/metadata.xml @@ -7,8 +7,9 @@ </maintainer> <use> <flag name="clang"> - Provide integration with <pkg>sys-devel/clang</pkg> for autocompletion and inline - errors + Provide integration with <pkg>sys-devel/clang</pkg> and + <pkg>dev-util/bear</pkg> for autocompletion, inline errors and + information about compilation units. </flag> </use> </pkgmetadata> |