Ticket #19965: Portfile

File Portfile, 3.1 KB (added by dbraband@…, 15 years ago)
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 30257 2007-10-23 02:28:30Z jmpp@macports.org $
3
4PortSystem          1.0
5
6name                mnogosearch
7version             3.3.8
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/
22checksums           md5 4c561e3f7fb4c7328e2aa242474d7836 \
23                    sha1 c0195aed87476296172884c2adbcfeb6f67d9bc4 \
24                    rmd160 f28ede3c9eae4ae9a0351900a1cbf5a519b989a8
25depends_lib         port:openssl port:zlib
26patchfiles          patch-doc_Makefile.in
27
28configure.args      --sysconfdir=${prefix}/etc/mnogosearch \
29                    --localstatedir=${prefix}/var/mnogosearch \
30                    --datadir=${prefix}/share/mnogosearch \
31                    --mandir=${prefix}/share/man --disable-static \
32                    --with-openssl --with-zlib
33
34post-configure {
35    ui_msg "\n\n-------------------------------------------------------------"
36    ui_msg "Note:  if you did not select any database variants, mnogosearch"
37    ui_msg "will be built without the indexer (which may not be what you"
38    ui_msg "wanted)."
39    ui_msg "-------------------------------------------------------------\n\n"
40}
41
42destroot.keepdirs       ${destroot}${prefix}/var/mnogosearch
43
44post-destroot {
45    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
46    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
47        NEWS README README.CVS README.XML TODO \
48        ${destroot}${prefix}/share/doc/${name}
49}
50
51variant mysql3 {
52    depends_lib-append      port:mysql3
53    configure.args-append   --with-mysql=${prefix}
54}
55
56variant mysql4 {
57    depends_lib-append      port:mysql4
58    configure.args-append   --with-mysql=${prefix}
59}
60
61variant mysql5 {
62    use_autoconf yes
63    patchfiles-append       patch-locations_configure.in
64    depends_lib-append      port:mysql5
65    configure.args-append   --with-mysql=${prefix}
66}
67
68variant postgresql7 {
69    depends_lib-append      port:postgresql7
70    configure.args-append   --with-pgsql=${prefix}/lib/pgsql7
71}
72
73variant postgresql81 {
74    depends_lib-append      port:postgresql81
75    configure.args-append   --with-pgsql=${prefix}/lib/postgresql81
76}
77
78variant postgresql83 {
79    depends_lib-append      port:postgresql83
80    configure.args-append   --with-pgsql=${prefix}/lib/postgresql83
81}
82
83
84# Other database variants would go here
85
86variant nosyslog {
87    configure.args-append   --disable-syslog
88}
89