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://www.tenshu.net/terminator/

PR:		ports/122489
Submitted by:	Thomas Hurst <tom at hur.st>
This commit is contained in:
Martin Wilke 2008-04-30 08:22:00 +00:00
parent bdb4e2cd6f
commit 49bf07ff24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=212330
7 changed files with 159 additions and 0 deletions

View file

@ -265,6 +265,7 @@
SUBDIR += sxpc SUBDIR += sxpc
SUBDIR += temperature.app SUBDIR += temperature.app
SUBDIR += terminal.app SUBDIR += terminal.app
SUBDIR += terminator
SUBDIR += thinglaunch SUBDIR += thinglaunch
SUBDIR += tilda SUBDIR += tilda
SUBDIR += tkXwin SUBDIR += tkXwin

38
x11/terminator/Makefile Normal file
View file

@ -0,0 +1,38 @@
# New ports collection makefile for: terminator
# Date created: 2008-03-14
# Whom: Thomas Hurst <tom@hur.st>
#
# $FreeBSD$
#
PORTNAME= terminator
PORTVERSION= 0.8.1
CATEGORIES= x11 python
MASTER_SITES= https://launchpad.net/terminator/trunk/${PORTVERSION}/+download/ \
https://hur.st/mirror/terminator/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= tom@hur.st
COMMENT= Multiple GNOME terminals in one window
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_PYTHON= 2.4+
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Terminator
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
MAKE_ENV+= WITHOUT_NLS="yes"
PLIST_SUB+= NLS="@comment "
.endif
INSTALLS_ICONS= yes
USE_GNOME= pygnome2 pygtk2
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte
MAN1= terminator.1
.include <bsd.port.mk>

3
x11/terminator/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (terminator_0.8.1.tar.gz) = 7e8a76c52b4b397674acea0d8a0dfc05
SHA256 (terminator_0.8.1.tar.gz) = 87c24891941dd5a3c3b8417db7bb8af4df0fbfb853fd62dd53841b8f97c4a4a3
SIZE (terminator_0.8.1.tar.gz) = 35647

View file

@ -0,0 +1,77 @@
--- setup.py.orig 2008-02-20 00:05:58.000000000 +0000
+++ setup.py 2008-04-06 14:03:24.000000000 +0100
@@ -2,23 +2,19 @@
from distutils.core import setup
from distutils.command.install_data import install_data
+from distutils.command.build import build
from distutils.dep_util import newer
from distutils.log import info
import glob
import os
import sys
-class InstallData(install_data):
- def run (self):
- self.data_files.extend (self._compile_po_files ())
- install_data.run (self)
-
- def _compile_po_files (self):
- data_files = []
-
+class BuildData(build):
+ def run(self):
+ build.run(self)
# Don't install language files on win32
- if sys.platform == 'win32':
- return data_files
+ if sys.platform == 'win32' or os.environ.has_key("WITHOUT_NLS"):
+ return
PO_DIR = 'po'
for po in glob.glob (os.path.join (PO_DIR,'*.po')):
@@ -37,8 +33,25 @@
if os.system(cmd) != 0:
raise SystemExit('Error while running msgfmt')
- dest = os.path.dirname(os.path.join('share', 'locale', lang, 'LC_MESSAGES', 'terminator.mo'))
- data_files.append((dest, [mo]))
+class InstallData(install_data):
+ def run (self):
+ self.data_files.extend (self._compile_po_files ())
+ install_data.run (self)
+
+ def _compile_po_files (self):
+ data_files = []
+
+ # Don't install language files on win32
+ if sys.platform == 'win32' or os.environ.has_key("WITHOUT_NLS"):
+ return data_files
+
+ PO_DIR = 'po'
+ for po in glob.glob (os.path.join (PO_DIR,'*.po')):
+ lang = os.path.basename(po[:-3])
+ mo = os.path.join('build', 'mo', lang, 'terminator.mo')
+
+ dest = os.path.dirname(os.path.join('share', 'locale', lang, 'LC_MESSAGES', 'terminator.mo'))
+ data_files.append((dest, [mo]))
return data_files
@@ -53,7 +66,7 @@
scripts=['terminator'],
data_files=[
('share/applications', ['data/terminator.desktop']),
- ('share/man/man1', ['doc/terminator.1']),
+ ('man/man1', ['doc/terminator.1']),
('share/pixmaps', ['data/icons/48x48/apps/terminator.png']),
('share/icons/hicolor/scalable/apps', glob.glob('data/icons/scalable/apps/*.svg')),
('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')),
@@ -61,6 +74,6 @@
('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.png')),
('share/icons/hicolor/48x48/apps', glob.glob('data/icons/48x48/apps/*.png')),
],
- cmdclass={'install_data': InstallData}
+ cmdclass={'build': BuildData, 'install_data': InstallData}
)

View file

@ -0,0 +1,17 @@
--- terminator.orig 2008-02-20 00:05:58.000000000 +0000
+++ terminator 2008-04-06 14:19:29.000000000 +0100
@@ -21,8 +21,12 @@
import os, sys, string, time, math
from optparse import OptionParser
-import gettext
-gettext.install ('terminator')
+try:
+ import gettext
+ gettext.install ('terminator')
+except:
+ def _(text):
+ return text
# import unix-lib
import pwd

5
x11/terminator/pkg-descr Normal file
View file

@ -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://www.tenshu.net/terminator/

18
x11/terminator/pkg-plist Normal file
View file

@ -0,0 +1,18 @@
bin/terminator
share/applications/terminator.desktop
share/pixmaps/terminator.png
share/icons/hicolor/scalable/apps/terminator.svg
share/icons/hicolor/16x16/apps/terminator.png
share/icons/hicolor/22x22/apps/terminator.png
share/icons/hicolor/24x24/apps/terminator.png
share/icons/hicolor/48x48/apps/terminator.png
%%NLS%%share/locale/de/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/en_GB/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/es/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/fr/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/it/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/nl/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/ro/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/ru/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/sv/LC_MESSAGES/terminator.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/terminator.mo