70601463f4
Update OBS-URL: https://build.opensuse.org/request/show/286425 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libcaca?expand=0&rev=33
45 lines
1.9 KiB
Diff
45 lines
1.9 KiB
Diff
Index: configure.ac
|
|
===================================================================
|
|
--- configure.ac.orig 2012-05-14 11:56:04.447928052 +0200
|
|
+++ configure.ac 2012-05-14 12:03:02.562272828 +0200
|
|
@@ -465,14 +465,17 @@
|
|
if test "${enable_ruby}" != "no"; then
|
|
AC_PATH_PROG(RUBY, ruby, no)
|
|
if test "${RUBY}" != "no"; then
|
|
- RUBY_CFLAGS="$(ruby -r mkmf -e 'conf = RbConfig::CONFIG.merge("hdrdir" => $hdrdir, "arch_hdrdir" => $arch_hdrdir); print RbConfig::expand("#$INCFLAGS", conf)')"
|
|
+ RUBY_CFLAGS=$(pkg-config --cflags ruby-1.9)
|
|
+ if test -z "$RUBY_CFLAGS"; then
|
|
+ RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@')"
|
|
+ fi
|
|
RUBY_LIBS="-L$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"libdir"@:>@') -l$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"RUBY_SO_NAME"@:>@')"
|
|
- RUBY_SITEARCHDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"sitearchdir"@:>@'`
|
|
- RUBY_SITELIBDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"sitelibdir"@:>@'`
|
|
+ RUBY_VENDORARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"vendorarchdir"@:>@'`
|
|
+ RUBY_VENDORLIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"vendorlibdir"@:>@'`
|
|
AC_SUBST(RUBY_CFLAGS)
|
|
AC_SUBST(RUBY_LIBS)
|
|
- AC_SUBST(RUBY_SITEARCHDIR)
|
|
- AC_SUBST(RUBY_SITELIBDIR)
|
|
+ AC_SUBST(RUBY_VENDORARCHDIR)
|
|
+ AC_SUBST(RUBY_VENDORLIBDIR)
|
|
CPPFLAGS="${CPPFLAGS} ${RUBY_CFLAGS}"
|
|
AC_CHECK_HEADERS([ruby.h],
|
|
[ac_cv_my_have_ruby="yes"
|
|
Index: ruby/Makefile.am
|
|
===================================================================
|
|
--- ruby/Makefile.am.orig 2012-05-14 11:56:04.460927441 +0200
|
|
+++ ruby/Makefile.am 2012-05-14 11:56:04.474926783 +0200
|
|
@@ -1,10 +1,10 @@
|
|
|
|
-rubylibdir = $(RUBY_SITEARCHDIR)
|
|
-rubysitedir = $(RUBY_SITELIBDIR)
|
|
+rubylibdir = $(RUBY_VENDORARCHDIR)
|
|
+rubyvendordir = $(RUBY_VENDORLIBDIR)
|
|
|
|
if USE_RUBY
|
|
rubylib_LTLIBRARIES = caca.la
|
|
-rubysite_DATA = lib/caca.rb
|
|
+rubyvendor_DATA = lib/caca.rb
|
|
TESTS = test
|
|
endif
|
|
|