Files
guru/app-text/md4c/md4c-0.4.8_p20220115.ebuild
Nickolas Raymond Kaczynski b4265a1c06 app-text/md4c: add snapshot, drop 9999, tidy up
upstream seems to be somewhat inactive - so it will take a while before
a new version is released i'd assume. i don't remember exactly what it
was, but there was some bug in the stable version which is why i added
9999 instead (and why i'm doing a snapshot right now).

also fixes the copyright year, i'm quite sure md4c didn't even exist
back in 1999 :)

Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
2023-01-29 23:28:07 +06:00

46 lines
880 B
Bash

# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
# TODO(NRK):
# - enable tests
# - useflag for static lib (?)
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/mity/md4c.git"
else
COMMIT="e9ff661ff818ee94a4a231958d9b6768dc6882c9"
SRC_URI="https://github.com/mity/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${COMMIT}"
fi
DESCRIPTION="C Markdown parser. Fast, SAX-like interface, CommonMark Compliant."
HOMEPAGE="https://github.com/mity/md4c"
LICENSE="MIT"
SLOT="0"
src_prepare() {
cmake_src_prepare
}
src_configure() {
mycmakeargs=(
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=ON
)
cmake_src_configure
}
src_install() {
cmake_src_install
find "${ED}/usr/$(get_libdir)" -name '*.a' -exec rm {} \; || die
}