dev-util/edi: new package
authorJoonas Niilola <juippis@gmail.com>
Mon, 24 Sep 2018 05:55:30 +0000 (08:55 +0300)
committerMichał Górny <mgorny@gentoo.org>
Sun, 7 Oct 2018 09:53:46 +0000 (11:53 +0200)
Closes: https://bugs.gentoo.org/604932
Signed-off-by: Joonas Niilola <juippis@gmail.com>
Package-Manager: Portage[mgorny]-2.3.49.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/9964

dev-util/edi/Manifest [new file with mode: 0644]
dev-util/edi/edi-0.7.0.ebuild [new file with mode: 0644]
dev-util/edi/metadata.xml [new file with mode: 0644]

diff --git a/dev-util/edi/Manifest b/dev-util/edi/Manifest
new file mode 100644 (file)
index 0000000..2d1ca75
--- /dev/null
@@ -0,0 +1 @@
+DIST edi-0.7.0.tar.gz 733126 BLAKE2B bdf6f3ef37a04af4aa45042216b2661c83f22273777eb6dc9217cf44823948eccfcc9fe300d7d88ed19b051630fda304e5d8cf9bccba135eb0bdfa86fdd15e6c SHA512 a3e99355f17de9f8f5e0b1a4be2e7283147dea386e4a5dfa804df10830d3a43713974c1989c4fc55262bf582131a024a2723a8608035b82503019a6ed97e2b9e
diff --git a/dev-util/edi/edi-0.7.0.ebuild b/dev-util/edi/edi-0.7.0.ebuild
new file mode 100644 (file)
index 0000000..5c046e8
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit llvm meson xdg-utils
+
+DESCRIPTION="An EFL-based IDE"
+HOMEPAGE="https://www.enlightenment.org/about-edi"
+SRC_URI="https://github.com/Enlightenment/edi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="clang"
+
+RDEPEND="
+       >=dev-libs/efl-1.21.1[eet,X]
+       clang? ( 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
+       xdg_environment_reset
+
+       # 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=(
+               -D bear=false
+               $(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
new file mode 100644 (file)
index 0000000..8b902f0
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>juippis@gmail.com</email>
+  </maintainer>
+  <maintainer type="project">
+    <email>proxy-maint@gentoo.org</email>
+    <name>Proxy Maintainers</name>
+  </maintainer>
+  <use>
+    <flag name="clang">
+      Provide integration with <pkg>sys-devel/clang</pkg> for autocompletion and inline 
+      errors
+    </flag>
+  </use>
+</pkgmetadata>