Date: Sun, 19 Apr 2020 14:08:55 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> 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 Message-ID: <202004191408.03JE8t2A091283@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <tom@hur.st> +# $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 <bsd.port.pre.mk> + +.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|</_|</|' \ + ${WRKSRC}/data/terminator.appdata.xml +.endif + +PYDISTUTILS_SETUP+= --without-icon-cache + +.include <bsd.port.post.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004191408.03JE8t2A091283>