2002-07-12 07:47:44 +02:00
|
|
|
# New ports collection makefile for: ruby-libxml
|
|
|
|
# Date created: 09 July 2002
|
2002-10-23 07:36:23 +02:00
|
|
|
# Whom: Sean Chittenden <seanc@FreeBSD.org>
|
2002-07-12 07:47:44 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libxml
|
2009-03-14 11:56:28 +01:00
|
|
|
PORTVERSION= 1.0.0
|
2002-07-12 07:47:44 +02:00
|
|
|
CATEGORIES= textproc ruby
|
2008-01-11 00:19:23 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= libxml
|
2002-07-12 07:47:44 +02:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2008-01-11 00:19:23 +01:00
|
|
|
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
|
2008-07-15 19:25:00 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
2002-07-12 07:47:44 +02:00
|
|
|
|
2008-02-21 22:20:01 +01:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A friendly API to libxml for Ruby
|
2002-07-12 07:47:44 +02:00
|
|
|
|
2002-10-23 07:36:23 +02:00
|
|
|
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2
|
2002-07-12 07:47:44 +02:00
|
|
|
|
|
|
|
USE_RUBY= yes
|
2008-01-11 00:19:23 +01:00
|
|
|
USE_ICONV= yes
|
2008-07-15 19:25:00 +02:00
|
|
|
USE_LDCONFIG= ${RUBY_SITEARCHLIBDIR}/xml
|
|
|
|
|
|
|
|
EXT_ARGS= --with-iconv-dir=${LOCALBASE} \
|
|
|
|
--with-iconv-lib=${LOCALBASE}/lib \
|
|
|
|
--with-iconv-include=${LOCALBASE}/include
|
|
|
|
|
2008-07-16 01:33:26 +02:00
|
|
|
post-patch:
|
2008-07-16 09:31:25 +02:00
|
|
|
${REINPLACE_CMD} -e 's|libxml_ruby|xml/libxml_ruby|' \
|
2008-07-16 01:33:26 +02:00
|
|
|
${WRKSRC}/lib/libxml.rb
|
|
|
|
|
2008-07-15 19:25:00 +02:00
|
|
|
do-configure:
|
2008-07-16 01:33:26 +02:00
|
|
|
cd ${WRKSRC}/ext/libxml && ${RUBY} extconf.rb build ${EXT_ARGS}
|
2002-07-12 07:47:44 +02:00
|
|
|
|
2008-01-11 00:19:23 +01:00
|
|
|
do-build:
|
2008-07-15 19:25:00 +02:00
|
|
|
cd ${WRKSRC}/ext/libxml && ${MAKE}
|
2007-07-02 21:01:04 +02:00
|
|
|
|
2008-01-11 00:19:23 +01:00
|
|
|
do-install:
|
2008-07-16 09:31:25 +02:00
|
|
|
${INSTALL} -d ${RUBY_SITELIBDIR}/xml ${RUBY_SITELIBDIR}/libxml ${RUBY_SITEARCHLIBDIR}/xml
|
2008-07-15 19:25:00 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libxml.rb ${RUBY_SITELIBDIR}/xml
|
2008-07-16 09:31:25 +02:00
|
|
|
(cd ${WRKSRC}/lib/libxml && ${COPYTREE_SHARE} \*.rb ${RUBY_SITELIBDIR}/libxml)
|
2008-07-16 01:33:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ext/libxml/libxml_ruby.so ${RUBY_SITEARCHLIBDIR}/xml/
|
2007-07-02 21:01:04 +02:00
|
|
|
|
2008-01-11 00:19:23 +01:00
|
|
|
.include <bsd.port.mk>
|