Changeset 106256


Ignore:
Timestamp:
May 20, 2013, 5:52:58 PM (7 years ago)
Author:
pixilla@…
Message:

databases/mysql5-devel:

  • Mark port as replaced_by using PortGroup obsolete. (Private permission from maintainer)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mysql5-devel/Portfile

    r100168 r106256  
    22# $Id$
    33
    4 PortSystem              1.0
    5 PortGroup               archcheck 1.0
     4PortSystem          1.0
    65
    7 # http://bugs.mysql.com/bug.php?id=47360
    8 PortGroup               muniversal 1.0
     6replaced_by         mysql55
     7PortGroup           obsolete 1.0
    98
    10 name                    mysql5-devel
    11 conflicts               mysql5 mysql4
    12 version                 5.5.2-m2
    13 revision        2
    14 set branch              [join [lrange [split ${version} .] 0 1] .]
    15 homepage                http://www.mysql.com/
    16 categories              databases
    17 platforms               darwin
    18 maintainers             ryandesign
    19 license                 GPL-2
    20 distname                mysql-${version}
    21 dist_subdir             mysql5
    22 use_parallel_build      yes
    23 
    24 description \
    25     Multithreaded SQL database server
    26 
    27 long_description \
    28     MySQL is an open-source, multi-threaded SQL database \
    29     with a command syntax very similar to mSQL.
    30 
    31 master_sites \
    32     http://mysql.mirrors.pair.com/Downloads/MySQL-${branch}/ \
    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 
    39 checksums               md5     cd3254f29561953ffb7c023cb1b825d2 \
    40                         sha1    801b6c9d3cdad2e5e273d3b4c8fe7e68cd1bab3c \
    41                         rmd160  0549f599de5ba9efc26ab45dfcddca135a70d631
    42 
    43 depends_lib \
    44     port:zlib \
    45     port:openssl \
    46     port:tcp_wrappers
    47 
    48 archcheck.files         lib/libz.dylib \
    49                         lib/libssl.dylib \
    50                         lib/libwrap.dylib
    51 
    52 set major_version       [strsed ${version} {s/\..*$//}]
    53 set mysql               mysql${major_version}
    54 set libdir              ${prefix}/lib/${mysql}
    55 set bindir              ${libdir}/bin
    56 set dbdir               ${prefix}/var/db/${mysql}
    57 set sysconfdir          ${prefix}/etc/${mysql}
    58 
    59 if {"darwin" == ${os.platform} && ${os.major} > 8} {
    60     set mysqluser       _mysql
    61 } else {
    62     set mysqluser       mysql
    63 }
    64 
    65 patchfiles \
    66     patch-Makefile.in.diff \
    67     patch-mysql_secure_installation.sh.diff
    68 
    69 post-patch {
    70     reinplace s%@BINDIR@%${bindir}%g ${worksrcpath}/scripts/mysql_secure_installation.sh
    71 }
    72 
    73 configure.args \
    74     --mandir=${prefix}/share/man \
    75     --infodir=${prefix}/share/info \
    76     --localstatedir=${dbdir} \
    77     --libdir=${libdir} \
    78     --bindir=${bindir} \
    79     --includedir=${prefix}/include/${mysql} \
    80     --datadir=${prefix}/share/${mysql} \
    81     --sysconfdir=${sysconfdir} \
    82     --with-zlib-dir=${prefix} \
    83     --with-ssl=${prefix} \
    84     --with-extra-charsets=complex \
    85     --with-unix-socket-path=${prefix}/var/run/${mysql}/mysqld.sock \
    86     --with-mysqld-user=${mysqluser} \
    87     --without-docs \
    88     --with-plugins=all \
    89     --enable-thread-safe-client
    90 # the following is in store for future
    91 #    --program-suffix=5
    92 
    93 # Add readline support.
    94 # "--without-readline" has the peculiar meaning "do not use the bundled copy
    95 # of readline but use the system's (i.e. MacPorts') copy of readline"
    96 depends_lib-append      port:readline
    97 archcheck.files-append  lib/libreadline.dylib
    98 configure.args-append   --without-readline
    99 
    100 # Build libmysqld embedded server.
    101 configure.cflags-append -fPIC
    102 configure.cxxflags-append -fPIC
    103 configure.args-append --with-embedded-server --with-pic
    104 
    105 post-build {
    106     if {[variant_isset universal]} {
    107         set dirs {}
    108         foreach arch ${universal_archs_to_use} {
    109             lappend dirs ${worksrcpath}-${arch}
    110         }
    111     } else {
    112         set dirs ${worksrcpath}
    113     }
    114     foreach dir ${dirs} {
    115         reinplace "s|${dir}/libservices|${libdir}/mysql|g" \
    116             ${dir}/plugin/daemon_example/.libs/libdaemon_example.lai \
    117             ${dir}/plugin/semisync/.libs/semisync_master.lai \
    118             ${dir}/plugin/semisync/.libs/semisync_slave.lai \
    119             ${dir}/storage/example/.libs/ha_example.lai
    120         reinplace -E {s|-arch [a-z0-9_]+||g} \
    121             ${dir}/scripts/mysql_config \
    122             ${dir}/scripts/mysqlbug
    123     }
    124 }
    125 
    126 pre-destroot {
    127     xinstall -m 755 -d ${destroot}${sysconfdir}
    128     destroot.keepdirs-append ${destroot}${sysconfdir}
    129 }
    130 
    131 post-destroot {
    132     # Fix paths in manpages and sample configuration files
    133     foreach manpage [glob -type f ${destroot}${prefix}/share/man/man\[1-9\]/*] {
    134         reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${manpage}
    135     }
    136     foreach samp_conffile [glob -type f ${destroot}${prefix}/share/${mysql}/mysql/my-*.cnf] {
    137         reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${samp_conffile}
    138     }
    139    
    140     # Symlink mysql binaries into bin directory, with ${major_version} appended to the name
    141     foreach f [glob -tails -directory ${destroot}${bindir} my*] {
    142         ln -sf ${bindir}/${f} ${destroot}${prefix}/bin/${f}${major_version}
    143     }
    144 }
    145 
    146 post-install {
    147     if {![file exists ${prefix}/etc/LaunchDaemons/org.macports.${mysql}/org.macports.${mysql}.plist]} {
    148         ui_msg "The MySQL client has been installed."
    149         ui_msg "If you also want a MySQL server, install the mysql5-server-devel port."
    150     }
    151 }
    152 
    153 livecheck.type          regex
    154 livecheck.version       [lindex [split ${version} -] 0]
    155 livecheck.url           http://dev.mysql.com/
    156 livecheck.regex         "<a href=\"http://dev.mysql.com/downloads/mysql/\[^\"\]+\">(${branch}(\.\[0-9.\]+)?)\[^<\]*</a>"
     9name                mysql5-devel
     10version             5.5.2-m2
     11revision            3
     12categories          databases
     13license             BSD
Note: See TracChangeset for help on using the changeset viewer.