source: trunk/dports/gnome/gnome-chemistry-utils/Portfile

Last change on this file was 147835, checked in by devans@…, 18 months ago

gnome-chemistry-utils: update to version 0.14.12, dependencies.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.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 147835 2016-04-17 12:53:08Z ryandesign@macports.org $
3
4
5PortSystem          1.0
6PortGroup           active_variants 1.1
7
8name                gnome-chemistry-utils
9version             0.14.12
10set major           [join [lrange [split ${version} .] 0 1] .]
11
12categories          gnome science chemistry
13platforms           darwin linux freebsd
14maintainers         nomaintainer
15license             GPL-3
16
17description         This package provides a set of Gtk3-based applications for drawing \
18                    and viewing molecules, crystals and spectra.
19                   
20long_description    This package provides the following programs: \
21                    \n-  GChem3D displays molecule structures in 3D \
22                    \n-  GChemCalc provides calculations for chemistry \
23                    \n-  GChemPaint draws 2D chemical structures and reactions \
24                    \n-  GChemTable provides the periodic table of the elements \
25                    \n-  GCrystal displays and edits 3D crystal structures \
26                    \n-  GSpectrum displays spectra files (NMR, IR, etc) \
27                    \n-  Includes plugins for Gnumeric spreadsheet
28
29homepage            http://gchemutils.nongnu.org/index.html
30master_sites        http://download.savannah.gnu.org/releases/gchemutils/${major}/
31use_xz              yes
32
33checksums           sha256  3b06d850d2506d287a054f5f96ffd29de37edede62503d829dbe45159cea5f1a \
34                    rmd160  f59935fa8abc183f74b38f2eb165619594c7604a
35
36depends_build       port:pkgconfig \
37                    port:intltool \
38                    port:gnome-common \
39                    port:autoconf \
40                    port:automake \
41                    port:libtool
42                   
43depends_lib         port:desktop-file-utils \
44                    port:rarian \
45                    port:shared-mime-info \
46                    port:gnome-doc-utils \
47                    port:gtk3 \
48                    port:goffice \
49                    port:gnumeric \
50                    port:openbabel \
51                    port:bodr \
52                    port:chemical-mime-data \
53                    port:gnome-mime-data \
54                    port:libGLU \
55                    port:mesa
56
57depends_run         port:gnome-themes-standard \
58                    port:yelp
59
60patchfiles          patch-libs-gcr-document.cc.diff \
61                    patch-plugins-loaders.diff
62
63# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
64
65post-patch {
66    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
67    reinplace "s|/usr|${prefix}|" ${worksrcpath}/autogen.sh
68}
69
70configure.cmd       ./autogen.sh
71
72configure.args      --disable-mozilla-plugin \
73                    --disable-scrollkeeper \
74                    --disable-schemas-compile \
75                    --disable-update-databases \
76                    --disable-silent-rules
77
78# TODO: work with the upstream devs to make a +quartz variant…
79#       currently it fails to build in a +quartz environment
80#       due to <gdk/gdkx.h> and OpenGL dependencies in the code.
81require_active_variants gtk3 x11
82
83post-activate {
84    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
85    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
86    system "${prefix}/bin/scrollkeeper-update"
87    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
88    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
89}
90
91post-deactivate {
92    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
93    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
94    system "${prefix}/bin/scrollkeeper-update"
95    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
96    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
97}
98
99livecheck.type  regex
100livecheck.url   ${master_sites}
101livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.