Ticket #17101: php5-gtk-2.0.1.diff

File php5-gtk-2.0.1.diff, 2.4 KB (added by nox@…, 16 years ago)
  • Portfile

     
     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
     
    34
    45name                php5-gtk
    5 version             2.0.0
     6version             2.0.1
    67categories          x11 lang php www
    78maintainers         anant@kix.in
     
    2223        http://gtk.php.net/distributions/
    2324
    2425checksums \
    25         md5 9e21fdc362655f35aa6c198d612495a0 \
    26         sha1 f9172ce64d85479d341c808b44a6127b164cd1a2
     26    md5 d57ce885f32749320765e01c079e113b \
     27    sha1 a4f42c715b51554c1322de4beb3054012ec58696 \
     28    rmd160 2e305f45d95a2c1abbe8cd551c794823dfc3d919
    2729
    2830depends_lib \
     31    port:glib2 \
    2932        port:gtk2 \
    30         port:php5
     33    port:php5 \
     34    port:libglade2
    3135
    3236configure.args \
    33         --mandir=${prefix}/share/man \
    34         --infodir=${prefix}/share/info \
    35         --with-php-config=${prefix}/bin/php-config \
    36         --without-libglade
     37    --disable-glibtest \
     38    --disable-gtktest
    3739
    3840variant extra {
    3941        depends_lib-append \
     
    4951                --with-html
    5052}
    5153
    52 variant libglade {
    53         depends_lib-append \
    54                 port:libglade2
    55         configure.args-delete \
    56                 --without-libglade
    57 }
    58 
    5954variant libsexy {
    6055        depends_lib-append \
    6156                port:libsexy
     
    7772                --with-spell
    7873}
    7974
     75configure.args  --enable-scintilla
     76
    8077pre-configure {
    81         cd ${worksrcpath}
    82         system "./buildconf --with-phpize=${prefix}/bin/phpize"
     78        system "cd ${worksrcpath} && ./buildconf"
    8379}
    8480
     81use_parallel_build  yes
     82
     83destroot.destdir    INSTALL_ROOT=${destroot}
     84
    8585post-destroot {
    86         cd ${worksrcpath}
    87         xinstall -d ${destroot}${prefix}/share/doc/${name}
    88         xinstall -m 644 README ${destroot}${prefix}/share/doc/${name}
    89         xinstall -m 644 README.KNOWN-ISSUES ${destroot}${prefix}/share/doc/${name}
    90         xinstall -m 644 NEWS ${destroot}${prefix}/share/doc/${name}
    91         xinstall -m 644 AUTHORS ${destroot}${prefix}/share/doc/${name}
     86        set docdir ${prefix}/share/doc/${distname}
     87        xinstall -d ${destroot}${docdir}
     88
     89        xinstall -m 644 -W ${worksrcpath} \
     90                README README.KNOWN-ISSUES NEWS AUTHORS \
     91                ${destroot}${docdir}
    9292}
    9393
    9494post-install {
    9595        ui_msg "\nIf this is your first install, you might want to enable PHP-GTK in the"
    9696        ui_msg "ini file. Append the line: extension=php_gtk2.so to ${prefix}/etc/php.ini\n"
    9797}
    98