head	1.15;
access;
symbols
	RELEASE_8_3_0:1.13
	RELEASE_9_0_0:1.13
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.2;
locks; strict;
comment	@# @;


1.15
date	2012.11.17.05.58.56;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.06.13.05.13.04;	author bapt;	state Exp;
branches;
next	1.13;

1.13
date	2011.10.24.03.33.10;	author stas;	state Exp;
branches;
next	1.12;

1.12
date	2011.09.13.06.34.17;	author stas;	state Exp;
branches;
next	1.11;

1.11
date	2011.09.12.13.46.54;	author gabor;	state Exp;
branches;
next	1.10;

1.10
date	2011.08.10.09.07.24;	author linimon;	state Exp;
branches;
next	1.9;

1.9
date	2011.07.07.02.41.36;	author stas;	state Exp;
branches;
next	1.8;

1.8
date	2011.05.23.23.00.50;	author pav;	state Exp;
branches;
next	1.7;

1.7
date	2011.05.14.01.21.39;	author stas;	state Exp;
branches;
next	1.6;

1.6
date	2011.03.05.02.51.15;	author stas;	state Exp;
branches;
next	1.5;

1.5
date	2011.01.27.08.35.30;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2011.01.12.03.42.23;	author stas;	state Exp;
branches;
next	1.3;

1.3
date	2011.01.11.04.39.19;	author stas;	state Exp;
branches;
next	1.2;

1.2
date	2010.10.24.22.07.03;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2010.10.11.21.20.56;	author stas;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Switch exporter over
@
text
@# New ports collection makefile for:		rubinius
# Date created:					10/10/2010
# Whom:						stas
#
# $FreeBSD: head/lang/rubinius/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	rubinius
PORTVERSION=	1.2.4
PORTREVISION=	2
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=	ports@@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.8.tgz
USE_RUBY=	yes
RUBY_NO_RUN_DEPENDS=	yes
USE_RAKE=	yes
USE_PERL5_BUILD=	yes
USE_GMAKE=	yes
MAKE_JOBS_UNSAFE=	yes

OPTIONS_DEFINE=	GDBM
OPTIONS_DEFAULT=	GDBM
GDBM_DESC=	Enable GDBM support

.include <bsd.port.pre.mk>

.if ${OSVERSION} <= 701000
MANUAL_PACKAGE_BUILD=	hangs on pointyhat
.endif

.if ${ARCH} == "sparc64"
BROKEN=		Does not compile on sparc64
.endif

.if ${PORT_OPTIONS:MGDBM} || exists(${LOCALBASE}/include/gdbm.h)
LIB_DEPENDS=	gdbm.4:${PORTSDIR}/databases/gdbm
PLIST_SUB+=	GDBM=""
.else
PLIST_SUB+=	GDBM="@@comment "
.endif

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.post.mk>
@


1.14
log
@Convert to new options framework
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.13
log
@- Return my ports back to the pool.  I was unable to make any fixes to
  my ports in the past 3 weeks while ports were broken on any 10.x
  machines, which means I'm unable to maintain them.  So let people know
  that there's no available support for them until things are back to
  normal (which also means that anyone with spare time will be able
  to fix them without getting approval).
@
text
@d40 3
a42 1
OPTIONS=	GDBM	"Enable GDBM support"	on
d54 1
a54 1
.if !defined(WITHOUT_GDBM) || exists(${LOCALBASE}/include/gdbm.h)
@


1.12
log
@- Rubinius does not need ruby to run.
@
text
@d17 1
a17 1
MAINTAINER=	stas@@FreeBSD.org
@


1.11
log
@- Track dependencies after databases/gdbm update
@
text
@d10 1
a10 1
PORTREVISION=	1
d34 1
@


1.10
log
@Mark as broken on sparc64: does not compile.
@
text
@d10 1
d52 1
a52 1
LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm
@


1.9
log
@- Update to 1.2.4.
- Unbreak.
@
text
@d46 3
@


1.8
log
@- Mark BROKEN: does not compile

Reported by:	pointyhat
@
text
@d9 1
a9 1
PORTVERSION=	1.2.3
a30 2
BROKEN=		does not compile

@


1.7
log
@- Update to 1.2.3.
@
text
@d31 2
@


1.6
log
@- Update to 1.2.2.
@
text
@d9 1
a9 1
PORTVERSION=	1.2.2
@


1.5
log
@- Disallow from 7.x builds on pointyhat due to hangs

Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	1.2.0
@


1.4
log
@- Fix pkg-plist in case when gdbm is not present.
- Add option to enable/disable GDBM.

Reported by:	pav
Feature safe:	yes
@
text
@d42 2
a43 2
.if ${OSVERSION} < 700000
BROKEN=		does not build on 6.X
d46 1
@


1.3
log
@- Update to 1.2.
@
text
@d38 2
d46 7
@


1.2
log
@- Mark BROKEN on 6.X: does not build

Reported by:	pointyhat
@
text
@d9 1
a9 1
PORTVERSION=	1.1.0
d31 1
a31 1
LLVMDIST=	llvm-2.6-source.tar.bz2
@


1.1
log
@- Add port for lang/rubinius, a LLVM based ruby language implementation.

WWW:	http://rubini.us/
@
text
@d38 6
d103 1
a103 1
.include <bsd.port.mk>
@

