From owner-svn-ports-head@freebsd.org Sat Mar 9 07:34:28 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48605153B02D; Sat, 9 Mar 2019 07:34:28 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D9CA772502; Sat, 9 Mar 2019 07:34:27 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C9F2C7F87; Sat, 9 Mar 2019 07:34:27 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x297YR1S058487; Sat, 9 Mar 2019 07:34:27 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x297YQje058481; Sat, 9 Mar 2019 07:34:26 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <201903090734.x297YQje058481@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Sat, 9 Mar 2019 07:34:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495101 - in head/x11: . py-caffeine-ng py-caffeine-ng/files X-SVN-Group: ports-head X-SVN-Commit-Author: tcberner X-SVN-Commit-Paths: in head/x11: . py-caffeine-ng py-caffeine-ng/files X-SVN-Commit-Revision: 495101 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D9CA772502 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.94)[-0.942,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Mar 2019 07:34:28 -0000 Author: tcberner Date: Sat Mar 9 07:34:26 2019 New Revision: 495101 URL: https://svnweb.freebsd.org/changeset/ports/495101 Log: New port: x11/py-caffeine-ng. Caffeine is a little daemon that sits in your systray, and prevents 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 PR: 235639 Submitted by: Hiroki Tagato Added: head/x11/py-caffeine-ng/ head/x11/py-caffeine-ng/Makefile (contents, props changed) head/x11/py-caffeine-ng/distinfo (contents, props changed) head/x11/py-caffeine-ng/files/ head/x11/py-caffeine-ng/files/patch-caffeine_main.py (contents, props changed) head/x11/py-caffeine-ng/files/patch-setup.py (contents, props changed) head/x11/py-caffeine-ng/pkg-descr (contents, props changed) Modified: head/x11/Makefile Modified: head/x11/Makefile ============================================================================== --- head/x11/Makefile Sat Mar 9 07:20:00 2019 (r495100) +++ head/x11/Makefile Sat Mar 9 07:34:26 2019 (r495101) @@ -265,6 +265,7 @@ SUBDIR += polybar SUBDIR += printscreen SUBDIR += props + SUBDIR += py-caffeine-ng SUBDIR += py-pyvirtualdisplay SUBDIR += py-qt4-opengl SUBDIR += py-qt5-opengl Added: head/x11/py-caffeine-ng/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/py-caffeine-ng/Makefile Sat Mar 9 07:34:26 2019 (r495101) @@ -0,0 +1,67 @@ +# $FreeBSD$ + +PORTNAME= caffeine-ng +DISTVERSION= 3.4.2 +CATEGORIES= x11 python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= tagattie@yandex.com +COMMENT= Tray bar app to temporarily inhibit screensaver and sleep mode + +LICENSE= GPLv3+ LGPL3+ +LICENSE_COMB= multi +LICENSE_FILE_GPLv3+ = ${WRKSRC}/LICENCE +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} \ + ${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} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.29.0:devel/py-wheel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flake8>0:devel/py-flake8@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flake8-import-order>0:devel/py-flake8-import-order@${PY_FLAVOR} + +USES= desktop-file-utils gettext-tools gnome python:3.3+ +USE_GNOME= gdkpixbuf2 gtk30 pygobject3 +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +GLIB_SCHEMAS= net.launchpad.caffeine.gschema.xml +INSTALLS_ICONS= yes + +OPTIONS_DEFINE= DOCS + +PORTDOCS= README.rst + +REINPLACE_ARGS= -i "" + +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 + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/${SCHEMASDIR} +.for schema in ${GLIB_SCHEMAS} + ${INSTALL_DATA} ${WRKSRC}/${SCHEMASDIR}/${schema} ${STAGEDIR}${PREFIX}/${SCHEMASDIR} +.endfor + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for doc in ${PORTDOCS} + ${INSTALL_MAN} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} +.endfor + +do-test: + cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m tox + +.include Added: head/x11/py-caffeine-ng/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/py-caffeine-ng/distinfo Sat Mar 9 07:34:26 2019 (r495101) @@ -0,0 +1,3 @@ +TIMESTAMP = 1547976230 +SHA256 (caffeine-ng-3.4.2.tar.gz) = 9cf843f9359b4b8cdb2ad4a14bb433641a100e25206274eb638c494765d56816 +SIZE (caffeine-ng-3.4.2.tar.gz) = 145797 Added: head/x11/py-caffeine-ng/files/patch-caffeine_main.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/py-caffeine-ng/files/patch-caffeine_main.py Sat Mar 9 07:34:26 2019 (r495101) @@ -0,0 +1,13 @@ +--- caffeine/main.py.orig 2018-05-17 01:08:07 UTC ++++ caffeine/main.py +@@ -412,8 +412,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__) + Added: head/x11/py-caffeine-ng/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/py-caffeine-ng/files/patch-setup.py Sat Mar 9 07:34:26 2019 (r495101) @@ -0,0 +1,24 @@ +--- setup.py.orig 2018-05-17 01:08:07 UTC ++++ setup.py +@@ -7,14 +7,18 @@ from setuptools import find_packages, setup + + + def get_data_files(): ++ # Let FreeBSD port handle glib schema file to avoid plist error ++ black_list = ['net.launchpad.caffeine.gschema.xml'] + data_files = [] + + for path, dirs, files in walk('share'): + target_path = os.path.join('/usr', path) + +- data_files.append(( +- target_path, [os.path.join(path, f) for f in files] +- )) ++ tl = [os.path.join(path, f) for f in files if f not in black_list] ++ if tl != []: ++ data_files.append(( ++ target_path, tl ++ )) + + data_files.append( + ("/etc/xdg/autostart", ["share/applications/caffeine.desktop"]) Added: head/x11/py-caffeine-ng/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/py-caffeine-ng/pkg-descr Sat Mar 9 07:34:26 2019 (r495101) @@ -0,0 +1,6 @@ +Caffeine is a little daemon that sits in your systray, and prevents +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