Skip to content

Commit

Permalink
Update MODRUBY_ARCH to remove OpenBSD version, and add
Browse files Browse the repository at this point in the history
MODRUBY_SITEDIR and MODRUBY_SITEARCHDIR so that ports can build
on multiple ruby implementations (plus it makes for nicer PLISTs).

OK landry@, jcs@
  • Loading branch information
Jeremy Evans committed Jul 19, 2011
1 parent b1c8c9e commit 14dc077
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lang/ruby/ruby.port.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $OpenBSD: ruby.port.mk,v 1.44 2011/03/24 21:26:59 jeremy Exp $
# $OpenBSD: ruby.port.mk,v 1.45 2011/07/19 17:26:30 jeremy Exp $

# ruby module

Expand Down Expand Up @@ -191,8 +191,16 @@ SUBST_VARS += ^MODRUBY_RELDOCDIR ^MODRUBY_RELEXAMPLEDIR

.if ${MODRUBY_REV} == jruby
MODRUBY_ARCH= ${MACHINE_ARCH:S/amd64/x86_64/}-java
MODRUBY_SITEDIR = jruby/lib/ruby/site_ruby/${MODRUBY_LIBREV}
MODRUBY_SITEARCHDIR = ${MODRUBY_SITEDIR}/java
.elif ${MODRUBY_REV} == rbx
MODRUBY_ARCH= ${MACHINE_ARCH}-openbsd
MODRUBY_SITEDIR = lib/rubinius/site/
MODRUBY_SITEARCHDIR = ${MODRUBY_SITEDIR}/${MODRUBY_ARCH}
.else
MODRUBY_ARCH= ${MACHINE_ARCH:S/amd64/x86_64/}-openbsd${OSREV}
MODRUBY_ARCH= ${MACHINE_ARCH:S/amd64/x86_64/}-openbsd
MODRUBY_SITEDIR = lib/ruby/site_ruby/${MODRUBY_LIBREV}
MODRUBY_SITEARCHDIR = ${MODRUBY_SITEDIR}/${MODRUBY_ARCH}
.endif

# Assume that we want to automatically add ruby to BUILD_DEPENDS
Expand Down Expand Up @@ -390,7 +398,8 @@ do-install: ${MODRUBY_INSTALL_COOKIE}
.endif

# These are mostly used by the non-gem ports.
SUBST_VARS+= MODRUBY_LIBREV MODRUBY_ARCH
SUBST_VARS+= ^MODRUBY_SITEARCHDIR ^MODRUBY_SITEDIR MODRUBY_LIBREV \
MODRUBY_ARCH

# regression stuff

Expand Down

0 comments on commit 14dc077

Please sign in to comment.