[98775] trunk/dports/databases

pixilla at macports.org pixilla at macports.org
Mon Oct 15 08:03:12 PDT 2012


Revision: 98775
          http://trac.macports.org//changeset/98775
Author:   pixilla at macports.org
Date:     2012-10-15 08:03:12 -0700 (Mon, 15 Oct 2012)
Log Message:
-----------
databases/percona-toolkit:
- New port percona-toolkit version 2.1.5.

Added Paths:
-----------
    trunk/dports/databases/percona-toolkit/
    trunk/dports/databases/percona-toolkit/Portfile

Added: trunk/dports/databases/percona-toolkit/Portfile
===================================================================
--- trunk/dports/databases/percona-toolkit/Portfile	                        (rev 0)
+++ trunk/dports/databases/percona-toolkit/Portfile	2012-10-15 15:03:12 UTC (rev 98775)
@@ -0,0 +1,79 @@
+# $Id$
+
+PortSystem          1.0
+
+name                percona-toolkit
+version             2.1.5
+categories          databases
+platforms           darwin
+license             GPL
+maintainers         pixilla openmaintainer
+description         Collection of essential command-line utilities for MySQL
+long_description    ${description}
+
+homepage            http://www.percona.com/software/percona-toolkit
+master_sites        http://www.percona.com/downloads/percona-toolkit/LATEST
+
+checksums           rmd160  ae17e1100cba620fdbf4024bda61793f8507b1d1 \
+                    sha256  e080f51233ea4faaed2f2b1fad8b2dc76104f99ef614b14807c4960e9c169e26
+
+set mp.perl.versions {
+    5.8
+    5.10
+    5.12
+    5.14
+    5.16
+}
+set mp.perl.select  [lindex ${mp.perl.versions} end]
+set mp.names        {}
+foreach mp.perl.version ${mp.perl.versions} {
+
+    lappend mp.names "perl[string map  {. _} ${mp.perl.version}]"
+}
+foreach mp.name ${mp.names} {
+
+    set idx [lsearch ${mp.names} ${mp.name}]
+    set mp.perl.version [lindex ${mp.perl.versions} $idx]
+    set mp.conflicts [lreplace ${mp.names} $idx $idx]
+    variant ${mp.name} \
+        conflicts ${mp.conflicts} \
+        description "Use MacPorts perl ${mp.perl.version}" {
+    }
+    if [variant_isset ${mp.name}] {
+
+        set mp.perl.select ${mp.perl.version}
+    }
+}
+default_variants    +perl[string map  {. _} ${mp.perl.select}]
+
+depends_lib-append  port:p${mp.perl.select}-time-hires \
+                    port:p${mp.perl.select}-dbd-mysql \
+                    port:p${mp.perl.select}-dbi \
+                    port:p${mp.perl.select}-term-readkey
+
+post-patch {
+
+    eval reinplace "\"s,#!/usr/bin/env *perl,#!${prefix}/bin/perl${mp.perl.select},\"" [glob ${worksrcpath}/bin/*]
+}
+
+configure.env       PERL_AUTOINSTALL=--skipdeps
+configure.pre_args  Makefile.PL
+configure.args      INSTALLDIRS=vendor
+
+
+configure.cmd       ${prefix}/bin/perl${mp.perl.select}
+post-destroot {
+
+    foreach f [glob -directory ${destroot}${prefix}/libexec/perl${mp.perl.select} -type f -tails *] {
+
+        ln -s ${prefix}/libexec/perl${mp.perl.select}/${f} ${destroot}${prefix}/bin/${f}
+    }        
+
+    foreach f [glob -directory ${destroot}${prefix}/share/perl${mp.perl.select}/man/man1 -type f -tails *] {
+
+        ln -s ${prefix}/share/perl${mp.perl.select}/man/man1/${f} ${destroot}${prefix}/share/man/man1/${f}
+    }        
+}
+
+livecheck.url       http://www.percona.com/downloads/percona-toolkit/
+livecheck.regex     "<a href=\"/downloads/percona-toolkit/(\[^/\]+)/\""


Property changes on: trunk/dports/databases/percona-toolkit/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121015/be0f4cee/attachment.html>


More information about the macports-changes mailing list