mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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:
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
|
@ -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
38
x11/terminator/Makefile
Normal 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
3
x11/terminator/distinfo
Normal 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
|
77
x11/terminator/files/patch-setup.py
Normal file
77
x11/terminator/files/patch-setup.py
Normal 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}
|
||||||
|
)
|
||||||
|
|
17
x11/terminator/files/patch-terminator
Normal file
17
x11/terminator/files/patch-terminator
Normal 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
5
x11/terminator/pkg-descr
Normal 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
18
x11/terminator/pkg-plist
Normal 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
|
Loading…
Add table
Reference in a new issue