e4s ci stack: add catalyst build (#31993)
This commit is contained in:
parent
3d4705ffab
commit
cfa4bffe26
1 changed files with 22 additions and 1 deletions
|
@ -22,6 +22,7 @@ class Ncurses(AutotoolsPackage, GNUMirrorPackage):
|
||||||
|
|
||||||
executables = [r"^ncursesw?(?:\d+(?:\.\d+)*)?-config$"]
|
executables = [r"^ncursesw?(?:\d+(?:\.\d+)*)?-config$"]
|
||||||
|
|
||||||
|
version("6.3", sha256="97fc51ac2b085d4cde31ef4d2c3122c21abc217e9090a43a30fc5ec21684e059")
|
||||||
version("6.2", sha256="30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d")
|
version("6.2", sha256="30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d")
|
||||||
version("6.1", sha256="aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17")
|
version("6.1", sha256="aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17")
|
||||||
version("6.0", sha256="f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260")
|
version("6.0", sha256="f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260")
|
||||||
|
@ -110,10 +111,16 @@ def configure(self, spec, prefix):
|
||||||
"--enable-overwrite",
|
"--enable-overwrite",
|
||||||
"--without-ada",
|
"--without-ada",
|
||||||
"--enable-pc-files",
|
"--enable-pc-files",
|
||||||
"--with-pkg-config-libdir={0}/lib/pkgconfig".format(self.prefix),
|
|
||||||
"--disable-overwrite",
|
"--disable-overwrite",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if spec.satisfies("@:6.2"):
|
||||||
|
opts.append("--with-pkg-config-libdir={0}/pkgconfig".format(prefix.lib))
|
||||||
|
else:
|
||||||
|
pcstage = "{0}/lib/pkgconfig".format(self.stage.source_path)
|
||||||
|
mkdirp(pcstage)
|
||||||
|
opts.append("--with-pkg-config-libdir={0}".format(pcstage))
|
||||||
|
|
||||||
nwide_opts = ["--disable-widec", "--without-manpages", "--without-tests"]
|
nwide_opts = ["--disable-widec", "--without-manpages", "--without-tests"]
|
||||||
|
|
||||||
wide_opts = ["--enable-widec", "--without-manpages", "--without-tests"]
|
wide_opts = ["--enable-widec", "--without-manpages", "--without-tests"]
|
||||||
|
@ -164,6 +171,20 @@ def install(self, spec, prefix):
|
||||||
h = os.path.basename(header)
|
h = os.path.basename(header)
|
||||||
os.symlink(os.path.join("ncursesw", h), os.path.join(prefix.include, h))
|
os.symlink(os.path.join("ncursesw", h), os.path.join(prefix.include, h))
|
||||||
|
|
||||||
|
if spec.satisfies("@6.3:"):
|
||||||
|
pc_stage = "{0}/lib/pkgconfig".format(self.stage.source_path)
|
||||||
|
pc_install = "{0}/pkgconfig".format(prefix.lib)
|
||||||
|
mkdirp(pc_install)
|
||||||
|
install_tree(pc_stage, pc_install)
|
||||||
|
|
||||||
|
@run_after("install")
|
||||||
|
def symlink_curses(self):
|
||||||
|
soext = "so" if not self.spec.satisfies("platform=darwin") else "dylib"
|
||||||
|
libncurses = "{0}/libncurses.{1}".format(self.prefix.lib, soext)
|
||||||
|
libcurses = "{0}/libcurses.{1}".format(self.prefix.lib, soext)
|
||||||
|
if not os.path.exists(libcurses) and os.path.exists(libncurses):
|
||||||
|
os.symlink(libncurses, libcurses)
|
||||||
|
|
||||||
def query_parameter_options(self):
|
def query_parameter_options(self):
|
||||||
"""Use query parameters passed to spec (e.g., "spec[ncurses:wide]")
|
"""Use query parameters passed to spec (e.g., "spec[ncurses:wide]")
|
||||||
to select wide, non-wide, or default/both."""
|
to select wide, non-wide, or default/both."""
|
||||||
|
|
Loading…
Reference in a new issue