Log4cxx add v0.12.0, convert to CMakePackage (#25875)
This commit is contained in:
parent
b745e208a3
commit
ceb94bd6ae
1 changed files with 10 additions and 13 deletions
|
@ -6,25 +6,22 @@
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Log4cxx(AutotoolsPackage):
|
class Log4cxx(CMakePackage):
|
||||||
"""A C++ port of Log4j"""
|
"""A C++ port of Log4j"""
|
||||||
|
|
||||||
homepage = "https://logging.apache.org/log4cxx/latest_stable/"
|
homepage = "https://logging.apache.org/log4cxx/latest_stable/"
|
||||||
url = "http://mirror.netcologne.de/apache.org/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz"
|
url = "https://dlcdn.apache.org/logging/log4cxx/0.12.0/apache-log4cxx-0.12.0.tar.gz"
|
||||||
|
|
||||||
version('0.10.0', sha256='0de0396220a9566a580166e66b39674cb40efd2176f52ad2c65486c99c920c8c')
|
maintainers = ['nicmcd']
|
||||||
|
|
||||||
|
version('0.12.0', sha256='bd5b5009ca914c8fa7944b92ea6b4ca6fb7d146f65d526f21bf8b3c6a0520e44')
|
||||||
|
|
||||||
|
depends_on('cmake@3.13:', type='build')
|
||||||
|
|
||||||
depends_on('apr-util')
|
depends_on('apr-util')
|
||||||
depends_on('apr')
|
depends_on('apr')
|
||||||
|
depends_on('zlib')
|
||||||
depends_on('zip')
|
depends_on('zip')
|
||||||
|
|
||||||
build_directory = 'spack-build'
|
def cmake_args(self):
|
||||||
|
return [self.define('BUILD_TESTING', 'off')]
|
||||||
# patches from https://aur.archlinux.org/packages/log4cxx/
|
|
||||||
patch('log4cxx-0.10.0-missing_includes.patch')
|
|
||||||
patch('log4cxx-0.10.0-narrowing-fixes-from-upstream.patch')
|
|
||||||
|
|
||||||
def configure_args(self):
|
|
||||||
args = ['--disable-static']
|
|
||||||
|
|
||||||
return args
|
|
||||||
|
|
Loading…
Reference in a new issue