pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

+py-term-background in wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamelderouiche%yahoo.com@localhost>
Pushed By:	jihbed
Date:		Sun Nov 20 21:39:20 2022 +0000
Changeset:	04691f12c8c14c5de9db79a0cda5baaef428a01b

Modified Files:
	Makefile
Added Files:
	.Makefile.kate-swp
	py-term-background/.Makefile.kate-swp
	py-term-background/DESCR
	py-term-background/Makefile
	py-term-background/PLIST
	py-term-background/distinfo
	py-term-background/files/__pkginfo__.py

Log Message:
+py-term-background in wip

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=04691f12c8c14c5de9db79a0cda5baaef428a01b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 .Makefile.kate-swp                      |   0
 Makefile                                |   1 +
 py-term-background/.Makefile.kate-swp   | Bin 0 -> 68 bytes
 py-term-background/DESCR                |   8 +++++++
 py-term-background/Makefile             |  20 ++++++++++++++++++
 py-term-background/PLIST                |  14 +++++++++++++
 py-term-background/distinfo             |   5 +++++
 py-term-background/files/__pkginfo__.py |  36 ++++++++++++++++++++++++++++++++
 8 files changed, 84 insertions(+)

diffs:
diff --git a/.Makefile.kate-swp b/.Makefile.kate-swp
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Makefile b/Makefile
index 25dbdcf224..e3510a2475 100644
--- a/Makefile
+++ b/Makefile
@@ -4810,6 +4810,7 @@ SUBDIR+=	py-telegram-bot
 SUBDIR+=	py-telepathy
 SUBDIR+=	py-teng
 SUBDIR+=	py-teradata
+SUBDIR+=	py-term-background
 SUBDIR+=	py-test-datadir
 SUBDIR+=	py-test-html
 SUBDIR+=	py-test-metadata
diff --git a/py-term-background/.Makefile.kate-swp b/py-term-background/.Makefile.kate-swp
new file mode 100644
index 0000000000..46c8f5f6b3
Binary files /dev/null and b/py-term-background/.Makefile.kate-swp differ
diff --git a/py-term-background/DESCR b/py-term-background/DESCR
new file mode 100644
index 0000000000..0a04e89c88
--- /dev/null
+++ b/py-term-background/DESCR
@@ -0,0 +1,8 @@
+For the shell scripts, if you source this from a shell session it will set
+and export COLORFGBG to 0;15 for dark backgrounds and 15;0
+for light backgrounds which is a convention used by some programs.
+Since I find this a little arcane, the program also sets and exports
+LC_DARK_BG to 1 for dark backgrounds and 0 for light.
+The LC_ (locale) assists in some ssh configurations which often will
+let environment variables with that prefix get passed along and set
+to a remote ssh session.
diff --git a/py-term-background/Makefile b/py-term-background/Makefile
new file mode 100644
index 0000000000..10a4509e7b
--- /dev/null
+++ b/py-term-background/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	shell-term-background
+DISTNAME=	term-background-1.0.1
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	comms python
+MASTER_SITES=	${MASTER_SITE_GITHUB:=rocky/}
+GITHUB_RELEASE=	1.0.1
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/rocky/shell-term-background/
+COMMENT=	Terminal has a dark or light background Topics
+LICENSE=	gnu-gpl-v2
+
+post-extract:
+	${CP} ${FILESDIR}/__pkginfo__.py ${WRKSRC}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-term-background/PLIST b/py-term-background/PLIST
new file mode 100644
index 0000000000..302570931f
--- /dev/null
+++ b/py-term-background/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/term_background/__init__.py
+${PYSITELIB}/term_background/__init__.pyc
+${PYSITELIB}/term_background/__init__.pyo
+${PYSITELIB}/term_background/__main__.py
+${PYSITELIB}/term_background/__main__.pyc
+${PYSITELIB}/term_background/__main__.pyo
+${PYSITELIB}/term_background/version.py
+${PYSITELIB}/term_background/version.pyc
+${PYSITELIB}/term_background/version.pyo
diff --git a/py-term-background/distinfo b/py-term-background/distinfo
new file mode 100644
index 0000000000..9f507294bc
--- /dev/null
+++ b/py-term-background/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (shell-term-background/term-background-1.0.1.tar.gz) = c89c7a0af3c6dcca4d0850254ee465e68971a79c3385e6a29434c40313595a34
+SHA512 (shell-term-background/term-background-1.0.1.tar.gz) = d3e0c5ff7368ae43f3aa6f837d3ec3bdc5fa93cf5834b2ecaf3c768004f9cbb0d4ca438535496764d36b64c059ce44a6a41c68d9d710b73796bbc056046c4f93
+Size (shell-term-background/term-background-1.0.1.tar.gz) = 4355 bytes
diff --git a/py-term-background/files/__pkginfo__.py b/py-term-background/files/__pkginfo__.py
new file mode 100644
index 0000000000..2e86b515e6
--- /dev/null
+++ b/py-term-background/files/__pkginfo__.py
@@ -0,0 +1,36 @@
+import sys
+
+author = "Rocky Bernstein"
+author_email = "rb%dustyfeet.com@localhost"
+
+import os.path as osp
+
+
+py_modules = None
+short_desc = "Determine if shell has a light or dark background"
+url = "http://github.com/rocky/shell-term-background";
+
+classifiers = [
+    "Operating System :: OS Independent",
+    "Programming Language :: Python :: 2.6",
+    "Programming Language :: Python :: 2.7",
+    "Programming Language :: Python :: 3.2",
+    "Programming Language :: Python :: 3.3",
+    "Programming Language :: Python :: 3.4",
+    "Programming Language :: Python :: 3.5",
+    "Programming Language :: Python :: 3.6",
+    "Programming Language :: Python :: 3.7",
+    "Programming Language :: Python :: 3.8",
+    "Programming Language :: Python :: 3.9",
+]
+
+def get_srcdir():
+    filename = osp.normcase(osp.dirname(osp.abspath(__file__)))
+    return osp.realpath(filename)
+
+def read(*rnames):
+    return open(osp.join(get_srcdir(), *rnames)).read()
+
+# Get/set __version__ and long_description from files
+long_description = read("README.rst") + "\n"
+exec(read("term_background/version.py"))


Home | Main Index | Thread Index | Old Index