aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2014-08-08 09:19:07 +0800
committerwg <wg@FreeBSD.org>2014-08-08 09:19:07 +0800
commitf9f2a83fa2d27911f99fc31d950b207f2cf0cbcf (patch)
tree57af4f1bc1d318c89f832489b34ec912e5e6313d /sysutils
parentf46efc4c1c45acc8f71211369e4d173f877b7ed1 (diff)
downloadfreebsd-ports-gnome-f9f2a83fa2d27911f99fc31d950b207f2cf0cbcf.tar.gz
freebsd-ports-gnome-f9f2a83fa2d27911f99fc31d950b207f2cf0cbcf.tar.zst
freebsd-ports-gnome-f9f2a83fa2d27911f99fc31d950b207f2cf0cbcf.zip
sysutils/py-power
Python library that allows you get current power source type (AC, Battery or UPS), warning level (none, <22%, <10min) and remaining minutes. You can also observe changes of power source and remaining time. WWW: https://github.com/Kentzo/Power PR: 192494 Submitted by: cederom tlen pl
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/py-power/Makefile18
-rw-r--r--sysutils/py-power/distinfo2
-rw-r--r--sysutils/py-power/pkg-descr5
4 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index c863e4d32d9a..f2655566f748 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -742,6 +742,7 @@
SUBDIR += py-ploy_ezjail
SUBDIR += py-ploy_fabric
SUBDIR += py-plumbum
+ SUBDIR += py-power
SUBDIR += py-psutil
SUBDIR += py-psutil121
SUBDIR += py-pytsk
diff --git a/sysutils/py-power/Makefile b/sysutils/py-power/Makefile
new file mode 100644
index 000000000000..e3734148b7ad
--- /dev/null
+++ b/sysutils/py-power/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+PORTNAME= power
+PORTVERSION= 1.3
+CATEGORIES= sysutils python
+MASTER_SITES= https://github.com/Kentzo/Power/releases/download/v${PORTVERSION}/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= cederom@tlen.pl
+COMMENT= Cross-platform system power status information for Python
+
+LICENSE= MIT
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
+
+.include <bsd.port.mk>
diff --git a/sysutils/py-power/distinfo b/sysutils/py-power/distinfo
new file mode 100644
index 000000000000..dc1a7105fab4
--- /dev/null
+++ b/sysutils/py-power/distinfo
@@ -0,0 +1,2 @@
+SHA256 (power-1.3.tar.gz) = 0e4bcf083f6f7ec1568ed1db552f7a922e0ef99259e7b04177c3027cfb7014c0
+SIZE (power-1.3.tar.gz) = 9615
diff --git a/sysutils/py-power/pkg-descr b/sysutils/py-power/pkg-descr
new file mode 100644
index 000000000000..c7aa5fddfe7e
--- /dev/null
+++ b/sysutils/py-power/pkg-descr
@@ -0,0 +1,5 @@
+Python library that allows you get current power source type (AC, Battery or
+UPS), warning level (none, <22%, <10min) and remaining minutes.
+You can also observe changes of power source and remaining time.
+
+WWW: https://github.com/Kentzo/Power