2013-05-26 21:22:51 +02:00
|
|
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
2008-04-06 10:58:21 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ruby
|
|
|
|
PORTVERSION= ${RUBY_PORTVERSION}
|
|
|
|
PORTREVISION= ${RUBY_PORTREVISION}
|
|
|
|
PORTEPOCH= ${RUBY_PORTEPOCH}
|
|
|
|
CATEGORIES= lang ruby ipv6
|
|
|
|
MASTER_SITES= ${MASTER_SITE_RUBY}
|
|
|
|
MASTER_SITE_SUBDIR= ${MASTER_SITE_SUBDIR_RUBY}
|
|
|
|
DISTNAME= ${RUBY_DISTNAME}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2011-11-01 23:56:45 +01:00
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
2013-11-27 17:42:22 +01:00
|
|
|
COMMENT?= Object-oriented interpreted scripting language
|
2008-04-06 10:58:21 +02:00
|
|
|
|
2013-12-13 03:17:30 +01:00
|
|
|
LICENSE= BSD2CLAUSE RUBY
|
|
|
|
LICENSE_COMB= dual
|
2013-12-12 00:07:43 +01:00
|
|
|
|
2013-11-27 17:42:22 +01:00
|
|
|
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
|
|
|
|
libffi.so:${PORTSDIR}/devel/libffi \
|
|
|
|
libyaml.so:${PORTSDIR}/textproc/libyaml
|
2010-02-16 01:08:17 +01:00
|
|
|
|
2008-04-06 10:58:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
WRKSRC= ${RUBY_WRKSRC}
|
|
|
|
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-pthread \
|
2009-02-09 18:49:51 +01:00
|
|
|
--with-ruby-version=minor \
|
|
|
|
--with-sitedir="${PREFIX}/lib/ruby/site_ruby" \
|
|
|
|
--with-vendordir="${PREFIX}/lib/ruby/vendor_ruby"
|
2008-04-06 10:58:21 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_LDCONFIG= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${RUBY_DISTVERSION}
|
|
|
|
|
|
|
|
RUBY_VER= 1.9
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_RUBY= yes
|
|
|
|
RUBY_NO_BUILD_DEPENDS= yes
|
|
|
|
RUBY_NO_RUN_DEPENDS= yes
|
|
|
|
|
2010-10-11 05:09:54 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2008-04-06 10:58:21 +02:00
|
|
|
NO_LATEST_LINK= yes
|
|
|
|
|
2013-01-11 23:05:13 +01:00
|
|
|
OPTIONS_DEFINE= RDOC DEBUG
|
|
|
|
RDOC_DESC= Build and install Rdoc indexes
|
|
|
|
DEBUG_DESC= Compile-in debug info
|
2008-04-06 10:58:21 +02:00
|
|
|
|
2013-09-20 21:53:09 +02:00
|
|
|
NO_STAGE= yes
|
2008-04-06 10:58:21 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# PORTEPOCH/PORTREVISION hack
|
|
|
|
|
|
|
|
.if ${PORTEPOCH} != 0
|
|
|
|
_SUF2= ,${PORTEPOCH}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORTREVISION} != 0
|
|
|
|
_SUF1= _${PORTREVISION}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS} # Keep this, else ruby will fail to load
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS} # libraries dependent op libpthread.
|
|
|
|
|
|
|
|
#
|
|
|
|
# Disable doc generation if requested or docs disabled at all
|
|
|
|
#
|
2013-01-11 23:05:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MRDOC} && ${PORT_OPTIONS:MDOCS}
|
2008-04-06 10:58:21 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-install-doc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-install-doc
|
|
|
|
.endif
|
|
|
|
|
2010-10-11 05:09:54 +02:00
|
|
|
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib ${LDFLAGS}" \
|
2010-08-31 05:58:11 +02:00
|
|
|
debugflags=
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
|
|
|
MLINKS= ${RUBY_NAME}.1 ruby.1
|
|
|
|
PLIST_SUB+= IF_DEFAULT=""
|
|
|
|
.else
|
2013-09-16 18:34:10 +02:00
|
|
|
PKGNAMESUFFIX= ${RUBY_VER:C/\.//}
|
2008-04-06 10:58:21 +02:00
|
|
|
PLIST_SUB+= IF_DEFAULT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2011-09-13 10:03:32 +02:00
|
|
|
INSTALLED_SCRIPTS= irb erb rdoc ri ruby testrb
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
EXTSAMPLES= bigdecimal/sample/*.rb \
|
|
|
|
curses/hello.rb \
|
|
|
|
curses/rain.rb \
|
|
|
|
curses/view.rb \
|
2010-10-11 05:09:54 +02:00
|
|
|
curses/view2.rb
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
EXTDOCS= bigdecimal/bigdecimal_*.html \
|
|
|
|
readline/README* \
|
|
|
|
ripper/README \
|
|
|
|
stringio/README \
|
2010-10-11 05:09:54 +02:00
|
|
|
syslog/syslog.txt
|
2008-04-06 10:58:21 +02:00
|
|
|
|
2009-02-09 18:49:51 +01:00
|
|
|
MAN1= ${RUBY_NAME}.1 erb${RUBY_SUFFIX}.1 irb${RUBY_SUFFIX}.1 \
|
2011-08-21 06:03:37 +02:00
|
|
|
ri${RUBY_SUFFIX}.1
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
# Macros to change variables in rbconfig.rb
|
|
|
|
RB_SET_CONF_VAR=${SH} -c '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' --
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's,-l$$pthread_lib,${PTHREAD_LIBS},g' \
|
|
|
|
-e '/^RUBY_LIB_PATH/s,\.\$$\{TEENY\},,' \
|
|
|
|
-e '/^RUBY_SITE_LIB_PATH2/s,\.\$$\{TEENY\},,' \
|
|
|
|
-e '/^RUBY_VENDOR_LIB_PATH2/s,\.\$$\{TEENY\},,' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2009-06-18 16:51:39 +02:00
|
|
|
#
|
|
|
|
# Eliminate all leftovers
|
|
|
|
#
|
|
|
|
@${FIND} ${WRKSRC}/ -name "*.orig" -delete
|
|
|
|
|
2008-04-06 10:58:21 +02:00
|
|
|
#
|
|
|
|
# Remove modules we don't want
|
|
|
|
#
|
|
|
|
.for d in win32ole
|
|
|
|
${RM} -rf ${BUILD_WRKSRC}/ext/${d}
|
|
|
|
.endfor
|
2011-09-13 10:03:32 +02:00
|
|
|
# We get rake from ports.
|
|
|
|
.for d in bin/rake doc/rake lib/rake test/rake man/rake.1 lib/rake.rb
|
|
|
|
${RM} -rf ${BUILD_WRKSRC}/${d}
|
|
|
|
.endfor
|
|
|
|
# We get the gem executable from ports.
|
|
|
|
${RM} ${BUILD_WRKSRC}/bin/gem
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Prepare modules we are wanting to build via external ports
|
|
|
|
#
|
|
|
|
.for d in gdbm iconv tk
|
|
|
|
${MV} ${BUILD_WRKSRC}/ext/${d} ${WRKDIR}/
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
#
|
|
|
|
# Hack to allow modules to be installed into separate PREFIX and/or under user
|
|
|
|
# privilegies
|
|
|
|
#
|
|
|
|
@${RB_SET_CONF_VAR} "prefix" "ENV['PREFIX'] || \3"
|
|
|
|
@${RB_SET_CONF_VAR} "INSTALL" "ENV['RB_USER_INSTALL'] ? '/usr/bin/install -c' : '/usr/bin/install -c ${_BINOWNGRP}'"
|
|
|
|
@${RB_SET_CONF_VAR} "INSTALL_PROGRAM" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} ${STRIP} -m ${BINMODE}' : '${INSTALL_PROGRAM}'"
|
|
|
|
@${RB_SET_CONF_VAR} "INSTALL_SCRIPT" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} -m ${BINMODE}' : '${INSTALL_SCRIPT}'"
|
|
|
|
@${RB_SET_CONF_VAR} "INSTALL_DATA" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} -m ${SHAREMODE}' : '${INSTALL_DATA}'"
|
|
|
|
|
|
|
|
pre-su-install:
|
|
|
|
${MKDIR} ${RUBY_DOCDIR} \
|
|
|
|
${RUBY_EXAMPLESDIR} \
|
|
|
|
${RUBY_RIDIR} \
|
|
|
|
${RUBY_SITERIDIR} \
|
|
|
|
${RUBY_SITEARCHLIBDIR} \
|
|
|
|
${RUBY_VENDORARCHLIBDIR}
|
|
|
|
|
|
|
|
${SETENV} LC_TIME=C /bin/date > ${RUBY_RIDIR}/created.rid
|
|
|
|
${SETENV} LC_TIME=C /bin/date > ${RUBY_SITERIDIR}/created.rid
|
|
|
|
${TOUCH} ${RUBY_EXAMPLESDIR}/.keep_me
|
|
|
|
${TOUCH} ${RUBY_DOCDIR}/.keep_me
|
|
|
|
${TOUCH} ${RUBY_SITEARCHLIBDIR}/.keep_me
|
|
|
|
${TOUCH} ${RUBY_VENDORARCHLIBDIR}/.keep_me
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
#
|
|
|
|
# XXX: hack to strip ruby binary. Ruby uses its own install script that seems
|
|
|
|
# bogus to hack.
|
|
|
|
#
|
|
|
|
.if defined(STRIP) && ${STRIP} == -s
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/${RUBY_NAME}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Link just installed "ruby" to "ruby18", etc.
|
|
|
|
#
|
|
|
|
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
|
|
|
. for FILE in ${INSTALLED_SCRIPTS}
|
|
|
|
${LN} -f ${PREFIX}/bin/${FILE}${RUBY_SUFFIX} ${PREFIX}/bin/${FILE}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2013-01-11 23:05:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-04-06 10:58:21 +02:00
|
|
|
# Create all dirs required (":u" isn't avaiable in STABLE yet :-()
|
|
|
|
${MKDIR} ${EXTSAMPLES:C,^([^/]+)/.*,\1,:S,^,${RUBY_EXAMPLESDIR}/,}
|
|
|
|
${MKDIR} ${EXTDOCS:C,^([^/]+)/.*,\1,:S,^,${RUBY_DOCDIR}/,}
|
|
|
|
.for FILE in ${EXTSAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \
|
|
|
|
${RUBY_EXAMPLESDIR}/${FILE:C,^([^/]+)/.*,\1,}/
|
|
|
|
.endfor
|
|
|
|
.for FILE in ${EXTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \
|
|
|
|
${RUBY_DOCDIR}/${FILE:C,^([^/]+)/.*,\1,}/
|
|
|
|
.endfor
|
|
|
|
@(cd ${WRKSRC}/sample/ && ${COPYTREE_SHARE} \* ${RUBY_EXAMPLESDIR}/)
|
|
|
|
@(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${RUBY_DOCDIR}/)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYING* \
|
|
|
|
${WRKSRC}/ChangeLog \
|
|
|
|
${WRKSRC}/LEGAL \
|
|
|
|
${WRKSRC}/README* \
|
|
|
|
${RUBY_DOCDIR}/
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Add generated RI files to pkg-plist
|
|
|
|
#
|
|
|
|
@${FIND} -ds ${RUBY_RIDIR}/ ! -type d ! -name created.rid | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} -ds ${RUBY_RIDIR}/ -type d -mindepth 1 | \
|
|
|
|
${SED} -E -e 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
|
2011-11-21 21:59:09 +01:00
|
|
|
|
2010-10-11 05:09:54 +02:00
|
|
|
#
|
|
|
|
# Add generated doxygen files to pkg-plist
|
|
|
|
#
|
2008-04-06 10:58:21 +02:00
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/${RUBY_SITERIDIR:S,^${PREFIX}/,,} 2>/dev/null || true" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/${RUBY_RIDIR:S,^${PREFIX}/,,} 2>/dev/null || true" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/share/ri/${RUBY_VER} 2>/dev/null || true" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/share/ri 2>/dev/null || true" >> ${TMPPLIST}
|
2010-10-11 05:09:54 +02:00
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/${RUBY_DOCDIR:S,^${PREFIX}/,,} 2>/dev/null || true" >> ${TMPPLIST}
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2013-07-11 22:07:33 +02:00
|
|
|
plist:
|
2008-04-06 10:58:21 +02:00
|
|
|
truncate -s0 pkg-plist
|
|
|
|
.for FILE in ${INSTALLED_SCRIPTS}
|
|
|
|
@${ECHO_CMD} "bin/${FILE}%%RUBY_SUFFIX%%" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "%%IF_DEFAULT%%bin/${FILE}" >> pkg-plist
|
|
|
|
.endfor
|
|
|
|
@${ECHO_CMD} "lib/lib%%RUBY_NAME%%-static.a" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "lib/lib%%RUBY_NAME%%.so" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%" >> pkg-plist
|
2011-11-21 21:59:09 +01:00
|
|
|
@${ECHO_CMD} "libdata/pkgconfig/ruby-1.9.pc" >> pkg-plist
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Includes
|
|
|
|
#
|
|
|
|
@${FIND} -ds ${PREFIX}/include/ruby-${RUBY_VER} ! -type d | \
|
2009-02-09 18:49:51 +01:00
|
|
|
${SED} 's,^${PREFIX}/*,,' >> pkg-plist
|
2008-04-06 10:58:21 +02:00
|
|
|
@${FIND} -ds ${PREFIX}/include/ruby-${RUBY_VER} -type d | \
|
2009-02-09 18:49:51 +01:00
|
|
|
${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Vendor and site libs
|
|
|
|
#
|
2011-08-21 06:03:37 +02:00
|
|
|
@${FIND} -Eds ${RUBY_DOCDIR}/ ! -type d ! -name .keep_me | \
|
2008-04-06 10:58:21 +02:00
|
|
|
${SED} 's,^${RUBY_DOCDIR},%%PORTDOCS%%%%RUBY_DOCDIR%%,' \
|
|
|
|
>> pkg-plist
|
2011-08-21 06:03:37 +02:00
|
|
|
@${FIND} -Eds ${RUBY_DOCDIR}/ -type d -mindepth 1 | ${SORT} -r | \
|
2008-04-06 10:58:21 +02:00
|
|
|
${SED} -E -e \
|
|
|
|
's,^${RUBY_DOCDIR}(.*),%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%\1,' \
|
|
|
|
>> pkg-plist
|
|
|
|
|
|
|
|
@${FIND} -ds ${RUBY_EXAMPLESDIR}/ ! -type d ! -name .keep_me | \
|
|
|
|
${SED} 's,^${RUBY_EXAMPLESDIR},%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%,' \
|
|
|
|
>> pkg-plist
|
|
|
|
@${FIND} -ds ${RUBY_EXAMPLESDIR}/ -type d -mindepth 1 | ${SORT} -r | \
|
|
|
|
${SED} -E -e \
|
|
|
|
's,^${RUBY_EXAMPLESDIR}(.*),%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%\1,' \
|
|
|
|
>> pkg-plist
|
|
|
|
|
|
|
|
@${ECHO_CMD} "%%RUBY_DOCDIR%%/.keep_me" >> pkg-plist
|
2010-10-11 05:09:54 +02:00
|
|
|
# @${ECHO_CMD} "@dirrmtry %%RUBY_DOCDIR%%" >> pkg-plist
|
2008-04-06 10:58:21 +02:00
|
|
|
|
|
|
|
@${ECHO_CMD} "%%RUBY_EXAMPLESDIR%%/.keep_me" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@dirrmtry %%RUBY_EXAMPLESDIR%%" >> pkg-plist
|
|
|
|
|
|
|
|
@${ECHO_CMD} "@exec /bin/mkdir -p %D/%%RUBY_RIDIR%%" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@exec env LC_TIME=C /bin/date > %D/%%RUBY_RIDIR%%/created.rid" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@unexec /bin/rm -f %D/%%RUBY_RIDIR%%/created.rid" \
|
|
|
|
>> pkg-plist
|
|
|
|
|
|
|
|
@${ECHO_CMD} "@exec /bin/mkdir -p %D/%%RUBY_SITERIDIR%%" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@exec env LC_TIME=C /bin/date > %D/%%RUBY_SITERIDIR%%/created.rid" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@unexec /bin/rm -f %D/%%RUBY_SITERIDIR%%/created.rid" \
|
|
|
|
>> pkg-plist
|
|
|
|
|
|
|
|
@${FIND} -ds ${RUBY_LIBDIR}/ ! -type d | \
|
|
|
|
${SED} 's,^${RUBY_LIBDIR},%%RUBY_LIBDIR%%,' >> pkg-plist
|
|
|
|
@${FIND} -ds ${RUBY_LIBDIR}/ -type d | ${SORT} -r | \
|
|
|
|
${SED} -E -e 's,^${RUBY_LIBDIR}(.*),@dirrm %%RUBY_LIBDIR%%\1,' >> pkg-plist
|
|
|
|
|
2011-08-23 05:47:28 +02:00
|
|
|
#
|
|
|
|
# Find all gem files/folders
|
|
|
|
#
|
|
|
|
@${ECHO_CMD} "%%RUBY_SITEARCHLIBDIR%%/.keep_me" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@dirrmtry %%RUBY_SITEARCHLIBDIR%%" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@dirrmtry %%RUBY_SITELIBDIR%%" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@dirrmtry lib/ruby/site_ruby" >> pkg-plist
|
|
|
|
|
|
|
|
@${ECHO_CMD} "%%RUBY_VENDORARCHLIBDIR%%/.keep_me" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@dirrmtry %%RUBY_VENDORARCHLIBDIR%%" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@dirrmtry %%RUBY_VENDORLIBDIR%%" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@dirrmtry lib/ruby/vendor_ruby" >> pkg-plist
|
|
|
|
@${ECHO_CMD} "@dirrmtry lib/ruby/gems" >> pkg-plist
|
|
|
|
|
|
|
|
@${ECHO_CMD} "@dirrmtry lib/ruby" >> pkg-plist
|
|
|
|
|
|
|
|
@${SED} -i "" -E -e "s,${RUBY_ARCH},%%RUBY_ARCH%%,g" pkg-plist
|
|
|
|
|
2008-04-06 10:58:21 +02:00
|
|
|
test:
|
|
|
|
@(cd ${WRKSRC}; ${MAKE} test)
|
|
|
|
|
2013-05-26 21:22:51 +02:00
|
|
|
validate:
|
2010-10-11 05:09:54 +02:00
|
|
|
@${MKDIR} ${WRKSRC}/rubyspec
|
|
|
|
rm -rf ${WRKSRC}/rubyspec/*
|
|
|
|
(cd ${WRKSRC}/rubyspec && git clone git://github.com/rubyspec/rubyspec.git)
|
|
|
|
(cd ${WRKSRC}/rubyspec && git clone git://github.com/rubyspec/mspec.git)
|
|
|
|
(cd ${WRKSRC}/rubyspec/rubyspec && env PATH=${WRKSRC}/rubyspec/mspec/bin:${PATH} mspec -t ${PREFIX}/bin/ruby${RUBY_SUFFIX})
|
|
|
|
|
2008-04-06 10:58:21 +02:00
|
|
|
.include <bsd.port.post.mk>
|