commit: 56009628ed54aca1630bbad26d43e70db66b3706 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Nov 8 02:45:47 2016 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Nov 8 04:17:18 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56009628
app-text/editorconfig-core-c: add package Package-Manager: portage-2.3.2 app-text/editorconfig-core-c/Manifest | 1 + .../editorconfig-core-c-0.12.1.ebuild | 38 ++++++++++++++++++++++ app-text/editorconfig-core-c/metadata.xml | 13 ++++++++ 3 files changed, 52 insertions(+) diff --git a/app-text/editorconfig-core-c/Manifest b/app-text/editorconfig-core-c/Manifest new file mode 100644 index 00000000..ff5e387 --- /dev/null +++ b/app-text/editorconfig-core-c/Manifest @@ -0,0 +1 @@ +DIST editorconfig-core-c-0.12.1.tar.gz 65369 SHA256 c7bd714c73f01edde583b059b51078173aa85a36fa05bb9652d35a75fe0ac372 SHA512 3517f7db84d632615ba651eeafab6730739b7bf01f4ea34fbca65f58463fbbcbabc101587b289a7922b55708453262c65569077c51087424d47d0676dc1db686 WHIRLPOOL fdecba1d3621079cf3fa3c685d09ccf7f845f7964a1a7cb70e6d2e35e8533da08795ae75424c243d7ec9f6e179f2e7dea2add3eaaac9d15c813ffd0136bc6392 diff --git a/app-text/editorconfig-core-c/editorconfig-core-c-0.12.1.ebuild b/app-text/editorconfig-core-c/editorconfig-core-c-0.12.1.ebuild new file mode 100644 index 00000000..66f526c --- /dev/null +++ b/app-text/editorconfig-core-c/editorconfig-core-c-0.12.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="EditorConfig core library written in C" +HOMEPAGE="https://github.com/editorconfig/${PN}/" +SRC_URI="https://github.com/editorconfig/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cli doc" +CDEPEND="dev-libs/libpcre:=" +DEPEND="${CDEPEND} + doc? ( app-doc/doxygen )" +RDEPEND="${CDEPEND} + !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" +} diff --git a/app-text/editorconfig-core-c/metadata.xml b/app-text/editorconfig-core-c/metadata.xml new file mode 100644 index 00000000..639c3f1 --- /dev/null +++ b/app-text/editorconfig-core-c/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="github">editorconfig/editorconfig-core-c</remote-id> + </upstream> + <maintainer type="person"> + <email>zmed...@gentoo.org</email> + </maintainer> + <use> + <flag name="cli">Install command line interface.</flag> + </use> +</pkgmetadata>