Ejemplo n.º 1
0
def setup():

    perlmodules.configure('BUILD_SPAMC="yes" \
                           ENABLE_SSL="yes" \
                           CONTACT_ADDRESS="root@localhost" \
                           SYSCONFDIR=/etc \
                           DATADIR=/usr/share/spamassassin')
Ejemplo n.º 2
0
def build():
    shelltools.cd("pidl")
    perlmodules.configure()
    autotools.make()

    shelltools.cd("../source4/")
    autotools.make()
Ejemplo n.º 3
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("lib")
    perlmodules.configure()
    perlmodules.make()
    perlmodules.install()
Ejemplo n.º 4
0
def setup():
    pisitools.cflags.add("-fpic")
    shelltools.system("sed -i -e 's:^Apache-\(Reload\|SizeLimit\|Test\).*::' lib/Bundle/Apache2.pm") 
    perlmodules.configure("MP_APR_CONFIG=/usr/bin/apr-1-config MP_APU_CONFIG=/usr/bin/apu-1-config MP_USE_DSO=1 \
                           MP_APXS=/usr/bin/apxs")

    #pisitools.dosed("WrapXS/Apache2/Connection/Connection.xs", "remote_addr;", "remote_ip;")
    shelltools.system("sed -i -e 's:^Apache-\(Reload\|SizeLimit\|Test\).*::' lib/Bundle/Apache2.pm") 
Ejemplo n.º 5
0
def setup():
    #Skip broken PNG/GIF tests in make check
    #http://www.mail-archive.com/[email protected]/msg63124.html

    shelltools.move("t/png.t", "t/png.t.broken")
    shelltools.move("t/gif.t", "t/gif.t.broken")

    perlmodules.configure()
Ejemplo n.º 6
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("lib")
    perlmodules.configure()
    perlmodules.make()
    perlmodules.install()
    shelltools.cd("..")

    pisitools.dodoc("ChangeLog", "COPYING", "README", "TODO", "USAGE")
Ejemplo n.º 7
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("lib")
    perlmodules.configure()
    perlmodules.make()
    perlmodules.install()

    # Clean .packlists
    pisitools.removeDir("/usr/lib/perl5/%s" % get.curPERL())
    pisitools.removeDir("/usr/lib/perl5/vendor_perl/%s/%s-linux-thread-multi" % (get.curPERL(), get.ARCH()))

    shelltools.cd("..")
    pisitools.dodoc("ChangeLog", "COPYING", "README", "TODO", "USAGE")
Ejemplo n.º 8
0
def setup():
    perlmodules.configure("--skipdeps")
Ejemplo n.º 9
0
def setup():
    perlmodules.configure("MP_APR_CONFIG=/usr/bin/apr-1-config \
                           MP_APXS=/usr/sbin/apxs")
Ejemplo n.º 10
0
def setup():
    pisitools.dosed("Makefile.PL", "^use diagnostics.*$")
    perlmodules.configure()
Ejemplo n.º 11
0
def setup():
    perlmodules.configure("MP_TRACE=1 \
                           MP_DEBUG=1 \
                           MP_USE_DSO=1 \
                           MP_APXS=/usr/sbin/apxs")
Ejemplo n.º 12
0
def setup():
    perlmodules.configure("X11INC=/usr/include/X11/ X11LIB=/usr/lib/X11/ ")
Ejemplo n.º 13
0
def setup():
    perlmodules.configure("-- /usr/include/openssl/")
Ejemplo n.º 14
0
def setup():
    perlmodules.configure()

    pisitools.dosed("Makefile", " -shared ", " -shared %s -lperl " % get.LDFLAGS())
Ejemplo n.º 15
0
def setup():
    perlmodules.configure()
    shelltools.chmod("examples/*", 0644)
Ejemplo n.º 16
0
def setup():
    pisitools.dosed("bin/gscan2pdf", "<http://www.gnu.org/licenses/>",
                    "http://www.gnu.org/licenses/")
    perlmodules.configure()
Ejemplo n.º 17
0
def setup():
    perlmodules.configure("/usr")
