- Updates to 0.3.8.4

- Pass maintainship to submitter

PR:		118938
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
This commit is contained in:
Martin Wilke 2008-01-10 23:19:23 +00:00
parent 177c93c8d5
commit 73465ff975
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205428
4 changed files with 37 additions and 29 deletions

View File

@ -6,30 +6,38 @@
#
PORTNAME= libxml
PORTVERSION= 0.3.2
PORTVERSION= 0.3.8.4
CATEGORIES= textproc ruby
MASTER_SITES= http://www.rubynet.org/modules/xml/libxml/
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= libxml
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= gahr@gahr.ch
COMMENT= A friendly API to libxml for Ruby
BUILD_DEPENDS= ${LOCALBASE}/bin/xml2-config:${PORTSDIR}/textproc/libxml2
BUILD_DEPENDS= rake:${PORTSDIR}/devel/rubygem-rake \
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
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/xml/libxml_so.so \
%%RUBY_SITELIBDIR%%/xml/libxml.rb
PLIST_DIRS= %%RUBY_SITEARCHLIBDIR%%/xml \
%%RUBY_SITELIBDIR%%/xml
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_ICONV= yes
USE_LDCONFIG= yes
INSTALL_TARGET= site-install
post-patch:
${REINPLACE_CMD} -e 's|%%%PREFIX%%%|${PREFIX}|g' \
${WRKSRC}/ext/xml/extconf.rb
.include <bsd.port.pre.mk>
do-build:
cd ${WRKSRC} && rake test
.if ${OSVERSION} >= 700042
BROKEN= Does not compile with GCC 4.2
.endif
do-install:
cd ${WRKSRC} && rake install
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (ruby/libxml-0.3.2.tar.bz2) = a3f23a2a3b1c6fc18d46545f7c294dc9
SHA256 (ruby/libxml-0.3.2.tar.bz2) = c49bc4a8726cb2043348c426ac72b12e0dc42fc7cebc3c7171610be8e7933b15
SIZE (ruby/libxml-0.3.2.tar.bz2) = 25758
MD5 (libxml-ruby-0.3.8.4.tar.gz) = 2190715f1a4779a10d2610c39514ba49
SHA256 (libxml-ruby-0.3.8.4.tar.gz) = 8b8d091a77cb237789c684f65cb5e48b9920d4b212a7c5e6bd77594547b7809b
SIZE (libxml-ruby-0.3.8.4.tar.gz) = 59089

View File

@ -0,0 +1,11 @@
--- ext/xml/extconf.rb.orig 2006-10-20 13:37:49.000000000 +0200
+++ ext/xml/extconf.rb 2007-12-21 21:01:31.000000000 +0100
@@ -92,7 +92,7 @@
$CFLAGS << ' -Wall'
end
-$CFLAGS << ' ' << $INCFLAGS
+$CFLAGS << ' ' << $INCFLAGS << ' ' << "-I /usr/local/include -L /usr/local/lib"
$INSTALLFILES = [["libxml.rb", "$(RUBYLIBDIR)", "../xml"]]
create_header()

View File

@ -1,11 +0,0 @@
--- 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