Skip to content

Commit

Permalink
textproc/py-markdown-callouts: New port
Browse files Browse the repository at this point in the history
This extension for Python Markdown produces the same results as the
"admonition" extension, but with a syntax that is much less intrusive
and has a very reasonable fallback look for "vanilla" renderers.
  • Loading branch information
knobix committed Aug 31, 2023
1 parent 096daca commit e405e1b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions textproc/Makefile
Expand Up @@ -1410,6 +1410,7 @@
SUBDIR += py-m2r
SUBDIR += py-mako
SUBDIR += py-markdown
SUBDIR += py-markdown-callouts
SUBDIR += py-markdown-include
SUBDIR += py-markdown-it-py
SUBDIR += py-markdown2
Expand Down
22 changes: 22 additions & 0 deletions textproc/py-markdown-callouts/Makefile
@@ -0,0 +1,22 @@
PORTNAME= markdown-callouts
DISTVERSION= 0.3.0
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= kai@FreeBSD.org
COMMENT= Markdown extension: Classier syntax for admonitions
WWW= https://github.com/oprypin/markdown-callouts

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0.12:devel/py-poetry-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}markdown>=3.3.3<4:textproc/py-markdown@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist pep517

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions textproc/py-markdown-callouts/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1688225214
SHA256 (markdown-callouts-0.3.0.tar.gz) = 21e99d72a879663343e232158413e12eeaa9fb78b90e669f41cdbf0962a364fb
SIZE (markdown-callouts-0.3.0.tar.gz) = 5287
12 changes: 12 additions & 0 deletions textproc/py-markdown-callouts/files/patch-pyproject.toml
@@ -0,0 +1,12 @@
Use the more lightweight py-poetry-core instead py-poetry.

--- pyproject.toml.orig 2022-09-18 20:43:59 UTC
+++ pyproject.toml
@@ -48,5 +48,5 @@ filterwarnings = ["ignore::DeprecationWarning:.*:",
"default::DeprecationWarning:markdown_callouts.*:"]

[build-system]
-requires = ["poetry>=0.12"]
-build-backend = "poetry.masonry.api"
+requires = ["poetry-core>=0.12"]
+build-backend = "poetry.core.masonry.api"
3 changes: 3 additions & 0 deletions textproc/py-markdown-callouts/pkg-descr
@@ -0,0 +1,3 @@
This extension for Python Markdown produces the same results as the
"admonition" extension, but with a syntax that is much less intrusive and has
a very reasonable fallback look for "vanilla" renderers.

0 comments on commit e405e1b

Please sign in to comment.