aboutsummaryrefslogtreecommitdiffstats
path: root/lang/rubinius/Makefile
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2010-10-12 05:20:56 +0800
committerstas <stas@FreeBSD.org>2010-10-12 05:20:56 +0800
commit92d253a924b0fde7e34b7cd722d714e24ffbbf81 (patch)
tree0ec8c7fa1c0d99eb07cec9e4b1ec8d3c0f4dd7d0 /lang/rubinius/Makefile
parent8b943ab324ba507ae53545c4f5aae8355805fdee (diff)
downloadfreebsd-ports-gnome-92d253a924b0fde7e34b7cd722d714e24ffbbf81.tar.gz
freebsd-ports-gnome-92d253a924b0fde7e34b7cd722d714e24ffbbf81.tar.zst
freebsd-ports-gnome-92d253a924b0fde7e34b7cd722d714e24ffbbf81.zip
- Add port for lang/rubinius, a LLVM based ruby language implementation.
WWW: http://rubini.us/
Diffstat (limited to 'lang/rubinius/Makefile')
-rw-r--r--lang/rubinius/Makefile97
1 files changed, 97 insertions, 0 deletions
diff --git a/lang/rubinius/Makefile b/lang/rubinius/Makefile
new file mode 100644
index 000000000000..cdb6ff8b8c40
--- /dev/null
+++ b/lang/rubinius/Makefile
@@ -0,0 +1,97 @@
+# New ports collection makefile for: rubinius
+# Date created: 10/10/2010
+# Whom: stas
+#
+# $FreeBSD$
+#
+
+PORTNAME= rubinius
+PORTVERSION= 1.1.0
+CATEGORIES= lang
+MASTER_SITES= ftp://ftp.SpringDaemons.com/soft/ \
+ http://asset.rubini.us/prebuilt/:llvm
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${LLVMDIST}:llvm
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= LLVM based ruby language implementation
+
+HAS_CONFIGURE= yes
+#execinfo is broken for unknow reason
+CONFIGURE_ARGS= --without-execinfo \
+ -P "${PREFIX}" \
+ -I "${PREFIX}/include/rubinius" \
+ -L "${PREFIX}/lib/ruby/rubinius" \
+ -G "${PREFIX}/lib/ruby/gems/rubinius" \
+ -B "${PREFIX}/bin" \
+ -M "${PREFIX}/man" \
+ --sitedir "${PREFIX}/lib/ruby/site_ruby/rubinius" \
+ --vendordir "${PREFIX}/lib/ruby/vendor_ruby/rubinius"
+
+LLVMDIST= llvm-2.6-source.tar.bz2
+USE_RUBY= yes
+USE_RAKE= yes
+USE_PERL5_BUILD= yes
+USE_GMAKE= yes
+MAKE_JOBS_UNSAFE= yes
+
+post-extract:
+ @${MKDIR} ${WRKSRC}/vm/external_libs/prebuilt/
+ @${CP} ${DISTDIR}/${LLVMDIST} ${WRKSRC}/vm/external_libs/prebuilt/${LLVMDIST}
+
+do-build:
+ @(cd ${WRKSRC}/; ${SETENV} ${MAKE_ENV} ${RAKE_BIN} build)
+
+do-install:
+ @(cd ${WRKSRC}/; ${SETENV} ${MAKE_ENV} ${RAKE_BIN} install)
+
+pre-install:
+ ${MKDIR} ${PREFIX}/lib/ruby/site_ruby/rubinius
+ ${MKDIR} ${PREFIX}/lib/ruby/vendor_ruby/rubinius
+ @${TOUCH} ${PREFIX}/lib/ruby/site_ruby/rubinius/.keep_me
+ @${TOUCH} ${PREFIX}/lib/ruby/vendor_ruby/rubinius/.keep_me
+
+plist:
+ truncate -s0 pkg-plist
+ @${ECHO_CMD} "bin/rbx" >> pkg-plist
+#
+# Includes
+#
+ @${FIND} -ds ${PREFIX}/include/rubinius ! -type d | \
+ ${SED} 's,^${PREFIX}/*,,' >> pkg-plist
+ @${FIND} -ds ${PREFIX}/include/rubinius -type d | \
+ ${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
+#
+# Libs
+#
+ @${FIND} -ds ${PREFIX}/lib/ruby/rubinius ! -type d | \
+ ${SED} 's,^${PREFIX}/*,,' >> pkg-plist
+ @${FIND} -ds ${PREFIX}/lib/ruby/rubinius -type d | \
+ ${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
+#
+# Gems
+#
+ @${FIND} -ds ${PREFIX}/lib/ruby/gems/rubinius ! -type d | \
+ ${SED} 's,^${PREFIX}/*,,' >> pkg-plist
+ @${FIND} -ds ${PREFIX}/lib/ruby/gems/rubinius -type d | \
+ ${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
+#
+# Site libs and vendor libs
+#
+ @${FIND} -ds ${PREFIX}/lib/ruby/site_ruby/rubinius ! -type d | \
+ ${SED} 's,^${PREFIX}/*,,' >> pkg-plist
+ @${FIND} -ds ${PREFIX}/lib/ruby/site_ruby/rubinius -type d | \
+ ${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
+ @${FIND} -ds ${PREFIX}/lib/ruby/vendor_ruby/rubinius ! -type d | \
+ ${SED} 's,^${PREFIX}/*,,' >> pkg-plist
+ @${FIND} -ds ${PREFIX}/lib/ruby/vendor_ruby/rubinius -type d | \
+ ${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
+#
+# Shared dirs
+#
+ @${ECHO_CMD} "@dirrmtry lib/ruby/site_ruby" >> 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
+
+.include <bsd.port.mk>