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

Last change on this file since 111572 was 111572, checked in by ryandesign@…, 6 years ago

mysql55-lib_mysqludf_preg: remove overrides for master_sites, distname, distfiles, worksrcdir and livecheck and use github portgroup normally

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