dev-util/edi: bump to 0.7.1
authorJoonas Niilola <juippis@gmail.com>
Sat, 4 May 2019 06:58:45 +0000 (09:58 +0300)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 8 May 2019 16:59:36 +0000 (18:59 +0200)
- allow raw wayland to be used.

Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Joonas Niilola <juippis@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11892
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-util/edi/Manifest
dev-util/edi/edi-0.7.1.ebuild [new file with mode: 0644]

index 2d1ca75e9c4fda69b428bc81a67ed53cd17e38d5..0cd40dbcd42caf2a2975c16b2a760b9c80a39d9d 100644 (file)
@@ -1 +1,2 @@
 DIST edi-0.7.0.tar.gz 733126 BLAKE2B bdf6f3ef37a04af4aa45042216b2661c83f22273777eb6dc9217cf44823948eccfcc9fe300d7d88ed19b051630fda304e5d8cf9bccba135eb0bdfa86fdd15e6c SHA512 a3e99355f17de9f8f5e0b1a4be2e7283147dea386e4a5dfa804df10830d3a43713974c1989c4fc55262bf582131a024a2723a8608035b82503019a6ed97e2b9e
+DIST edi-0.7.1.tar.gz 736103 BLAKE2B f4c82246d66d2620cccf71bfd2b623d1ce95f28d2afb1f1077b53580eec6303748287a5332472c45a911ad83d573ffaadfd08bc0827e3b77909f1a041e0f0750 SHA512 5e7e88e547f2e8fc631d48999aa76e814735dc254381d3965f64f7c1d3006becb90f32305471cd54c4eec5f8b66a1e8595220f302bcebe25eb54e9b56c31767c
diff --git a/dev-util/edi/edi-0.7.1.ebuild b/dev-util/edi/edi-0.7.1.ebuild
new file mode 100644 (file)
index 0000000..7a4dcb2
--- /dev/null
@@ -0,0 +1,58 @@
+# Copyright 1999-2019 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[X] dev-libs/efl[wayland] )
+       >=dev-libs/efl-1.22.0[eet]
+       clang? ( sys-devel/clang:= )"
+DEPEND="${RDEPEND}
+       dev-libs/check"
+BDEPEND=">=dev-util/meson-0.50.0
+       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
+}