summaryrefslogtreecommitdiff
path: root/.pc
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2010-01-06 18:01:14 +0100
committerJulien Valroff <julien@kirya.net>2010-01-06 18:01:14 +0100
commited2f9080c4c633e6e007ad6ac1a028f43b42bd5d (patch)
tree18a55e47f29f38653acdb673f0853c662f0cd45e /.pc
parent8fbe87935ed50510fb6206af65ef01177835a756 (diff)
Imported Upstream version 0.1.1upstream/0.1.1
Diffstat (limited to '.pc')
-rw-r--r--.pc/.version1
-rw-r--r--.pc/05_removed-empty-directory.diff/setup.py76
-rw-r--r--.pc/applied-patches1
3 files changed, 78 insertions, 0 deletions
diff --git a/.pc/.version b/.pc/.version
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/.pc/.version
@@ -0,0 +1 @@
+2
diff --git a/.pc/05_removed-empty-directory.diff/setup.py b/.pc/05_removed-empty-directory.diff/setup.py
new file mode 100644
index 0000000..2af92b4
--- /dev/null
+++ b/.pc/05_removed-empty-directory.diff/setup.py
@@ -0,0 +1,76 @@
+#!/usr/bin/env python
+# -*- coding: latin1 -*-
+
+from distutils.core import setup
+from distutils.command.install_data import install_data
+from distutils.dep_util import newer
+from distutils.log import info
+
+from rapid.config import version
+import glob
+import os
+
+name = 'rapid-photo-downloader'
+
+class InstallData(install_data):
+ """ This class is largely copied from setup.py in Terminator 0.8.1 by Chris Jones <cmsj@tenshu.net>"""
+ def run (self):
+ self.data_files.extend (self._compile_po_files ())
+ install_data.run (self)
+
+ def _compile_po_files (self):
+ 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, '%s.mo' % name)
+
+ directory = os.path.dirname(mo)
+ if not os.path.exists(directory):
+ info('creating %s' % directory)
+ os.makedirs(directory)
+
+ if newer(po, mo):
+ # True if mo doesn't exist
+ cmd = 'msgfmt -o %s %s' % (mo, po)
+ info('compiling %s -> %s' % (po, mo))
+ if os.system(cmd) != 0:
+ raise SystemExit('Error while running msgfmt')
+
+ dest = os.path.dirname(os.path.join('share', 'locale', lang, 'LC_MESSAGES', '%s.mo' % name))
+ data_files.append((dest, [mo]))
+
+ return data_files
+
+package_data={'rapid': ['glade3/rapid.glade', 'glade3/rapid-photo-downloader-about.png', 'glade3/image-missing.svg']}
+
+setup(name=name,
+ version=version,
+ description='Rapid Photo Downloader for Linux',
+ license='GPL',
+ author='Damon Lynch',
+ author_email='damonlynch@gmail.com',
+ maintainer='Damon Lynch',
+ url='http://www.damonlynch.net/rapid',
+ long_description=
+"""Rapid Photo Downloader is written by a photographer for
+professional and amateur photographers. It can download photos
+from multiple cameras, memory cards and Portable Storage Devices
+simultaneously. It provides many options for subfolder creation,
+image renaming and backup.""",
+ packages = ['rapid'],
+ package_data=package_data,
+ scripts=['rapid-photo-downloader'],
+ platforms=['linux'],
+ data_files=[
+ ('share/applications', ['data/rapid-photo-downloader.desktop']),
+ ('share/pixmaps', ['data/icons/48x48/apps/rapid-photo-downloader.png', 'data/icons/rapid-photo-downloader.xpm']),
+ ('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/22x22/apps', glob.glob('data/icons/22x22/apps/*.png')),
+ ('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}
+)
diff --git a/.pc/applied-patches b/.pc/applied-patches
new file mode 100644
index 0000000..bff31eb
--- /dev/null
+++ b/.pc/applied-patches
@@ -0,0 +1 @@
+05_removed-empty-directory.diff