summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeague Sterling <teaguesterling@users.noreply.github.com>2024-07-30 03:17:29 -0700
committerGitHub <noreply@github.com>2024-07-30 11:17:29 +0100
commit622ad1ddd777b28f2462d8075c69d651c565f4f9 (patch)
treed41c138bcb1606042e0ab535fee80d3d87409f63
parent1bd17876ed62a5be2f8145f30159139fb5eb8ddd (diff)
downloadspack-622ad1ddd777b28f2462d8075c69d651c565f4f9.tar.gz
spack-622ad1ddd777b28f2462d8075c69d651c565f4f9.tar.bz2
spack-622ad1ddd777b28f2462d8075c69d651c565f4f9.tar.xz
spack-622ad1ddd777b28f2462d8075c69d651c565f4f9.zip
perl-bio-ensembl-funcgen: new package (#44508)
* Adding the perl-bio-ensembl-funcgen package * Update package.py * Update package.py
-rw-r--r--var/spack/repos/builtin/packages/perl-bio-ensembl-funcgen/package.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-bio-ensembl-funcgen/package.py b/var/spack/repos/builtin/packages/perl-bio-ensembl-funcgen/package.py
new file mode 100644
index 0000000000..bede5949f6
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-bio-ensembl-funcgen/package.py
@@ -0,0 +1,37 @@
+# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from spack.package import *
+
+
+class PerlBioEnsemblFuncgen(Package):
+ """Ensembl Funcgen Perl API and SQL schema."""
+
+ homepage = "http://ensembl.org/info/docs/api/funcgen/index.html"
+ url = "https://github.com/Ensembl/ensembl-funcgen/archive/release/111.zip"
+
+ maintainers("teaguesterling")
+
+ license("APACHE-2.0", checked_by="teaguesterling")
+
+ version("112", sha256="d7398921779a6865b5e2f0269d51d268f9b8cd96e4ca3577c88e6f34593e683d")
+ version("111", sha256="67b1b7d6efde9e8be7b4ef73c54c0b5e7e3eadcd590a94bc980984514ef746d0")
+ version("110", sha256="c9e85a423a8c8653741aed799aea9762fa1dfb301f50dc11d291925e81d7aeee")
+
+ extends("perl")
+
+ depends_on("perl-role-tiny", type=("build", "run"))
+ depends_on("perl-bio-ensembl")
+
+ variant("sql", default=False, description="Install SQL files")
+ variant("scripts", default=False, description="Install scripts")
+ variant("templates", default=False, description="Install templates")
+
+ def install(self, spec, prefix):
+ install_tree("modules", prefix.lib.perl5)
+ mkdirp(prefix.share.ensembl.variation)
+ for extra in ["sql", "scripts", "templates"]:
+ if spec.satisfies(f"+{extra}"):
+ target = join_path(prefix.share.ensembl, extra)
+ install_tree(extra, target)