diff options
author | Nickolas Raymond Kaczynski <nrk@disroot.org> | 2022-07-07 16:33:03 +0600 |
---|---|---|
committer | Nickolas Raymond Kaczynski <nrk@disroot.org> | 2022-07-07 16:33:03 +0600 |
commit | f9a756199da4d6f2bb206f132c6a12dfd39edf75 (patch) | |
tree | d665101e47e53ec77295bd4c653b2acc1caad86d /app-text/md4c | |
parent | kde-frameworks/kirigami-addons: try to fix test deps (diff) | |
download | guru-f9a756199da4d6f2bb206f132c6a12dfd39edf75.tar.gz guru-f9a756199da4d6f2bb206f132c6a12dfd39edf75.tar.bz2 guru-f9a756199da4d6f2bb206f132c6a12dfd39edf75.zip |
app-text/md4c: new package
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
Diffstat (limited to 'app-text/md4c')
-rw-r--r-- | app-text/md4c/md4c-9999.ebuild | 41 | ||||
-rw-r--r-- | app-text/md4c/metadata.xml | 10 |
2 files changed, 51 insertions, 0 deletions
diff --git a/app-text/md4c/md4c-9999.ebuild b/app-text/md4c/md4c-9999.ebuild new file mode 100644 index 000000000..caf6b2562 --- /dev/null +++ b/app-text/md4c/md4c-9999.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +# TODO: enable tests, add stable version and useflag for static lib + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mity/md4c.git" +else + SRC_URI="https://github.com/mity/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +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 +} diff --git a/app-text/md4c/metadata.xml b/app-text/md4c/metadata.xml new file mode 100644 index 000000000..687a515ae --- /dev/null +++ b/app-text/md4c/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>nrk@disroot.org</email> + </maintainer> + <upstream> + <remote-id type="github">mity/md4c</remote-id> + </upstream> +</pkgmetadata> |