git: 96345a1ff2ac - main - print/py-plutoprint: New port: A Python Library for Generating PDFs and Images from HTML
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Dec 2025 08:33:09 UTC
The branch main has been updated by acm:
URL: https://cgit.FreeBSD.org/ports/commit/?id=96345a1ff2ac4adebc2952238a9fc8afa05acf4c
commit 96345a1ff2ac4adebc2952238a9fc8afa05acf4c
Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2025-12-28 08:32:07 +0000
Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2025-12-28 08:32:07 +0000
print/py-plutoprint: New port: A Python Library for Generating PDFs and Images from HTML
PlutoPrint is a lightweight and easy-to-use Python library for generating
high-quality PDFs and images directly from HTML or XML content. It is based on
PlutoBook’s robust rendering engine and provides a simple API to convert ur
HTML into crisp PDF documents or vibrant image files. This makes it ideal for
reports, invoices, or visual snapshots.
---
print/Makefile | 1 +
print/py-plutoprint/Makefile | 33 +++++++++++++++++++++++++++++++++
print/py-plutoprint/distinfo | 3 +++
print/py-plutoprint/pkg-descr | 5 +++++
4 files changed, 42 insertions(+)
diff --git a/print/Makefile b/print/Makefile
index bbaf10e8b2ad..373a50481723 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -182,6 +182,7 @@
SUBDIR += py-frescobaldi
SUBDIR += py-glyphsets
SUBDIR += py-glyphtools
+ SUBDIR += py-plutoprint
SUBDIR += py-pollyreports
SUBDIR += py-preppy
SUBDIR += py-psautohint
diff --git a/print/py-plutoprint/Makefile b/print/py-plutoprint/Makefile
new file mode 100644
index 000000000000..1c239314505f
--- /dev/null
+++ b/print/py-plutoprint/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= plutoprint
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.15.0
+CATEGORIES= print python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT= A Python Library for Generating PDFs and Images from HTML
+WWW= https://github.com/plutoprint/plutoprint
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meson-python>=0.12.1:devel/meson-python@${PY_FLAVOR}
+LIB_DEPENDS= libplutobook.so:print/plutobook \
+ libcurl.so:ftp/curl \
+ libexpat.so:textproc/expat2 \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2 \
+ libharfbuzz.so:print/harfbuzz \
+ libicuuc.so:devel/icu \
+ libturbojpeg.so:graphics/libjpeg-turbo \
+ libwebp.so:graphics/webp
+
+USES= compiler:c++20-lang gnome ninja pkgconfig python
+
+USE_GNOME= cairo
+USE_PYTHON= autoplist pep517
+
+USE_GITHUB= yes
+GH_ACCOUNT= plutoprint
+
+.include <bsd.port.mk>
diff --git a/print/py-plutoprint/distinfo b/print/py-plutoprint/distinfo
new file mode 100644
index 000000000000..9b54120a133d
--- /dev/null
+++ b/print/py-plutoprint/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1766909240
+SHA256 (plutoprint-plutoprint-v0.15.0_GH0.tar.gz) = 20e1289826e11e251ff955dd99d754ddbad29cf6ff0b7b0583cca5786527243f
+SIZE (plutoprint-plutoprint-v0.15.0_GH0.tar.gz) = 47139
diff --git a/print/py-plutoprint/pkg-descr b/print/py-plutoprint/pkg-descr
new file mode 100644
index 000000000000..ed66ea84bee9
--- /dev/null
+++ b/print/py-plutoprint/pkg-descr
@@ -0,0 +1,5 @@
+PlutoPrint is a lightweight and easy-to-use Python library for generating
+high-quality PDFs and images directly from HTML or XML content. It is based on
+PlutoBook’s robust rendering engine and provides a simple API to convert ur
+HTML into crisp PDF documents or vibrant image files. This makes it ideal for
+reports, invoices, or visual snapshots.