@@ -0,0 +1,1122 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other%0A# Spack Project Developers. See the top-level COPYRIGHT file for details.%0A#%0A# SPDX-License-Identifier: (Apache-2.0 OR MIT)%0A%0A%0Aclass Sloccount(MakefilePackage):%0A    %22%22%22SLOCCount is a set of tools for counting physical Source Lines of Code%0A    (SLOC) in a large number of languages of a potentially large set of%0A    programs.%22%22%22%0A%0A    homepage = %22https://dwheeler.com/sloccount/%22%0A    url      = %22https://dwheeler.com/sloccount/sloccount-2.26.tar.gz%22%0A%0A    version('2.26', sha256='fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b')%0A%0A    # md5sum needed at run-time%0A    depends_on('coreutils', type=('build', 'run'))%0A%0A    def edit(self, spec, prefix):%0A        makefile = FileFilter('makefile')%0A        makefile.filter('%5EPREFIX=.*', 'PREFIX=' + prefix)%0A        makefile.filter('%5ECC=.*', 'CC=' + spack_cc)%0A%0A        # Needed for %60make test%60 to pass%0A        makefile.filter('PATH=.:$%7BPATH%7D', 'PATH=$(CURDIR):$%7BPATH%7D',%0A                        string=True)%0A%0A    def install(self, spec, prefix):%0A        mkdir(prefix.bin)%0A        make('install')%0A

add new package (#18271)