Permalink
Switch branches/tags
release/0.0.3 gub-release-lilypond-2.15.16-1 gub-release-lilypond-2.15.15-1 gub-release-lilypond-2.15.14-1 gub-release-lilypond-2.15.13-1 gub-release-lilypond-2.15.12-1 gub-release-lilypond-2.15.11-1 gub-release-lilypond-2.15.10-1 gub-release-lilypond-2.15.9-1 gub-release-lilypond-2.15.8-1 gub-release-lilypond-2.15.7-1 gub-release-lilypond-2.15.6-1 gub-release-lilypond-2.15.5-1 gub-release-lilypond-2.15.4-1 gub-release-lilypond-2.15.3-1 gub-release-lilypond-2.15.2-1 gub-release-lilypond-2.15.1-1 gub-release-lilypond-2.15.0-1 gub-release-lilypond-2.14.2-1 gub-release-lilypond-2.14.1-1 gub-release-lilypond-2.14.0-1 gub-release-lilypond-2.13.63-1 gub-release-lilypond-2.13.62-1 gub-release-lilypond-2.13.61-1 gub-release-lilypond-2.13.60-1 gub-release-lilypond-2.13.59-1 gub-release-lilypond-2.13.58-1 gub-release-lilypond-2.13.57-1 gub-release-lilypond-2.13.56-1 gub-release-lilypond-2.13.55-1 gub-release-lilypond-2.13.54-1 gub-release-lilypond-2.13.53-1 gub-release-lilypond-2.13.52-1 gub-release-lilypond-2.13.51-1 gub-release-lilypond-2.13.50-1 gub-release-lilypond-2.13.49-1 gub-release-lilypond-2.13.48-1 gub-release-lilypond-2.13.47-1 gub-release-lilypond-2.13.46-1 gub-release-lilypond-2.13.45-1 gub-release-lilypond-2.13.44-1 gub-release-lilypond-2.13.43-1 gub-release-lilypond-2.13.42-1 gub-release-lilypond-2.13.41-1 gub-release-lilypond-2.13.40-1 gub-release-lilypond-2.13.39-1 gub-release-lilypond-2.13.38-1 gub-release-lilypond-2.13.37-1 gub-release-lilypond-2.13.36-1 gub-release-lilypond-2.13.35-1 gub-release-lilypond-2.13.34-1 gub-release-lilypond-2.13.33-1 gub-release-lilypond-2.13.32-1 gub-release-lilypond-2.13.31-1 gub-release-lilypond-2.13.30-1 gub-release-lilypond-2.13.29-1 gub-release-lilypond-2.13.28-1 gub-release-lilypond-2.13.27-2 gub-release-lilypond-2.13.27-1 gub-release-lilypond-2.13.26-1 gub-release-lilypond-2.13.25-1 gub-release-lilypond-2.13.24-1 gub-release-lilypond-2.13.23-1 gub-release-lilypond-2.13.22-1 gub-release-lilypond-2.13.21-1 gub-release-lilypond-2.13.20-1 gub-release-lilypond-2.13.19-1 gub-release-lilypond-2.13.18-1 gub-release-lilypond-2.13.17-1 gub-release-lilypond-2.13.16-1 gub-release-lilypond-2.13.15-1 gub-release-lilypond-2.13.14-1 gub-release-lilypond-2.13.13-1 gub-release-lilypond-2.13.12-1 gub-release-lilypond-2.13.11-1 gub-release-lilypond-2.13.10-1 gub-release-lilypond-2.13.9-1 gub-release-lilypond-2.13.8-1 gub-release-lilypond-2.13.7-1 gub-release-lilypond-2.13.7-0 gub-release-lilypond-2.13.6-1 gub-release-lilypond-2.13.5-0 gub-release-lilypond-2.13.4-1 gub-release-lilypond-2.12.3-2 gub-release-lilypond-2.12.3-1 build/lilypond-gub/2.12.2-1 build/lilypond-gub/2.12.1-1 build/lilypond-gub/2.12.0-1 build/lilypond-gub/2.11.64-1
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (73 sloc) 3.42 KB
#
from gub import misc
from gub import repository
from gub import target
from gub import tools
class Libtool (target.AutoBuild):
source = 'http://ftp.gnu.org/pub/gnu/libtool/libtool-2.2.6a.tar.gz'
#source = 'git://git.sv.gnu.org/libtool.git?branch=master&revision=77e114998457cb6170ad84b360cb5b9be90f2191'
dependencies = ['tools::libtool']
configure_variables = (target.AutoBuild.configure_variables
.replace ('SHELL=', 'CONFIG_SHELL='))
if 'stat' in misc.librestrict ():
configure_command = ('CONFIG_SHELL=%(tools_prefix)s/bin/bash '
'LD_PRELOAD=%(tools_prefix)s/lib/librestrict-open.so '
+ target.AutoBuild.configure_command
.replace ('/sh', '/bash')
.replace ('SHELL=', 'CONFIG_SHELL='))
def __init__ (self, settings, source):
target.AutoBuild.__init__ (self, settings, source)
# repository patched in method.
def version_from_VERSION (self):
return '2.2.7'
if isinstance (source, repository.Git):
source.version = misc.bind_method (version_from_VERSION, source)
source._version = '2.2.7'
Libtool.set_sover (self)
if isinstance (self.source, repository.Git):
self.dependencies += ['tools::libtool', 'tools::automake']
def autoupdate (self):
# automagic works, but takes forever
if isinstance (self.source, repository.Git):
self.system ('cd %(srcdir)s && reconfdirs=". libltdl" ./bootstrap')
# target.AutoBuild.autoupdate (self)
@staticmethod
def set_sover (self):
# FIXME: how to automate this?
self.so_version = '3'
if self.source._version in ('2.2.4', '2.2.6.a', '2.2.7'):
self.so_version = '7'
subpackage_names = ['devel', 'doc', 'runtime', '']
def get_subpackage_definitions (self):
d = target.AutoBuild.get_subpackage_definitions (self)
d['devel'].append (self.settings.prefix_dir + '/bin/libtool*')
d['devel'].append (self.settings.prefix_dir + '/share/libltdl')
return d
def update_libtool (self):
pass
config_cache_overrides = (target.AutoBuild.config_cache_overrides + '''
ac_cv_prog_F77=${ac_cv_prog_F77=no}
ac_cv_prog_FC=${ac_cv_prog_FC=no}
ac_cv_prog_GCJ=${ac_cv_prog_GCJ=no}
''')
class Libtool__darwin (Libtool):
def install (self):
Libtool.install (self)
## necessary for programs that load dynamic modules.
self.dump ("prependdir DYLD_LIBRARY_PATH=$INSTALLER_PREFIX/lib",
'%(install_prefix)s/etc/relocate/libtool.reloc')
class Libtool__tools (tools.AutoBuild, Libtool):
def __init__ (self, settings, source):
tools.AutoBuild.__init__ (self, settings, source)
Libtool.set_sover (self)
update_libtool = tools.AutoBuild.nop
def install (self):
tools.AutoBuild.install (self)
# FIXME: urg. Are we doing something wrong? Why does libtool
# ignore [have /usr prevail over] --prefix ?
self.file_sub ([(' (/usr/lib/*[" ])', r' %(system_prefix)s/lib \1'),
('((-L| )/usr/lib/../lib/* )', r'\2%(system_prefix)s/lib \1')],
'%(install_prefix)s/bin/libtool')
if 'stat' in misc.librestrict ():
configure_command = ('SHELL=/bin/bash CONFIG_SHELL=/bin/bash '
+ tools.AutoBuild.configure_command)