Ticket #28289: Portfile

File Portfile, 1.3 KB (added by brothers@…, 13 years ago)

Portfile

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# $Id$
3
4PortSystem 1.0
5
6name                ipbt
7version             r8765
8categories          sysutils
9platforms           darwin
10maintainers         logn.org:brothers
11description         a high-tech ttyrec player for Unix
12long_description    ${description}
13homepage            http://www.chiark.greenend.org.uk/~sgtatham/ipbt/
14master_sites        ${homepage}
15checksums           md5     97392a9c52633d944554691eea517098 \
16                    sha1    b969d3dbca71a98e160d9fe1c6ff269de2bfbca4 \
17                    rmd160  3fb640aa77d60067214ee4fea0ac3f54a6684ec4
18
19depends_lib         port:ncursesw
20use_configure       no
21build.target-delete all
22build.args-append   CC=${configure.cc} \
23                    CXX=${configure.cxx} \
24                    CPP=${configure.cpp}
25
26destroot {
27    xinstall -s ${worksrcpath}/ipbt ${destroot}${prefix}/bin
28    set docdir ${prefix}/share/doc/${name}-${version}
29    xinstall -d ${destroot}${docdir}
30    xinstall -m 0644 ${worksrcpath}/ipbt.html \
31        ${destroot}${docdir}
32    set mandir ${prefix}/share/man/man1
33    xinstall -d ${destroot}${mandir}
34    system "cd ${workpath} && gzip ${worksrcpath}/ipbt.1"
35    xinstall -m 0644 ${worksrcpath}/ipbt.1.gz \
36        ${destroot}${mandir}
37}