summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2020-07-13 17:31:11 -0700
committerPatrick McLean <chutzpah@gentoo.org>2020-07-13 17:32:04 -0700
commitb22a4a815931cae28750ddac6deaa543913d3aac (patch)
tree663bfdaf044f0152372f2a40a0ac939fb107b301
parentapp-emulation/vkd3d: Fix build (diff)
downloadgentoo-b22a4a815931cae28750ddac6deaa543913d3aac.tar.gz
gentoo-b22a4a815931cae28750ddac6deaa543913d3aac.tar.bz2
gentoo-b22a4a815931cae28750ddac6deaa543913d3aac.zip
app-text/editorconfig-core-c-0.12.3-r2: Revbump, move doxygen dep under USE=doc
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r--app-text/editorconfig-core-c/editorconfig-core-c-0.12.3-r2.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/app-text/editorconfig-core-c/editorconfig-core-c-0.12.3-r2.ebuild b/app-text/editorconfig-core-c/editorconfig-core-c-0.12.3-r2.ebuild
new file mode 100644
index 00000000000..d898e669b78
--- /dev/null
+++ b/app-text/editorconfig-core-c/editorconfig-core-c-0.12.3-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+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"
+
+BDEPEND="doc? ( app-doc/doxygen )"
+DEPEND="dev-libs/libpcre2:="
+RDEPEND="${DEPEND}
+ cli? ( !dev-python/editorconfig-core-py[cli] )"
+
+PATCHES=( "${FILESDIR}/${P}-no-static-libs.patch" )
+
+src_configure() {
+ local -a mycmakeargs=(
+ -DBUILD_DOCUMENTATION=$(usex doc 'ON' 'OFF')
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
+ cmake_src_install
+
+ if ! use cli; then
+ rm -r "${ED}/usr/bin" || die
+ fi
+}