mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
Part-of: https://github.com/gentoo/guru/pull/447 Closes: https://github.com/gentoo/guru/pull/447 Signed-off-by: David Roman <stkw0@disroot.org>
38 lines
739 B
Bash
38 lines
739 B
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MYPV="$(ver_rs 3 '.gfm.')"
|
|
PYTHON_COMPAT=( python3_12 )
|
|
|
|
inherit cmake python-any-r1
|
|
|
|
DESCRIPTION="GitHub's fork of cmark"
|
|
HOMEPAGE="https://github.com/github/cmark-gfm"
|
|
SRC_URI="https://github.com/github/cmark-gfm/archive/${MYPV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${PN}-${MYPV}"
|
|
|
|
LICENSE="BSD-2"
|
|
SLOT="0/0.29.0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="test"
|
|
|
|
DEPEND="test? ( ${PYTHON_DEPS} )"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
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_src_configure
|
|
}
|