Skip to content

Commit

Permalink
x11/py-caffeine-ng: update to 4.0.2
Browse files Browse the repository at this point in the history
While here, update WWW.

Changelog: https://codeberg.org/WhyNotHugo/caffeine-ng/src/tag/v4.0.2/CHANGELOG.rst

Reported by:	portscout
  • Loading branch information
Hiroki Tagato authored and Hiroki Tagato committed Jul 27, 2022
1 parent 3bc1119 commit cd9ad4e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 32 deletions.
10 changes: 4 additions & 6 deletions x11/py-caffeine-ng/Makefile
@@ -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}
Expand All @@ -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} \
Expand All @@ -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

Expand All @@ -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}
Expand Down
6 changes: 3 additions & 3 deletions x11/py-caffeine-ng/distinfo
@@ -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 changes: 19 additions & 0 deletions x11/py-caffeine-ng/files/patch-caffeine_cli.py
@@ -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)
22 changes: 0 additions & 22 deletions x11/py-caffeine-ng/files/patch-caffeine_main.py

This file was deleted.

2 changes: 1 addition & 1 deletion x11/py-caffeine-ng/pkg-descr
Expand Up @@ -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

0 comments on commit cd9ad4e

Please sign in to comment.