Changeset 87967


Ignore:
Timestamp:
Dec 14, 2011, 7:40:56 PM (8 years ago)
Author:
pixilla@…
Message:

databases/percona:

  • Remove "rel" from version.
  • Use install_name_tool to fix libmysqlclient.18.dylib ID.
  • Fix livecheck.
File:
1 edited

Legend:

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

    r87900 r87967  
    88name                    percona
    99conflicts               mysql4 mysql5 mysql5-devel mariadb
    10 version                 5.5.17-rel22.1
    11 set branch              [regsub rel $version ""]
     10set version_mysql       5.5.17
     11set major               [join [lrange [split ${version_mysql} .] 0 0] .]
     12set branch              [join [lrange [split ${version_mysql} .] 0 1] .]
     13set release             22.1
     14version                 ${version_mysql}-${release}
    1215homepage                http://www.percona.com/
    1316categories              databases
     
    1518maintainers             mac.com:quest openmaintainer
    1619license                 GPL-2
    17 distname                Percona-Server-${version}
     20distname                Percona-Server-${version_mysql}-rel${release}
    1821dist_subdir             mysql5
    1922use_parallel_build      yes
     
    2730
    2831master_sites \
    29     http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-${branch}/source/
     32    http://www.percona.com/redir/downloads/Percona-Server-${branch}/Percona-Server-${version}/source/
    3033
    3134checksums md5     77e2ff68ff3ffa60a48a1ee045056f15 \
     
    8588                            -DENABLE_DTRACE:BOOL=OFF
    8689
    87 # verbose configure output -- remove meconfigure.args-append       -LAH
    88 
    8990# Set compiler
    9091configure.compiler apple-gcc-4.2
     
    105106
    106107post-destroot {
    107     # Delete directories we don't want    delete ${destroot}${prefix}/data ${destroot}${prefix}/mysql-test ${destroot}${prefix}/sql-bench
    108 
     108    # Delete directories we don't want
     109    delete ${destroot}${prefix}/data ${destroot}${prefix}/mysql-test ${destroot}${prefix}/sql-bench
     110    # Fix link lib paths
     111    foreach libname [glob -type f -tails -directory ${destroot}${libdir}/mysql *.dylib] {
     112        if {[file type ${destroot}${libdir}/mysql/${libname}] == "file"} {
     113            system "install_name_tool -id ${libdir}/mysql/${libname} ${destroot}${libdir}/mysql/${libname}"
     114        }
     115    }
    109116    # Fix paths in manpages and sample configuration files
    110117    foreach manpage [glob -type f ${destroot}${prefix}/share/man/man\[1-9\]/*] {
     
    126133    }
    127134}
     135
     136livecheck.type          regex
     137livecheck.url           http://www.percona.com/downloads/Percona-Server-${branch}/
     138livecheck.version       ${release}
     139livecheck.regex         "/Percona-Server-${version_mysql}-(\[^/\]+)/"
Note: See TracChangeset for help on using the changeset viewer.