Ticket #14796: Portfile-pike.diff

File Portfile-pike.diff, 5.0 KB (added by exodusd@…, 16 years ago)

fixed the master_sites again

  • Portfile

    old new  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem 1.0
    45name             pike
    5 version          7.6.24
     6version          7.6.112
    67categories       lang
    7 maintainers      nomaintainer
     8maintainers      gmx.de:exodusd openmaintainer
    89description      dynamic programming language
    910long_description \
    10         Pike is a dynamic programming language with a syntax \
    11         similar to Java and C. It is simple to learn, does \
    12         not require long compilation passes and has powerful \
    13         built-in data types allowing simple and really fast \
    14         data manipulation.
     11            Pike is a dynamic programming language with a syntax \
     12        similar to Java and C. It is simple to learn, does \
     13            not require long compilation passes and has powerful \
     14            built-in data types allowing simple and really fast \
     15            data manipulation.
    1516homepage         http://pike.ida.liu.se/
    1617platforms        darwin
    1718
    1819master_sites     ${homepage}pub/pike/all/${version}/
    1920distname         Pike-v${version}
    20 checksums        md5 4e39c43a00c6566a9638ef48499bbc82
    21 
    22 use_configure    no
    23 
    24 build.args       CONFIGUREARGS="--prefix=${prefix}"
    25 build.target
     21checksums        md5 3ba03096741d6df839d32a940f4a865c \
     22                 sha1 211050346d8efc01068e8ea7443f4743116a51be \
     23                 rmd160 8983d5bc150beabd1796ff8f05df43e5cf36f467
     24
     25patchfiles       patch-Request.pike
     26
     27depends_lib      port:zlib port:gmp port:nettle
     28depends_build    port:zlib port:gmp port:nettle
     29#default_variants +image +pcre
     30
     31variant newstyle description {New directory layout for Pike, where everything \
     32                              is installed in (prefix)/pike/(pike-version)} {
     33    destroot.violate_mtree yes
     34}
     35
     36variant image description {Images (JPEG, PNG, GIF, TIFF) support for Pike} {
     37    configure.args-append --with-jpeglib --with-gif --with-tifflib
     38    depends_lib-append port:jpeg port:tiff port:libpng port:libungif
     39    depends_build-append port:jpeg port:tiff port:libpng port:libungif
     40}
     41
     42variant ttf description {TrueType (TTF) support (using FreeType) for Pike} {
     43    configure.args-append --with-freetype
     44    depends_lib-append port:freetype
     45    depends_build-append port:freetype
     46}
     47
     48variant pcre description {Regular expression support (using PCRE) for Pike} {
     49    configure.args-append --with-libpcre
     50    depends_lib-append port:pcre
     51    depends_build-append port:pcre
     52}
     53
     54variant mysql description {MySQL database support for Pike} {
     55    configure.args-append --with-mysql
     56    depends_lib-append lib:libmysqlclient:mysql5
     57    depends_build-append lib:libmysqlclient:mysql5-devel
     58}
     59
     60variant doc description {Pike documentation} {
     61    build.target-append doc
     62}
     63
     64configure.args --mandir=${prefix}/share/man \
     65    --with-include-path=${prefix}/include \
     66    --with-lib-path=${prefix}/lib \
     67    --with-zlib
     68
     69configure {
     70    # setup the build.args here, because then the configure.args from the
     71    # variants will have been assembled:
     72    if {[variant_isset newstyle]} {
     73        build.args CONFIGUREARGS="--prefix=${prefix} ${configure.args}" \
     74            INSTALLARGS="--new-style"
     75        destroot.destdir buildroot=${destroot} INSTALLARGS="--new-style"
     76    } else {
     77        build.args CONFIGUREARGS="--prefix=${prefix} ${configure.args}" \
     78            INSTALLARGS="--traditional"
     79        destroot.destdir buildroot=${destroot} INSTALLARGS="--traditional"
     80    }
     81}
    2682
    2783test.run         yes
    2884test.target      verify
    2985
    3086destroot.target  install_nodoc
    31 destroot.destdir buildroot=${destroot}
     87
     88post-destroot {
     89    if {[variant_isset newstyle]} {
     90        # new style directory layout: all in ${prefix}/pike/${version}/
     91        delete file ${destroot}${prefix}/pike/${version}/doc/src
     92        xinstall -d ${destroot}${prefix}/pike/${version}/doc
     93        xinstall -W ${worksrcpath} README COPYING COPYRIGHT ANNOUNCE \
     94            COMMITTERS ${destroot}${prefix}/pike/${version}/doc/
     95        if {[variant_isset doc]} {
     96            move ${worksrcpath}/refdoc/modref \
     97                ${destroot}${prefix}/pike/${version}/doc/
     98            move ${worksrcpath}/refdoc/traditional_manual \
     99                ${destroot}${prefix}/pike/${version}/doc/
     100        }
     101    } else {
     102        # traditional, MacPorts tree compliant directory layout
     103        delete file ${destroot}${prefix}/bin/pike.syms
     104        move ${destroot}${prefix}/man/man1/pike.1 \
     105            ${destroot}${prefix}/share/man/man1/
     106        xinstall -d ${destroot}${prefix}/share/doc/pike-${version}
     107        xinstall -W ${worksrcpath} README COPYING COPYRIGHT ANNOUNCE \
     108            COMMITTERS ${destroot}${prefix}/share/doc/pike-${version}
     109        if {[variant_isset doc]} {
     110            move ${worksrcpath}/refdoc/modref \
     111                ${destroot}${prefix}/share/doc/pike-${version}
     112            move ${worksrcpath}/refdoc/traditional_manual \
     113                ${destroot}${prefix}/share/doc/pike-${version}
     114        }
     115    }
     116}