head 1.7; access; symbols pkgsrc-2026Q1:1.7.0.10 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.7.0.8 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.6 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.7.0.4 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.2 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.6.0.62 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.60 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.58 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.56 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.54 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.52 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.50 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.48 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.46 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.44 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.42 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.40 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.38 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.36 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.34 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.32 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.30 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.28 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.24 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.4 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.26 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.22 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.20 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.18 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.16 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.14 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.12 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.10 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.8 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.6 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.2 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.5.0.14 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.12 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.10 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.8 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.6 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.4 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.2 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.4.0.36 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.34 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.32 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.30 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.28 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.26 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.24 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.22 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.20 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.18 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.16 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.14 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.12 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.10 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.8 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.6 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.4 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.2 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.3.0.4 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.2 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.2.0.22 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.20 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.18 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.16 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.14 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.12 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.10 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.8 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.6 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.4 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.2 pkgsrc-2008Q1:1.1.1.1.0.8 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.6 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.4 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.2 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2025.01.23.21.25.54; author wiz; state Exp; branches; next 1.6; commitid NwBEE4Zbl3FEFEGF; 1.6 date 2017.04.18.00.44.27; author minskim; state Exp; branches; next 1.5; commitid zTIndMJ9FUsMZWNz; 1.5 date 2015.09.19.15.42.44; author taca; state Exp; branches; next 1.4; commitid 3b1DIhZ7dNZLvSBy; 1.4 date 2011.03.08.15.33.49; author taca; state Exp; branches; next 1.3; 1.3 date 2010.09.10.08.15.55; author taca; state Exp; branches; next 1.2; 1.2 date 2008.06.19.14.56.14; author taca; state Exp; branches; next 1.1; 1.1 date 2007.06.14.18.56.59; author minskim; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.06.14.18.56.59; author minskim; state Exp; branches; next ; desc @@ 1.7 log @ruby-itex2MML: use backquotes instead of gmake $(shell ...) The build was randomly failing because one or more of the variables with $(shell ...) weren't expanded yet, leading to gcc: Missing argument for -I or gcc: Missing argument for -L @ text @$NetBSD: patch-aa,v 1.6 2017/04/18 00:44:27 minskim Exp $ * Make ruby and swig commands are settable. * Use backquotes instead of gmake $(shell) to make this more reliable * Add DESTDIR support. --- Makefile.orig 2016-08-15 17:12:01.000000000 +0000 +++ Makefile @@@@ -1,9 +1,8 @@@@ #YACC=yacc YACC=bison -y -v LEX=flex -P$(YYPREFIX) -olex.yy.c -SWIG=swig -RUBY=ruby -#RUBY=ruby19 +SWIG?=swig +RUBY?=ruby RM=rm -f INSTALL=install -c @@@@ -37,18 +36,18 @@@@ clean: install: itex2MML $(INSTALL) itex2MML $(BINDIR) -RUBY_CFLAGS = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["CFLAGS"]') -RUBY_LD = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["LDSHARED"]') -RUBYLIBDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["libdir"]') -RUBY_PREFIX = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["rubylibdir"]') -RUBY_ARCH = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["arch"]') -RUBYDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["archdir"]') -RUBYHDRDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["rubyhdrdir"]') -RUBY_SITEDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["sitelibdir"]') -RUBY_SITEARCHDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["sitearchdir"]') -LIBRUBYARG = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["LIBRUBYARG"]') -DYLIB_EXT = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["DLEXT"]') -RUBY_target_os = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["target_os"]') +RUBY_CFLAGS = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["CFLAGS"]'` +RUBY_LD = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["LDSHARED"]'` +RUBYLIBDIR = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["libdir"]'` +RUBY_PREFIX = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["rubylibdir"]'` +RUBY_ARCH = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["arch"]'` +RUBYDIR = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["archdir"]'` +RUBYHDRDIR = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["rubyhdrdir"]'` +RUBY_SITEDIR = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["sitelibdir"]'` +RUBY_SITEARCHDIR = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["sitearchdir"]'` +LIBRUBYARG = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["LIBRUBYARG"]'` +DYLIB_EXT = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["DLEXT"]'` +RUBY_target_os = `$(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["target_os"]'` ifneq (, $(findstring darwin, $(RUBY_target_os)) ) EXTRA_CFLAGS = -DHAVE_SNPRINTF -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE @@@@ -76,6 +75,6 @@@@ ruby: itex2MML_ruby.o y.tab_ruby.o lex.y test_ruby: $(RUBY) ./itextomml.rb -install_ruby: itex2MML.$(DYLIB_EXT) - $(INSTALL) itex2MML.$(DYLIB_EXT) $(RUBY_SITEARCHDIR) - $(INSTALL) itextomml.rb itex_stringsupport.rb $(RUBY_SITEDIR) +install_ruby: ruby + $(INSTALL) itex2MML.$(DYLIB_EXT) $(DESTDIR)$(RUBY_SITEARCHDIR) + $(BSD_INSTALL_DATA) itextomml.rb itex_stringsupport.rb $(DESTDIR)$(RUBY_SITEDIR) @ 1.6 log @Update ruby-itex2MML to 1.5.5 Changelog unavailable. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2015/09/19 15:42:44 taca Exp $ d4 2 a5 3 * support DESTDIR. * Add an include directory for ruby 1.9 and later. * Fix build for Ruby 2.2 and later. d21 33 a53 1 @@@@ -77,5 +76,5 @@@@ test_ruby: d56 1 a56 1 install_ruby: itex2MML.$(DYLIB_EXT) d59 1 @ 1.5 log @Fix build problem with ruby22. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2011/03/08 15:33:49 taca Exp $ d8 1 a8 1 --- Makefile.orig 2010-06-09 17:13:08.000000000 +0000 d22 1 a22 42 @@@@ -37,18 +36,19 @@@@ clean: install: itex2MML $(INSTALL) itex2MML $(BINDIR) -RUBY_CFLAGS = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["CFLAGS"]') -RUBY_LD = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["LDSHARED"]') -RUBYLIBDIR =$(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["libdir"]') -RUBY_PREFIX = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["rubylibdir"]') -RUBY_ARCH = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["arch"]') -RUBYDIR = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["archdir"]') -RUBYHDRDIR = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["rubyhdrdir"]') -RUBY_SITEDIR = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["sitelibdir"]') -RUBY_SITEARCHDIR = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["sitearchdir"]') -LIBRUBYARG = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["LIBRUBYARG"]') -DYLIB_EXT = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["DLEXT"]') -RUBY_target_os = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["target_os"]') +RUBY_CFLAGS = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["CFLAGS"]') +RUBY_LD = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["LDSHARED"]') +RUBYLIBDIR =$(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["libdir"]') +RUBY_PREFIX = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["rubylibdir"]') +RUBY_ARCH = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["arch"]') +RUBYDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["archdir"]') +RUBYHDRDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["rubyhdrdir"]') +RUBY_SITEDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["vendorlibdir"]') +RUBY_SITEARCHDIR = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["vendorarchdir"]') +LIBRUBYARG = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["LIBRUBYARG"]') +DYLIB_EXT = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["DLEXT"]') +RUBY_target_os = $(shell $(RUBY) -e 'require "rbconfig"; print RbConfig::CONFIG["target_os"]') +RUBYARCHINCLUDE = $(shell $(RUBY) -e 'require "rbconfig"; if RbConfig::CONFIG["ruby_version"] > "1.8"; print "-I" + File.join(RbConfig::CONFIG["rubyhdrdir"], RbConfig::CONFIG["arch"]); end ') ifneq (, $(findstring darwin, $(RUBY_target_os)) ) EXTRA_CFLAGS = -DHAVE_SNPRINTF -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE @@@@ -62,7 +62,7 @@@@ itex2MML_ruby.c: itex2MML.i $(SWIG) -ruby -o itex2MML_ruby.c itex2MML.i itex2MML_ruby.o: itex2MML_ruby.c - $(CC) $(RUBY_CFLAGS) $(EXTRA_CFLAGS) -c itex2MML_ruby.c -I$(RUBYHDRDIR) -I$(RUBYDIR) -o itex2MML_ruby.o + $(CC) $(RUBY_CFLAGS) $(EXTRA_CFLAGS) -c itex2MML_ruby.c -I$(RUBYHDRDIR) $(RUBYARCHINCLUDE) -I$(RUBYDIR) -o itex2MML_ruby.o y.tab_ruby.o: y.tab.c $(CC) $(RUBY_CFLAGS) -Ditex2MML_CAPTURE -c -o y.tab_ruby.o y.tab.c @@@@ -77,5 +77,5 @@@@ test_ruby: @ 1.4 log @Update to ruby-itex2MML to 1.4.5 and should be fix PR pkg/44454. * Now support Ruby 1.9.2. * introduced Extensible Arrows support with version 1.4.0 and later. Please refer full changes: http://golem.ph.utexas.edu/~distler/code/itexToMML/changes @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2010/09/10 08:15:55 taca Exp $ d6 1 d22 11 a32 4 @@@@ -44,11 +43,12 @@@@ RUBY_PREFIX = $(shell $(RUBY) -e 'requi RUBY_ARCH = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["arch"]') RUBYDIR = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["archdir"]') RUBYHDRDIR = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["rubyhdrdir"]') d35 16 a50 6 +RUBY_SITEDIR = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["vendorlibdir"]') +RUBY_SITEARCHDIR = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["vendorarchdir"]') LIBRUBYARG = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["LIBRUBYARG"]') DYLIB_EXT = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["DLEXT"]') RUBY_target_os = $(shell $(RUBY) -e 'require "rbconfig"; print Config::CONFIG["target_os"]') +RUBYARCHINCLUDE = $(shell $(RUBY) -e 'require "rbconfig"; if Config::CONFIG["ruby_version"] > "1.8"; print "-I" + File.join(Config::CONFIG["rubyhdrdir"], Config::CONFIG["arch"]); end ') @ 1.3 log @Update textproc/ruby-itex2MML to 1.3.25. * Add LICENSE. * Remove RUBY_HAS_ARCHLIB. * Add PKG_DESTDIR_SUPPORT. No exact changes are available. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2008/06/19 14:56:14 taca Exp $ d5 1 d21 1 a21 1 @@@@ -44,8 +43,8 @@@@ RUBY_PREFIX = $(shell $(RUBY) -e 'requi d32 14 a45 1 @@@@ -77,5 +76,5 @@@@ test_ruby: @ 1.2 log @- Switch to use vendor_dir with Ruby 1.8.7. - And make it build with Ruby 1.8.7, too. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1.1.1 2007/06/14 18:56:59 minskim Exp $ d3 4 a6 1 --- Makefile.orig 2007-02-22 17:51:13.000000000 +0000 d8 1 a8 1 @@@@ -1,6 +1,8 @@@@ d12 5 a16 2 +RUBY?= ruby +SWIG?= swig d20 13 a32 36 @@@@ -34,19 +36,19 @@@@ clean: install: itex2MML $(INSTALL) itex2MML $(BINDIR) -RUBY_CFLAGS = $(shell ruby -e 'require "rbconfig"; print Config::CONFIG["CCDLFLAGS"]') -RUBY_LD = MACOSX_DEPLOYMENT_TARGET=10.4 $(shell ruby -e 'require "rbconfig"; print Config::CONFIG["LDSHARED"]') -RUBYLIBDIR =$(shell ruby -e 'require "rbconfig"; print Config::CONFIG["libdir"]') +RUBY_CFLAGS = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["CCDLFLAGS"]') +RUBY_LD = MACOSX_DEPLOYMENT_TARGET=10.4 $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["LDSHARED"]') +RUBYLIBDIR =$(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["libdir"]') RUBY_PREFIX = $(RUBYLIBDIR)/ruby -RUBY_ARCH = $(shell ruby -e 'require "rbconfig"; print Config::CONFIG["arch"]') -RUBYDIR = $(shell ruby -e 'require "rbconfig"; print Config::CONFIG["archdir"]') -RUBY_SITEDIR = $(shell ruby -e 'require "rbconfig"; print Config::CONFIG["sitelibdir"]') -RUBY_SITEARCHDIR = $(shell ruby -e 'require "rbconfig"; print Config::CONFIG["sitearchdir"]') -LIBRUBYARG = $(shell ruby -e 'require "rbconfig"; print Config::CONFIG["LIBRUBYARG"]') -DYLIB_EXT = $(shell ruby -e 'require "rbconfig"; print Config::CONFIG["DLEXT"]') +RUBY_ARCH = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["arch"]') +RUBYDIR = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["archdir"]') +RUBY_SITEDIR = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["vendorlibdir"]') +RUBY_SITEARCHDIR = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["vendorarchdir"]') +LIBRUBYARG = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["LIBRUBYARG"]') +DYLIB_EXT = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["DLEXT"]') itex2MML_ruby.c: itex2MML.i - swig -ruby -o itex2MML_ruby.c itex2MML.i + ${SWIG} -ruby -o itex2MML_ruby.c itex2MML.i itex2MML_ruby.o: itex2MML_ruby.c $(CC) $(RUBY_CFLAGS) -c itex2MML_ruby.c -I$(RUBYDIR) -o itex2MML_ruby.o @@@@ -61,8 +63,8 @@@@ ruby: itex2MML_ruby.o y.tab_ruby.o lex.y $(RUBY_LD) itex2MML_ruby.o y.tab_ruby.o lex.yy_ruby.o -L$(RUBYLIBDIR) $(LIBRUBYARG) -o itex2MML.$(DYLIB_EXT) test_ruby: - ruby ./itextomml.rb + ${RUBY} ./itextomml.rb d35 4 a38 3 $(INSTALL) itex2MML.$(DYLIB_EXT) $(RUBY_SITEARCHDIR) - $(INSTALL) itextomml.rb $(RUBY_SITEDIR) + $(INSTALL) -m 0644 itextomml.rb $(RUBY_SITEDIR) @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- Makefile.orig 2007-02-22 09:51:13.000000000 -0800 d33 2 a34 2 +RUBY_SITEDIR = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["sitelibdir"]') +RUBY_SITEARCHDIR = $(shell ${RUBY} -e 'require "rbconfig"; print Config::CONFIG["sitearchdir"]') d44 1 a44 1 @@@@ -61,7 +63,7 @@@@ ruby: itex2MML_ruby.o y.tab_ruby.o lex.y d53 2 @ 1.1.1.1 log @Import ruby-itex2MML. itex2MML converts the itex equations to MathML. This is a Ruby binding for itex2MML. @ text @@