Skip to content

Commit

Permalink
This updates rubinius to 1.2.0. Among other things, a few of our
Browse files Browse the repository at this point in the history
patches were accepted upstream.

Rubinius previously installed into a versioned directory, this
update changes it to install into an unversioned directory.
This is going to change the PLIST of all dependent gem ports,
and a commit for them as well as a commit for ruby.port.mk will
be going in shortly.

Minor versions of rubinius do not maintain binary compatibility,
so we'll still need to bump all dependent ports that use C
extensions whenever the minor version of rubinius is updated, but
it is better than bumping all dependent ports.

While here, add some CONFIGURE_ENV stuff to make it possible to
build more ports with C extensions that depend on libraries in
LOCALBASE/lib.

OK landry@
  • Loading branch information
Jeremy Evans committed Jan 6, 2011
1 parent fc876e3 commit 2f56bcd
Show file tree
Hide file tree
Showing 7 changed files with 2,323 additions and 1,826 deletions.
32 changes: 18 additions & 14 deletions lang/rubinius/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# $OpenBSD: Makefile,v 1.3 2010/12/19 19:27:49 jeremy Exp $
# $OpenBSD: Makefile,v 1.4 2011/01/06 04:14:10 jeremy Exp $

SHARED_ONLY= Yes

COMMENT = Ruby virtual machine and core library

V= 1.1.1
DISTNAME = rubinius-${V}-20101116
V= 1.2.0
DISTNAME = rubinius-${V}-20101221
PKGNAME = rubinius-$V
REVISION = 1

CATEGORIES = lang lang/ruby

Expand Down Expand Up @@ -35,35 +34,40 @@ MODULES = lang/ruby
USE_GMAKE = Yes
USE_LIBTOOL= Yes

M= ${V:R}
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 M RAKE_VER RAKE_COMPILER_VER RDOC_VER RUBY_DEBUG_VER
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:
cd ${WRKSRC} && ${RUBY} configure --prefix=${PREFIX}/lib \
--skip-prebuilt --disable-llvm --rake=${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/${M}/bin/rbx ${PREFIX}/bin/rbx
mkdir ${PREFIX}/lib/rubinius/${M}/gems/1.8/{,cache,doc,gems,specifications}
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/${M}/runtime \
RBX_LIB=${PREFIX}/lib/rubinius/${M}/lib \
${PREFIX}/lib/rubinius/${M}/bin/rbx -rrbconfig -e \
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
cd ${WRKSRC} && RUBY=${RUBY} ${RUBY} mspec/bin/mspec ci --background --agent

REGRESS_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}

Expand Down
10 changes: 5 additions & 5 deletions lang/rubinius/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MD5 (rubinius-1.1.1-20101116.tar.gz) = s59hjuujfDr/IV2ovKVf1w==
RMD160 (rubinius-1.1.1-20101116.tar.gz) = pRoC7onERrFpJwukoQVIoL9jCOE=
SHA1 (rubinius-1.1.1-20101116.tar.gz) = Fsj6EVHP75hjMqmKqf8umWBM9s0=
SHA256 (rubinius-1.1.1-20101116.tar.gz) = OElAboWs4Iiw2rjFpA4F54xHCsNhqOyJIr3X1WS6KNI=
SIZE (rubinius-1.1.1-20101116.tar.gz) = 8057356
MD5 (rubinius-1.2.0-20101221.tar.gz) = QoTCZg8fZIlC3jXU/IcfcA==
RMD160 (rubinius-1.2.0-20101221.tar.gz) = dFr2fEJ0ZZ3AJa9wh9xliQVjCn8=
SHA1 (rubinius-1.2.0-20101221.tar.gz) = F1N7KtPD21qY6dppqW+O3kGFMBk=
SHA256 (rubinius-1.2.0-20101221.tar.gz) = h0Nd/M19fTWVRf4ezRXhIC7e2QpaQ9mpYQAeKyO7a0c=
SIZE (rubinius-1.2.0-20101221.tar.gz) = 8585180
30 changes: 0 additions & 30 deletions lang/rubinius/patches/patch-vm_external_libs_libffi_configure

This file was deleted.

74 changes: 0 additions & 74 deletions lang/rubinius/patches/patch-vm_external_libs_libffi_src_arm_sysv_S

This file was deleted.

16 changes: 0 additions & 16 deletions lang/rubinius/patches/patch-vm_external_libs_libffi_src_mips_ffi_c

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2f56bcd

Please sign in to comment.