Ejemplo n.º 18
0
def setup():
    shelltools.system(
        "sed -i -e 's/use inc::Module::Install;/use lib q[.]; use inc::Module::Install;/' Makefile.PL || die"
    )

    perlmodules.configure()
Ejemplo n.º 19
0
def setup():
    pisitools.dosed("ogr/ogrsf_frmts/sqlite/ogr_sqlite.h",
                    "spatialite/sqlite3.h", "sqlite3.h")
    libtools.libtoolize()
    autotools.autoreconf("-vfi")
    autotools.aclocal()
    pisitools.cflags.add("-fno-strict-aliasing")
    pisitools.dosed("configure",
                    "-L\$with_cfitsio -L\$with_cfitsio/lib -lcfitsio",
                    "-lcfitsio")
    pisitools.dosed("configure", "-I\$with_cfitsio -I\$with_cfitsio/include",
                    "-I\$with_cfitsio/include/cfitsio")
    pisitools.dosed("configure",
                    "-lnetcdf -L\$with_netcdf -L\$with_netcdf/lib \$LIBS",
                    "-lnetcdf $LIBS")
    pisitools.dosed("configure", "-L\$DODS_LIB -ldap\+\+", "-ldap++")
    pisitools.dosed("configure", "-L\$with_ogdi -L\$with_ogdi/lib -logdi",
                    "-logdi")
    pisitools.dosed("configure", "-L\$with_jpeg -L\$with_jpeg/lib -ljpeg",
                    "-ljpeg")
    pisitools.dosed("configure", "-L\$with_libtiff\/lib -ltiff", "-ltiff")
    pisitools.dosed("configure", "-lgeotiff -L\$with_geotiff \$LIBS",
                    "-lgeotiff $LIBS")
    pisitools.dosed("configure", "-L\$with_geotiff\/lib -lgeotiff \$LIBS",
                    "-lgeotiff $LIBS")
    pisitools.dosed("ogr/ogrct.cpp", "libproj.so", "libproj.so.0")
    autotools.configure("--disable-static \
                         --enable-shared \
                         --datadir=/usr/share/gdal \
                         --with-ogdi \
                         --with-threads \
                         --with-jasper \
                         --with-odbc=/usr/lib/unixODBC \
                         --with-expat \
                         --with-cfitsio \
                         --with-hdf5 \
                         --with-netcdf \
                         --with-png \
                         --with-geos \
                         --without-mysql \
                         --with-curl \
                         --with-perl \
                         --with-jpeg \
                         --with-jpeg12=no \
                         --with-libtiff \
                         --with-sqlite3 \
                         --with-geotiff=external \
                         --with-podofo \
                         --with-spatialite \
                         --with-ogr \
                         --with-grib \
                         --with-curl \
                         --with-webp \
                         --without-poppler \
                         --with-xerces \
                         --without-openjpeg \
                         --without-libtool \
                         --without-hdf4 \
                         --without-fme \
                         --without-pcraster \
                         --without-kakadu \
                         --without-mrsid \
                         --without-jp2mrsid \
                         --without-msg \
                         --without-bsb \
                         --without-dods-root \
                         --without-oci \
                         --without-ingres \
                         --without-spatialite \
                         --without-dwgdirect \
                         --without-epsilon \
                         --without-idb \
                         --without-sde \
                         --without-ruby")
    shelltools.cd("swig/perl")
    perlmodules.configure()
    pisitools.dosed("Makefile_*", " -shared ", " -Wl,--as-needed -shared ")
Ejemplo n.º 20
0
def setup():
    # suppress compiler warnings
    pisitools.dosed("Makefile.PL", "-Wno-comment",
                    "-Wno-comment -Wno-cast-function-type")
    perlmodules.configure()
Ejemplo n.º 21
0
def setup():
    perlmodules.configure()

    for i in ["predump", "prenav", "preslurp"]:
        pisitools.dosed("eg/%s" % i, "usr/local/bin/perl", "usr/bin/perl")
