SWIG: new version 4.1.0 (#34250)
This commit is contained in:
parent
37f232e319
commit
855d3519b6
@ -100,6 +100,11 @@ class Sensei(CMakePackage):
|
|||||||
patch("sensei-find-mpi-component-cxx-pr68.patch", when="@4.0.0")
|
patch("sensei-find-mpi-component-cxx-pr68.patch", when="@4.0.0")
|
||||||
patch("sensei-install-external-pugixml-pr69.patch", when="@4.0.0")
|
patch("sensei-install-external-pugixml-pr69.patch", when="@4.0.0")
|
||||||
patch("sensei-version-detection-pr75.patch", when="@4.0.0")
|
patch("sensei-version-detection-pr75.patch", when="@4.0.0")
|
||||||
|
patch(
|
||||||
|
"https://patch-diff.githubusercontent.com/raw/SENSEI-insitu/SENSEI/pull/88.patch?full_index=1",
|
||||||
|
sha256="6e5a190d4d3275c248b11b9258b79ddf2e5f0dc1b028b23dcdbdc13f9ea46813",
|
||||||
|
when="@4.0.0 +python ^swig@4.1:",
|
||||||
|
)
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
@ -29,10 +29,12 @@ class Swig(AutotoolsPackage, SourceforgePackage):
|
|||||||
|
|
||||||
version("master", git="https://github.com/swig/swig.git")
|
version("master", git="https://github.com/swig/swig.git")
|
||||||
version(
|
version(
|
||||||
"4.0.2",
|
"4.1.1",
|
||||||
sha256="d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc",
|
sha256="2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b",
|
||||||
preferred=True,
|
preferred=True,
|
||||||
)
|
)
|
||||||
|
version("4.1.0", sha256="d6a9a8094e78f7cfb6f80a73cc271e1fe388c8638ed22668622c2c646df5bb3d")
|
||||||
|
version("4.0.2", sha256="d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc")
|
||||||
version("4.0.1", sha256="7a00b4d0d53ad97a14316135e2d702091cd5f193bb58bcfcd8bc59d41e7887a9")
|
version("4.0.1", sha256="7a00b4d0d53ad97a14316135e2d702091cd5f193bb58bcfcd8bc59d41e7887a9")
|
||||||
version("4.0.0", sha256="e8a39cd6437e342cdcbd5af27a9bf11b62dc9efec9248065debcb8276fcbb925")
|
version("4.0.0", sha256="e8a39cd6437e342cdcbd5af27a9bf11b62dc9efec9248065debcb8276fcbb925")
|
||||||
version("3.0.12", sha256="7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d")
|
version("3.0.12", sha256="7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d")
|
||||||
@ -44,6 +46,16 @@ class Swig(AutotoolsPackage, SourceforgePackage):
|
|||||||
version("2.0.2", sha256="6e6b5e8db2bbf2761ff789a3109e4f12ca664ec178d3a164ed0dc273d346c11f")
|
version("2.0.2", sha256="6e6b5e8db2bbf2761ff789a3109e4f12ca664ec178d3a164ed0dc273d346c11f")
|
||||||
version("1.3.40", sha256="1945b3693bcda6777bd05fef1015a0ad1a4604cde4a4a0a368b61ccfd143ac09")
|
version("1.3.40", sha256="1945b3693bcda6777bd05fef1015a0ad1a4604cde4a4a0a368b61ccfd143ac09")
|
||||||
version("fortran", branch="master", git="https://github.com/swig-fortran/swig.git")
|
version("fortran", branch="master", git="https://github.com/swig-fortran/swig.git")
|
||||||
|
version(
|
||||||
|
"4.1.1-fortran",
|
||||||
|
sha256="417ea6adde3e6bf7825b2f670d2eac36257cc50db0e2f84c5bd4d67a16a7e88f",
|
||||||
|
url="https://github.com/swig-fortran/swig/archive/refs/tags/v4.1.1+fortran.tar.gz",
|
||||||
|
)
|
||||||
|
version(
|
||||||
|
"4.1.0-fortran",
|
||||||
|
sha256="f15521b10e7ef3b2a41dd0d81de0b1355a94495e481d201db4247e073a6f2d9b",
|
||||||
|
url="https://github.com/swig-fortran/swig/archive/refs/tags/v4.1.0+fortran.tar.gz",
|
||||||
|
)
|
||||||
version(
|
version(
|
||||||
"4.1.dev1-fortran",
|
"4.1.dev1-fortran",
|
||||||
sha256="d9020319771879b41f9545e95f9d252a3ffc379832dded14c385e5cd823e526d",
|
sha256="d9020319771879b41f9545e95f9d252a3ffc379832dded14c385e5cd823e526d",
|
||||||
@ -55,17 +67,27 @@ class Swig(AutotoolsPackage, SourceforgePackage):
|
|||||||
url="https://github.com/swig-fortran/swig/archive/v4.0.2+fortran.tar.gz",
|
url="https://github.com/swig-fortran/swig/archive/v4.0.2+fortran.tar.gz",
|
||||||
)
|
)
|
||||||
|
|
||||||
depends_on("pcre")
|
depends_on("pcre", when="@:4.0")
|
||||||
|
depends_on("pcre2", when="@4.1:")
|
||||||
depends_on("zlib")
|
depends_on("zlib")
|
||||||
|
|
||||||
AUTOCONF_VERSIONS = ["@master", "@fortran", "@4.0.2-fortran", "@4.1.dev1-fortran"]
|
AUTOCONF_VERSIONS = "@" + ",".join(
|
||||||
|
[
|
||||||
|
"master",
|
||||||
|
"fortran",
|
||||||
|
"4.0.2-fortran",
|
||||||
|
"4.1.dev1-fortran",
|
||||||
|
"4.1.0-fortran",
|
||||||
|
"4.1.1-fortran",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
# Git releases do *not* include configure script
|
# Git releases do *not* include configure script
|
||||||
for _version in AUTOCONF_VERSIONS:
|
depends_on("autoconf", type="build", when=AUTOCONF_VERSIONS)
|
||||||
depends_on("autoconf", type="build", when=_version)
|
depends_on("automake", type="build", when=AUTOCONF_VERSIONS)
|
||||||
depends_on("automake", type="build", when=_version)
|
depends_on("libtool", type="build", when=AUTOCONF_VERSIONS)
|
||||||
depends_on("libtool", type="build", when=_version)
|
depends_on("yacc", type="build", when=AUTOCONF_VERSIONS)
|
||||||
depends_on("yacc", type="build", when=_version)
|
|
||||||
# Need newer 'automake' to support newer platforms
|
# Need newer 'automake' to support newer platforms
|
||||||
for _target in ["ppc64le", "aarch64"]:
|
for _target in ["ppc64le", "aarch64"]:
|
||||||
depends_on("automake@1.15:", type="build", when="target={0}:".format(_target))
|
depends_on("automake@1.15:", type="build", when="target={0}:".format(_target))
|
||||||
@ -132,8 +154,6 @@ def create_symlink(self):
|
|||||||
with working_dir(self.prefix.bin):
|
with working_dir(self.prefix.bin):
|
||||||
os.symlink("swig", "swig{0}".format(self.spec.version.up_to(2)))
|
os.symlink("swig", "swig{0}".format(self.spec.version.up_to(2)))
|
||||||
|
|
||||||
for _version in Swig.AUTOCONF_VERSIONS:
|
@when(Swig.AUTOCONF_VERSIONS)
|
||||||
|
def autoreconf(self, pkg, spec, prefix):
|
||||||
@when(_version)
|
which("sh")("./autogen.sh")
|
||||||
def autoreconf(self, pkg, spec, prefix):
|
|
||||||
which("sh")("./autogen.sh")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user