From nobody Thu Nov 16 14:03:07 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SWMF80hdmz50hMG; Thu, 16 Nov 2023 14:03:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SWMF806kZz4nZB; Thu, 16 Nov 2023 14:03:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700143388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=saNkqWAFv92vGbNSF2UyM/wtiODWoPRzqJ+mebzhfvo=; b=YEmNDA6/9nJlRmWVBRIsm1smQyxklM2W0Df2W0cqNCG72OSwPhFLhzsL+zpb3a6tCJVYb+ UFCdp+2pn+WcWeuFDb33LzPj/4S6S9pW5wat4s/AS7DJxkDv7Ipka7dRCGNjS60qVoGn4S iyg2zwRiuEwgqR0slRPy6F8yCBNiXjGJ9c62d86BxUHAdYG8/F0bfHhpAlZ1bevm8vbTSd OY9oFOdUWTsw869bn/MWU1ydp9mCP+NxvX3J2zNHFthf0S7ntxwHNj0kq+I3MPgZdbiiC3 ri1ZwWvUvEJ5xjs3WHN34S7jGv8QV0lOKdGdpXj+XBQ04hGkBr76NxzwB5folg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700143388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=saNkqWAFv92vGbNSF2UyM/wtiODWoPRzqJ+mebzhfvo=; b=x9usPqEOk0Lc+FsLXwG49lUPnSODU/STDTS9FkbFEf6UcLaXTdVZQuD95ThthqqhTm8O48 UnAnIMexgc/Eo+iK7abN6O6r7TgpGoHg1tXsAAtcHD8U0GTvlwxUhkHC38Of+1iBv7pYTR LTEezfBLSnji7H29jkKnqeITv25it2ZlXYtV7X56H7xZgM1k1XSxd6hf7UNUURwvN7c/D3 pGRQRvL1yKgv4Yqc/nX193pTaQppBovOmnjcldRIq2YjI9cSCTzkVTK1rCcG9D8ZS/+8j2 rZ77yBPKDcTi8Mg0hRoegYpzwPj/046wtrHPpFB8LV5qKwTQchZpsj/Un1FnNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700143388; a=rsa-sha256; cv=none; b=jTrKYb/ld/dbURpoGcuhFkwpBcEm3sxe4ydmbnal4Hu7FQlmoKQyms4SclcBIuKUngf232 GNxeqIyqOiOfDcriggS8+RH/EDzBqsGx3hM10v2jvDP6gVO/HMVLixKUBGcPaJ+S5jgl8N LPbnF/HY7Z/hXGKOPcJ9r9V9zp4fJ2Tr/ZiYPc7KXUPND/CI4zgYbCUdhtMP+tub7DqDB+ JRdak2eKeHPGea0LMZ759oWtSY3jlpF+tLp6QCUAwLlB4TyN4xXsouZus7LXsqVUUcWoiK 6CKMCuDu5NF0EkpOWBb4aUJ4qcbOegGtY9HGPQ7dQtTmUg36HQjIIOFRY4zPZQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SWMF76CSKz137Q; Thu, 16 Nov 2023 14:03:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AGE37Tf069688; Thu, 16 Nov 2023 14:03:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AGE37D1069685; Thu, 16 Nov 2023 14:03:07 GMT (envelope-from git) Date: Thu, 16 Nov 2023 14:03:07 GMT Message-Id: <202311161403.3AGE37D1069685@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: b28009e43f47 - main - textproc/py-mdformat: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b28009e43f476bdd33d0d97bfa3bd56739c45ff4 Auto-Submitted: auto-generated The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=b28009e43f476bdd33d0d97bfa3bd56739c45ff4 commit b28009e43f476bdd33d0d97bfa3bd56739c45ff4 Author: Nicola Vitale AuthorDate: 2023-11-16 14:00:30 +0000 Commit: Nicola Vitale CommitDate: 2023-11-16 14:02:41 +0000 textproc/py-mdformat: Add new port Mdformat is an opinionated Markdown formatter that can be used to enforce a consistent style in Markdown files. Mdformat is a Unix-style command-line tool as well as a Python library. https://github.com/executablebooks/mdformat --- textproc/Makefile | 1 + textproc/py-mdformat/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ textproc/py-mdformat/distinfo | 3 +++ textproc/py-mdformat/pkg-descr | 3 +++ 4 files changed, 49 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 9ccd5e143e62..c825dad404e8 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1421,6 +1421,7 @@ SUBDIR += py-markups SUBDIR += py-markupsafe SUBDIR += py-mathics-pygments + SUBDIR += py-mdformat SUBDIR += py-mdit-py-plugins SUBDIR += py-mdurl SUBDIR += py-merge3 diff --git a/textproc/py-mdformat/Makefile b/textproc/py-mdformat/Makefile new file mode 100644 index 000000000000..d89d85a45161 --- /dev/null +++ b/textproc/py-mdformat/Makefile @@ -0,0 +1,42 @@ +PORTNAME= mdformat +DISTVERSION= 0.7.17 +CATEGORIES= textproc python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= CommonMark compliant Markdown formatter +WWW= https://github.com/executablebooks/mdformat + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.41.3:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.6.0:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markdown-it-py>=1.0.0<4.0.0:textproc/py-markdown-it-py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mdurl>=0.1.2:textproc/py-mdurl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}zipp>=0.5:devel/py-zipp@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>=4.1.0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-randomly>=3.12.0:devel/py-pytest-randomly@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +GH_ACCOUNT= executablebooks +USE_PYTHON= autoplist pep517 pytest + +NO_ARCH= yes + +OPTIONS_DEFINE= DOCS + +DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0.18.1:textproc/py-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}furo>=2022.6.21:textproc/py-furo@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}myst-parser>=0.18.0:textproc/py-myst-parser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=5.4.0:textproc/py-sphinx@${PY_FLAVOR} +DOCS_PORTDOCS= * .buildinfo + +post-install-DOCS-on: + ${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} \ + -d ${WRKDIR} -b html -n ${WRKSRC}/docs ${STAGEDIR}${DOCSDIR} + +.include diff --git a/textproc/py-mdformat/distinfo b/textproc/py-mdformat/distinfo new file mode 100644 index 000000000000..8f702bf34718 --- /dev/null +++ b/textproc/py-mdformat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1700138821 +SHA256 (executablebooks-mdformat-0.7.17_GH0.tar.gz) = 833919e616c64cba88b8af09e485cd6b440366f572f963f2b18ea89b0d5c4416 +SIZE (executablebooks-mdformat-0.7.17_GH0.tar.gz) = 81766 diff --git a/textproc/py-mdformat/pkg-descr b/textproc/py-mdformat/pkg-descr new file mode 100644 index 000000000000..159a9450b840 --- /dev/null +++ b/textproc/py-mdformat/pkg-descr @@ -0,0 +1,3 @@ +Mdformat is an opinionated Markdown formatter that can be used to enforce a +consistent style in Markdown files. Mdformat is a Unix-style command-line tool +as well as a Python library.