<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[118102] trunk/dports/databases/mysql56/Portfile</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/118102">118102</a></dd>
<dt>Author</dt> <dd>pixilla@macports.org</dd>
<dt>Date</dt> <dd>2014-03-22 08:42:06 -0700 (Sat, 22 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>databases/mysql56:
- Add subport mysql56-innodb-memcached-plugin. Closes #39753</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsdatabasesmysql56Portfile">trunk/dports/databases/mysql56/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsdatabasesmysql56Portfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/databases/mysql56/Portfile (118101 => 118102)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/databases/mysql56/Portfile        2014-03-22 15:16:34 UTC (rev 118101)
+++ trunk/dports/databases/mysql56/Portfile        2014-03-22 15:42:06 UTC (rev 118102)
</span><span class="lines">@@ -7,29 +7,24 @@
</span><span class="cx"> name                mysql56
</span><span class="cx"> set name_mysql      ${name}
</span><span class="cx"> version             5.6.16
</span><del>-# Set revision_client and revision_server to 0 on version bump.
-set revision_client 2
</del><ins>+# Set revision_client, revision_server and revision_innodb_memcached_plugin to 0 on
+# version bump.
+set revision_client 3
</ins><span class="cx"> set revision_server 0
</span><ins>+set revision_innodb_memcached_plugin 0
</ins><span class="cx"> set version_branch  [join [lrange [split ${version} .] 0 1] .]
</span><span class="cx"> categories          databases
</span><span class="cx"> platforms           darwin
</span><span class="cx"> license             GPL-2
</span><span class="cx"> maintainers         pixilla openmaintainer
</span><span class="cx"> homepage            http://www.mysql.com/
</span><ins>+master_sites        mysql:MySQL-${version_branch}
</ins><span class="cx"> 
</span><del>-if {${subport} eq ${name}} {
</del><ins>+if {${subport} ne &quot;${name_mysql}-server&quot;} {
</ins><span class="cx"> 
</span><span class="cx">     PortGroup           archcheck 1.0
</span><span class="cx">     PortGroup           cmake 1.0
</span><del>-    PortGroup           select 1.0
</del><span class="cx"> 
</span><del>-    revision            ${revision_client}
-    license             GPL-2
-    description         Multithreaded SQL database server
-    long_description    MySQL is an open-source, multi-threaded SQL database.
-
-    master_sites        mysql:MySQL-${version_branch}
-
</del><span class="cx">     distname            mysql-${version}
</span><span class="cx">     use_parallel_build  yes
</span><span class="cx"> 
</span><span class="lines">@@ -60,12 +55,6 @@
</span><span class="cx">     checksums           rmd160  11d21eb50e63776876dccf3a72e19e5de4eec9c2 \
</span><span class="cx">                         sha256  70fe55985ba187a26cce6905c57f66bb9904b33760e3ff30b611697b4bf2fde0
</span><span class="cx"> 
</span><del>-    depends_lib-append  port:zlib port:tcp_wrappers
-    depends_run-append  port:mysql_select
-
-    select.group        mysql
-    select.file         ${filespath}/${name_mysql}
-
</del><span class="cx">     archcheck.files     lib/libz.dylib lib/libwrap.dylib
</span><span class="cx"> 
</span><span class="cx">     post-extract {
</span><span class="lines">@@ -90,10 +79,8 @@
</span><span class="cx">             ${worksrcpath}/scripts/mysql_install_db.pl.in
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    configure.dir       ${worksrcpath}/build_macports
</ins><span class="cx">     configure.cmd       cmake ..
</span><del>-    configure.dir       ${worksrcpath}/build_macports
-    build.dir           ${worksrcpath}/build_macports
-
</del><span class="cx">     configure.args-delete \
</span><span class="cx">                         -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
</span><span class="cx">     configure.args-append \
</span><span class="lines">@@ -111,8 +98,26 @@
</span><span class="cx">                         -DENABLE_GCOV:BOOL=OFF \
</span><span class="cx">                         -DENABLE_DTRACE:BOOL=OFF \
</span><span class="cx">                         -DWITH_LIBWRAP:BOOL=ON \
</span><del>-                        -DWITH_SSL:STRING=bundled
</del><ins>+                        -DWITH_SSL:STRING=bundled \
+                        -DWITH_INNODB_MEMCACHED=0
+}
</ins><span class="cx"> 
</span><ins>+if {${subport} eq ${name}} {
+
+    PortGroup           select 1.0
+
+    revision            ${revision_client}
+    license             GPL-2
+    description         Multithreaded SQL database server
+    long_description    MySQL is an open-source, multi-threaded SQL database.
+
+    depends_lib-append  port:zlib port:tcp_wrappers
+    depends_run-append  port:mysql_select
+
+    select.group        mysql
+    select.file         ${filespath}/${name_mysql}
+
+    build.dir           ${worksrcpath}/build_macports
</ins><span class="cx">     post-build {
</span><span class="cx">         set dirs ${worksrcpath}/build_macports
</span><span class="cx">         foreach dir ${dirs} {
</span><span class="lines">@@ -145,6 +150,9 @@
</span><span class="cx">             ${destroot}${prefix}/share/${name_mysql}/support-files/macports
</span><span class="cx">         copy ${worksrcpath}/build_macports/macports/my.cnf \
</span><span class="cx">             ${destroot}${prefix}/share/${name_mysql}/support-files/macports/
</span><ins>+        # Remove file supplied by ${name_mysql}-innodb-memcached-plugin subport.
+        delete ${destroot}${prefix}/share/${name_mysql}/innodb_memcached_config.sql
+
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     post-install {
</span><span class="lines">@@ -258,3 +266,22 @@
</span><span class="cx"> 
</span><span class="cx">     livecheck.type          none
</span><span class="cx"> }
</span><ins>+
+subport ${name_mysql}-innodb-memcached-plugin {
+
+    revision            ${revision_innodb_memcached_plugin}
+    license             GPL-2
+    description         InnoDB Memcached Plugin for ${name_mysql}
+    long_description    ${description}
+
+    distname            mysql-${version}
+
+    depends_lib-append  port:${name_mysql}
+
+    configure.args-delete \
+                        -DWITH_INNODB_MEMCACHED=0
+    configure.args-append \
+                        -DWITH_INNODB_MEMCACHED=1
+    build.dir           ${worksrcpath}/build_macports/plugin/innodb_memcached
+    destroot.dir        ${worksrcpath}/build_macports/plugin/innodb_memcached
+}
</ins></span></pre>
</div>
</div>

</body>
</html>