source: trunk/dports/print/pcal/Portfile

Last change on this file was 128209, checked in by khindenburg@…, 3 years ago

pcal: try to use the right compiler

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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: Portfile 128209 2014-11-16 17:05:20Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pcal
7version             4.11.0
8categories          print
9platforms           darwin
10license             Unknown
11maintainers         khindenburg openmaintainer
12description         PostScript calendar program
13long_description    "Pcal" is a program to print PostScript calendars for any \
14                    month and year.  By default, it looks for a file in the \
15                    home directory named "calendar" for entries with leading \
16                    dates matching dates on the calendar, and prints any \
17                    following text under the appropriate day.
18
19homepage            http://pcal.sourceforge.net/
20master_sites        sourceforge
21extract.suffix      .tgz
22
23checksums           rmd160  f2c6d061ff0abbb01c33b8d7617f3e1c03e967c5 \
24                    sha256  8406190e7912082719262b71b63ee31a98face49aa52297db96cc0c970f8d207
25
26configure           {
27    reinplace "s|BINDIR = .*|BINDIR = ${destroot}${prefix}/bin|" \
28              "${worksrcpath}/Makefile"
29    reinplace "s|MANDIR = .*|MANDIR = ${destroot}${prefix}/share/man/man1|" \
30              "${worksrcpath}/Makefile"
31    reinplace "s|CATDIR = .*|CATDIR = ${destroot}${prefix}/share/cat/cat1|" \
32              "${worksrcpath}/Makefile"
33}
34
35build.type          gnu
36build.target
37build.args-append   CC=${configure.cc} \
38                    CXX=${configure.cxx} \
39                    CPP=${configure.cpp}
40
41variant a4 description {Use A4 size paper as the default} {
42    post-configure {
43        reinplace "s|D_BUILD_ENV)|D_BUILD_ENV) -DA4PAPER|" \
44                  "${worksrcpath}/Makefile"
45    }
46}
47
48destroot.destdir    prefix=${destroot}${prefix}
49
50livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.