summaryrefslogtreecommitdiff
path: root/textproc/ruby-libxml/Makefile
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2009-06-28 14:12:40 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2009-06-28 14:12:40 +0000
commitb3582ce0f278b89e7afa652ec3d2dc76a94e2893 (patch)
treef2a182d24532d875b329b20ec60c80452627f7c8 /textproc/ruby-libxml/Makefile
parent3ab05ed73164d36b7d67f6a8bcd75e51fd54c68f (diff)
Notes
Diffstat (limited to 'textproc/ruby-libxml/Makefile')
-rw-r--r--textproc/ruby-libxml/Makefile25
1 files changed, 3 insertions, 22 deletions
diff --git a/textproc/ruby-libxml/Makefile b/textproc/ruby-libxml/Makefile
index d3cd031e46da..138335880afa 100644
--- a/textproc/ruby-libxml/Makefile
+++ b/textproc/ruby-libxml/Makefile
@@ -20,27 +20,8 @@ COMMENT= A friendly API to libxml for Ruby
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2
USE_RUBY= yes
-USE_ICONV= yes
-USE_LDCONFIG= ${RUBY_SITEARCHLIBDIR}/xml
-
-EXT_ARGS= --with-iconv-dir=${LOCALBASE} \
- --with-iconv-lib=${LOCALBASE}/lib \
- --with-iconv-include=${LOCALBASE}/include
-
-post-patch:
- ${REINPLACE_CMD} -e 's|libxml_ruby|xml/libxml_ruby|' \
- ${WRKSRC}/lib/libxml.rb
-
-do-configure:
- cd ${WRKSRC}/ext/libxml && ${RUBY} extconf.rb build ${EXT_ARGS}
-
-do-build:
- cd ${WRKSRC}/ext/libxml && ${MAKE}
-
-do-install:
- ${INSTALL} -d ${RUBY_SITELIBDIR}/xml ${RUBY_SITELIBDIR}/libxml ${RUBY_SITEARCHLIBDIR}/xml
- ${INSTALL_DATA} ${WRKSRC}/lib/libxml.rb ${RUBY_SITELIBDIR}/xml
- (cd ${WRKSRC}/lib/libxml && ${COPYTREE_SHARE} \*.rb ${RUBY_SITELIBDIR}/libxml)
- ${INSTALL_DATA} ${WRKSRC}/ext/libxml/libxml_ruby.so ${RUBY_SITEARCHLIBDIR}/xml/
+USE_RUBYGEMS= yes
+GEM_NAME= ${PORTNAME}-ruby-${PORTVERSION}
+RUBYGEM_AUTOPLIST= yes
.include <bsd.port.mk>