- new version 2.6.4 as well
This commit is contained in:
parent
8125780b86
commit
b741809bb2
@ -32,6 +32,7 @@ class Flex(AutotoolsPackage):
|
|||||||
homepage = "https://github.com/westes/flex"
|
homepage = "https://github.com/westes/flex"
|
||||||
url = "https://github.com/westes/flex/releases/download/v2.6.1/flex-2.6.1.tar.gz"
|
url = "https://github.com/westes/flex/releases/download/v2.6.1/flex-2.6.1.tar.gz"
|
||||||
|
|
||||||
|
version('2.6.4', '2882e3179748cc9f9c23ec593d6adc8d')
|
||||||
version('2.6.3', 'a5f65570cd9107ec8a8ec88f17b31bb1')
|
version('2.6.3', 'a5f65570cd9107ec8a8ec88f17b31bb1')
|
||||||
# Problematic version:
|
# Problematic version:
|
||||||
# See issue #2554; https://github.com/westes/flex/issues/113
|
# See issue #2554; https://github.com/westes/flex/issues/113
|
||||||
@ -68,13 +69,17 @@ def url_for_version(self, version):
|
|||||||
|
|
||||||
@run_after('install')
|
@run_after('install')
|
||||||
def symlink_lex(self):
|
def symlink_lex(self):
|
||||||
|
"""Install symlinks for lex compatibility."""
|
||||||
if self.spec.satisfies('+lex'):
|
if self.spec.satisfies('+lex'):
|
||||||
dso = dso_suffix
|
dso = dso_suffix
|
||||||
for dir, flex, lex in \
|
for dir, flex, lex in \
|
||||||
((self.prefix.bin, 'flex', 'lex'),
|
((self.prefix.bin, 'flex', 'lex'),
|
||||||
(self.prefix.lib, 'libfl.a', 'libl.a'),
|
(self.prefix.lib, 'libfl.a', 'libl.a'),
|
||||||
(self.prefix.lib, 'libfl.' + dso, 'libl.' + dso)):
|
(self.prefix.lib, 'libfl.' + dso, 'libl.' + dso),
|
||||||
with working_dir(dir):
|
(self.prefix.lib64, 'libfl.a', 'libl.a'),
|
||||||
if (os.path.isfile(flex) and not
|
(self.prefix.lib64, 'libfl.' + dso, 'libl.' + dso)):
|
||||||
os.path.lexists(lex)):
|
|
||||||
symlink(flex, lex)
|
if os.path.isdir(dir):
|
||||||
|
with working_dir(dir):
|
||||||
|
if (os.path.isfile(flex) and not os.path.lexists(lex)):
|
||||||
|
symlink(flex, lex)
|
||||||
|
Loading…
Reference in New Issue
Block a user