[98510] trunk/dports/databases

pixilla at macports.org pixilla at macports.org
Sun Oct 7 11:54:41 PDT 2012


Revision: 98510
          http://trac.macports.org//changeset/98510
Author:   pixilla at macports.org
Date:     2012-10-07 11:54:41 -0700 (Sun, 07 Oct 2012)
Log Message:
-----------
databases/mysql55-lib_mysqludf_preg:
- New port, user defined function preg.

Added Paths:
-----------
    trunk/dports/databases/mysql55-lib_mysqludf_preg/
    trunk/dports/databases/mysql55-lib_mysqludf_preg/Portfile

Added: trunk/dports/databases/mysql55-lib_mysqludf_preg/Portfile
===================================================================
--- trunk/dports/databases/mysql55-lib_mysqludf_preg/Portfile	                        (rev 0)
+++ trunk/dports/databases/mysql55-lib_mysqludf_preg/Portfile	2012-10-07 18:54:41 UTC (rev 98510)
@@ -0,0 +1,93 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+set package.name    lib_mysqludf_preg
+version             1.0.1
+set mysql.name      mysql55
+name                ${mysql.name}-${package.name}
+
+set mysql.ports     {mysql5 mysql51 mysql55 mariadb percona}
+foreach mysql.port ${mysql.ports} {
+
+    lappend mysql.extension.ports "${mysql.port}-${package.name}"
+}
+foreach mysql.extension.port ${mysql.extension.ports} {
+
+    set idx [lsearch ${mysql.extension.ports} ${mysql.extension.port}]
+    set mysql.port [lindex ${mysql.ports} $idx]
+    if {${mysql.extension.port} == ${name} == ${subport}} {
+
+        depends_lib-append  port:${mysql.port}
+    } else {
+
+        subport ${mysql.port}-${package.name} {
+    
+            set mysql.name      ${mysql.port}
+            depends_lib-append  port:${mysql.port}
+        }
+    }
+}
+
+categories          databases lang
+maintainers         pixilla
+platforms           darwin
+
+description         ${package.name} is a library of mysql UDFs (user-defined-functions) that \
+                    provide access to the PCRE (perl compatible-regular-expressions) library for \
+                    pattern matching.
+long_description    ${description} The PCRE library is a set of functions that implement regular \
+                    expression pattern matching using the same syntax and semantics as Perl 5. \
+                    This syntax can often handle more complex expressions and capturing than \
+                    standard regular expression implementations.
+
+homepage            http://www.mysqludf.org/${package.name}/
+master_sites        ${homepage}
+
+dist_subdir         lib_mysqludf
+distname            ${package.name}-${version}
+
+checksums           rmd160  21dfbebe4b421da8acf4e14892fb272bee804f58 \
+                    sha256  50c7179b354148d66a2324f1a8ed918b133924c8fc0cd53c28afda70e1768daa
+
+configure.args-append \
+                    --with-pcre=${prefix} \
+                    --with-mysql=${prefix}/lib/${mysql.name}/bin/mysql_config \
+                    --with-mysqlbin=${prefix}/lib/${mysql.name}/bin/ \
+                    --with-mysqladmin=${prefix}/lib/${mysql.name}/bin/mysqladmin \
+                    --with-mysqltest=${prefix}/lib/${mysql.name}/bin/mysqltestc
+
+post-destroot {
+    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS COPYING ChangeLog INSTALL NEWS README installdb.sql uninstalldb.sql \
+        ${destroot}${prefix}/share/${mysql.name}/${package.name}
+    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc
+    copy ${worksrcpath}/doc/html \
+        ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc
+    copy ${worksrcpath}/test \
+        ${destroot}${prefix}/share/${mysql.name}/${package.name}
+    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile
+    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile.am
+    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile.in
+}
+
+livecheck.url       ${master_sites}
+livecheck.type      regex
+livecheck.regex     "${package.name}-(\\d+\\.\\d+(\[\\drc.\]+)?)${extract.suffix}"
+
+notes "
+
+    This port installs two mysql scripts to simplify the install/uninstall of the ${package.name}
+    UDFs (user-defined-functions) along with html documentation describing the functions syntax.
+    
+    Install:
+    \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/installdb.sql
+
+    Uninstall:
+    \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/uninstalldb.sql
+    
+    HTML Documentation:
+    $ open ${prefix}/share/${mysql.name}/${package.name}/doc/html/index.html
+    "


Property changes on: trunk/dports/databases/mysql55-lib_mysqludf_preg/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/20121007/21cf4cc6/attachment.html>


More information about the macports-changes mailing list