From b2ea9f5cc15f16964e6e81bfb63330279a2ce638 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Tue, 19 Nov 2013 15:37:53 -0500 Subject: [PATCH] more go bits --- .gitignore | 3 +++ graphviz.spec.in | 8 ++++---- tclpkg/gv/Makefile.am | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index bdf52e66b..244289106 100644 --- a/.gitignore +++ b/.gitignore @@ -169,6 +169,9 @@ tclpkg/gv/gv.cmo tclpkg/gv/gv.cmx tclpkg/gv/gv.cmxa tclpkg/gv/gv.cs +tclpkg/gv/gv.go +tclpkg/gv/gv_gc.c +tclpkg/gv/gv_go.cpp tclpkg/gv/gv.java tclpkg/gv/gv.ml tclpkg/gv/gv.mli diff --git a/graphviz.spec.in b/graphviz.spec.in index d1166b9bb..73bbf5092 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -28,7 +28,7 @@ Prefix: /usr # All features are off (undefined) by default # To enable, use: define FEATURE 1 # Available features are: -# SHARP GHOSTSCRIPT GO GUILE _IO JAVA LUA OCAML ORTHO PERL PHP +# SHARP GHOSTSCRIPT _GO GUILE _IO JAVA LUA OCAML ORTHO PERL PHP # PYTHON RUBY R_LANG TCL IPSEPCOLA MYLIBGD PANGOCAIRO RSVG # GTK GLITZ SMYRNA DEVIL MING GDK _QT WEBP @@ -162,7 +162,7 @@ BuildRequires: R-devel swig >= 1.3.33 perl-libs BuildRequires: libwebp-devel %endif %if %fedora >= 20 -%define GOLANG 1 +%define _GO 1 BuildRequires: golang %endif %endif @@ -533,7 +533,7 @@ C# extension for graphviz. %endif #-- graphviz-lang-go rpm -------------------------------------------- -%if 0%{?GOLANG} +%if 0%{?_GO} %package lang-go Group: Applications/Multimedia Summary: GO extension for graphviz @@ -862,7 +862,7 @@ CFLAGS="$RPM_OPT_FLAGS" \ --disable-static \ --disable-dependency-tracking \ --enable-sharp%{!?SHARP:=no} \ - --enable-go%{!?GOLANG:=no} \ + --enable-go%{!?_GO:=no} \ --enable-guile%{!?GUILE:=no} \ --enable-io%{!?_IO:=no} \ --enable-java%{!?JAVA:=no} \ diff --git a/tclpkg/gv/Makefile.am b/tclpkg/gv/Makefile.am index 94f50b136..1a9784d97 100644 --- a/tclpkg/gv/Makefile.am +++ b/tclpkg/gv/Makefile.am @@ -33,13 +33,13 @@ gv_sharp.cpp: gv.i $(SWIG) -c++ -csharp -namespace gv -o gv_sharp.cpp $(srcdir)/gv.i pkggodir = $(pkglibdir)/go -GO_data = +GO_data = gv.go gv_gv.c nodist_libgv_go_la_SOURCES = gv_go.cpp $(GO_data) libgv_go_la_SOURCES = $(BASESOURCES) gv_dummy_init.c libgv_go_la_LIBADD = $(BASELIBS) $(GO_LIBS) libgv_go_la_LDFLAGS = -module -avoid-version libgv_go_la_CPPFLAGS = $(BASECPPFLAGS) $(GO_INCLUDES) -# $(GO_data): gv_go.cpp +$(GO_data): gv_go.cpp gv_go.cpp: gv.i $(SWIG) -c++ -go -intgosize @SIZEOF_INT_BITS@ -o gv_go.cpp $(srcdir)/gv.i -- 2.40.0