summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-04-30 08:22:00 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-04-30 08:22:00 +0000
commit49bf07ff24d88bf5663ca2d2429fe5b36a3a7bc6 (patch)
treefb606bfea25ba6e958988fe115539413ff24b979
parentRemoval of arabic/katoob (diff)
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>
-rw-r--r--x11/Makefile1
-rw-r--r--x11/terminator/Makefile38
-rw-r--r--x11/terminator/distinfo3
-rw-r--r--x11/terminator/files/patch-setup.py77
-rw-r--r--x11/terminator/files/patch-terminator17
-rw-r--r--x11/terminator/pkg-descr5
-rw-r--r--x11/terminator/pkg-plist18
7 files changed, 159 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index d1d532ee2211..955c9b4e9103 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -265,6 +265,7 @@
SUBDIR += sxpc
SUBDIR += temperature.app
SUBDIR += terminal.app
+ SUBDIR += terminator
SUBDIR += thinglaunch
SUBDIR += tilda
SUBDIR += tkXwin
diff --git a/x11/terminator/Makefile b/x11/terminator/Makefile
new file mode 100644
index 000000000000..2ba36ded54ec
--- /dev/null
+++ b/x11/terminator/Makefile
@@ -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>
diff --git a/x11/terminator/distinfo b/x11/terminator/distinfo
new file mode 100644
index 000000000000..1b59ce01d8fd
--- /dev/null
+++ b/x11/terminator/distinfo
@@ -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
diff --git a/x11/terminator/files/patch-setup.py b/x11/terminator/files/patch-setup.py
new file mode 100644
index 000000000000..e370573d1ea2
--- /dev/null
+++ b/x11/terminator/files/patch-setup.py
@@ -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}
+ )
+
diff --git a/x11/terminator/files/patch-terminator b/x11/terminator/files/patch-terminator
new file mode 100644
index 000000000000..b0e3edfa1d0a
--- /dev/null
+++ b/x11/terminator/files/patch-terminator
@@ -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
diff --git a/x11/terminator/pkg-descr b/x11/terminator/pkg-descr
new file mode 100644
index 000000000000..69fa147648ff
--- /dev/null
+++ b/x11/terminator/pkg-descr
@@ -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/
diff --git a/x11/terminator/pkg-plist b/x11/terminator/pkg-plist
new file mode 100644
index 000000000000..d64f197d0d84
--- /dev/null
+++ b/x11/terminator/pkg-plist
@@ -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