openbsd-ports/lang/rubinius/Makefile
2011-01-06 20:20:01 +00:00

78 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2011/01/06 20:20:01 jeremy Exp $
SHARED_ONLY= Yes
COMMENT = Ruby virtual machine and core library
V= 1.2.0
DISTNAME = rubinius-${V}-20101221
PKGNAME = rubinius-$V
REVISION = 0
CATEGORIES = lang lang/ruby
HOMEPAGE = http://rubini.us/
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c crypto curses gdbm m pthread readline ssl stdc++ \
${MODRUBY_WANTLIB}
MASTER_SITES = http://asset.rubini.us/
BUILD_DEPENDS = devel/bison \
devel/ruby-rake \
devel/libffi
LIB_DEPENDS = databases/gdbm \
${MODRUBY_LIB_DEPENDS}
MODULES = lang/ruby
USE_GMAKE = Yes
USE_LIBTOOL= Yes
RAKE_VER = 0.8.7
RAKE_COMPILER_VER = 0.6.0
RDOC_VER = 2.5.1
RUBY_DEBUG_VER = 0.10.47
SUBST_VARS= V RAKE_VER RAKE_COMPILER_VER RDOC_VER RUBY_DEBUG_VER
WRKDIST= ${WRKDIR}/rubinius-${V}
CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-DOPENSSL_NO_STATIC_ENGINE -I${LOCALBASE}/include" \
RELEASE=1
do-configure:
${SUBST_CMD} ${WRKSRC}/rakelib/vm.rake
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${RUBY} configure \
--prefix=${PREFIX}/lib/rubinius --skip-prebuilt --disable-llvm \
--rake=${RAKE}
do-build:
cd ${WRKSRC} && ${RAKE} build
do-install:
cd ${WRKSRC} && FAKEROOT=${WRKINST} ${RAKE} install
ln -s ${TRUEPREFIX}/lib/rubinius/bin/rbx ${PREFIX}/bin/rbx
mkdir ${PREFIX}/lib/rubinius/gems/1.8/{,cache,doc,gems,specifications}
for dir in sitelibdir sitearchdir; do \
mkdir -p ${WRKINST}/`RBX_RUNTIME=${PREFIX}/lib/rubinius/runtime \
RBX_LIB=${PREFIX}/lib/rubinius/lib \
${PREFIX}/lib/rubinius/bin/rbx -rrbconfig -e \
"puts RbConfig::CONFIG['$$dir']"`; done
# Some failures and likely infinite loop in mspec ci
do-regress:
cd ${WRKSRC} && ${RAKE} vm:test
cd ${WRKSRC} && RUBY=${RUBY} ${RUBY} mspec/bin/mspec ci --background --agent
REGRESS_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
.include <bsd.port.mk>