def download(self): book_file = "book.bin" book_bin = "http://www.craftychess.com/downloads/book/" + book_file Wget(self.src_uri, self.SRC_FILE) Wget(book_bin, book_file) mkdir(self.src_dir) with local.cwd(self.src_dir): unzip(path.join("..", self.SRC_FILE)) mv(book_file, self.src_dir)
def compile(self): self.download() unzip(self.src_file) unpack_dir = "crocopat-{0}".format(self.version) crocopat_dir = local.path(unpack_dir) / "src" self.cflags += ["-I.", "-ansi"] self.ldflags += ["-L.", "-lrelbdd"] clang_cxx = compiler.cxx(self) with local.cwd(crocopat_dir): make("CXX=" + str(clang_cxx))
def compile(self): self.download() unzip(self.src_file) unpack_dir = local.path('sqlite-amalgamation-{0}'.format(self.version)) SQLite3.fetch_leveldb() clang = compiler.cc(self) with local.cwd(unpack_dir): run.run(clang["-fPIC", "-I.", "-c", "sqlite3.c"]) run.run( clang["-shared", "-o", "libsqlite3.so", "sqlite3.o", "-ldl"]) self.build_leveldb()
def compile(self): self.download() book_file = "book.bin" book_bin = "http://www.craftychess.com/downloads/book/" + book_file download.Wget(book_bin, book_file) unpack_dir = "crafty.src" mkdir(unpack_dir) with local.cwd(unpack_dir): unzip(local.path("..") / self.src_file) mv(book_file, unpack_dir) clang = compiler.cc(self) with local.cwd(unpack_dir): target_opts = ["-DCPUS=1", "-DSYZYGY", "-DTEST"] crafty_make = make["target=UNIX", "CC=" + str(clang), "opt=" + " ".join(target_opts), "crafty-make"] run.run(crafty_make)
def download(self): Wget(self.src_uri, self.SRC_FILE) unzip(self.SRC_FILE)
def download(self): Wget(self.src_uri, self.SRC_FILE) unzip(path.join('.', self.SRC_FILE))
def download(self): Wget(self.src_uri, self.SRC_FILE) unzip(self.SRC_FILE) type(self).fetch_leveldb()
def compile(self): self.download() unzip(local.cwd / self.src_file) clang = cc(self) run(make["CC=" + str(clang), "scimark2"])