From owner-svn-ports-all@freebsd.org Sun Apr 19 14:08:56 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 196E92C70B4; Sun, 19 Apr 2020 14:08:56 +0000 (UTC) (envelope-from ume@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 494sBb70lZz4L4p; Sun, 19 Apr 2020 14:08:55 +0000 (UTC) (envelope-from ume@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 EBC0826EE1; Sun, 19 Apr 2020 14:08:55 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03JE8t2B091288; Sun, 19 Apr 2020 14:08:55 GMT (envelope-from ume@FreeBSD.org) Received: (from ume@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03JE8t2A091283; Sun, 19 Apr 2020 14:08:55 GMT (envelope-from ume@FreeBSD.org) Message-Id: <202004191408.03JE8t2A091283@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ume set sender to ume@FreeBSD.org using -f From: Hajimu UMEMOTO Date: Sun, 19 Apr 2020 14:08:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r532114 - in head/x11: . terminator terminator/files X-SVN-Group: ports-head X-SVN-Commit-Author: ume X-SVN-Commit-Paths: in head/x11: . terminator terminator/files X-SVN-Commit-Revision: 532114 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2020 14:08:56 -0000 Author: ume Date: Sun Apr 19 14:08:54 2020 New Revision: 532114 URL: https://svnweb.freebsd.org/changeset/ports/532114 Log: Re-add x11/terminator -- Multiple GNOME terminals in one window This is Python3 port of Terminator. The original version of Terminator does not support Python3, yet. Once, the original supports Python3, this port will switch to the original. Added: head/x11/terminator/ head/x11/terminator/Makefile (contents, props changed) head/x11/terminator/distinfo (contents, props changed) head/x11/terminator/files/ head/x11/terminator/files/patch-terminatorlib__notebook.py (contents, props changed) head/x11/terminator/pkg-descr (contents, props changed) Modified: head/x11/Makefile Modified: head/x11/Makefile ============================================================================== --- head/x11/Makefile Sun Apr 19 14:08:40 2020 (r532113) +++ head/x11/Makefile Sun Apr 19 14:08:54 2020 (r532114) @@ -318,6 +318,7 @@ SUBDIR += tabbed SUBDIR += temperature.app SUBDIR += terminal.app + SUBDIR += terminator SUBDIR += terminology SUBDIR += thinglaunch SUBDIR += thingylaunch Added: head/x11/terminator/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/terminator/Makefile Sun Apr 19 14:08:54 2020 (r532114) @@ -0,0 +1,55 @@ +# Created by: Thomas Hurst +# $FreeBSD$ + +PORTNAME= terminator +PORTVERSION= 1.92 +CATEGORIES= x11 python +MASTER_SITES= https://bazaar.launchpad.net/~hellodeargrandma/terminator/python3/tarball/ +DISTNAME= 1852 +EXTRACT_SUFX= +DIST_SUBDIR= terminator-python3-bzr + +MAINTAINER= ume@FreeBSD.org +COMMENT= Multiple GNOME terminals in one window + +LICENSE= GPLv2 + +RUN_DEPENDS= ${LOCALBASE}/lib/libkeybinder-3.0.so:x11/keybinder-gtk3 \ + ${LOCALBASE}/lib/libnotify.so:devel/libnotify \ + ${PYTHON_PKGNAMEPREFIX}configobj>0:devel/py-configobj@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} + +USES= gnome python:3.5+ shebangfix +USE_GNOME= intltool pygobject3 vte3 +USE_PYTHON= autoplist distutils + +PYDISTUTILS_PKGNAME= Terminator + +INSTALLS_ICONS= yes + +SHEBANG_FILES= terminator.wrapper +bash_CMD= ${SH} + +OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes +NLS_USES= gettext + +WRKSRC= ${WRKDIR}/~hellodeargrandma/terminator/python3 + +.include + +.if !${PORT_OPTIONS:MNLS} +PYDISTUTILS_SETUP+= --without-gettext +post-patch: + ${CP} ${WRKSRC}/data/terminator.desktop.in ${WRKSRC}/data/terminator.desktop + ${REINPLACE_CMD} -e 's/^_//' ${WRKSRC}/data/terminator.desktop + ${CP} ${WRKSRC}/data/terminator.appdata.xml.in ${WRKSRC}/data/terminator.appdata.xml + ${REINPLACE_CMD} \ + -e 's|<_|<|' \ + -e 's| Added: head/x11/terminator/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/terminator/distinfo Sun Apr 19 14:08:54 2020 (r532114) @@ -0,0 +1,3 @@ +TIMESTAMP = 1587301375 +SHA256 (terminator-python3-bzr/1852) = 223802142fb535a9174a0da50051eeb6fce153a6462c9992deba1c9ee15e3a12 +SIZE (terminator-python3-bzr/1852) = 889301 Added: head/x11/terminator/files/patch-terminatorlib__notebook.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/terminator/files/patch-terminatorlib__notebook.py Sun Apr 19 14:08:54 2020 (r532114) @@ -0,0 +1,29 @@ +--- terminatorlib/notebook.py.orig 2020-04-19 03:13:43 UTC ++++ terminatorlib/notebook.py +@@ -77,17 +77,6 @@ class Notebook(Container, Gtk.Notebook): + + def create_layout(self, layout): + """Apply layout configuration""" +- def child_compare(a, b): +- order_a = children[a]['order'] +- order_b = children[b]['order'] +- +- if (order_a == order_b): +- return 0 +- if (order_a < order_b): +- return -1 +- if (order_a > order_b): +- return 1 +- + if 'children' not in layout: + err('layout specifies no children: %s' % layout) + return +@@ -100,7 +89,7 @@ class Notebook(Container, Gtk.Notebook): + + num = 0 + keys = list(children.keys()) +- keys.sort(child_compare) ++ keys.sort(key=lambda x: children[x]['order']) + + for child_key in keys: + child = children[child_key] Added: head/x11/terminator/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/terminator/pkg-descr Sun Apr 19 14:08:54 2020 (r532114) @@ -0,0 +1,5 @@ +Terminator is a Python terminal program, using the same widget as +gnome-terminal to provide a tiled set of terminals in as little +space as possible. + +WWW: http://gnometerminator.blogspot.co.uk/p/introduction.html