From nobody Thu May 11 23:26:40 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 4QHShc2SQvz4BBSX; Thu, 11 May 2023 23:26:40 +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 4QHShc21wWz3LbG; Thu, 11 May 2023 23:26:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683847600; 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=/T5u11iiw4jcw/fYx0PSknytKZjK2cgxTtJhuCx8v48=; b=JXrHgJY0MmNwUGv97TSafy0XJJkpijbwcz68ZThw0qkP0tt/FwL/j4uQjb53C9Es9rRuTB 4MjzoUwSmw1qm53qS2vY80G7lt3COiVX5UMUdYSiNkX6DGIfG+Upo1DEJ3CGX0M/vx602N pKahFv8kfaR+VWXxStCyZr8j6CZ/xPTZG733ysLarw6ivRt/oFi09xNNZIjX2rh23HwyWz 4jk9jnYS3+o17bmyWm6LwT3KCpKKmL5ZxjhUYCUmQFO+UCfQRzFX5Ro/wAnr/658sH35T3 BJELemPIGCni3pINN/3jaS85DOCn4ZVpgift3HqR8HxQbyp8EEICy7/HsP3bUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683847600; 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=/T5u11iiw4jcw/fYx0PSknytKZjK2cgxTtJhuCx8v48=; b=yZlbggMIJY5RAKTbSWE60M9wjD7EYZvUPdx93sfcOA7Olhi/iIUDkcseoXV/hNDMr93vyW vKrZ2O5ercDNQ68QYPDyqAXNETtKUljP3gFOlXsmSySJXmlwUpwctWYg/tkPmUddZanXRp FDEe3FrwPoFrGuuXVtOsrTjStIxvp9rTxbfMa6Nixy+hAX+ejWES8gZSct8qdZvx+0hc8I SFYt0iuYILEuDkHQnwCS1Xs9ykKYnB3XvOCH6wOLAKeLTuxoROrY9+wVBFQ4J2ZrHYXHnS O108bjsj9wI3IDqpBCOHmAZ0/U+lRB5ddTTIjt9FVGhcpAt7aOzAVi/G5KkDqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683847600; a=rsa-sha256; cv=none; b=xlavPUbiqpiOmJ0WsBFEWn/zjLQfLTiKucRRxpX9Mw+Y950ar2rX7Oy54X/p8iMyiC4HFC rfTExKmfOH6iYsmeFInkCpWYF5KOfEDhXYuVt9c/J0d2v/byTRc3oBQDGTFR9n5xOSz7LX E80yTiWxs8MD7E40vLSbdIQ/MGrBrCv+b3sGeLBCuIWFOVIdOV+9vK6AJIZPgp57zP/oLC j6zJzKjjVNXh4qB59x+HkoolWvQUToC60HbSQbXmJKrFSX8FvHddMtIRQY0pA/s9jsxCGu l4o0ASrWmwQ5G0hW7TnTV1jBTVP8IeSSowWm95iL6peInbbbWUy3SaPtddZRjw== 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 4QHShc17GKz1C03; Thu, 11 May 2023 23:26:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34BNQegG048685; Thu, 11 May 2023 23:26:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34BNQeYq048684; Thu, 11 May 2023 23:26:40 GMT (envelope-from git) Date: Thu, 11 May 2023 23:26:40 GMT Message-Id: <202305112326.34BNQeYq048684@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: ee97dc413dcb - main - graphics/py-colorz: New port: Color scheme generator 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: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee97dc413dcb97db56099af13ba5ce9e74b1d3c3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee97dc413dcb97db56099af13ba5ce9e74b1d3c3 commit ee97dc413dcb97db56099af13ba5ce9e74b1d3c3 Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2023-05-01 12:46:28 +0000 Commit: Robert Clausecker CommitDate: 2023-05-11 23:23:32 +0000 graphics/py-colorz: New port: Color scheme generator A color scheme generator. Takes an image (local or online) and grabs the most dominant colors using kmeans. Also creates bold colors by adding value to the dominant colors. Finally, outputs the colors to stdout (one normal and one bold per line, space delimited) and generates an HTML preview of the color scheme. WWW: https://github.com/metakirby5/colorz/ PR: 266117 --- graphics/Makefile | 1 + graphics/py-colorz/Makefile | 21 +++++++++++++++++++++ graphics/py-colorz/distinfo | 3 +++ graphics/py-colorz/pkg-descr | 5 +++++ 4 files changed, 30 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index e2bc40e9f419..755c9a6de475 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -852,6 +852,7 @@ SUBDIR += py-cogdumper SUBDIR += py-colorcet SUBDIR += py-colorthief + SUBDIR += py-colorz SUBDIR += py-colour SUBDIR += py-descartes SUBDIR += py-django-easy-thumbnails diff --git a/graphics/py-colorz/Makefile b/graphics/py-colorz/Makefile new file mode 100644 index 000000000000..fda6723a157d --- /dev/null +++ b/graphics/py-colorz/Makefile @@ -0,0 +1,21 @@ +PORTNAME= colorz +DISTVERSION= 1.0.3 +CATEGORIES= graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= DtxdF@disroot.org +COMMENT= Color scheme generator +WWW= https://github.com/metakirby5/colorz/ + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include diff --git a/graphics/py-colorz/distinfo b/graphics/py-colorz/distinfo new file mode 100644 index 000000000000..3bca4211c174 --- /dev/null +++ b/graphics/py-colorz/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1661849528 +SHA256 (colorz-1.0.3.tar.gz) = c04ff63896281f2ee1327bcdff2e76a339f70559abd8a25d28c0d1fb28480d3e +SIZE (colorz-1.0.3.tar.gz) = 5109 diff --git a/graphics/py-colorz/pkg-descr b/graphics/py-colorz/pkg-descr new file mode 100644 index 000000000000..b6568043a923 --- /dev/null +++ b/graphics/py-colorz/pkg-descr @@ -0,0 +1,5 @@ +A color scheme generator. Takes an image (local or online) and grabs +the most dominant colors using kmeans. Also creates bold colors by +adding value to the dominant colors. Finally, outputs the colors +to stdout (one normal and one bold per line, space delimited) and +generates an HTML preview of the color scheme.