summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-01-26 14:12:24 -0800
committerZac Medico <zmedico@gentoo.org>2020-01-26 14:14:34 -0800
commit13a0b050dfd6b18b96367f5b8dc1a7d96de7b7c3 (patch)
treebca2a425845c6e5f36fd6e14d06697b953870aa0
parenttoolchain.eclass: fix typo in GCC_CONFIG_VER assignment (diff)
downloadgentoo-13a0b050dfd6b18b96367f5b8dc1a7d96de7b7c3.tar.gz
gentoo-13a0b050dfd6b18b96367f5b8dc1a7d96de7b7c3.tar.bz2
gentoo-13a0b050dfd6b18b96367f5b8dc1a7d96de7b7c3.zip
app-text/editorconfig-core-c: Bump to version 0.12.3
Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--app-text/editorconfig-core-c/Manifest1
-rw-r--r--app-text/editorconfig-core-c/editorconfig-core-c-0.12.3.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/app-text/editorconfig-core-c/Manifest b/app-text/editorconfig-core-c/Manifest
index 2433f69490a5..ac4ff6d578e4 100644
--- a/app-text/editorconfig-core-c/Manifest
+++ b/app-text/editorconfig-core-c/Manifest
@@ -1,2 +1,3 @@
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
+DIST editorconfig-core-c-0.12.3.tar.gz 67701 BLAKE2B d5e6310f770099f542eb81f4ca7ec975e74c49f481c4e8e07832a7f9fc0882e2cb65da5b4b18ad926786d7ac92c3deb6ac0a547188bd68d350143258796ad1b8 SHA512 4a17cd6317bd45f8b0131070165d852569d020f1cf74e72b44057b97672184b4992aee54aae6e3222c669fdce8bb6b1f3482235e6518acffcef05e1d74087e6e
diff --git a/app-text/editorconfig-core-c/editorconfig-core-c-0.12.3.ebuild b/app-text/editorconfig-core-c/editorconfig-core-c-0.12.3.ebuild
new file mode 100644
index 000000000000..2a7d562db479
--- /dev/null
+++ b/app-text/editorconfig-core-c/editorconfig-core-c-0.12.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~ppc64 ~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
+ sed -e "s:/share/doc/editorconfig\":/share/doc/${PF}\":" \
+ -i "${BUILD_DIR}/doc/cmake_install.cmake" || die
+}
+
+src_install() {
+ cmake-utils_src_install
+ use cli || rm -rf "${ED}usr/bin"
+}