public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: app-text/md4c/
@ 2022-07-07 10:33 Nickolas Raymond Kaczynski
  0 siblings, 0 replies; 4+ messages in thread
From: Nickolas Raymond Kaczynski @ 2022-07-07 10:33 UTC (permalink / raw
  To: gentoo-commits

commit:     f9a756199da4d6f2bb206f132c6a12dfd39edf75
Author:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
AuthorDate: Thu Jul  7 10:33:03 2022 +0000
Commit:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
CommitDate: Thu Jul  7 10:33:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f9a75619

app-text/md4c: new package

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk <AT> disroot.org>

 app-text/md4c/md4c-9999.ebuild | 41 +++++++++++++++++++++++++++++++++++++++++
 app-text/md4c/metadata.xml     | 10 ++++++++++
 2 files changed, 51 insertions(+)

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>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: app-text/md4c/
@ 2023-01-29 17:29 Nickolas Raymond Kaczynski
  0 siblings, 0 replies; 4+ messages in thread
From: Nickolas Raymond Kaczynski @ 2023-01-29 17:29 UTC (permalink / raw
  To: gentoo-commits

commit:     b4265a1c06d775fb5329c1c457607890bdbd7297
Author:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
AuthorDate: Sun Jan 29 17:23:51 2023 +0000
Commit:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
CommitDate: Sun Jan 29 17:28:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b4265a1c

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 <AT> disroot.org>

 app-text/md4c/Manifest                                         |  1 +
 .../md4c/{md4c-9999.ebuild => md4c-0.4.8_p20220115.ebuild}     | 10 +++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/app-text/md4c/Manifest b/app-text/md4c/Manifest
new file mode 100644
index 000000000..0614a29be
--- /dev/null
+++ b/app-text/md4c/Manifest
@@ -0,0 +1 @@
+DIST md4c-0.4.8_p20220115.tar.gz 230786 BLAKE2B a2820563bd2f8094d9b57d1ee4bba629229b789b74b34860b1dfcbd45fffea4a477226ad5e8d9eace52b527c08698223ab9343729e4af605d8f9639166aea106 SHA512 1249e8d9c8aef1d305301c4d71f3d438cb81f0e754d9e3ca15c11bf384be67a112086332f41cfddfa2b89790748da0e7db7e62126dc0d9729846268e0dbee651

diff --git a/app-text/md4c/md4c-9999.ebuild b/app-text/md4c/md4c-0.4.8_p20220115.ebuild
similarity index 70%
rename from app-text/md4c/md4c-9999.ebuild
rename to app-text/md4c/md4c-0.4.8_p20220115.ebuild
index caf6b2562..d0bcf814d 100644
--- a/app-text/md4c/md4c-9999.ebuild
+++ b/app-text/md4c/md4c-0.4.8_p20220115.ebuild
@@ -1,18 +1,22 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 2022-2023 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
+# 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
-	SRC_URI="https://github.com/mity/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	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."


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: app-text/md4c/
@ 2024-02-16  6:28 Nickolas Raymond Kaczynski
  0 siblings, 0 replies; 4+ messages in thread
From: Nickolas Raymond Kaczynski @ 2024-02-16  6:28 UTC (permalink / raw
  To: gentoo-commits

commit:     b5c47b5d6ca034b75784ef6b7182523087a45779
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Fri Feb 16 06:24:34 2024 +0000
Commit:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> 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 <nrk <AT> 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
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: app-text/md4c/
@ 2024-02-26 18:38 Nickolas Raymond Kaczynski
  0 siblings, 0 replies; 4+ messages in thread
From: Nickolas Raymond Kaczynski @ 2024-02-26 18:38 UTC (permalink / raw
  To: gentoo-commits

commit:     0d7cd393ac22dfaf40fa48bf1a4863af64700ae3
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Mon Feb 26 18:37:11 2024 +0000
Commit:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
CommitDate: Mon Feb 26 18:37:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0d7cd393

app-text/md4c: add md2html useflag

Signed-off-by: NRK <nrk <AT> disroot.org>

 app-text/md4c/md4c-0.5.2.ebuild | 4 +++-
 app-text/md4c/metadata.xml      | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/app-text/md4c/md4c-0.5.2.ebuild b/app-text/md4c/md4c-0.5.2.ebuild
index 4a8b725b1c..524311cd3f 100644
--- a/app-text/md4c/md4c-0.5.2.ebuild
+++ b/app-text/md4c/md4c-0.5.2.ebuild
@@ -7,8 +7,8 @@ inherit cmake
 
 # TODO(NRK):
 # - enable tests
-# - useflag to not build md2html tool
 # - useflag for static lib (?)
+# - move this under dev-libs or maybe split the md2html tool into it's own package (??)
 
 if [[ ${PV} == 9999 ]]; then
 	inherit git-r3
@@ -25,6 +25,7 @@ HOMEPAGE="https://github.com/mity/md4c"
 
 LICENSE="MIT"
 SLOT="0"
+IUSE="+md2html"
 
 src_prepare() {
 	cmake_src_prepare
@@ -34,6 +35,7 @@ src_configure() {
 	mycmakeargs=(
 		-DCMAKE_BUILD_TYPE=Release
 		-DBUILD_SHARED_LIBS=ON
+		-DBUILD_MD2HTML_EXECUTABLE=$(usex md2html ON OFF)
 	)
 
 	cmake_src_configure

diff --git a/app-text/md4c/metadata.xml b/app-text/md4c/metadata.xml
index 0b2c5c0d69..102047fdc7 100644
--- a/app-text/md4c/metadata.xml
+++ b/app-text/md4c/metadata.xml
@@ -4,6 +4,9 @@
 	<maintainer type="person">
 		<email>nrk@disroot.org</email>
 	</maintainer>
+	<use>
+		<flag name="md2html">Build the md2html cli tool</flag>
+	</use>
 	<upstream>
 		<remote-id type="github">mity/md4c</remote-id>
 	</upstream>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-26 18:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-29 17:29 [gentoo-commits] repo/proj/guru:dev commit in: app-text/md4c/ Nickolas Raymond Kaczynski
  -- strict thread matches above, loose matches on Subject: below --
2024-02-26 18:38 Nickolas Raymond Kaczynski
2024-02-16  6:28 Nickolas Raymond Kaczynski
2022-07-07 10:33 Nickolas Raymond Kaczynski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox