You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/cmark/cmark-0.28.3.ebuild

34 lines
717 B

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{5,6} )
inherit cmake-utils python-any-r1
DESCRIPTION="CommonMark parsing and rendering library and program in C"
HOMEPAGE="https://github.com/commonmark/cmark"
SRC_URI="https://github.com/commonmark/cmark/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0/0.28.3"
KEYWORDS="amd64 ppc ~ppc64 x86"
IUSE="test"
DEPEND="test? ( ${PYTHON_DEPS} )"
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_configure() {
local mycmakeargs=(
-DCMARK_LIB_FUZZER=OFF
-DCMARK_SHARED=ON
-DCMARK_STATIC=OFF
-DCMARK_TESTS="$(usex test)"
)
cmake-utils_src_configure
}