BSD Ports

graphics/py-webcolors 24.8.0_1 MidnightBSD

Library working with the sRGB color space as used in the HTML and CSS

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
7ea36d7968
License
bsd3
Categories
graphics, python

Description

webcolors is a module for working with HTML/CSS color definitions.

Support is included for normalizing and converting between the following formats (RGB colorspace only; conversion to/from HSL can be handled by the colorsys module in the Python standard library):

* Specification-defined color names * Six-digit hexadecimal * Three-digit hexadecimal * Integer rgb() triplet * Percentage rgb() triplet

In the other systems

SystemPortVersion
MidnightBSDgraphics/py-webcolors24.8.0_1
FreeBSDgraphics/py-webcolors24.8.0
DragonFlygraphics/py-webcolors24.8.0
HardenedBSDgraphics/py-webcolors24.8.0
GhostBSDgraphics/py-webcolors24.8.0

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}webcolors

From mports:

cd /usr/mports/graphics/py-webcolors && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}webcolors>0:graphics/py-webcolors

Dependencies

As this port's Makefile names them.

Build 1

Build dependencies 1
Required by 1

Configuration

Options name: graphics_webcolors

OptionDefaultDescription
DOCSoff
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
webcolors-24.8.0.tar.gz4239208b07af286a01bcd30d583a7acadf629583d1f79bfef27dd2c2c5c263817277d
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
7ea36d7968 Lucas Holt graphics/py-webcolors: fix the staging path in the option install targets
The option helper targets (post-install-DOCS-on and friends) are entries in _FAKE_SEQ and run in the main make, not in the sub-make that fake-post-install starts with FAKE_SETUP. There PREFIX is not stage-prefixed and STAGEDIR is empty, so ${STAGEDIR}${DOCSDIR} resolved to the live /usr/local: the build wrote outside the stage directory and the file was then reported missing, e.g. install ... README.rst /usr/local/share/doc/py312-webcolors /usr/local/share/doc/py312-webcolors/README.rst not installed. Fake failed. Use ${FAKE_DESTDIR} in these targets, as x11-wm/icewm already does. AI-Assisted-by: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
b807d69740 Lucas Holt Add LangChain AI ports and dependencies
AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>