diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/uncrustify/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/uncrustify/package.py | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/uncrustify/package.py b/var/spack/repos/builtin/packages/uncrustify/package.py index 7221cdbcab..f465939ea4 100644 --- a/var/spack/repos/builtin/packages/uncrustify/package.py +++ b/var/spack/repos/builtin/packages/uncrustify/package.py @@ -10,12 +10,30 @@ class Uncrustify(Package): """Source Code Beautifier for C, C++, C#, ObjectiveC, Java, and others.""" homepage = "http://uncrustify.sourceforge.net/" - url = "http://downloads.sourceforge.net/project/uncrustify/uncrustify/uncrustify-0.61/uncrustify-0.61.tar.gz" - - version('0.67', sha256='54f15c8ebddef120522db21f38fac1dd3b0a285fbf60a8b71f9e333e96cf6ddc') + git = "https://github.com/uncrustify/uncrustify" + url = "https://sourceforge.net/projects/uncrustify/files/uncrustify/uncrustify-0.69/uncrustify-0.69.tar.gz" + + maintainers = ['gmaurel'] + + version('master', branch='master') + version('0.74', commit='62048b') + version('0.73', commit='25b765') + version('0.72', commit='1d3d8f') + version('0.71', commit='64d82f') + version('0.70', commit='51f64d') + version('0.69', commit='a7a8fb') + version('0.68', commit='86bc34') + version('0.67', commit='00321a') + version('0.66', commit='80f549') + version('0.65', commit='905676') + version('0.64', commit='1d7d97') + version('0.63', commit='44ce0f') + version('0.62', commit='5987f2') version('0.61', sha256='1df0e5a2716e256f0a4993db12f23d10195b3030326fdf2e07f8e6421e172df9') depends_on('cmake', type='build', when='@0.64:') + depends_on('automake', type='build', when='@0.63') + depends_on('autoconf', type='build', when='@0.63') @when('@0.64:') def install(self, spec, prefix): @@ -24,8 +42,17 @@ class Uncrustify(Package): make() make('install') + @when('@0.63') + def install(self, spec, prefix): + which('bash')('autogen.sh') + configure('--prefix={0}'.format(self.prefix)) + make() + make('install') + @when('@:0.62') def install(self, spec, prefix): configure('--prefix={0}'.format(self.prefix)) make() make('install') + + patch('uncrustify-includes.patch', when='@0.73') |