68 lines
3.2 KiB
Plaintext
68 lines
3.2 KiB
Plaintext
$OpenBSD: patch-install_py,v 1.3 2009/04/15 08:26:28 landry Exp $
|
|
|
|
install files in the right place, and don't try to run
|
|
update-mime-database and gconftool-2, will be done in fake.
|
|
|
|
--- install.py.orig Sat Feb 14 12:09:21 2009
|
|
+++ install.py Tue Apr 7 20:33:57 2009
|
|
@@ -35,7 +35,8 @@ TRANSLATIONS = ('ca', 'cs', 'es', 'fr', 'hr', 'hu', 'i
|
|
# 'de', 'it', 'nl', 'el', 'fa'
|
|
|
|
# Files to be installed, as (source file, destination directory)
|
|
-FILES = (('src/about.py', 'share/comix/src'),
|
|
+FILES = (('comix', 'bin'),
|
|
+ ('src/about.py', 'share/comix/src'),
|
|
('src/about.pyc', 'share/comix/src'),
|
|
('src/archive.py', 'share/comix/src'),
|
|
('src/archive.pyc', 'share/comix/src'),
|
|
@@ -123,7 +124,7 @@ FILES = (('src/about.py', 'share/comix/src'),
|
|
('images/tango-archive.png', 'share/comix/images'),
|
|
('images/tango-enhance-image.png', 'share/comix/images'),
|
|
('images/tango-image.png', 'share/comix/images'),
|
|
- ('comix.1.gz', 'share/man/man1'),
|
|
+ ('comix.1', 'man/man1'),
|
|
('comix.desktop', 'share/applications'),
|
|
('images/16x16/comix.png', 'share/icons/hicolor/16x16/apps'),
|
|
('images/22x22/comix.png', 'share/icons/hicolor/22x22/apps'),
|
|
@@ -132,12 +133,9 @@ FILES = (('src/about.py', 'share/comix/src'),
|
|
('images/48x48/comix.png', 'share/icons/hicolor/48x48/apps'),
|
|
('images/comix.svg', 'share/icons/hicolor/scalable/apps'))
|
|
|
|
-# Symlinks to be created, as (target, symlink)
|
|
-LINKS = (('../share/comix/src/comix.py', 'bin/comix'),)
|
|
-
|
|
# Mime files to be installed, as (source file, destination directory)
|
|
MIME_FILES = (('mime/comicthumb', 'bin'),
|
|
- ('mime/comicthumb.1.gz', 'share/man/man1'),
|
|
+ ('mime/comicthumb.1', 'man/man1'),
|
|
('mime/comix.xml', 'share/mime/packages'),
|
|
('mime/icons/16x16/application-x-cbz.png',
|
|
'share/icons/hicolor/16x16/mimetypes'),
|
|
@@ -304,26 +302,11 @@ if args == ['install']:
|
|
for lang in TRANSLATIONS:
|
|
install(os.path.join('messages', lang, 'LC_MESSAGES/comix.mo'),
|
|
os.path.join('share/locale/', lang, 'LC_MESSAGES'))
|
|
- for src, link in LINKS:
|
|
- make_link(src, link)
|
|
if install_mime:
|
|
for src, dst in MIME_FILES:
|
|
install(src, dst)
|
|
for src, link in MIME_LINKS:
|
|
make_link(src, link)
|
|
- os.popen('update-mime-database "%s"' %
|
|
- os.path.join(install_dir, 'share/mime'))
|
|
- print '\nUpdated mime database (added .cbz, .cbr and .cbt file types.)'
|
|
- schema = os.path.join(source_dir, 'mime/comicbook.schemas')
|
|
- os.popen('GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) '
|
|
- 'gconftool-2 --makefile-install-rule "%s" 2>/dev/null' %
|
|
- schema)
|
|
- print '\nRegistered comic archive thumbnailer in gconf (if available).'
|
|
- print 'The thumbnailer is only supported by some file managers,',
|
|
- print 'such as Nautilus'
|
|
- print 'and Thunar.'
|
|
- print 'You might have to restart the file manager for the thumbnailer',
|
|
- print 'to be activated.'
|
|
os.utime(os.path.join(install_dir, 'share/icons/hicolor'), None)
|
|
# ---------------------------------------------------------------------------
|
|
# Uninstall Comix.
|