From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9A63215808B for ; Fri, 16 Feb 2024 06:39:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C458BE2A0F; Fri, 16 Feb 2024 06:39:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A390BE2A0F for ; Fri, 16 Feb 2024 06:39:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 95B55343027 for ; Fri, 16 Feb 2024 06:38:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97D6214D3 for ; Fri, 16 Feb 2024 06:38:56 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1708064914.b5c47b5d6ca034b75784ef6b7182523087a45779.ceamac@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-text/md4c/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-text/md4c/Manifest app-text/md4c/md4c-0.5.2.ebuild X-VCS-Directories: app-text/md4c/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: b5c47b5d6ca034b75784ef6b7182523087a45779 X-VCS-Branch: master Date: Fri, 16 Feb 2024 06:38:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8b9241a6-fbef-420b-be10-a204d2ab17d2 X-Archives-Hash: 2b7b056fcce352eb8284229cefff57c3 commit: b5c47b5d6ca034b75784ef6b7182523087a45779 Author: NRK disroot org> AuthorDate: Fri Feb 16 06:24:34 2024 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Fri Feb 16 06:28:34 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b5c47b5d app-text/md4c: add v0.5.2 Signed-off-by: NRK disroot.org> app-text/md4c/Manifest | 1 + app-text/md4c/md4c-0.5.2.ebuild | 46 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/app-text/md4c/Manifest b/app-text/md4c/Manifest index 0614a29be6..732e0d6ddd 100644 --- a/app-text/md4c/Manifest +++ b/app-text/md4c/Manifest @@ -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 diff --git a/app-text/md4c/md4c-0.5.2.ebuild b/app-text/md4c/md4c-0.5.2.ebuild new file mode 100644 index 0000000000..4a8b725b1c --- /dev/null +++ b/app-text/md4c/md4c-0.5.2.ebuild @@ -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 +}