summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cerbero/build/filesprovider.py10
-rw-r--r--recipes/atk.recipe1
-rw-r--r--recipes/clutter.recipe1
-rw-r--r--recipes/cogl.recipe1
-rw-r--r--recipes/gdk-pixbuf.recipe1
-rw-r--r--recipes/gettext.recipe1
-rw-r--r--recipes/glib-networking.recipe1
-rw-r--r--recipes/glib.recipe1
-rw-r--r--recipes/gnutls.recipe1
-rw-r--r--recipes/gst-plugins-bad.recipe2
-rw-r--r--recipes/gst-plugins-base.recipe2
-rw-r--r--recipes/gst-plugins-good.recipe1
-rw-r--r--recipes/gst-plugins-ugly.recipe1
-rw-r--r--recipes/gstreamer.recipe1
-rw-r--r--recipes/gtk.recipe2
-rw-r--r--recipes/libexif.recipe1
-rw-r--r--recipes/libgpg-error.recipe1
-rw-r--r--recipes/libiconv.recipe1
18 files changed, 30 insertions, 0 deletions
diff --git a/cerbero/build/filesprovider.py b/cerbero/build/filesprovider.py
index 199e6b6f..8c041cfb 100644
--- a/cerbero/build/filesprovider.py
+++ b/cerbero/build/filesprovider.py
@@ -33,6 +33,7 @@ class FilesProvider(object):
PY_CAT = 'python'
DEVEL_CAT = 'devel'
ETC_CAT = 'etc'
+ LANG_CAT = 'lang'
EXTENSIONS = {
Platform.WINDOWS: {'bext': '.exe', 'sext': '.dll', 'sdir': 'bin',
@@ -53,6 +54,7 @@ class FilesProvider(object):
self.BINS_CAT: self._search_binaries,
self.PY_CAT: self._search_pyfiles,
self.ETC_CAT: self._search_etcfiles,
+ self.LANG_CAT: self._search_langfiles,
'default': self._search_files}
def devel_files_list(self):
@@ -210,6 +212,14 @@ class FilesProvider(object):
'''
return ['etc/%s' % f for f in files]
+ def _search_langfiles(self, files):
+ '''
+ Search for translations in share/locale/*/LC_MESSAGES/ '
+ '''
+ pattern = 'share/locale/*/LC_MESSAGES/%s.mo'
+ return shell.ls_files([pattern % x for x in files],
+ self.config.prefix)
+
def _search_devel_libraries(self):
if self.LIBS_CAT not in self.categories:
return []
diff --git a/recipes/atk.recipe b/recipes/atk.recipe
index 71429c68..79ca3002 100644
--- a/recipes/atk.recipe
+++ b/recipes/atk.recipe
@@ -9,3 +9,4 @@ class Recipe(recipe.Recipe):
files_libs = ['libatk-1.0']
files_devel = ['lib/pkgconfig/atk.pc', 'include/atk-1.0']
+ files_lang = ['atk10']
diff --git a/recipes/clutter.recipe b/recipes/clutter.recipe
index eb182f89..a0f80344 100644
--- a/recipes/clutter.recipe
+++ b/recipes/clutter.recipe
@@ -23,6 +23,7 @@ class Recipe(recipe.Recipe):
Platform.DARWIN: ['lib/pkgconfig/clutter-osx-1.0.pc'],
Platform.LINUX: ['lib/pkgconfig/clutter-glx-1.0.pc'],
}
+ files_lang = ['clutter-1.0']
def prepare(self):
diff --git a/recipes/cogl.recipe b/recipes/cogl.recipe
index b6547480..ffac8fae 100644
--- a/recipes/cogl.recipe
+++ b/recipes/cogl.recipe
@@ -14,3 +14,4 @@ class Recipe(recipe.Recipe):
'lib/pkgconfig/cogl-pango-1.0.pc',
'include/cogl',
]
+ files_lang = ['cogl']
diff --git a/recipes/gdk-pixbuf.recipe b/recipes/gdk-pixbuf.recipe
index c925f01c..93bca9bd 100644
--- a/recipes/gdk-pixbuf.recipe
+++ b/recipes/gdk-pixbuf.recipe
@@ -10,6 +10,7 @@ class Recipe(recipe.Recipe):
files_libs = ['libgdk_pixbuf-2.0']
files_bin = ['gdk-pixbuf-query-loaders', 'gdk-pixbuf-csource']
files_devel = ['lib/pkgconfig/gdk-pixbuf-2.0.pc', 'include/gdk-pixbuf-2.0']
+ files_lang = ['gdk-pixbuf']
platform_files_modules = {
Platform.LINUX: ['lib/gdk-pixbuf-2.0'],
Platform.DARWIN: ['lib/gdk-pixbuf-2.0']}
diff --git a/recipes/gettext.recipe b/recipes/gettext.recipe
index f2f827d8..d224509d 100644
--- a/recipes/gettext.recipe
+++ b/recipes/gettext.recipe
@@ -11,6 +11,7 @@ class Recipe(recipe.Recipe):
files_libs = ['libintl', 'libasprintf']
files_bins = ['gettext', 'ngettext', 'envsubst']
files_devel = ['include/libintl.h', 'include/autosprintf.h']
+ files_lang = ['gettext-runtime']
def prepare (self):
if self.config.target_platform == Platform.WINDOWS:
diff --git a/recipes/glib-networking.recipe b/recipes/glib-networking.recipe
index b2fcb967..b1fe0ff1 100644
--- a/recipes/glib-networking.recipe
+++ b/recipes/glib-networking.recipe
@@ -9,3 +9,4 @@ class Recipe(recipe.Recipe):
deps = ['glib', 'gnutls']
files_misc = ['lib/gio/modules/libgiognutls%(mext)s']
+ files_lang = ['glib-networking']
diff --git a/recipes/glib.recipe b/recipes/glib.recipe
index 75e65628..4e8a7465 100644
--- a/recipes/glib.recipe
+++ b/recipes/glib.recipe
@@ -32,6 +32,7 @@ class Recipe(recipe.Recipe):
Platform.DARWIN: ['lib/pkgconfig/gio-unix-2.0.pc', 'include/gio-unix-2.0'],
}
+ files_lang = ['glib2.0']
def _gio_flags(self, path1=None, path2=None, use_old_uri_scheme=False):
flags = ''
diff --git a/recipes/gnutls.recipe b/recipes/gnutls.recipe
index 9b952447..14123e7a 100644
--- a/recipes/gnutls.recipe
+++ b/recipes/gnutls.recipe
@@ -11,6 +11,7 @@ class Recipe(recipe.Recipe):
files_libs = ['libgnutls', 'libgnutlsxx', 'libgnutls-openssl']
files_bins = ['gnutls-cli', 'gnutls-serv', 'gnutls-cli-debug']
files_devel = ['lib/pkgconfig/gnutls.pc', 'include/gnutls']
+ files_lang = ['gnutls']
def prepare(self):
if self.config.target_platform == Platform.WINDOWS:
diff --git a/recipes/gst-plugins-bad.recipe b/recipes/gst-plugins-bad.recipe
index 34892ec3..2a248803 100644
--- a/recipes/gst-plugins-bad.recipe
+++ b/recipes/gst-plugins-bad.recipe
@@ -11,6 +11,8 @@ class Recipe(recipe.Recipe):
'faad2', 'libkate', 'libshout', 'libvpx', 'zlib',
'schroedinger', 'libdca', 'jasper', 'libmms', 'libdvdnav' ]
+ files_lang = ['gst-plugins-bad-0.10']
+
files_libs = [
'libgstbasevideo-0.10',
'libgstbasecamerabinsrc-0.10',
diff --git a/recipes/gst-plugins-base.recipe b/recipes/gst-plugins-base.recipe
index cc9c336c..9f01dc19 100644
--- a/recipes/gst-plugins-base.recipe
+++ b/recipes/gst-plugins-base.recipe
@@ -95,6 +95,8 @@ class Recipe(recipe.Recipe):
'lib/gstreamer-0.10/libgstxvimagesink%(mext)s',
]
}
+ files_lang = ['gst-plugins-base-0.10']
+
def prepare(self):
if self.config.target_platform in [Platform.WINDOWS, Platform.DARWIN]:
diff --git a/recipes/gst-plugins-good.recipe b/recipes/gst-plugins-good.recipe
index 6fdfabd8..510c7c8e 100644
--- a/recipes/gst-plugins-good.recipe
+++ b/recipes/gst-plugins-good.recipe
@@ -15,6 +15,7 @@ class Recipe(recipe.Recipe):
use_system_libs = True
+ files_lang = ['gst-plugins-good-0.10']
files_effects = [
'lib/gstreamer-0.10/libgstalpha%(mext)s',
'lib/gstreamer-0.10/libgstalphacolor%(mext)s',
diff --git a/recipes/gst-plugins-ugly.recipe b/recipes/gst-plugins-ugly.recipe
index c18a63b6..83f2cff7 100644
--- a/recipes/gst-plugins-ugly.recipe
+++ b/recipes/gst-plugins-ugly.recipe
@@ -25,3 +25,4 @@ class Recipe(recipe.Recipe):
'lib/gstreamer-0.10/libgstdvdread%(mext)s',
'lib/gstreamer-0.10/libgstdvdsub%(mext)s',
]
+ files_lang = ['gst-plugins-ugly-0.10']
diff --git a/recipes/gstreamer.recipe b/recipes/gstreamer.recipe
index c4574637..4091bf98 100644
--- a/recipes/gstreamer.recipe
+++ b/recipes/gstreamer.recipe
@@ -40,6 +40,7 @@ class Recipe(recipe.Recipe):
'lib/pkgconfig/gstreamer-dataprotocol-0.10.pc',
'lib/pkgconfig/gstreamer-net-0.10.pc',
]
+ files_lang = ['gstreamer-0.10']
def prepare(self):
if self.config.target_platform in [Platform.WINDOWS, Platform.DARWIN]:
diff --git a/recipes/gtk.recipe b/recipes/gtk.recipe
index b4c7f3a0..3de753d7 100644
--- a/recipes/gtk.recipe
+++ b/recipes/gtk.recipe
@@ -33,6 +33,8 @@ class Recipe(recipe.Recipe):
Platform.LINUX: [
'lib/pkgconfig/gtk+-x11-2.0.pc', 'lib/pkgconfig/gdk-x11-2.0.pc'],
}
+ files_lang = ['gtk20', 'gtk20-properties']
+
def prepare(self):
if self.config.target_platform == Platform.WINDOWS:
diff --git a/recipes/libexif.recipe b/recipes/libexif.recipe
index 0f11cb98..7f674281 100644
--- a/recipes/libexif.recipe
+++ b/recipes/libexif.recipe
@@ -8,3 +8,4 @@ class Recipe(recipe.Recipe):
files_libs = ['libexif']
files_devel = ['include/libexif', 'lib/pkgconfig/libexif.pc']
+ files_lang = ['libexif-12']
diff --git a/recipes/libgpg-error.recipe b/recipes/libgpg-error.recipe
index 90d3de7e..10735df0 100644
--- a/recipes/libgpg-error.recipe
+++ b/recipes/libgpg-error.recipe
@@ -9,3 +9,4 @@ class Recipe(recipe.Recipe):
files_libs = ['libgpg-error']
files_bins = ['gpg-error']
files_devel = ['include/gpg-error.h', 'bin/gpg-error-config']
+ files_lang = ['libgpg-error']
diff --git a/recipes/libiconv.recipe b/recipes/libiconv.recipe
index c571f926..3d581d32 100644
--- a/recipes/libiconv.recipe
+++ b/recipes/libiconv.recipe
@@ -10,3 +10,4 @@ class Recipe(recipe.Recipe):
files_libs = ['libiconv', 'libcharset', ]
files_devel = ['include/iconv.h', 'include/libcharset.h',
'include/localcharset.h' ]
+ files_lang = ['libiconv']