salmon: add v1.10.3 (#45695)

Signed-off-by: Shane Nehring <snehring@iastate.edu>
This commit is contained in:
snehring 2024-08-19 03:38:56 -05:00 committed by GitHub
parent a7313dc407
commit c71d778875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 37 additions and 11 deletions

View File

@ -15,6 +15,7 @@ class Salmon(CMakePackage):
license("GPL-3.0-only")
version("1.10.3", sha256="a053fba63598efc4ade3684aa2c8e8e2294186927d4fcdf1041c36edc2aa0871")
version("1.10.2", sha256="976989182160fef3afb4429ee8b85d8dd39ed6ca212bb14d6a65cde0e985fb98")
version("1.9.0", sha256="450d953a5c43fe63fd745733f478d3fbaf24d926cb52731fd38ee21c4990d613")
version("1.4.0", sha256="6d3e25387450710f0aa779a1e9aaa9b4dec842324ff8551d66962d7c7606e71d")
@ -23,8 +24,8 @@ class Salmon(CMakePackage):
version("0.9.1", sha256="3a32c28d217f8f0af411c77c04144b1fa4e6fd3c2f676661cc875123e4f53520")
version("0.8.2", sha256="299168e873e71e9b07d63a84ae0b0c41b0876d1ad1d434b326a5be2dce7c4b91")
depends_on("c", type="build") # generated
depends_on("cxx", type="build") # generated
depends_on("c", type="build")
depends_on("cxx", type="build")
variant(
"build_type",
@ -58,6 +59,8 @@ class Salmon(CMakePackage):
depends_on("bzip2")
depends_on("libdivsufsort")
depends_on("staden-io-lib~curl")
# docs suggest libdeflate is slightly faster
depends_on("staden-io-lib~curl+libdeflate~shared@1.15:", when="@1.10.3:")
depends_on("libgff")
depends_on("pkgconfig")
depends_on("curl", when="@0.14.1:")
@ -68,6 +71,11 @@ class Salmon(CMakePackage):
conflicts("%gcc@:5.1", when="@0.14.1:")
resources = [
(
"1.10.3",
"pufferfish",
"52b6699de0d33814b73edb3455175568c2330d8014be017dce7b564e54134860",
),
(
"1.10.2",
"pufferfish",
@ -91,7 +99,7 @@ class Salmon(CMakePackage):
for ver, repo, checksum in resources:
resource(
name="rapmap",
name=repo,
url="https://github.com/COMBINE-lab/{0}/archive/salmon-v{1}.zip".format(repo, ver),
sha256=checksum,
placement="external",
@ -135,6 +143,11 @@ def patch(self):
)
filter_file("curl -k.*", "", "scripts/fetchPufferfish.sh")
if self.spec.satisfies("@1.10.3:"):
findstadenio_module = join_path("cmake", "Modules", "Findlibstadenio.cmake")
filter_file("PACKAGE_VERSION", "IOLIB_VERSION", findstadenio_module, string=True)
filter_file("io_lib_config.h", "version.h", findstadenio_module, string=True)
def cmake_args(self):
args = ["-DBOOST_ROOT=%s" % self.spec["boost"].prefix]

View File

@ -10,24 +10,37 @@ class StadenIoLib(AutotoolsPackage):
"""Io_lib is a library for reading/writing various bioinformatics
file formats."""
homepage = "https://staden.sourceforge.net/"
url = (
"https://sourceforge.net/projects/staden/files/io_lib/1.14.8/io_lib-1.14.8.tar.gz/download"
)
homepage = "https://github.com/jkbonfield/io_lib"
license("BSD-3-Clause")
version("1.14.8", sha256="3bd560309fd6d70b14bbb8230e1baf8706b804eb6201220bb6c3d6db72003d1b")
maintainers("snehring")
depends_on("c", type="build") # generated
version("1.15.0", sha256="ad343dac7c77086db1b54585c5887b26eda6430d1639d111dd3304c3b749494f")
version("1.14.9", sha256="8d0732f3d37abba1633731bfacac5fd7f8172eccb1cef224e8ced904d3b242f4")
version(
"1.14.8",
sha256="3bd560309fd6d70b14bbb8230e1baf8706b804eb6201220bb6c3d6db72003d1b",
url="https://sourceforge.net/projects/staden/files/io_lib/1.14.8/io_lib-1.14.8.tar.gz/download",
)
depends_on("c", type="build")
variant("libdeflate", default=False, description="Build with libdeflate")
variant("curl", default=False, description="Build with curl support")
variant("shared", default=True, description="Build shared libraries")
depends_on("zlib-api")
depends_on("zlib-api", when="~libdeflate")
depends_on("libdeflate", when="+libdeflate")
depends_on("bzip2")
depends_on("xz")
depends_on("curl", when="+curl")
def url_for_version(self, version):
return f"https://github.com/jkbonfield/io_lib/releases/download/io_lib-{version.dashed}/io_lib-{version.dotted}.tar.gz"
def configure_args(self):
args = []
args = self.enable_or_disable("shared")
if self.spec.satisfies("~curl"):
args.append("--without-libcurl")