Lines 232-243
Link Here
|
232 |
"eautomake", "eautoreconf", "_elibtoolize") |
232 |
"eautomake", "eautoreconf", "_elibtoolize") |
233 |
_autotools_func_re = re.compile(r'(^|\s)(' + \ |
233 |
_autotools_func_re = re.compile(r'(^|\s)(' + \ |
234 |
"|".join(_autotools_funcs) + ')(\s|$)') |
234 |
"|".join(_autotools_funcs) + ')(\s|$)') |
|
|
235 |
# Exempt eclasses: |
236 |
# git - An EGIT_BOOTSTRAP variable may be used to call one of |
237 |
# the autotools functions. |
238 |
_exempt_eclasses = frozenset(["git"]) |
235 |
|
239 |
|
236 |
def new(self, pkg): |
240 |
def new(self, pkg): |
237 |
self._inherit_autotools = None |
241 |
self._inherit_autotools = None |
238 |
self._autotools_func_call = None |
242 |
self._autotools_func_call = None |
|
|
243 |
self._disabled = self._exempt_eclasses.intersection(pkg.inherited) |
239 |
|
244 |
|
240 |
def check(self, num, line): |
245 |
def check(self, num, line): |
|
|
246 |
if self._disabled: |
247 |
return |
241 |
if self._inherit_autotools is None: |
248 |
if self._inherit_autotools is None: |
242 |
self._inherit_autotools = self._inherit_autotools_re.match(line) |
249 |
self._inherit_autotools = self._inherit_autotools_re.match(line) |
243 |
if self._inherit_autotools is not None and \ |
250 |
if self._inherit_autotools is not None and \ |