create core package
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
|
||||
def setup():
|
||||
options = "--with-pcre=system \
|
||||
--disable-fam \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--enable-man \
|
||||
--enable-systemtap"
|
||||
|
||||
|
||||
if get.buildTYPE() == "_emul32":
|
||||
options += " --libdir=/usr/lib32 \
|
||||
--bindir=/_emul32/bin \
|
||||
--sbindir=/_emul32/sbin \
|
||||
--disable-dtrace"
|
||||
shelltools.export("CC", "%s -m32" % get.CC())
|
||||
shelltools.export("CXX", "%s -m32" % get.CXX())
|
||||
shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
|
||||
|
||||
autotools.autoreconf("-vif")
|
||||
autotools.configure(options)
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
autotools.make("-j1")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
if get.buildTYPE() == "_emul32":
|
||||
pisitools.domove("/_emul32/bin/gio-querymodules", "/usr/bin/32/")
|
||||
pisitools.removeDir("/_emul32")
|
||||
|
||||
pisitools.removeDir("/usr/share/gdb")
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "README", "NEWS")
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import piksemel
|
||||
import os
|
||||
|
||||
def updateCaches(filepath):
|
||||
parse = piksemel.parse(filepath)
|
||||
GIO_MODULE_PATH = "usr/lib/gio/modules"
|
||||
GSCHEMAS_MODULE_PATH = "usr/share/glib-2.0/schemas"
|
||||
|
||||
for icon in parse.tags("File"):
|
||||
path = icon.getTagData("Path")
|
||||
if path.startswith(GIO_MODULE_PATH):
|
||||
os.system("/usr/bin/gio-querymodules /%s" % GIO_MODULE_PATH)
|
||||
break
|
||||
|
||||
for icon in parse.tags("File"):
|
||||
path = icon.getTagData("Path")
|
||||
if path.startswith(GSCHEMAS_MODULE_PATH):
|
||||
os.system("/usr/bin/glib-compile-schemas /%s" % GSCHEMAS_MODULE_PATH)
|
||||
return
|
||||
|
||||
def setupPackage(metapath, filepath):
|
||||
updateCaches(filepath)
|
||||
|
||||
def cleanupPackage(metapath, filepath):
|
||||
pass
|
||||
|
||||
def postCleanupPackage(metapath, filepath):
|
||||
updateCaches(filepath)
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import piksemel
|
||||
import os
|
||||
|
||||
def updateCaches(filepath):
|
||||
parse = piksemel.parse(filepath)
|
||||
GIO_MODULE_PATH = "usr/lib32/gio/modules"
|
||||
|
||||
for icon in parse.tags("File"):
|
||||
path = icon.getTagData("Path")
|
||||
if path.startswith(GIO_MODULE_PATH):
|
||||
os.system("/usr/bin/32/gio-querymodules /%s" % GIO_MODULE_PATH)
|
||||
break
|
||||
|
||||
def setupPackage(metapath, filepath):
|
||||
updateCaches(filepath)
|
||||
|
||||
def cleanupPackage(metapath, filepath):
|
||||
pass
|
||||
|
||||
def postCleanupPackage(metapath, filepath):
|
||||
updateCaches(filepath)
|
||||
@@ -0,0 +1,468 @@
|
||||
# GLib filename encoding guesser.
|
||||
# Author: Stanislav Brabec <sbrabec@suse.cz>
|
||||
# Additions are welcome.
|
||||
# This script must be executed after setting LANG variable.
|
||||
|
||||
# Try filenames which are invalid in UTF-8 as locale specific.
|
||||
# For selected locales, G_FILENAME_ENCODING takes precedence.
|
||||
setenv G_BROKEN_FILENAMES 1
|
||||
|
||||
# In West Europe there was used both ISO-8859-15 and ISO-8859-1.
|
||||
# There is no chance to recognize it, so we must guess.
|
||||
#set west_europe_legacy_encoding=ISO-8859-1
|
||||
set west_europe_legacy_encoding=ISO-8859-15
|
||||
|
||||
# In Russia, "official" encoding is ISO-8859-5, but most GNOME users
|
||||
# preferred KOI8-R. We must guess.
|
||||
#set russian_legacy_encoding=ISO-8859-5
|
||||
set russian_legacy_encoding=KOI8-R
|
||||
|
||||
# In former Yugoslavia sr_YU have covered two different alphabets -
|
||||
# one Latin and on Cyrillic. No chance to guess.
|
||||
set sr_YU_legacy_encoding=ISO-8859-2,CP1250
|
||||
#set sr_YU_legacy_encoding=ISO-8859-5
|
||||
|
||||
# Japanese uses two legacy encodings. Guess sometimes fails, sometimes not.
|
||||
# Defining preferred encoding increases chance for success.
|
||||
set japanese_legacy_encoding=EUC-JP
|
||||
#set japanese_legacy_encoding=SHIFT_JIS
|
||||
|
||||
if (! ${?LANG} ) goto skip
|
||||
|
||||
switch ( $LANG )
|
||||
case aa_DJ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case af_ZA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case an_ES*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-15,CP1252
|
||||
breaksw
|
||||
case ar_AE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_BH*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_DZ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_EG*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_IQ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_JO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_KW*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_LB*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_LY*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_MA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_OM*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_QA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_SA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_SD*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_SY*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_TN*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case ar_YE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-6
|
||||
breaksw
|
||||
case be_BY*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,CP1251
|
||||
breaksw
|
||||
case bg_BG*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,CP1251
|
||||
breaksw
|
||||
case br_FR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case bs_BA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case ca_ES*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case cs_CZ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case cy_GB*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-14,CP1252
|
||||
breaksw
|
||||
case da_DK*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case de_AT*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case de_BE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case de_DE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case de_CH*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case de_LU*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case el_GR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-7
|
||||
breaksw
|
||||
case en_AU*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_BE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case en_BW*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_CA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_DK*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_GB*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case en_HK*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_IE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case en_NZ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_PH*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_SG*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_US*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case en_ZA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case en_ZW*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_AR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_BO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_CL*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_CO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_CR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_DO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_EC*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_ES*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case es_GT*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_HN*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_MX*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_NI*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_PA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_PE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_PR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_PY*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_SV*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_US*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_UY*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case es_VE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case et_EE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case eu_ES*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case fa_IR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,CP1256
|
||||
breaksw
|
||||
case fi_FI*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case fo_FO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case fr_BE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case fr_CA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case fr_FR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case fr_CH*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case fr_LU*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case ga_IE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case gd_GB*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-15,CP1252
|
||||
breaksw
|
||||
case gl_ES*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case gv_GB*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case he_IL*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-8
|
||||
breaksw
|
||||
case hr_HR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case hu_HU*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case hy_AM*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ARMSCII-8
|
||||
breaksw
|
||||
case id_ID*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case is_IS*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case it_CH*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case it_IT*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case iw_IL*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-8
|
||||
breaksw
|
||||
case ja_JP*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$japanese_legacy_encoding,EUC-JP,SHIFT_JIS,ISO-8859-1
|
||||
breaksw
|
||||
case ka_GE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,GEORGIAN-PS
|
||||
breaksw
|
||||
case kl_GL*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case km_KH*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,GB18030
|
||||
breaksw
|
||||
case ko_KR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,EUC-KR,ISO-8859-1
|
||||
breaksw
|
||||
case kw_GB*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case lg_UG*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-10,CP1252
|
||||
breaksw
|
||||
case lt_LT*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-13,CP1252
|
||||
breaksw
|
||||
case lv_LV*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-13,CP1252
|
||||
breaksw
|
||||
case mi_NZ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-13,CP1252
|
||||
breaksw
|
||||
case mk_MK*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-5,CP1251
|
||||
breaksw
|
||||
case ms_MY*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case mt_MT*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-3
|
||||
breaksw
|
||||
case nb_NO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case nl_BE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case nl_NL*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case nn_NO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case no_NO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case oc_FR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case om_KE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case pl_PL*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case pt_BR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case pt_PT*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case ro_RO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case ru_RU*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$russian_legacy_encoding,CP1251
|
||||
breaksw
|
||||
case ru_UA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,KOI8-U
|
||||
breaksw
|
||||
case sh_YU*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case sk_SK*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case sl_SI*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-2,CP1250
|
||||
breaksw
|
||||
case so_DJ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case so_KE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case so_SO*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case sq_AL*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case sr_YU*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$sr_YU_legacy_encoding
|
||||
breaksw
|
||||
case st_ZA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case sv_FI*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case sv_SE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case tg_TJ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,KOI8-T
|
||||
breaksw
|
||||
case th_TH*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,TIS-620,ISO-8859-1
|
||||
breaksw
|
||||
case tl_PH*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case tr_TR*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-9
|
||||
breaksw
|
||||
case uk_UA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,KOI8-U
|
||||
breaksw
|
||||
case uz_UZ*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case vi_VN*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,TCVN5712-1,ISO-8859-1
|
||||
breaksw
|
||||
case wa_BE*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
breaksw
|
||||
case xh_ZA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
case yi_US*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,CP1255
|
||||
breaksw
|
||||
case zh_CN*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,GB2312,GB18030,GBK,ISO-8859-1
|
||||
breaksw
|
||||
case zh_HK*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,BIG5-HKSCS,ISO-8859-1
|
||||
breaksw
|
||||
case zh_SG*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,GB2312,GB18030,GBK,ISO-8859-1
|
||||
breaksw
|
||||
case zh_TW*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,BIG5,EUC-TW,ISO-8859-1
|
||||
breaksw
|
||||
case zu_ZA*:
|
||||
setenv G_FILENAME_ENCODING @locale,UTF-8,ISO-8859-1,CP1252
|
||||
breaksw
|
||||
endsw
|
||||
|
||||
skip:
|
||||
|
||||
unset west_europe_legacy_encoding
|
||||
unset russian_legacy_encoding
|
||||
unset sr_YU_legacy_encoding
|
||||
@@ -0,0 +1,465 @@
|
||||
# GLib filename encoding guesser.
|
||||
# Author: Stanislav Brabec <sbrabec@suse.cz>
|
||||
# Additions are welcome.
|
||||
# This script must be executed after setting LANG variable.
|
||||
|
||||
# Try filenames which are invalid in UTF-8 as locale specific.
|
||||
# For selected locales, G_FILENAME_ENCODING takes precedence.
|
||||
export G_BROKEN_FILENAMES=1
|
||||
|
||||
# In West Europe there was used both ISO-8859-15 and ISO-8859-1.
|
||||
# There is no chance to recognize it, so we must guess.
|
||||
#west_europe_legacy_encoding=ISO-8859-1
|
||||
west_europe_legacy_encoding=ISO-8859-15
|
||||
|
||||
# In Russia, "official" encoding is ISO-8859-5, but most GNOME users
|
||||
# preferred KOI8-R. We must guess.
|
||||
#russian_legacy_encoding=ISO-8859-5
|
||||
russian_legacy_encoding=KOI8-R
|
||||
|
||||
# In former Yugoslavia sr_YU have covered two different alphabets -
|
||||
# one Latin and on Cyrillic. No chance to guess.
|
||||
sr_YU_legacy_encoding=ISO-8859-2,CP1250
|
||||
#sr_YU_legacy_encoding=ISO-8859-5
|
||||
|
||||
# Japanese uses two legacy encodings. Guess sometimes fails, sometimes not.
|
||||
# Defining preferred encoding increases chance for success.
|
||||
japanese_legacy_encoding=EUC-JP
|
||||
#japanese_legacy_encoding=SHIFT_JIS
|
||||
|
||||
case $LANG in
|
||||
aa_DJ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
af_ZA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
an_ES* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
|
||||
;;
|
||||
ar_AE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_BH* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_DZ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_EG* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_IQ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_JO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_KW* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_LB* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_LY* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_MA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_OM* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_QA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_SA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_SD* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_SY* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_TN* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
ar_YE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-6
|
||||
;;
|
||||
be_BY* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,CP1251
|
||||
;;
|
||||
bg_BG* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,CP1251
|
||||
;;
|
||||
br_FR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
bs_BA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
ca_ES* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
cs_CZ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
cy_GB* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-14,CP1252
|
||||
;;
|
||||
da_DK* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
de_AT* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
de_BE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
de_DE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
de_CH* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
de_LU* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
el_GR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-7
|
||||
;;
|
||||
en_AU* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_BE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
en_BW* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_CA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_DK* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_GB* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
en_HK* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_IE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
en_NZ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_PH* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_SG* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_US* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
en_ZA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
en_ZW* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_AR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_BO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_CL* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_CO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_CR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_DO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_EC* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_ES* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
es_GT* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_HN* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_MX* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_NI* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_PA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_PE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_PR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_PY* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_SV* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_US* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_UY* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
es_VE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
et_EE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
eu_ES* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
fa_IR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,CP1256
|
||||
;;
|
||||
fi_FI* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
fo_FO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
fr_BE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
fr_CA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
fr_FR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
fr_CH* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
fr_LU* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
ga_IE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
gd_GB* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
|
||||
;;
|
||||
gl_ES* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
gv_GB* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
he_IL* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-8
|
||||
;;
|
||||
hr_HR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
hu_HU* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
hy_AM* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ARMSCII-8
|
||||
;;
|
||||
id_ID* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
is_IS* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
it_CH* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
it_IT* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
iw_IL* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-8
|
||||
;;
|
||||
ja_JP* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$japanese_legacy_encoding,EUC-JP,SHIFT_JIS,ISO-8859-1
|
||||
;;
|
||||
ka_GE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,GEORGIAN-PS
|
||||
;;
|
||||
kl_GL* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
km_KH* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,GB18030
|
||||
;;
|
||||
ko_KR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,EUC-KR,ISO-8859-1
|
||||
;;
|
||||
kw_GB* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
lg_UG* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-10,CP1252
|
||||
;;
|
||||
lt_LT* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-13,CP1252
|
||||
;;
|
||||
lv_LV* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-13,CP1252
|
||||
;;
|
||||
mi_NZ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-13,CP1252
|
||||
;;
|
||||
mk_MK* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-5,CP1251
|
||||
;;
|
||||
ms_MY* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
mt_MT* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-3
|
||||
;;
|
||||
nb_NO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
nl_BE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
nl_NL* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
nn_NO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
no_NO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
oc_FR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
om_KE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
pl_PL* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
pt_BR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
pt_PT* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
ro_RO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
ru_RU* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$russian_legacy_encoding,CP1251
|
||||
;;
|
||||
ru_UA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,KOI8-U
|
||||
;;
|
||||
sh_YU* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
sk_SK* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
sl_SI* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-2,CP1250
|
||||
;;
|
||||
so_DJ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
so_KE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
so_SO* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
sq_AL* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
sr_YU* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$sr_YU_legacy_encoding
|
||||
;;
|
||||
st_ZA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
sv_FI* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
sv_SE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
tg_TJ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,KOI8-T
|
||||
;;
|
||||
th_TH* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,TIS-620,ISO-8859-1
|
||||
;;
|
||||
tl_PH* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
tr_TR* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-9
|
||||
;;
|
||||
uk_UA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,KOI8-U
|
||||
;;
|
||||
uz_UZ* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
vi_VN* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,TCVN5712-1,ISO-8859-1
|
||||
;;
|
||||
wa_BE* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,$west_europe_legacy_encoding,CP1252
|
||||
;;
|
||||
xh_ZA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
yi_US* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,CP1255
|
||||
;;
|
||||
zh_CN* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,GB2312,GB18030,GBK,ISO-8859-1
|
||||
;;
|
||||
zh_HK* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,BIG5-HKSCS,ISO-8859-1
|
||||
;;
|
||||
zh_SG* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,GB2312,GB18030,GBK,ISO-8859-1
|
||||
;;
|
||||
zh_TW* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,BIG5,EUC-TW,ISO-8859-1
|
||||
;;
|
||||
zu_ZA* )
|
||||
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
|
||||
;;
|
||||
esac
|
||||
export G_FILENAME_ENCODING
|
||||
|
||||
unset west_europe_legacy_encoding
|
||||
unset russian_legacy_encoding
|
||||
unset sr_YU_legacy_encoding
|
||||
@@ -0,0 +1,14 @@
|
||||
--- a/gio/glib-compile-schemas.c
|
||||
+++ b/gio/glib-compile-schemas.c
|
||||
@@ -1204,6 +1204,12 @@ parse_state_start_schema (ParseState *state,
|
||||
return;
|
||||
}
|
||||
|
||||
+ if (path && (g_str_has_prefix (path, "/apps/") ||
|
||||
+ g_str_has_prefix (path, "/desktop/") ||
|
||||
+ g_str_has_prefix (path, "/system/")))
|
||||
+ g_printerr ("warning: Schema '%s' has path '%s'. Paths starting with "
|
||||
+ "'/apps/', '/desktop/' or '/system/' are deprecated.\n", id, path);
|
||||
+
|
||||
state->schema_state = schema_state_new (path, gettext_domain,
|
||||
extends, extends_name, list_of);
|
||||
@@ -0,0 +1,220 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>glib2</Name>
|
||||
<Homepage>http://www.gtk.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>A library of handy utility functions</Summary>
|
||||
<Description>glib2 is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.</Description>
|
||||
<Archive sha1sum="f5168a7adffad3620ff3f1b3d6ff6d0ad3f0752e" type="tarxz">mirrors://gnome/glib/2.42/glib-2.42.0.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libpcre-devel</Dependency>
|
||||
<Dependency>zlib-devel</Dependency>
|
||||
<Dependency>libxslt</Dependency>
|
||||
<Dependency>elfutils</Dependency>
|
||||
<Dependency>docbook-xml</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">revert-warn-glib-compile-schemas.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>glib2</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libpcre</Dependency>
|
||||
<Dependency>zlib</Dependency>
|
||||
<Dependency>elfutils</Dependency>
|
||||
<Dependency>libffi</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/etc/profile.d</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="executable">/usr/share/bash-completion/completions/</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="data">/usr/share/glib-2.0</Path>
|
||||
<Path fileType="data">/usr/share/systemtap</Path>
|
||||
<Path fileType="data">/usr/share/glib-2.0/schemas</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/profile.d/glib2.sh">glib2.sh</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/profile.d/glib2.csh">glib2.csh</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="pakhandler.py">System.PackageHandler</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>glib2-devel</Name>
|
||||
<PartOf>system.devel</PartOf>
|
||||
<Summary>Development files for glib2</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">glib2</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/gtester</Path>
|
||||
<Path fileType="executable">/usr/bin/gtester-report</Path>
|
||||
<Path fileType="executable">/usr/bin/gobject-query</Path>
|
||||
<Path fileType="executable">/usr/bin/glib-genmarshal</Path>
|
||||
<Path fileType="executable">/usr/bin/glib-gettextize</Path>
|
||||
<Path fileType="executable">/usr/bin/glib-mkenums</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="header">/usr/lib/glib-2.0/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="data">/usr/lib32/pkgconfig</Path>
|
||||
<Path fileType="data">/usr/share/aclocal</Path>
|
||||
<Path fileType="data">/usr/share/glib-2.0/schemas/gschema.dtd</Path>
|
||||
<Path fileType="data">/usr/share/glib-2.0/gettext</Path>
|
||||
<Path fileType="data">/usr/share/glib-2.0/gdb</Path>
|
||||
<Path fileType="data">/usr/share/gdb/auto-load/libglib-2.0.so.*-gdb.py*</Path>
|
||||
<Path fileType="data">/usr/share/gdb/auto-load/libgobject-2.0.so.*-gdb.py*</Path>
|
||||
<Path fileType="man">/usr/share/man/man3</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/glib-genmarshal.1</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/glib-gettextize.1</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/glib-mkenums.1</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gobject-query.1</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gtester-report.1</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gtester.1</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>glib2-32bit</Name>
|
||||
<PartOf>emul32</PartOf>
|
||||
<Summary>32-bit shared libraries for glib2</Summary>
|
||||
<BuildType>_emul32</BuildType>
|
||||
<BuildDependencies>
|
||||
<Dependency>libpcre-32bit</Dependency>
|
||||
<Dependency>zlib-32bit</Dependency>
|
||||
<Dependency>libffi-32bit</Dependency>
|
||||
<Dependency>dbus-32bit</Dependency>
|
||||
</BuildDependencies>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">glib2</Dependency>
|
||||
<Dependency>libpcre-32bit</Dependency>
|
||||
<Dependency>zlib-32bit</Dependency>
|
||||
<Dependency>libffi-32bit</Dependency>
|
||||
<Dependency>dbus-32bit</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/32</Path>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
<Provides>
|
||||
<COMAR script="pakhandler32.py">System.PackageHandler</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>glib2-docs</Name>
|
||||
<Summary>Documentation files for glib2</Summary>
|
||||
<Description>Extensive documentation for developers wanting to use the GLib Library</Description>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/gtk-doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="13">
|
||||
<Date>2014-10-01</Date>
|
||||
<Version>2.42.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="12">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>2.40.0</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="11">
|
||||
<Date>2014-04-15</Date>
|
||||
<Version>2.40.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="10">
|
||||
<Date>2014-03-29</Date>
|
||||
<Version>2.38.2</Version>
|
||||
<Comment>Minor version bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="9">
|
||||
<Date>2013-10-22</Date>
|
||||
<Version>2.38.1</Version>
|
||||
<Comment>Minor version bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="8">
|
||||
<Date>2013-10-10</Date>
|
||||
<Version>2.38.0</Version>
|
||||
<Comment>Bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2013-09-05</Date>
|
||||
<Version>2.36.3</Version>
|
||||
<Comment>Add missing method to pakhandler.py</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2013-07-26</Date>
|
||||
<Version>2.36.3</Version>
|
||||
<Comment>Fix dep, release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2013-07-14</Date>
|
||||
<Version>2.36.3</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2013-06-11</Date>
|
||||
<Version>2.36.0</Version>
|
||||
<Comment>add missing dep.</Comment>
|
||||
<Name>Erdinç Gültekin</Name>
|
||||
<Email>erdincgultekin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-05-16</Date>
|
||||
<Version>2.36.0</Version>
|
||||
<Comment>Path Fixed.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-03-30</Date>
|
||||
<Version>2.36.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-11-21</Date>
|
||||
<Version>2.35.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>glib2</Name>
|
||||
<Summary xml:lang="tr">C programlama dili için glib kütüphanesi</Summary>
|
||||
<Description xml:lang="tr">glib2, GTK+ ve GNOME gibi projelerin temelini oluşturan düşük seviyeli çekirdek kütüphanedir. C için veri yapıları, taşınabilirlik katmanları ve çeşitli çalışma zamanı işlevleri için arabirimler sunar.</Description>
|
||||
<Summary xml:lang="fr">La librairie GLib2 de routines C.</Summary>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>glib2-devel</Name>
|
||||
<Summary xml:lang="tr">glib2 için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>glib2-32bit</Name>
|
||||
<Summary xml:lang="tr">glib2 için 32-bit paylaşımlı kitaplıklar</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user