source: trunk/dports/www/mnogosearch/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mnogosearch
7version             3.3.9
8revision            1
9categories          www
10license             GPL-2+
11platforms           darwin
12maintainers         nomaintainer
13description         Full-featured SQL-based web search engine
14long_description    mnoGoSearch is a full-featured SQL-based web search \
15                    engine. mnoGoSearch consists of two parts. The first \
16                    part is the indexing mechanism (indexer).  indexer walks \
17                    over html hypertext references and stores found words \
18                    and new references into a database. The second part is \
19                    the web CGI front-end to provide searching using data \
20                    collected by indexer.
21
22homepage            http://www.mnogosearch.org/
23master_sites        ${homepage}Download/
24
25checksums           sha1    eef8bb0eb2a15d464d10e4057c4e94ca57944260 \
26                    rmd160  776dfaa874eb8fc38135645d1e25c75da2f92eb6
27
28depends_lib         path:lib/libssl.dylib:openssl port:zlib
29patchfiles          patch-doc_Makefile.in
30
31configure.args      --sysconfdir=${prefix}/etc/mnogosearch \
32                    --localstatedir=${prefix}/var/mnogosearch \
33                    --datadir=${prefix}/share/mnogosearch \
34                    --mandir=${prefix}/share/man --disable-static \
35                    --with-openssl --with-zlib
36
37pre-configure {
38    if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset postgresql7] && ![variant_isset postgresql81] && ![variant_isset postgresql83] && ![variant_isset postgresql84]} {
39        ui_msg "\n\n-------------------------------------------------------------"
40        ui_msg "Note: Because you did not select any database variants,"
41        ui_msg "${name} will be built without the indexer (which may not"
42        ui_msg "be what you wanted)."
43        ui_msg "-------------------------------------------------------------\n\n"
44    }
45}
46
47destroot.keepdirs       ${destroot}${prefix}/var/mnogosearch
48
49post-destroot {
50    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
51    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
52        NEWS README README.CVS README.XML TODO \
53        ${destroot}${prefix}/share/doc/${name}
54}
55
56variant mysql4 conflicts mysql5 {
57    depends_lib-append      port:mysql4
58    configure.args-append   --with-mysql=${prefix}
59}
60
61variant mysql5 conflicts mysql4 {
62    use_autoconf yes
63    patchfiles-append       patch-locations_configure.in
64    depends_lib-append      path:bin/mysql_config5:mysql5
65    configure.args-append   --with-mysql=${prefix}
66}
67
68variant postgresql7 conflicts postgresql81 postgresql83 postgresql84 {
69    depends_lib-append      port:postgresql7
70    configure.args-append   --with-pgsql=${prefix}/lib/pgsql7
71}
72
73variant postgresql81 conflicts postgresql7 postgresql83 postgresql84 {
74    depends_lib-append      port:postgresql81
75    configure.args-append   --with-pgsql=${prefix}/lib/postgresql81
76}
77
78variant postgresql83 conflicts postgresql7 postgresql81 postgresql84 {
79    use_autoconf yes
80    patchfiles-append       patch-locations_configure.in
81    depends_lib-append      port:postgresql83
82    configure.args-append   --with-pgsql=${prefix}
83}
84
85variant postgresql84 conflicts postgresql7 postgresql81 postgresql83 {
86    use_autoconf yes
87    patchfiles-append       patch-locations_configure.in
88    depends_lib-append      port:postgresql84
89    configure.args-append   --with-pgsql=${prefix}
90}
91
92# Other database variants would go here
93
94variant nosyslog {
95    configure.args-append   --disable-syslog
96}
97
98livecheck.type      regex
99livecheck.url       ${homepage}download.html
100livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.