Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (19 sloc) 1.003 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
from gub import loggedos
from gub import target

class Libpcre (target.AutoBuild):
    source = 'http://surfnet.dl.sourceforge.net/sourceforge/prce/pcre-7.8.tar.bz2'
    def name (self):
        return 'libpcre'

class Libpcre__mingw (Libpcre):
    def configure (self):
        Libpcre.configure (self)
        # c&p from libxslt
        def fix_allow_undefined (logger, file):
            loggedos.file_sub (logger,
                               [
                    # libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries
                    ('^(allow_undefined_flag=.*)unsupported', '\\1'),
                    # libtool: install: error: cannot install `libexslt.la' to a directory not ending in /home/janneke/vc/gub/target/mingw/build/libxslt-1.1.24/libexslt/.libs
                    (r'if test "\$inst_prefix_dir" = "\$destdir";', 'if false;'),],
                               file)
        self.map_locate (fix_allow_undefined, '%(builddir)s', 'libtool')
Something went wrong with that request. Please try again.