forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Portfile
54 lines (42 loc) · 1.98 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- 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
PortSystem 1.0
name aamath
version 0.3
revision 6
categories math textproc
platforms darwin
license GPL-2
maintainers {snc @nerdling} openmaintainer
description renders ASCII art from mathematical expressions
long_description Aamath is a program that reads mathematical expressions in \
infix notation and renders them as ASCII art. It may be \
useful to send mathematics through text-only media, such as\
e-mail or newsgroups.
homepage http://fuse.superglue.se/aamath/
master_sites ${homepage}
checksums rmd160 396ce7213a30a5c133dc964e2a531fe28a24b6c0 \
sha256 9843f4588695e2cd55ce5d8f58921d4f255e0e65ed9569e1dcddf3f68f77b631
depends_build port:byacc port:flex
depends_lib port:readline port:ncurses
worksrcdir aamath
configure.cppflags-append -I${prefix}/include/ncurses
configure.ldflags-append -lreadline -ltermcap -lncurses
patchfiles patch-Makefile.diff patch-expr.h.diff
post-patch {
reinplace s|@@CXX@@|${configure.cxx}|g ${worksrcpath}/Makefile
reinplace s|@@LDFLAGS@@|${configure.ldflags}|g ${worksrcpath}/Makefile
reinplace "s|@@CFLAGS@@|${configure.cflags} ${configure.cppflags}|g" ${worksrcpath}/Makefile
}
use_configure no
installs_libs no
destroot {
xinstall -m 755 ${worksrcpath}/aamath ${destroot}${prefix}/bin
xinstall -m 644 ${worksrcpath}/aamath.1 ${destroot}${prefix}/share/man/man1
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog README \
${destroot}${prefix}/share/doc/${name}
}
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex "${name}-(\\d+.\\d+).tar.gz"
use_parallel_build no