Adding py-term-background, a Python module to figure out if a terminal has a

dark or light background.
This commit is contained in:
Thierry Thomas 2021-02-20 09:07:00 +00:00
parent 29797d0752
commit 8b2c129ab7
5 changed files with 53 additions and 0 deletions

View File

@ -206,6 +206,7 @@
SUBDIR += py-pystash
SUBDIR += py-send2trash
SUBDIR += py-taskw
SUBDIR += py-term-background
SUBDIR += py-todoman
SUBDIR += py-vdirsyncer
SUBDIR += py-vobject

View File

@ -0,0 +1,32 @@
# Created by: thierry@pompo.net
# $FreeBSD$
PORTNAME= term-background
PORTVERSION= 1.0.1
CATEGORIES= deskutils python shells
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Shell scripts and Python module to figure out terminal background
LICENSE= GPLv2
USE_GITHUB= yes
GH_ACCOUNT= rocky
GH_PROJECT= shell-term-background
USES= python:3.7+ shebangfix
USE_PYTHON= distutils
SHEBANG_FILES= term-background.*
NO_ARCH= yes
MAKE_ENV+= PYTHON=${PYTHON_CMD}
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/term-background.* ${STAGEDIR}${DATADIR}
do-test: install
(cd ${WRKSRC} && py.test)
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1613386752
SHA256 (rocky-shell-term-background-1.0.1_GH0.tar.gz) = c59081defac311e078657b0e7e933970a57fc89a4ba152d159436ccc3b6477a8
SIZE (rocky-shell-term-background-1.0.1_GH0.tar.gz) = 20302

View File

@ -0,0 +1,5 @@
POSIX shell scripts to figure out if a terminal has a dark or light background.
The Python module contained is part of a broader set of scripts.
WWW: https://github.com/rocky/shell-term-background

View File

@ -0,0 +1,12 @@
%%PYTHON_SITELIBDIR%%/term_background/__init__.py
%%PYTHON_SITELIBDIR%%/term_background/__main__.py
%%PYTHON_SITELIBDIR%%/term_background/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/term_background/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/term_background/__pycache__/__main__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/term_background/__pycache__/__main__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/term_background/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/term_background/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/term_background/version.py
%%DATADIR%%/term-background.bash
%%DATADIR%%/term-background.ksh
%%DATADIR%%/term-background.zsh