[36616] trunk/dports/databases/mysql5-devel/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu May 8 02:17:05 PDT 2008


Revision: 36616
          http://trac.macosforge.org/projects/macports/changeset/36616
Author:   ryandesign at macports.org
Date:     2008-05-08 02:17:04 -0700 (Thu, 08 May 2008)

Log Message:
-----------
mysql5-devel: add variant to install the InnoDB plugin; closes #15134

Modified Paths:
--------------
    trunk/dports/databases/mysql5-devel/Portfile

Modified: trunk/dports/databases/mysql5-devel/Portfile
===================================================================
--- trunk/dports/databases/mysql5-devel/Portfile	2008-05-08 09:15:55 UTC (rev 36615)
+++ trunk/dports/databases/mysql5-devel/Portfile	2008-05-08 09:17:04 UTC (rev 36616)
@@ -28,12 +28,14 @@
     http://mysql.oss.eznetsols.org/Downloads/MySQL-${branch}/ \
     http://mirrors.sunsite.dk/mysql/Downloads/MySQL-${branch}/ \
     http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${branch}/ \
-    http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/
+    http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/ \
+    http://www.innodb.com/download/innodb_plugin/:plugin
 
 checksums \
-    md5 5f75d7593af35be125fa3fc21509337a \
-    sha1 5ce208da7832549a99ab07a1377ce2329fc74602 \
-    rmd160 4ec3c8623e13c9b79635f64cf088ca8a16b50ea8
+    ${distname}${extract.suffix} \
+        md5 5f75d7593af35be125fa3fc21509337a \
+        sha1 5ce208da7832549a99ab07a1377ce2329fc74602 \
+        rmd160 4ec3c8623e13c9b79635f64cf088ca8a16b50ea8
 
 depends_lib \
     port:zlib \
@@ -90,6 +92,29 @@
     startupitem.stop    "${prefix}/share/${mysql}/mysql/mysql.server stop"
 }
 
+set plugin_distname     innodb_plugin-1.0.0-5.1
+set plugin_distfile     ${plugin_distname}${extract.suffix}
+set plugin_worksrcdir   ${plugin_distname}
+set plugin_worksrcpath  ${workpath}/${plugin_worksrcdir}
+set innobase_dir        storage/innobase
+
+variant innodb_plugin description {Install the InnoDB plugin Early Adopter release 1.0} {
+    distfiles-append        ${plugin_distfile}:plugin
+
+    checksums-append \
+        ${plugin_distfile} \
+            md5 1082a4a0e5a10943922f8e371caf6808 \
+            sha1 055db3501de4e687370947cdcb431b1659a7cec0 \
+            rmd160 33cd6c724b24ab63204ccbec29c2e69b1b3ed028
+
+    post-extract {
+        delete ${worksrcpath}/${innobase_dir}
+        move ${plugin_worksrcpath} ${worksrcpath}/${innobase_dir}
+        # Bug #36222 (http://bugs.mysql.com/bug.php?id=36222)
+        reinplace "s;@MKDIR_P@;@mkdir_p@;" ${worksrcpath}/${innobase_dir}/Makefile.in
+    }
+}
+
 # the directories ${prefix}/sql-bench ${prefix}/mysql-test
 destroot.violate_mtree  yes
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080508/68fa8a81/attachment.html


More information about the macports-changes mailing list