Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2830fd1e4e | ||
|
|
f7138835d2 | ||
|
|
b2521bbc83 |
15
README
15
README
@@ -1,15 +0,0 @@
|
||||
This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
branch: master
|
||||
revision: HEAD
|
||||
|
||||
URI: git://git.openembedded.org/meta-openembedded
|
||||
branch: master
|
||||
revision: HEAD
|
||||
|
||||
Send pull requests to openembedded-devel@lists.openembedded.org with '[meta-office]' in the subject'
|
||||
|
||||
When sending single patches, please using something like 'git send-email -1 --to openembedded-devel@lists.openembedded.org --subject-prefix=meta-office][PATCH'
|
||||
|
||||
Layer maintainer: Andreas Müller <schnitzeltony@gmail.com>
|
||||
27
README.md
Normal file
27
README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
OE layer for office applications as libreoffice
|
||||
-----------------------------------------------
|
||||
|
||||
|
||||
Layer dependencies:
|
||||
----------------------
|
||||
see [layer.conf](conf/layer.conf) for dependencies and https://layers.openembedded.org/layerindex/branch/master/layers/ where to find layers
|
||||
|
||||
|
||||
Contributing
|
||||
------------
|
||||
* Submit any patches against the `meta-office` layer by using the GitHub pull-request feature.
|
||||
|
||||
|
||||
Policies
|
||||
--------
|
||||
* Please do not send private emails to maintainers. For questions/suggestions.. use GitHub issues.
|
||||
* Pull requests should follow [OE-Styleguide](https://www.openembedded.org/wiki/Styleguide) with the following additions:
|
||||
* Use 4 spaces for indention always
|
||||
* For splitting of long list values use four-space indentation on sucessive lines and prefer the closing quote as the first character ([OE-Styleguide](https://www.openembedded.org/wiki/Styleguide) - second example)
|
||||
* Pull-requests with patches fixing issues for musl, clang or gold-linker are accepeted only if patches have upstream-status "Applied" or "Backport" and contain a link to the upstream patch.
|
||||
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
|
||||
Layer maintainer: Andreas Müller <schnitzeltony@gmail.com>
|
||||
@@ -243,15 +243,15 @@ LO_LANGUAGE_FILES = " \
|
||||
python lo_do_split_locales() {
|
||||
import glob, subprocess
|
||||
|
||||
packages = (d.getVar('PACKAGES', True) or "").split()
|
||||
packages = (d.getVar('PACKAGES') or "").split()
|
||||
|
||||
datadir = d.getVar('datadir', True)
|
||||
datadir = d.getVar('datadir')
|
||||
if not datadir:
|
||||
bb.note("datadir not defined")
|
||||
return
|
||||
|
||||
dvar = d.getVar('PKGD', True)
|
||||
pn = d.getVar('LOCALEBASEPN', True)
|
||||
dvar = d.getVar('PKGD')
|
||||
pn = d.getVar('LOCALEBASEPN')
|
||||
|
||||
if pn + '-locale' in packages:
|
||||
packages.remove(pn + '-locale')
|
||||
@@ -259,9 +259,9 @@ python lo_do_split_locales() {
|
||||
# extract locales from translation source path
|
||||
# this won't add en-US which comes with base sources
|
||||
locales = []
|
||||
transpaths = glob.glob('%s/translations/source/*' % d.getVar('S', True))
|
||||
transpaths = glob.glob('%s/translations/source/*' % d.getVar('S'))
|
||||
for l in transpaths:
|
||||
locale = l.replace('%s/translations/source/' % d.getVar('S', True), '')
|
||||
locale = l.replace('%s/translations/source/' % d.getVar('S'), '')
|
||||
if not locale in locales:
|
||||
locales.append(locale)
|
||||
|
||||
@@ -275,7 +275,7 @@ python lo_do_split_locales() {
|
||||
|
||||
# check for files matching at each location / language
|
||||
langfiles = dict()
|
||||
for transvar in d.getVar('LO_LANGUAGE_FILES', True).split():
|
||||
for transvar in d.getVar('LO_LANGUAGE_FILES').split():
|
||||
filesfound = 0
|
||||
for locale in sorted(locales):
|
||||
pattern = transvar.replace('%{1}', locale)
|
||||
@@ -293,13 +293,13 @@ python lo_do_split_locales() {
|
||||
if translocation in fallbacksearchresult:
|
||||
fallbacksearchresult.replace(translocation, '')
|
||||
else:
|
||||
bb.warn('%s language file pattern not found: %s' % (d.getVar('PN', True), transvar))
|
||||
bb.warn('%s language file pattern not found: %s' % (d.getVar('PN'), transvar))
|
||||
|
||||
# setup packages for locales with files found
|
||||
summary = d.getVar('SUMMARY', True) or pn
|
||||
description = d.getVar('DESCRIPTION', True) or ""
|
||||
locale_section = d.getVar('LOCALE_SECTION', True)
|
||||
mlprefix = d.getVar('MLPREFIX', True) or ""
|
||||
summary = d.getVar('SUMMARY') or pn
|
||||
description = d.getVar('DESCRIPTION') or ""
|
||||
locale_section = d.getVar('LOCALE_SECTION')
|
||||
mlprefix = d.getVar('MLPREFIX') or ""
|
||||
for locale in locales:
|
||||
if locale in langfiles:
|
||||
ln = legitimize_package_name(locale)
|
||||
|
||||
Reference in New Issue
Block a user