Kaydet (Commit) da595826 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Geçici olarak kullanılan değişimler deaktif edildi.

üst 0291c53a
[build] [build]
build_host = localhost build_host = localhost
# buildhelper = None # buildhelper = None
commonflags = -mtune=generic -march=x86-64 -O2 -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -g -fPIC commonflags = -mtune=generic -O2 -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -g -fPIC
cflags = %(commonflags)s cflags = %(commonflags)s
cxxflags = %(commonflags)s cxxflags = %(commonflags)s
host = x86_64-linux-gnu host = x86_64-pc-linux-gnu
cc = %(host)s-gcc cc = %(host)s-gcc
cxx = %(host)s-g++ cxx = %(host)s-g++
compressionlevel = 9 compressionlevel = 9
...@@ -38,8 +38,8 @@ autoclean = False ...@@ -38,8 +38,8 @@ autoclean = False
bandwidth_limit = 0 bandwidth_limit = 0
destinationdirectory = / destinationdirectory = /
distribution = Sulin distribution = Sulin
distribution_release = 2018 distribution_release = 2019
distribution_id = s18 distribution_id = s19
# ftp_proxy = None # ftp_proxy = None
# http_proxy = None # http_proxy = None
# https_proxy = None # https_proxy = None
......
...@@ -64,7 +64,7 @@ class RunTimeError(inary.actionsapi.Error): ...@@ -64,7 +64,7 @@ class RunTimeError(inary.actionsapi.Error):
ctx.ui.error(value) ctx.ui.error(value)
def configure(parameters = ''): def configure(parameters = ''):
"""configure source with given parameters = "--with-nls --with-libusb --with-something-usefull\"""" """configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"""
if can_access_file('configure'): if can_access_file('configure'):
gnuconfig_update() gnuconfig_update()
...@@ -94,7 +94,7 @@ def configure(parameters = ''): ...@@ -94,7 +94,7 @@ def configure(parameters = ''):
raise ConfigureError(_('No configure script found.')) raise ConfigureError(_('No configure script found.'))
def rawConfigure(parameters = ''): def rawConfigure(parameters = ''):
"""configure source with given parameters = "--prefix=/usr --libdir=/usr/lib --with-nls\"""" """configure source with given parameters = --prefix=/usr --libdir=/usr/lib --with-nls """
if can_access_file('configure'): if can_access_file('configure'):
gnuconfig_update() gnuconfig_update()
......
...@@ -217,7 +217,7 @@ class ArchiveBzip2(ArchiveBase): ...@@ -217,7 +217,7 @@ class ArchiveBzip2(ArchiveBase):
import bz2 import bz2
bz2_file = bz2.BZ2File(self.file_path, "r") bz2_file = bz2.BZ2File(self.file_path, "r")
output = open(output_path, "w") output = open(output_path, "w")
output.write(bz2_file.read()) output.write(bz2_file.read().decode("utf-8"))
output.close() output.close()
bz2_file.close() bz2_file.close()
...@@ -243,7 +243,7 @@ class ArchiveGzip(ArchiveBase): ...@@ -243,7 +243,7 @@ class ArchiveGzip(ArchiveBase):
import gzip import gzip
gzip_file = gzip.GzipFile(self.file_path, "r") gzip_file = gzip.GzipFile(self.file_path, "r")
output = open(output_path, "w") output = open(output_path, "w")
output.write(gzip_file.read()) output.write(gzip_file.read().decode("utf-8"))
output.close() output.close()
gzip_file.close() gzip_file.close()
......
...@@ -115,14 +115,14 @@ class Install(install): ...@@ -115,14 +115,14 @@ class Install(install):
print("Installing '{}' translations...".format(lang)) print("Installing '{}' translations...".format(lang))
os.system("msgfmt po/{0}.po -o po/{0}.mo".format(lang)) os.system("msgfmt po/{0}.po -o po/{0}.mo".format(lang))
if not self.root: if not self.root:
self.root = "/" self.root = "./"
destpath = os.path.join(self.root, "usr/share/locale/{}/LC_MESSAGES".format(lang)) destpath = os.path.join(self.root, "usr/share/locale/{}/LC_MESSAGES".format(lang))
if not os.path.exists(destpath): if not os.path.exists(destpath):
os.makedirs(destpath) os.makedirs(destpath)
shutil.copy("po/{}.mo".format(lang), os.path.join(destpath, "inary.mo")) shutil.copy("po/{}.mo".format(lang), os.path.join(destpath, "inary.mo"))
def installdoc(self): def installdoc(self):
#self.root ='/' self.root ='/'
destpath = os.path.join(self.root, "usr/share/doc/inary") destpath = os.path.join(self.root, "usr/share/doc/inary")
if not os.path.exists(destpath): if not os.path.exists(destpath):
os.makedirs(destpath) os.makedirs(destpath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment