mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
x11/py-caffeine-ng: update to 4.0.2
While here, update WWW. Changelog: https://codeberg.org/WhyNotHugo/caffeine-ng/src/tag/v4.0.2/CHANGELOG.rst Reported by: portscout
This commit is contained in:
parent
3bc1119c58
commit
cd9ad4e75b
@ -1,6 +1,5 @@
|
||||
PORTNAME= caffeine-ng
|
||||
DISTVERSION= 3.5.1
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 4.0.2
|
||||
CATEGORIES= x11 python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -16,7 +15,7 @@ LICENSE_FILE_LGPL3+ = ${WRKSRC}/LGPL
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
|
||||
LIB_DEPENDS= libappindicator3.so:devel/libappindicator \
|
||||
libnotify.so:devel/libnotify
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docopt>=0.6.2:devel/py-docopt@${PY_FLAVOR} \
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click7>=7.1:devel/py-click7@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}ewmh>=0.1.4:devel/py-ewmh@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}xdg>=0.25:devel/py-xdg@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}setproctitle>=1.1.10:devel/py-setproctitle@${PY_FLAVOR} \
|
||||
@ -28,7 +27,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}flake8-bugbear>0:devel/py-flake8-bugbear@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}flake8-import-order>0:devel/py-flake8-import-order@${PY_FLAVOR}
|
||||
|
||||
USES= desktop-file-utils gettext-tools gnome python:3.6+
|
||||
USES= desktop-file-utils gettext-tools gnome python:3.6-3.9
|
||||
USE_GNOME= gdkpixbuf2 gtk30 pygobject3
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
@ -46,8 +45,7 @@ SCHEMASDIR= share/glib-2.0/schemas
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g; s|/etc|${LOCALBASE}/etc|g' \
|
||||
${WRKSRC}/setup.py \
|
||||
${WRKSRC}/share/applications/*.desktop
|
||||
${WRKSRC}/setup.py
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/${SCHEMASDIR}
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1611918197
|
||||
SHA256 (caffeine-ng-3.5.1.tar.gz) = 7549c09b527be98d7313df4801aae308b2231fbcc21b1de47d16dbbe71a37f2a
|
||||
SIZE (caffeine-ng-3.5.1.tar.gz) = 155382
|
||||
TIMESTAMP = 1658886222
|
||||
SHA256 (caffeine-ng-4.0.2.tar.gz) = ba62235c9d1eb7a3e2e448e3f7a43e66188a4beca3edbb206f8b905ba626eab5
|
||||
SIZE (caffeine-ng-4.0.2.tar.gz) = 163529
|
||||
|
19
x11/py-caffeine-ng/files/patch-caffeine_cli.py
Normal file
19
x11/py-caffeine-ng/files/patch-caffeine_cli.py
Normal file
@ -0,0 +1,19 @@
|
||||
--- caffeine/cli.py.orig 2022-07-27 02:03:53 UTC
|
||||
+++ caffeine/cli.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-import ctypes
|
||||
+# import ctypes
|
||||
import logging
|
||||
import signal
|
||||
|
||||
@@ -20,8 +20,8 @@ def cli(ctx, verbose):
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
|
||||
# register the process id as 'caffeine'
|
||||
- libc = ctypes.cdll.LoadLibrary("libc.so.6")
|
||||
- libc.prctl(15, "caffeine", 0, 0, 0)
|
||||
+ # libc = ctypes.cdll.LoadLibrary("libc.so.6")
|
||||
+ # libc.prctl(15, "caffeine", 0, 0, 0)
|
||||
|
||||
if verbose:
|
||||
logging.basicConfig(level=logging.DEBUG)
|
@ -1,22 +0,0 @@
|
||||
--- caffeine/main.py.orig 2021-01-01 14:03:23 UTC
|
||||
+++ caffeine/main.py
|
||||
@@ -30,7 +30,7 @@ Options:
|
||||
-p --preferences Start with the Preferences dialog open.
|
||||
"""
|
||||
# TODO: add a -v --verbosity flag.
|
||||
-import ctypes
|
||||
+# import ctypes
|
||||
import logging
|
||||
import os
|
||||
import signal
|
||||
@@ -429,8 +429,8 @@ def main():
|
||||
GObject.threads_init()
|
||||
|
||||
# register the process id as 'caffeine'
|
||||
- libc = ctypes.cdll.LoadLibrary("libc.so.6")
|
||||
- libc.prctl(15, "caffeine", 0, 0, 0)
|
||||
+ # libc = ctypes.cdll.LoadLibrary("libc.so.6")
|
||||
+ # libc.prctl(15, "caffeine", 0, 0, 0)
|
||||
|
||||
arguments = docopt(__doc__, version=__version__)
|
||||
|
@ -3,4 +3,4 @@ the screensaver from showing up, or the system from going to sleep. It
|
||||
does so when an application is fullscreened (eg: youtube), or when you
|
||||
click on the systray icon (which you can do, when, eg: reading).
|
||||
|
||||
WWW: https://github.com/caffeine-ng/caffeine-ng
|
||||
WWW: https://codeberg.org/WhyNotHugo/caffeine-ng
|
||||
|
Loading…
Reference in New Issue
Block a user