Ejemplo n.º 22
0
def setup():
    perlmodules.configure("/usr BUILD_SPAMC=\"yes\" ENABLE_SSL=\"yes\" CONTACT_ADDRESS=\"root@localhost\"")
Ejemplo n.º 23
0
def setup():
    perlmodules.configure("/usr")
Ejemplo n.º 24
0
def setup():
    #shelltools.system("rm sqlite3.*")
    perlmodules.configure("USE_LOCAL_SQLITE=0")
Ejemplo n.º 25
0
def setup():
    perlmodules.configure("--default")
Ejemplo n.º 26
0
def setup():
    for d in ("README.TXT", "TODO", "Changes"):
        shelltools.chmod(d, 0644)

    perlmodules.configure()
Ejemplo n.º 27
0
def setup():
    perlmodules.configure()

    pisitools.dosed("Makefile", " -shared ", " -lperl -Wl,--as-needed -shared ")
Ejemplo n.º 28
0
def setup():
    pisitools.dosed("Makefile.PL", "^use diagnostics.*$")
    perlmodules.configure()
Ejemplo n.º 29
0
def setup():
    perlmodules.configure()

    for i in ["predump", "prenav","preslurp"]:
        pisitools.dosed("eg/%s" % i, "usr/local/bin/perl", "usr/bin/perl")
Ejemplo n.º 30
0
def setup():
    perlmodules.configure("--skipdeps")
Ejemplo n.º 31
0
def setup():
    pisitools.dosed(
        "Makefile.PL", "-Wall",
        "-Wall -Wno-cpp -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-discarded-qualifiers"
    )
    perlmodules.configure()
Ejemplo n.º 32
0
def setup():
    perlmodules.configure("-- /usr/include/openssl/")
Ejemplo n.º 33
0
def setup():
    perlmodules.configure()
    shelltools.system("rm -rf perl-modules")
Ejemplo n.º 34
0
def setup():
    shelltools.system("sed -i -e 's/use inc::Module::Install;/use lib q[.]; use inc::Module::Install;/' Makefile.PL || die")
    
    perlmodules.configure()
Ejemplo n.º 35
0
def setup():
    perlmodules.configure("/usr BUILD_SPAMC=\"yes\" ENABLE_SSL=\"yes\" CONTACT_ADDRESS=\"root@localhost\"")
Ejemplo n.º 36
0
def setup():
    perlmodules.configure('BUILD_SPAMC="yes" \
                           ENABLE_SSL="yes" \
                           CONTACT_ADDRESS="root@localhost" \
                           SYSCONFDIR=/etc \
                           DATADIR=/usr/share/spamassassin')
Ejemplo n.º 37
0
def setup():
    perlmodules.configure("--default")
Ejemplo n.º 38
0
def setup():
    perlmodules.configure()
    # In order to prune unused direct dependencies.
    pisitools.dosed("Makefile", "^OTHERLDFLAGS.*$",
                    "OTHERLDFLAGS = %s" % get.LDFLAGS())
Ejemplo n.º 39
0
def setup():
    perlmodules.configure()
    pisitools.dosed("Makefile", "^OTHERLDFLAGS.*$",
                    "OTHERLDFLAGS = %s" % get.LDFLAGS())
Ejemplo n.º 40
0
def setup():
    perlmodules.configure()
    shelltools.cd("spamc")
    shelltools.system("./configure.pl && ./configure --enable-ssl=yes")
Ejemplo n.º 41
0
def setup():
    perlmodules.configure('/usr BUILD_SPAMC="yes" ENABLE_SSL="yes" CONTACT_ADDRESS="root@localhost"')
Ejemplo n.º 42
0
def setup():
    perlmodules.configure()
Ejemplo n.º 43
0
def setup():
    for d in ("COPYING", "README.TXT", "TODO", "Changes"):
        shelltools.chmod(d, 0644)

    perlmodules.configure()
Ejemplo n.º 44
0
def setup():
    pisitools.dosed("Makefile.PL", "-Wall", "-Wall -Wno-cpp -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-discarded-qualifiers")
    perlmodules.configure()
