diff options
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 106 |
1 files changed, 24 insertions, 82 deletions
@@ -71,6 +71,16 @@ class BoostInfo(object): if system == 'centos': return [ 'boost-devel' ] + elif system == 'ubuntu-trusty': + return [ 'libboost1.55-dev', + 'libboost-date-time1.55-dev', + 'libboost-filesystem1.55-dev', + 'libboost-iostreams1.55-dev', + 'libboost-python1.55-dev', + 'libboost-regex1.55-dev', + 'libboost-system1.55-dev', + 'libboost-test1.55-dev' ] + elif system == 'ubuntu-saucy' or system == 'ubuntu-precise': return [ 'autopoint', 'libboost-dev', @@ -90,22 +100,6 @@ class BoostInfo(object): 'libboost-iostreams-dev', 'libboost-python-dev' ] - elif system == 'ubuntu-karmic' or system == 'ubuntu-hardy': - return [ 'bjam', 'libboost-dev', - 'libboost-regex-dev', - 'libboost-date-time-dev', - 'libboost-filesystem-dev', - 'libboost-iostreams-dev', - 'libboost-python-dev' ] - - elif system == 'ubuntu-oneiric': - return [ 'libboost-dev', - 'libboost-python-dev', - 'libboost-regex-dev', - 'libboost-date-time-dev', - 'libboost-filesystem-dev', - 'libboost-iostreams-dev' ] - class CommandLineApp(object): "Base class for building command line applications." @@ -563,32 +557,33 @@ class PrepareBuild(CommandLineApp): release = open('/etc/lsb-release') info = release.read() release.close() - if re.search('saucy', info): - self.log.info('Looks like you are using APT on Ubuntu Saucy') + if re.search('trusty', info): + self.log.info('Looks like you are using APT on Ubuntu Trusty') packages = [ 'sudo', 'apt-get', 'install', 'build-essential', - 'libtool', + 'doxygen', 'cmake', 'ninja-build', 'zlib1g-dev', 'libbz2-dev', 'python-dev', - 'libgmp-dev', + 'libgmp3-dev', 'libmpfr-dev', 'gettext', 'libedit-dev', 'texinfo', 'lcov', 'sloccount' - ] + BoostInfo().dependencies('ubuntu-saucy') - elif re.search('precise', info): - self.log.info('Looks like you are using APT on Ubuntu Precise') + ] + BoostInfo().dependencies('ubuntu-trusty') + elif re.search('saucy', info): + self.log.info('Looks like you are using APT on Ubuntu Saucy') packages = [ 'sudo', 'apt-get', 'install', 'build-essential', 'libtool', 'cmake', + 'ninja-build', 'zlib1g-dev', 'libbz2-dev', 'python-dev', @@ -599,78 +594,25 @@ class PrepareBuild(CommandLineApp): 'texinfo', 'lcov', 'sloccount' - ] + BoostInfo().dependencies('ubuntu-precise') - elif re.search('karmic', info): - self.log.info('Looks like you are using APT on Ubuntu Karmic') - packages = [ - 'sudo', 'apt-get', 'install', - 'build-essential', - 'libtool', - 'autoconf', - 'automake', - 'zlib1g-dev', - 'libbz2-dev', - 'python-dev', - 'libgmp3-dev', - 'libmpfr-dev', - 'gettext', - 'cvs', - 'libedit-dev', - #'texlive-full', - #'doxygen', - #'graphviz', - 'texinfo', - 'lcov', - 'sloccount' - ] + BoostInfo().dependencies('ubuntu-karmic') - elif re.search('hardy', info): - self.log.info('Looks like you are using APT on Ubuntu Hardy') + ] + BoostInfo().dependencies('ubuntu-saucy') + elif re.search('precise', info): + self.log.info('Looks like you are using APT on Ubuntu Precise') packages = [ 'sudo', 'apt-get', 'install', 'build-essential', 'libtool', - 'autoconf', - 'automake', - 'autopoint', + 'cmake', 'zlib1g-dev', 'libbz2-dev', 'python-dev', - 'cvs', - 'gettext', - 'libgmp3-dev', + 'libgmp-dev', 'libmpfr-dev', - 'libedit-dev', - #'texlive-full', - #'doxygen', - #'graphviz', - 'texinfo', - 'lcov', - 'sloccount' - ] + self.boost_info.dependencies('ubuntu-hardy') - elif re.search('oneiric', info): - self.log.info('Looks like you are using APT on Ubuntu Oneiric') - packages = [ - 'sudo', 'apt-get', 'install', - 'build-essential', - 'libtool', - 'autoconf', - 'automake', - 'autopoint', - 'zlib1g-dev', - 'libbz2-dev', - 'python-dev', - 'cvs', 'gettext', - 'libgmp3-dev', - 'libmpfr-dev', 'libedit-dev', - #'texlive-full', - #'doxygen', - #'graphviz', 'texinfo', 'lcov', 'sloccount' - ] + self.boost_info.dependencies('ubuntu-oneiric') + ] + BoostInfo().dependencies('ubuntu-precise') else: self.log.info('I do not recognize your version of Ubuntu!') packages = None |