app-text/editorconfig-core-c: Version bump to 0.12.2
authorManuel Rüger <mrueg@gentoo.org>
Tue, 10 Apr 2018 00:26:22 +0000 (02:26 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Tue, 10 Apr 2018 00:26:22 +0000 (02:26 +0200)
Package-Manager: Portage-2.3.28, Repoman-2.3.9

app-text/editorconfig-core-c/Manifest
app-text/editorconfig-core-c/editorconfig-core-c-0.12.2.ebuild [new file with mode: 0644]

index f70adae767ad143fc2013a6d4fda46a9a9409a41..2433f69490a5350dea2dfcd3140502cbbbaf5a6e 100644 (file)
@@ -1 +1,2 @@
 DIST editorconfig-core-c-0.12.1.tar.gz 65369 BLAKE2B 30296b64bd215a8b51d3b4d6146ce5eac13cb1a8ba8a25d0faabcc22989503d9d73bc138240b475eb7ea4eecd5f5bbbf347519b1696373daf55ffd27fc772f4c SHA512 3517f7db84d632615ba651eeafab6730739b7bf01f4ea34fbca65f58463fbbcbabc101587b289a7922b55708453262c65569077c51087424d47d0676dc1db686
+DIST editorconfig-core-c-0.12.2.tar.gz 67002 BLAKE2B 6b808366acc8d0a96fc47cb74d620a4028978d7114b4a64d6799527276442f1d39ba8d5611530f873c78b7c49893c5edecec84dcc6f2616ba2663cb36fa92d0d SHA512 6ab3e4f7f95c83c0781064ca15bb70394bb947f9d4cd1348224f02e25c65021d14439b913775d7cfafb93476158799c34438fa548adf3c7ec6dbfd6f1052a046
diff --git a/app-text/editorconfig-core-c/editorconfig-core-c-0.12.2.ebuild b/app-text/editorconfig-core-c/editorconfig-core-c-0.12.2.ebuild
new file mode 100644 (file)
index 0000000..1bfe84c
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="EditorConfig core library written in C"
+HOMEPAGE="https://github.com/editorconfig/editorconfig-core-c/"
+SRC_URI="https://github.com/editorconfig/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="cli doc"
+CDEPEND="dev-libs/libpcre:="
+DEPEND="${CDEPEND}
+       doc? ( app-doc/doxygen )"
+RDEPEND="${CDEPEND}
+       cli? ( !dev-python/editorconfig-core-py[cli] )"
+
+src_prepare() {
+       sed -e 's:OUTPUT_NAME editorconfig_static:OUTPUT_NAME editorconfig:' \
+               -i src/lib/CMakeLists.txt || die
+       cmake-utils_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=()
+       use doc && mycmakeargs+=(-DINSTALL_HTML_DOC=ON)
+       cmake-utils_src_configure
+}
+
+src_install() {
+       cmake-utils_src_install
+       use cli || rm -rf "${ED}usr/bin"
+}