Ticket #15134: Portfile.diff

File Portfile.diff, 2.4 KB (added by akira@…, 17 years ago)
  • mysql5-devel/Portfile

     
    55name                    mysql5-devel
    66set vers                5.1.24
    77version                 ${vers}-rc
     8revision                1
    89set branch              [join [lrange [split ${version} .] 0 1] .]
    910homepage                http://www.mysql.com/
    1011categories              databases
     
    2728    http://mysql.oss.eznetsols.org/Downloads/MySQL-${branch}/ \
    2829    http://mirrors.sunsite.dk/mysql/Downloads/MySQL-${branch}/ \
    2930    http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${branch}/ \
    30     http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/
     31    http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/ \
     32    http://www.innodb.com/download/innodb_plugin/:plugin
    3133
     34set plugin_distname     innodb_plugin-1.0.0-5.1
     35set plugin_distfile     ${plugin_distname}.tar.gz
     36set plugin_worksrcdir   ${plugin_distname}
     37set plugin_worksrcpath  ${workpath}/${plugin_worksrcdir}
     38set innobase_dir        storage/innobase
     39
    3240checksums \
    33     md5 5f75d7593af35be125fa3fc21509337a \
    34     sha1 5ce208da7832549a99ab07a1377ce2329fc74602 \
    35     rmd160 4ec3c8623e13c9b79635f64cf088ca8a16b50ea8
     41    [suffix ${distname}] \
     42        md5 5f75d7593af35be125fa3fc21509337a \
     43        sha1 5ce208da7832549a99ab07a1377ce2329fc74602 \
     44        rmd160 4ec3c8623e13c9b79635f64cf088ca8a16b50ea8 \
     45    [suffix ${plugin_distname}] \
     46        md5 1082a4a0e5a10943922f8e371caf6808 \
     47        sha1 055db3501de4e687370947cdcb431b1659a7cec0 \
     48        rmd160 33cd6c724b24ab63204ccbec29c2e69b1b3ed028
    3649
    3750depends_lib \
    3851    port:zlib \
     
    89102    startupitem.stop    "${prefix}/share/${mysql}/mysql/mysql.server stop"
    90103}
    91104
     105variant innodb_plugin description {Install the innodb plugin} {
     106    distfiles-append        ${plugin_distfile}:plugin
     107
     108    post-extract {
     109        delete ${worksrcpath}/${innobase_dir}
     110        xinstall -m 755 -d ${worksrcpath}/[file dirname ${innobase_dir}]
     111        move ${plugin_worksrcpath} ${worksrcpath}/${innobase_dir}
     112        # Bug #36222 (http://bugs.mysql.com/bug.php?id=36222)
     113        reinplace "s;@MKDIR_P@;@mkdir_p@;" ${worksrcpath}/${innobase_dir}/Makefile.in
     114    }
     115}
     116
    92117# the directories ${prefix}/sql-bench ${prefix}/mysql-test
    93118destroot.violate_mtree  yes
    94119