Ejemplo n.º 45
0
def setup():
    perlmodules.configure()

    # In order to prune unused direct dependencies.
    pisitools.dosed("Makefile", "^OTHERLDFLAGS.*$", "OTHERLDFLAGS = %s" % get.LDFLAGS())
Ejemplo n.º 46
0
def setup():
    pisitools.dosed("bin/gscan2pdf", "<http://www.gnu.org/licenses/>", "http://www.gnu.org/licenses/")
    perlmodules.configure()
Ejemplo n.º 47
0
def setup():
    perlmodules.configure()
    pisitools.dosed("Makefile", "^OTHERLDFLAGS.*$", "OTHERLDFLAGS = %s" % get.LDFLAGS())
Ejemplo n.º 48
0
def setup():
    pisitools.dosed("ogr/ogrsf_frmts/sqlite/ogr_sqlite.h", "spatialite/sqlite3.h", "sqlite3.h")
    libtools.libtoolize()
    autotools.autoreconf("-vfi")
    autotools.aclocal()
    pisitools.cflags.add("-fno-strict-aliasing")
    pisitools.dosed("configure", "-L\$with_cfitsio -L\$with_cfitsio/lib -lcfitsio", "-lcfitsio")
    pisitools.dosed("configure", "-I\$with_cfitsio -I\$with_cfitsio/include", "-I\$with_cfitsio/include/cfitsio")
    pisitools.dosed("configure", "-lnetcdf -L\$with_netcdf -L\$with_netcdf/lib \$LIBS", "-lnetcdf $LIBS")
    pisitools.dosed("configure", "-L\$DODS_LIB -ldap\+\+", "-ldap++")
    pisitools.dosed("configure", "-L\$with_ogdi -L\$with_ogdi/lib -logdi", "-logdi")
    pisitools.dosed("configure", "-L\$with_jpeg -L\$with_jpeg/lib -ljpeg", "-ljpeg")
    pisitools.dosed("configure", "-L\$with_libtiff\/lib -ltiff", "-ltiff")
    pisitools.dosed("configure", "-lgeotiff -L\$with_geotiff \$LIBS", "-lgeotiff $LIBS")
    pisitools.dosed("configure", "-L\$with_geotiff\/lib -lgeotiff \$LIBS", "-lgeotiff $LIBS")
    pisitools.dosed("ogr/ogrct.cpp", "libproj.so", "libproj.so.0")
    autotools.configure("--disable-static \
                         --enable-shared \
                         --datadir=/usr/share/gdal \
                         --with-ogdi \
                         --with-threads \
                         --with-jasper \
                         --with-odbc=/usr/lib/unixODBC \
                         --with-expat \
                         --with-cfitsio \
                         --with-hdf5 \
                         --with-netcdf \
                         --with-png \
                         --with-geos \
                         --without-mysql \
                         --with-curl \
                         --with-perl \
                         --with-jpeg \
                         --with-jpeg12=no \
                         --with-libtiff \
                         --with-sqlite3 \
                         --with-geotiff=external \
                         --with-podofo \
                         --with-spatialite \
                         --with-ogr \
                         --with-grib \
                         --with-curl \
                         --with-webp \
                         --with-python \
                         --without-poppler \
                         --with-xerces \
                         --without-openjpeg \
                         --without-libtool \
                         --without-hdf4 \
                         --without-fme \
                         --without-pcraster \
                         --without-kakadu \
                         --without-mrsid \
                         --without-jp2mrsid \
                         --without-msg \
                         --without-bsb \
                         --without-dods-root \
                         --without-oci \
                         --without-ingres \
                         --without-spatialite \
                         --without-dwgdirect \
                         --without-epsilon \
                         --without-idb \
                         --without-sde \
                         --without-ruby")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

    shelltools.cd("swig/perl")
    perlmodules.configure()
    pisitools.dosed("Makefile_*"," -shared ", " -Wl,--as-needed -shared ")
Ejemplo n.º 49
0
def setup():
    perlmodules.configure()
Ejemplo n.º 50
0
def setup():
    perlmodules.configure("X11INC=/usr/include/X11/ X11LIB=/usr/lib/X11/ ")