install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 18c51919e94d6a9207dc09791e7a70f6e1a9273d
parent 9e727f684ba0ea56be5eca2c255b28efee08ad1c
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu, 12 Jan 2017 11:34:49 +0100

Fix(Tcl): Removing shell execution

Diffstat:
Mpkgs/tcl_p2/tcl_p2.py | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/pkgs/tcl_p2/tcl_p2.py b/pkgs/tcl_p2/tcl_p2.py @@ -27,6 +27,7 @@ class Tcl_P2: conf_lst = {} e = False root_dir = "" + sourcedir = "" def init(self, c_lst, ex, root_dir): self.conf_lst = c_lst @@ -50,7 +51,7 @@ class Tcl_P2: def configure(self): os.chdir("tcl8.6.6") - os.environ["SRCDIR"] = os.getcwd() + self.sourcedir = os.getcwd() os.chdir("unix") if (self.conf_lst["arch"] == "x86_64"): arg = "--enable-64bit" @@ -66,9 +67,10 @@ class Tcl_P2: return self.e(["make", "-j", self.conf_lst["cpus"]]) def install(self): - self.e(['sed', '-e', 's#$SRCDIR/unix#/usr/lib#', '-e', 's#$SRCDIR#/usr/include#', '-i', 'tclConfig.sh'], shell=True) - self.e(['sed', '-e', 's#$SRCDIR/unix/pkgs/tdbc1.0.4#/usr/lib/tdbc1.0.4#', '-e', 's#$SRCDIR/pkgs/tdbc1.0.4/generic#/usr/include#', '-e', 's#$SRCDIR/pkgs/tdbc1.0.4/library#/usr/lib/tcl8.6#', '-e', 's#$SRCDIR/pkgs/tdbc1.0.4#/usr/include#', '-i', 'pkgs/tdbc1.0.4/tdbcConfig.sh'], shell=True) - self.e(['sed', '-e', 's#$SRCDIR/unix/pkgs/itcl4.0.5#/usr/lib/itcl4.0.5#', '-e', 's#$SRCDIR/pkgs/itcl4.0.5/generic#/usr/include#', '-e', 's#$SRCDIR/pkgs/itcl4.0.5#/usr/include#', '-i', 'pkgs/itcl4.0.5/itclConfig.sh'], shell=True) + s = self.sourcedir + self.e(['sed', '-e', 's#'+ s +'/unix#/usr/lib#', '-e', 's#'+ s +'#/usr/include#', '-i', 'tclConfig.sh']) + self.e(['sed', '-e', 's#'+ s +'/unix/pkgs/tdbc1.0.4#/usr/lib/tdbc1.0.4#', '-e', 's#'+ s +'/pkgs/tdbc1.0.4/generic#/usr/include#', '-e', 's#'+ s +'/pkgs/tdbc1.0.4/library#/usr/lib/tcl8.6#', '-e', 's#'+ s +'/pkgs/tdbc1.0.4#/usr/include#', '-i', 'pkgs/tdbc1.0.4/tdbcConfig.sh']) + self.e(['sed', '-e', 's#'+ s +'/unix/pkgs/itcl4.0.5#/usr/lib/itcl4.0.5#', '-e', 's#'+ s +'/pkgs/itcl4.0.5/generic#/usr/include#', '-e', 's#'+ s +'/pkgs/itcl4.0.5#/usr/include#', '-i', 'pkgs/itcl4.0.5/itclConfig.sh']) self.e(["make", "install"]) return self.e(["make", "install-private-headers"])