source: trunk/dports/databases/mysql55-lib_mysqludf_preg/Portfile

Last change on this file was 119357, checked in by pixilla@…, 3 years ago

databases/mysql55-lib_mysqludf_preg:

  • Add mysql56-lib_mysqludf_preg subport. Closes #43469
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# -*- 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
2# $Id: Portfile 119357 2014-04-23 16:24:08Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7
8set package.name    lib_mysqludf_preg
9set mysql.name      mysql55
10github.setup        mysqludf ${package.name} 1.1 ${package.name}-
11revision            2
12name                ${mysql.name}-${package.name}
13
14set mysql.ports     {mysql51 mysql55 mysql56 mariadb percona}
15foreach mysql.port ${mysql.ports} {
16
17    lappend mysql.extension.ports "${mysql.port}-${package.name}"
18}
19foreach mysql.extension.port ${mysql.extension.ports} {
20
21    set idx [lsearch ${mysql.extension.ports} ${mysql.extension.port}]
22    set mysql.port [lindex ${mysql.ports} $idx]
23    if {${mysql.extension.port} eq ${name} eq ${subport}} {
24
25        depends_lib-append  port:${mysql.port}
26    } else {
27
28        subport ${mysql.port}-${package.name} {
29   
30            set mysql.name      ${mysql.port}
31            depends_lib-append  port:${mysql.port}
32        }
33    }
34}
35subport mysql5-lib_mysqludf_preg {
36
37    replaced_by     mysql51-lib_mysqludf_preg
38    PortGroup       obsolete 1.0
39}
40
41categories          databases lang
42maintainers         pixilla openmaintainer
43platforms           darwin
44
45description         ${package.name} is a library of mysql UDFs (user-defined-functions) that \
46                    provide access to the PCRE (perl compatible-regular-expressions) library for \
47                    pattern matching.
48long_description    ${description} The PCRE library is a set of functions that implement regular \
49                    expression pattern matching using the same syntax and semantics as Perl 5. \
50                    This syntax can often handle more complex expressions and capturing than \
51                    standard regular expression implementations.
52
53dist_subdir         lib_mysqludf
54checksums           rmd160  b0fbdf980684b5366ce367affaed2945eabdb73e \
55                    sha256  17845e8791145ae47255fda24661277f2c9bf9173f0313861fee46f3aa48f750
56
57depends_lib-append  port:pcre
58
59configure.args-append \
60                    --with-pcre=${prefix} \
61                    --with-mysql=${prefix}/lib/${mysql.name}/bin/mysql_config \
62                    --with-mysqlbin=${prefix}/lib/${mysql.name}/bin/ \
63                    --with-mysqladmin=${prefix}/lib/${mysql.name}/bin/mysqladmin \
64                    --with-mysqltest=${prefix}/lib/${mysql.name}/bin/mysqltestc
65
66post-destroot {
67    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
68    xinstall -m 644 -W ${worksrcpath} \
69        AUTHORS COPYING ChangeLog INSTALL NEWS README.md installdb.sql uninstalldb.sql \
70        ${destroot}${prefix}/share/${mysql.name}/${package.name}
71    copy ${worksrcpath}/test \
72        ${destroot}${prefix}/share/${mysql.name}/${package.name}
73    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile
74    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile.am
75    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile.in
76}
77
78notes "
79
80    This port installs two mysql scripts to simplify the install/uninstall of the ${package.name}
81    UDFs (user-defined-functions) along with html documentation describing the functions syntax.
82   
83    Install:
84    \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/installdb.sql
85
86    Uninstall:
87    \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/uninstalldb.sql
88   
89    HTML Documentation:
90    $ open ${prefix}/share/${mysql.name}/${package.name}/doc/html/index.html
91    "
Note: See TracBrowser for help on using the repository browser.