Adding some fixes to packages that use configure_args
function without setting spec set or directly referencing it (#2868)
* Adding 'self.' to the spec call for configure_args * Updating this to set spec to self.spec * More updates to the configure_args spec calls * Another spec issue * Another spec issue. * And another spec issue * Switching cmor back to self.spec.
This commit is contained in:
parent
4dad5aab84
commit
f511f7b558
@ -48,6 +48,7 @@ class Emacs(AutotoolsPackage):
|
|||||||
depends_on('gtkplus+X', when='+X toolkit=gtk')
|
depends_on('gtkplus+X', when='+X toolkit=gtk')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
|
spec = self.spec
|
||||||
args = []
|
args = []
|
||||||
toolkit = spec.variants['toolkit'].value
|
toolkit = spec.variants['toolkit'].value
|
||||||
if '+X' in spec:
|
if '+X' in spec:
|
||||||
|
@ -38,6 +38,7 @@ class Libcerf(AutotoolsPackage):
|
|||||||
version('1.3', 'b3504c467204df71e62aeccf73a25612')
|
version('1.3', 'b3504c467204df71e62aeccf73a25612')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
|
spec = self.spec
|
||||||
options = []
|
options = []
|
||||||
# Clang reports unused functions as errors, see
|
# Clang reports unused functions as errors, see
|
||||||
# http://clang.debian.net/status.php?version=3.8.1&key=UNUSED_FUNCTION
|
# http://clang.debian.net/status.php?version=3.8.1&key=UNUSED_FUNCTION
|
||||||
|
@ -53,6 +53,7 @@ class Libevent(AutotoolsPackage):
|
|||||||
depends_on('openssl', when='+openssl')
|
depends_on('openssl', when='+openssl')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
|
spec = self.spec
|
||||||
configure_args = []
|
configure_args = []
|
||||||
if '+openssl' in spec:
|
if '+openssl' in spec:
|
||||||
configure_args.append('--enable-openssl')
|
configure_args.append('--enable-openssl')
|
||||||
|
@ -46,6 +46,7 @@ class Libxml2(AutotoolsPackage):
|
|||||||
depends_on('pkg-config@0.9.0:', type='build')
|
depends_on('pkg-config@0.9.0:', type='build')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
|
spec = self.spec
|
||||||
if '+python' in spec:
|
if '+python' in spec:
|
||||||
python_args = [
|
python_args = [
|
||||||
'--with-python={0}'.format(spec['python'].prefix),
|
'--with-python={0}'.format(spec['python'].prefix),
|
||||||
|
Loading…
Reference in New Issue
Block a user