diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-20 21:33:23 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-20 21:33:23 -0500 |
commit | 117dddabd4f883de4f464821f9567d889a6fa449 (patch) | |
tree | 602c8c5e72b81ffc9bcf01bbaed5e2875d0e60a0 /acprep | |
parent | cc9110a43a1e2d006de8d24a84bbfb2c6918cf33 (diff) | |
parent | 4e6ec09e4d2a69dcb06627e44512980b09561448 (diff) | |
download | fork-ledger-117dddabd4f883de4f464821f9567d889a6fa449.tar.gz fork-ledger-117dddabd4f883de4f464821f9567d889a6fa449.tar.bz2 fork-ledger-117dddabd4f883de4f464821f9567d889a6fa449.zip |
Merge branch 'next'
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 111 |
1 files changed, 85 insertions, 26 deletions
@@ -183,7 +183,7 @@ class PrepareBuild(CommandLineApp): self.current_flavor = 'debug' self.products_dir = None self.build_dir = self.source_dir - self.configure_args = ['--with-included-gettext'] + self.configure_args = ['--with-included-gettext', '--enable-python'] self.sys_include_dirs = [] self.sys_library_dirs = [] @@ -551,14 +551,27 @@ class PrepareBuild(CommandLineApp): self.log.info('Looks like you are using MacPorts on OS X') packages = [ 'sudo', 'port', 'install', '-f', - 'automake', 'autoconf', 'libtool', 'python26', - 'libiconv', '+universal', 'zlib', '+universal', - 'gmp' ,'+universal', 'mpfr', '+universal', - 'ncurses', '+universal', 'ncursesw', '+universal', - 'gettext' ,'+universal', 'libedit' ,'+universal', - 'boost-jam', 'boost', '+st+python26+icu', 'cppunit', - 'texlive', 'doxygen', 'graphviz', 'texinfo', - 'lcov', 'sloccount' + 'automake', + 'autoconf', + 'libtool', + 'python26', + 'libiconv', '+universal', + 'zlib', '+universal', + 'gmp' ,'+universal', + 'mpfr', '+universal', + 'ncurses', '+universal', + 'ncursesw', '+universal', + 'gettext' ,'+universal', + 'libedit' ,'+universal', + 'boost-jam', + 'boost', '+st+python26+icu', + 'cppunit', + #'texlive', + #'doxygen', + #'graphviz', + 'texinfo', + 'lcov', + 'sloccount' ] self.log.info('Executing: ' + string.join(packages, ' ')) self.execute(*packages) @@ -570,23 +583,69 @@ class PrepareBuild(CommandLineApp): if exists('/etc/issue'): issue = open('/etc/issue') if issue.readline().startswith('Ubuntu'): - self.log.info('Looks like you are using APT on Ubuntu') - packages = [ - 'sudo', 'apt-get', 'install', - 'build-essential', - 'libtool', 'autoconf', 'automake', - 'zlib1g-dev', 'libbz2-dev', 'python-dev', - 'libboost1.35-dev', - 'libboost-python1.35-dev', - 'libboost-regex1.35-dev', - 'libboost-date-time1.35-dev', - 'libboost-filesystem1.35-dev' - 'libgmp3-dev', 'libmpfr-dev', 'gettext', - 'libedit-dev', 'libcppunit-dev', - #'texlive-full', - #'doxygen', 'graphviz', 'texinfo', - 'lcov', 'sloccount' - ] + release = open('/etc/lsb-release') + info = release.read() + release.close() + if 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', + 'bjam', + 'gettext', + 'cvs', + 'libboost1.40-dev', + 'libboost-regex1.40-dev', + 'libboost-date-time1.40-dev', + 'libboost-filesystem1.40-dev' + 'libboost-python1.40-dev', + 'libedit-dev', + 'libcppunit-dev', + #'texlive-full', + #'doxygen', + #'graphviz', + 'texinfo', + 'lcov', + 'sloccount' + ] + else: + self.log.info('Looks like you are using APT on Ubuntu Hardy') + packages = [ + 'sudo', 'apt-get', 'install', + 'build-essential', + 'libtool', + 'autoconf', + 'automake', + 'zlib1g-dev', + 'libbz2-dev', + 'python-dev', + 'bjam', + 'cvs', + 'gettext', + 'libgmp3-dev', + 'libmpfr-dev', + 'libboost1.35-dev', + 'libboost-python1.35-dev', + 'libboost-regex1.35-dev', + 'libboost-date-time1.35-dev', + 'libboost-filesystem1.35-dev' + 'libedit-dev', + 'libcppunit-dev', + #'texlive-full', + #'doxygen', + #'graphviz', + 'texinfo', + 'lcov', + 'sloccount' + ] self.log.info('Executing: ' + string.join(packages, ' ')) self.execute(*packages) |