# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" PYTHON_COMPAT=( python3_3 python3_4 python3_5 ) inherit autotools eutils git-2 cmake-utils python-r1 DESCRIPTION="CommonMark parsing and rendering library and program in C" HOMEPAGE="https://swift.org/" SRC_URI="" EGIT_REPO_URI="https://github.com/apple/swift-cmark.git" LICENSE="Apache-2.0" SLOT="0/${PV}" KEYWORDS="amd64 x86" IUSE="debug test" DEPEND="dev-vcs/git sys-devel/clang >=dev-util/cmake-2.8.9 dev-util/ninja" CMAKE_MAKEFILE_GENERATOR=ninja CC=clang CXX=clang++ if use debug ; then CMAKE_BUILD_TYPE=Debug else CMAKE_BUILD_TYPE=Release fi src_test() { ${BUILD_DIR}/api_test/api_test || die }