summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-11-07 18:45:47 -0800
committerZac Medico <zmedico@gentoo.org>2016-11-07 20:17:18 -0800
commit56009628ed54aca1630bbad26d43e70db66b3706 (patch)
treed03553c86d6ce73e32fdd2c792568210e9ae7de4
parentsys-apps/apply-default-acl: update HOMEPAGE (follow 301 redirect). (diff)
downloadgentoo-56009628ed54aca1630bbad26d43e70db66b3706.tar.gz
gentoo-56009628ed54aca1630bbad26d43e70db66b3706.tar.bz2
gentoo-56009628ed54aca1630bbad26d43e70db66b3706.zip
app-text/editorconfig-core-c: add package
Package-Manager: portage-2.3.2
-rw-r--r--app-text/editorconfig-core-c/Manifest1
-rw-r--r--app-text/editorconfig-core-c/editorconfig-core-c-0.12.1.ebuild38
-rw-r--r--app-text/editorconfig-core-c/metadata.xml13
3 files changed, 52 insertions, 0 deletions
diff --git a/app-text/editorconfig-core-c/Manifest b/app-text/editorconfig-core-c/Manifest
new file mode 100644
index 000000000000..ff5e3872e8d8
--- /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 000000000000..66f526c8f83f
--- /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 000000000000..639c3f190602
--- /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>zmedico@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="cli">Install command line interface.</flag>
+ </use>
+</pkgmetadata>