summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2023-01-24 16:13:56 -0500
committerGitHub <noreply@github.com>2023-01-24 13:13:56 -0800
commitef6699b874a1f99aa4a5f77c685999de24d99225 (patch)
treede37c215a3d3b440d457a09030c6a5889df1564b
parentf5418ac34466c25583df26c3966488852cbac6e8 (diff)
downloadspack-ef6699b874a1f99aa4a5f77c685999de24d99225.tar.gz
spack-ef6699b874a1f99aa4a5f77c685999de24d99225.tar.bz2
spack-ef6699b874a1f99aa4a5f77c685999de24d99225.tar.xz
spack-ef6699b874a1f99aa4a5f77c685999de24d99225.zip
New package: srcml (#35097)
* Initial srcml * [srcml] - Fixed dependencies likely will need some more rework - Disabling packaging cmake file (for now) - Added patch to fix issue with source code library import * [srcml] updated copyright * [srcml] requires antlr complied with -fPIC * [srcml] cleaned up dependencies * [srcml] flake8 * [srcml] limiting boost versions Co-authored-by: Benjamin Meyers <bsmits@rit.edu> Co-authored-by: qwertos <qwertos@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/srcml/package.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/srcml/package.py b/var/spack/repos/builtin/packages/srcml/package.py
new file mode 100644
index 0000000000..0995effb1c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/srcml/package.py
@@ -0,0 +1,37 @@
+# Copyright 2013-2023 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 Srcml(CMakePackage):
+ """srcML is an XML format for source code. The XML markup identifies elements of
+ the abstract syntax of the source-code language. The toolkit includes parsing
+ supports conversion of C, C++, C#, and Java both to and from the srcML format.
+ The format allows leveraging XML tools to support the various tasks of source
+ code exploration, analysis, and manipulation."""
+
+ homepage = "https://github.com/srcML/srcML"
+ url = "https://github.com/srcML/srcML/archive/refs/tags/v1.0.0.tar.gz"
+
+ maintainers = ["meyersbs"]
+
+ version("1.0.0", sha256="3ddf33271c3b3953d5e3ecbb14c4f925fc0e609a81250d921d3516537dcffae2")
+
+ depends_on("cmake@3.14:", type="build")
+ depends_on("antlr+cxx+java+pic")
+ depends_on("libxslt")
+ depends_on("libarchive@3:")
+ depends_on("curl")
+ depends_on("boost@:1.78.0")
+
+ patch(
+ "https://patch-diff.githubusercontent.com/raw/srcML/srcML/pull/1829.patch?full_index=1",
+ sha256="384068e00a01809cdc9b6eca79fd6833bf3214d4b9ac1765b52bc374a7af333e",
+ )
+
+ def patch(self):
+ filter_file(r"add_subdirectory\(package\)", "#noop", "CMakeLists.txt")