Ticket #26023: Portfile

File Portfile, 1.8 KB (added by pixilla (Bradley Giesbrecht), 14 years ago)
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:$
3
4PortSystem          1.0
5name                crm114
6version             20100106
7categories          devel
8platforms           darwin
9maintainers         pixilla.com:brad
10description         CRM114 is a system to examine data streams.
11long_description    CRM114 is a system to examine incoming e-mail, \
12                    system log streams, data files or other data streams, \
13                    and to sort, filter, or alter the incoming files or \
14                    data streams according to the users wildest desires.
15homepage            http://crm114.sourceforge.net
16master_sites        http://crm114.sourceforge.net/tarballs
17distname            ${name}-${version}-BlameMichelson.src
18checksums           md5     213c0b24a28a6cc0b59abc37e2b88a4b \
19                    sha1    621106ff14fa66a5a878a2c8fb0251ec483fc17b \
20                    rmd160  b633801c57f501fb4ff893789a807cc2f2bb02d8
21patchfiles          patch-Makefile.diff
22depends_lib         port:tre
23configure {
24    reinplace "s|@@DESTROOT_PREFIX@@|${destroot}${prefix}|g" \
25                    ${worksrcpath}/Makefile
26    reinplace "s|@@PREFIX@@|${prefix}|g" \
27                    ${worksrcpath}/Makefile
28}
29post-destroot {
30        # copy the docs
31        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
32  foreach file [glob -directory ${worksrcpath} *.txt *.el README] {
33    xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}
34  }
35  # install the examples
36        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/examples
37  foreach file [glob -directory ${worksrcpath} *.crm *.mfp *.recipe *.dat] {
38    xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}/examples
39  }
40}