source: trunk/dports/www/mnogosearch/Portfile @ 87969

Last change on this file since 87969 was 73864, checked in by ryandesign@…, 9 years ago

mnogosearch: update to 3.3.9; see #27121

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