Ignore:
Timestamp:
Sep 2, 2012, 11:08:18 PM (8 years ago)
Author:
pixilla@…
Message:

databases/mysql55:

  • Move homepage outside of subport.
  • Make var names more consistent across mysql ports.
  • Remove lib dependency on cmake.
  • Add comment about why we deactivate old versions of mysql55-server.
  • Do not set livecheck.version to it's default value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mysql55/Portfile

    r96347 r97294  
    1414license             GPL-2
    1515maintainers         pixilla openmaintainer
     16homepage            http://www.mysql.com/
    1617
    1718if {$subport == $name} {
     
    2122    PortGroup           select 1.0
    2223
    23     set branch          [join [lrange [split ${version} .] 0 1] .]
     24    set version_branch  [join [lrange [split ${version} .] 0 1] .]
    2425
    2526    revision            ${revision_client}
     
    2930                        syntax very similar to mSQL.
    3031
    31     homepage            http://www.mysql.com/
    3232    master_sites \
    33         http://mysql.he.net/Downloads/MySQL-${branch}/ \
    34         http://mirrors.sunsite.dk/mysql/Downloads/MySQL-${branch}/ \
    35         http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${branch}/ \
    36         http://mirror.facebook.net/mysql/Downloads/MySQL-${branch}/ \
    37         http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/ \
    38         http://mysql.mirrors.pair.com/Downloads/MySQL-${branch}/
     33        http://mysql.he.net/Downloads/MySQL-${version_branch}/ \
     34        http://mirrors.sunsite.dk/mysql/Downloads/MySQL-${version_branch}/ \
     35        http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${version_branch}/ \
     36        http://mirror.facebook.net/mysql/Downloads/MySQL-${version_branch}/ \
     37        http://ftp.plusline.de/mysql/Downloads/MySQL-${version_branch}/ \
     38        http://mysql.mirrors.pair.com/Downloads/MySQL-${version_branch}/
    3939
    4040    distname            mysql-${version}
     
    4747                        sha256  51ffafbd82039f8afbe5b3c26f15cc338ed6cd4f67e56d7dd33efaa28c9d99e4
    4848
    49     depends_lib-append  port:zlib \
    50                         port:cmake
     49    depends_lib-append  port:zlib
    5150    depends_run-append  port:mysql_select
    5251
     
    140139
    141140    pre-activate {
     141        # The macports-default.cnf is installed by ${name_mysql}.
     142        # Early versions of ${name_mysql}-server installed macports-default.cnf so for a
     143        # reasonable period we need to deactivate older versions of the ${name_mysql}-server.
    142144        if { [file exists ${prefix}/etc/${name_mysql}/macports-default.cnf]
    143145            && ![catch {set vers [lindex [registry_active ${name_mysql}-server] 0]}]
     
    179181
    180182    livecheck.type          regex
    181     livecheck.version       [lindex [split ${version} -] 0]
    182183    livecheck.url           http://dev.mysql.com/
    183     livecheck.regex         "<a href=\"http://dev.mysql.com/downloads/mysql/\[^\"\]+\">(${branch}(\.\[0-9.\]+)?)\[^<\]*</a>"
     184    livecheck.regex         "<a href=\"http://dev.mysql.com/downloads/mysql/\[^\"\]+\">(${version_branch}(\.\[0-9.\]+)?)\[^<\]*</a>"
    184185}
    185186
Note: See TracChangeset for help on using the changeset viewer.