summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gmail.com>2018-09-24 08:55:30 +0300
committerMichał Górny <mgorny@gentoo.org>2018-10-07 11:53:46 +0200
commitc4570290797589feeb73e9c8f18285bebc83a4da (patch)
treeedd5ab6a736aa85beb4b00ba80e4cb760bc15c50 /dev-util/edi
parentdev-cpp/websocketpp: Remove 0.7.0-r2 (diff)
downloadgentoo-c4570290797589feeb73e9c8f18285bebc83a4da.tar.gz
gentoo-c4570290797589feeb73e9c8f18285bebc83a4da.tar.bz2
gentoo-c4570290797589feeb73e9c8f18285bebc83a4da.zip
dev-util/edi: new package
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
Diffstat (limited to 'dev-util/edi')
-rw-r--r--dev-util/edi/Manifest1
-rw-r--r--dev-util/edi/edi-0.7.0.ebuild60
-rw-r--r--dev-util/edi/metadata.xml17
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-util/edi/Manifest b/dev-util/edi/Manifest
new file mode 100644
index 000000000000..2d1ca75e9c4f
--- /dev/null
+++ b/dev-util/edi/Manifest
@@ -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
index 000000000000..5c046e88d2dc
--- /dev/null
+++ b/dev-util/edi/edi-0.7.0.ebuild
@@ -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
index 000000000000..8b902f0f90c5
--- /dev/null
+++ b/dev-util/edi/metadata.xml
@@ -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>