Skip to content
Permalink
Browse files

cad/gtkwave: Using gtk-osx-application-gtk2 (with kludges)

Also added modeline and normalized whitespace.
  • Loading branch information
ccorn authored and pmetzger committed Feb 14, 2018
1 parent b168c4e commit 653dffd53c37a8ad0a447086566f6477a34beda0
Showing with 42 additions and 26 deletions.
  1. +42 −26 cad/gtkwave/Portfile
@@ -1,36 +1,52 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0

name gtkwave
version 3.3.48
categories cad
platforms darwin
license GPL-2+
maintainers nomaintainer
description A viewer for common electronic CAD waveform files.
long_description \
GTKWave is a fully featured GTK+ based wave viewer for Unix \
and Win32 which reads LXT, LXT2, VZT, and GHW files as well \
as standard Verilog VCD/EVCD files and allows their viewing.
name gtkwave
version 3.3.48
categories cad
platforms darwin
license GPL-2+
maintainers nomaintainer
description A viewer for common electronic CAD waveform files.
long_description \
GTKWave is a fully featured GTK+ based wave viewer for Unix \
and Win32 which reads LXT, LXT2, VZT, and GHW files as well \
as standard Verilog VCD/EVCD files and allows their viewing.

homepage http://gtkwave.sourceforge.net
master_sites sourceforge:project/gtkwave/gtkwave-${version}
homepage http://gtkwave.sourceforge.net
master_sites sourceforge:project/gtkwave/gtkwave-${version}

checksums rmd160 04d1d0a67a25d5cd19f6bb80d613c362e19c91e2 \
sha256 420e25a0eddcb54fa137a9ffee9642d3b6fccebfbaf8d2296c687447015165fd
checksums rmd160 04d1d0a67a25d5cd19f6bb80d613c362e19c91e2 \
sha256 420e25a0eddcb54fa137a9ffee9642d3b6fccebfbaf8d2296c687447015165fd

depends_build port:pkgconfig
depends_build port:pkgconfig

depends_lib port:bzip2 \
port:gtk2 \
port:tk \
port:xz \
port:zlib
depends_lib port:bzip2 \
port:gtk2 \
port:gtk-osx-application-gtk2 \
port:tk \
port:xz \
port:zlib

configure.args --with-tcl=${prefix}/lib \
--with-tk=${prefix}/lib \
--disable-mime-update
post-patch {
reinplace {s/GtkOSXApplication/GtkosxApplication/g
s/GTK_TYPE_OSX_APPLICATION/GTKOSX_TYPE_APPLICATION/g
s/gtk_osxapplication/gtkosx_application/g
s/quartz_application/gtkosx_application/g} \
${worksrcpath}/src/main.c \
${worksrcpath}/src/menu.c \
${worksrcpath}/src/rc.c \
${worksrcpath}/src/savefile.c \
${worksrcpath}/src/savefile.h
}

configure.args --with-tcl=${prefix}/lib \
--with-tk=${prefix}/lib \
--disable-mime-update \
"GTK_MAC_CFLAGS=\"\$(${prefix}/bin/pkg-config --cflags gtk-mac-integration-gtk2)\"" \
"GTK_MAC_LIBS=\"\$(${prefix}/bin/pkg-config --libs gtk-mac-integration-gtk2)\""

post-activate {
system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true"
system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true"
system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
}

0 comments on commit 653dffd

Please sign in to comment.
You can’t perform that action at this time.