Ticket #57919: Portfile

File Portfile, 1.4 KB (added by ryandesign (Ryan Carsten Schmidt), 5 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4PortGroup           github 1.0
5
6github.setup        maxmind mod_maxminddb 1.1.0
7revision            0
8checksums           rmd160  bab39c27d8aba3e6a6cb8f010ebdab3ef23575da \
9                    sha256  b31e63764ddcc1379229059a4726c733ee0538018727b1336d02afaaa8940782 \
10                    size    99821
11
12categories          www
13platforms           darwin
14maintainers         nomaintainer
15license             Apache-2
16
17description         This module allows you to query MaxMind DB files from Apache 2.2+ \
18                    using the libmaxminddb library.
19
20long_description    ${description}
21
22homepage            https://maxmind.github.io/mod_maxminddb/
23github.tarball_from releases
24
25depends_lib         port:apache2 \
26                    port:libmaxminddb
27
28set apxs            ${prefix}/bin/apxs
29set ddir            ${prefix}/share/doc/${name}
30set dbdir           ${prefix}/share/GeoIP
31set mdir            ${prefix}/lib/apache2/modules
32
33patchfiles          Wl.patch
34
35configure.args      --with-apxs=${apxs}
36
37post-destroot {
38    xinstall -d -m 0755 ${destroot}${ddir} ${destroot}${dbdir}
39    xinstall -m 0644 -W ${worksrcpath} Changes.md CONTRIBUTING.md \
40        LICENSE README.md TESTING.md ${destroot}${prefix}/share/doc/${name}
41        #xinstall -m 755 ${worksrcpath}/... ${destroot}${mdir}
42}