Teach build.py to install manpages in the right place on FreeBSD. This probably applies to other BSD's too, but for now it's sufficient to make the port patch-free.

While I'm here, nuke a poorly placed and superfluous comment.
This commit is contained in:
Thomas Hurst 2008-06-18 18:07:15 +01:00
parent 828a76b5bb
commit af451aa025
1 changed files with 8 additions and 3 deletions

View File

@ -8,6 +8,7 @@ from distutils.log import info
import glob import glob
import os import os
import sys import sys
import platform
from terminatorlib.version import * from terminatorlib.version import *
@ -45,7 +46,6 @@ class InstallData(install_data):
def _compile_po_files (self): def _compile_po_files (self):
data_files = [] data_files = []
# Don't install language files on win32
if WITHOUT_NLS: if WITHOUT_NLS:
return data_files return data_files
@ -57,6 +57,11 @@ class InstallData(install_data):
return data_files return data_files
if platform.system() == 'FreeBSD':
man_dir = 'man'
else:
man_dir = 'share/man'
setup(name='Terminator', setup(name='Terminator',
version=APP_VERSION, version=APP_VERSION,
description='Terminator, the robot future of terminals', description='Terminator, the robot future of terminals',
@ -67,8 +72,8 @@ setup(name='Terminator',
scripts=['terminator'], scripts=['terminator'],
data_files=[ data_files=[
('share/applications', ['data/terminator.desktop']), ('share/applications', ['data/terminator.desktop']),
('share/man/man1', ['doc/terminator.1']), (os.path.join(man_dir, 'man1'), ['doc/terminator.1']),
('share/man/man5', ['doc/terminator_config.5']), (os.path.join(man_dir, 'man5'), ['doc/terminator_config.5']),
('share/pixmaps', ['data/icons/48x48/apps/terminator.png']), ('share/pixmaps', ['data/icons/48x48/apps/terminator.png']),
('share/icons/hicolor/scalable/apps', glob.glob('data/icons/scalable/apps/*.svg')), ('share/icons/hicolor/scalable/apps', glob.glob('data/icons/scalable/apps/*.svg')),
('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')), ('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')),