GDAL: fix build of Java bindings (#26244)

This commit is contained in:
Adam J. Stewart 2021-09-25 01:01:45 -05:00 committed by GitHub
parent 7e67652983
commit b8e21f2b0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,10 @@ class Gdal(AutotoolsPackage):
# swig/python/setup.py
depends_on('py-setuptools', type='build', when='+python')
depends_on('py-numpy@1.0.0:', type=('build', 'run'), when='+python')
depends_on('java@4:8', type=('build', 'link', 'run'), when='+java')
depends_on('java@7:', type=('build', 'link', 'run'), when='@3.2:+java')
depends_on('java@6:', type=('build', 'link', 'run'), when='@2.4:+java')
depends_on('java@5:', type=('build', 'link', 'run'), when='@2.1:+java')
depends_on('java@4:', type=('build', 'link', 'run'), when='@:2.0+java')
depends_on('ant', type='build', when='+java')
depends_on('swig', type='build', when='+java')
depends_on('jackcess@1.2.0:1.2.999', type='run', when='+mdb')
@ -562,7 +565,6 @@ def configure_args(self):
if spec.satisfies('@2.1:'):
args.extend([
'--with-mongocxx=no',
'--with-gnm=no',
'--with-pdfium=no',
])