app-text/md4c: add v0.5.2

Signed-off-by: NRK <nrk@disroot.org>
This commit is contained in:
NRK
2024-02-16 06:24:34 +00:00
parent ec37079316
commit b5c47b5d6c
2 changed files with 47 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST md4c-0.4.8_p20220115.tar.gz 230786 BLAKE2B a2820563bd2f8094d9b57d1ee4bba629229b789b74b34860b1dfcbd45fffea4a477226ad5e8d9eace52b527c08698223ab9343729e4af605d8f9639166aea106 SHA512 1249e8d9c8aef1d305301c4d71f3d438cb81f0e754d9e3ca15c11bf384be67a112086332f41cfddfa2b89790748da0e7db7e62126dc0d9729846268e0dbee651
DIST md4c-0.5.2.tar.gz 237973 BLAKE2B 7f3f80c1bcfa3040b4458876abc8eabbad387242fbdcde08b34d9a279da56e4c2264a591deb6ad3061c951b4ca547f896589682aa5c6b50febfc03b89c61be3e SHA512 30607ba39d6c59329f5a56a90cd816ff60b82ea752ac2b9df356d756529cfc49170019fae5df32fa94afc0e2a186c66eaf56fa6373d18436c06ace670675ba85

View File

@@ -0,0 +1,46 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
# TODO(NRK):
# - enable tests
# - useflag to not build md2html tool
# - useflag for static lib (?)
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/mity/md4c.git"
else
MY_VERSION="release-${PV}"
SRC_URI="https://github.com/mity/${PN}/archive/refs/tags/${MY_VERSION}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${MY_VERSION}"
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
}