Files
OpenUxAS-bootstrap/specs/ant.anod
M. Anthony Aiello c2b51648b0 Fix ant spec (#43)
Was pointing at a mirror, rather than the official apache archive; the mirror seems to have gone away. Also update to 1.10.8, which is the latest ant.
2020-05-29 22:09:02 -04:00

30 lines
783 B
Plaintext

import os
from e3.anod.loader import spec
from e3.anod.spec import Anod
class Ant(spec('common')):
"""Install Apache ANT."""
@property
def build_source_list(self):
return [Anod.Source(name='apache-ant-1.10.8-bin.tar.gz',
publish=True)]
@property
def source_pkg_build(self):
return [
self.HTTPSSourceBuilder(
name='apache-ant-1.10.8-bin.tar.gz',
url='https://archive.apache.org/dist/ant/binaries/'
'apache-ant-1.10.8-bin.tar.gz')]
def setenv(self, prefix=None):
if prefix is None:
prefix = self.build_space.src_dir
self.env.add_path(os.path.join(prefix, 'bin'))
@Anod.primitive()
def build(self):
pass