source: trunk/dports/gnome/genius/Portfile @ 139469

Last change on this file since 139469 was 139469, checked in by jmr@…, 4 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 139469 2015-08-18 01:10:17Z jmr@macports.org $
3
4PortSystem          1.0
5
6name                genius
7version             1.0.20
8revision            1
9license             GPL-3+
10set branch          [join [lrange [split ${version} .] 0 1] .]
11categories          gnome math
12platforms           darwin
13maintainers         nomaintainer
14
15description         Genius is a calculator program.
16
17long_description    Genius is a calculator program similiar in some aspects \
18                    to BC, Matlab or Maple. GEL is the name of its extention \
19                    language (stands for \"Genius Extension Language\", \
20                    clever huh?), in fact, a large part of the standard \
21                    genius functions are written in GEL itself.
22
23homepage            http://www.jirka.org/genius.html
24master_sites        gnome:sources/${name}/${branch}/
25
26use_xz              yes
27
28checksums           rmd160  6da7b157ece84bf42d992bc02f191ce97b1d188b \
29                    sha256  3994e414578fd494f02d89d0840ea86eff51a53e0a3fe1ae6d31d6c328b0d787
30
31depends_build       port:pkgconfig \
32                    port:intltool \
33                    port:gnome-common \
34                    port:gnome-doc-utils \
35                    port:autoconf \
36                    port:automake \
37                    port:libtool
38
39depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
40                    port:mpfr \
41                    port:ncurses \
42                    port:readline
43
44depends_run         port:desktop-file-utils \
45                    port:rarian \
46                    port:shared-mime-info
47
48# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
49
50post-patch {
51    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
52}
53
54configure.cmd       ./autogen.sh
55
56# disable extra gcc optimization for clang compatibility
57
58configure.args      --disable-extra-gcc-optimization \
59                    --enable-compile-warnings=minimum \
60                    --disable-gnome \
61                    --disable-gtksourceview \
62                    --disable-update-mimedb \
63                    --disable-scrollkeeper
64
65configure.cflags-append \
66                    -std=gnu89
67
68variant gnome description {Compile with the GNOME frontend (GUI, plotting} {
69    depends_lib-append \
70                    port:gtksourceview2 \
71                    port:vte-gtk2-compat
72
73    depends_run-append \
74                    port:yelp
75
76    configure.args-append \
77                    --enable-gnome \
78                    --enable-gtksourceview
79   
80    configure.args-delete \
81                    --disable-gnome \
82                    --disable-gtksourceview
83}
84
85default_variants +gnome
86
87post-activate {
88    system "${prefix}/bin/scrollkeeper-update"
89    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
90    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
91    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
92}
93
94livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.