From e159b27cd5a2560fd0e7eb0c098c31b95673a19f Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 5 Aug 2005 18:03:23 +0000 Subject: [PATCH] - Fix build on 5.X and 6.X - Fix plist Approved by: portmgr (marcus) --- textproc/ruby-libxml/Makefile | 9 ++------- textproc/ruby-libxml/files/patch-extconf.rb | 11 +++++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 textproc/ruby-libxml/files/patch-extconf.rb diff --git a/textproc/ruby-libxml/Makefile b/textproc/ruby-libxml/Makefile index 00ba49901a22..445f58f442c8 100644 --- a/textproc/ruby-libxml/Makefile +++ b/textproc/ruby-libxml/Makefile @@ -19,16 +19,11 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/xml2-config:${PORTSDIR}/textproc/libxml2 LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/xml/libxml.so +PLIST_DIRS= %%RUBY_SITEARCHLIBDIR%%/xml USE_BZIP2= yes USE_RUBY= yes USE_RUBY_EXTCONF= yes INSTALL_TARGET= site-install -.include - -.if ${OSVERSION} >= 502126 -BROKEN= "Configure fails on FreeBSD >= 5.x" -.endif - -.include +.include diff --git a/textproc/ruby-libxml/files/patch-extconf.rb b/textproc/ruby-libxml/files/patch-extconf.rb new file mode 100644 index 000000000000..19da6467187b --- /dev/null +++ b/textproc/ruby-libxml/files/patch-extconf.rb @@ -0,0 +1,11 @@ +--- extconf.rb.orig Sun Dec 8 07:55:26 2002 ++++ extconf.rb Fri Aug 5 19:50:43 2005 +@@ -23,7 +23,7 @@ + dir_config('xml2') + + +-unless have_library('m', 'atan') ++unless have_library('m', 'atan', 'math.h') + crash('need libm') + end +