head	1.156;
access;
symbols
	RELEASE_8_3_0:1.153
	RELEASE_9_0_0:1.153
	RELEASE_7_4_0:1.151
	RELEASE_8_2_0:1.151
	RELEASE_6_EOL:1.150
	RELEASE_8_1_0:1.146
	RELEASE_7_3_0:1.145
	RELEASE_8_0_0:1.144
	RELEASE_7_2_0:1.140
	RELEASE_7_1_0:1.135
	RELEASE_6_4_0:1.135
	RELEASE_5_EOL:1.134
	RELEASE_7_0_0:1.134
	RELEASE_6_3_0:1.134
	PRE_XORG_7:1.129
	RELEASE_4_EOL:1.124
	RELEASE_6_2_0:1.117
	RELEASE_6_1_0:1.103
	RELEASE_5_5_0:1.103
	RELEASE_6_0_0:1.86
	RELEASE_5_4_0:1.85
	RELEASE_4_11_0:1.82
	RELEASE_5_3_0:1.77
	RELEASE_4_10_0:1.73
	RELEASE_5_2_1:1.68
	RELEASE_5_2_0:1.68
	RELEASE_4_9_0:1.66
	old_RELEASE_5_1_0:1.59
	old_RELEASE_4_8_0:1.57
	old_RELEASE_5_0_0:1.45
	old_RELEASE_4_7_0:1.39
	old_RELEASE_4_6_2:1.34
	old_RELEASE_4_6_1:1.34
	old_RELEASE_4_6_0:1.34
	old_RELEASE_5_0_DP1:1.30
	old_RELEASE_4_5_0:1.27
	old_RELEASE_4_4_0:1.20;
locks; strict;
comment	@# @;


1.156
date	2013.01.11.23.13.18;	author svnexp;	state Exp;
branches;
next	1.155;

1.155
date	2012.11.17.05.58.56;	author svnexp;	state Exp;
branches;
next	1.154;

1.154
date	2012.09.18.20.41.15;	author swills;	state Exp;
branches;
next	1.153;

1.153
date	2011.11.01.22.56.44;	author pgollucci;	state Exp;
branches;
next	1.152;

1.152
date	2011.10.24.03.33.11;	author stas;	state Exp;
branches;
next	1.151;

1.151
date	2010.12.04.07.32.24;	author ade;	state Exp;
branches;
next	1.150;

1.150
date	2010.10.16.11.52.15;	author ade;	state Exp;
branches;
next	1.149;

1.149
date	2010.10.05.19.57.42;	author ade;	state Exp;
branches;
next	1.148;

1.148
date	2010.09.15.18.34.39;	author ade;	state Exp;
branches;
next	1.147;

1.147
date	2010.08.31.03.58.11;	author pgollucci;	state Exp;
branches;
next	1.146;

1.146
date	2010.04.06.23.54.52;	author stas;	state Exp;
branches;
next	1.145;

1.145
date	2009.10.12.13.15.50;	author stas;	state Exp;
branches;
next	1.144;

1.144
date	2009.07.19.16.42.09;	author stas;	state Exp;
branches;
next	1.143;

1.143
date	2009.06.19.12.42.44;	author stas;	state Exp;
branches;
next	1.142;

1.142
date	2009.06.03.11.32.18;	author stas;	state Exp;
branches;
next	1.141;

1.141
date	2009.06.02.17.25.37;	author stas;	state Exp;
branches;
next	1.140;

1.140
date	2009.02.12.17.54.27;	author stas;	state Exp;
branches;
next	1.139;

1.139
date	2009.02.12.14.59.29;	author stas;	state Exp;
branches;
next	1.138;

1.138
date	2009.02.12.14.24.56;	author stas;	state Exp;
branches;
next	1.137;

1.137
date	2009.01.12.11.19.20;	author stas;	state Exp;
branches;
next	1.136;

1.136
date	2009.01.05.20.36.32;	author pav;	state Exp;
branches;
next	1.135;

1.135
date	2008.08.15.21.45.55;	author stas;	state Exp;
branches;
next	1.134;

1.134
date	2007.10.30.11.24.58;	author stas;	state Exp;
branches;
next	1.133;

1.133
date	2007.10.03.23.22.04;	author edwin;	state Exp;
branches;
next	1.132;

1.132
date	2007.07.23.09.36.06;	author rafan;	state Exp;
branches;
next	1.131;

1.131
date	2007.07.10.15.04.48;	author stas;	state Exp;
branches;
next	1.130;

1.130
date	2007.05.25.18.01.51;	author brian;	state Exp;
branches;
next	1.129;

1.129
date	2007.05.03.20.34.36;	author stas;	state Exp;
branches;
next	1.128;

1.128
date	2007.04.05.08.13.48;	author pav;	state Exp;
branches;
next	1.127;

1.127
date	2007.04.04.12.53.09;	author stas;	state Exp;
branches;
next	1.126;

1.126
date	2007.04.03.21.57.48;	author stas;	state Exp;
branches;
next	1.125;

1.125
date	2007.03.24.14.03.04;	author pav;	state Exp;
branches;
next	1.124;

1.124
date	2007.01.02.21.00.21;	author stas;	state Exp;
branches;
next	1.123;

1.123
date	2007.01.02.20.58.41;	author stas;	state Exp;
branches;
next	1.122;

1.122
date	2007.01.02.16.23.41;	author stas;	state Exp;
branches;
next	1.121;

1.121
date	2006.12.04.20.33.04;	author stas;	state Exp;
branches;
next	1.120;

1.120
date	2006.11.19.23.39.00;	author stas;	state Exp;
branches;
next	1.119;

1.119
date	2006.11.14.20.49.52;	author stas;	state Exp;
branches;
next	1.118;

1.118
date	2006.11.04.10.04.10;	author stas;	state Exp;
branches;
next	1.117;

1.117
date	2006.10.15.10.46.10;	author stas;	state Exp;
branches;
next	1.116;

1.116
date	2006.10.09.13.17.16;	author stas;	state Exp;
branches;
next	1.115;

1.115
date	2006.10.01.19.10.48;	author stas;	state Exp;
branches;
next	1.114;

1.114
date	2006.09.13.11.12.53;	author sem;	state Exp;
branches;
next	1.113;

1.113
date	2006.08.27.09.53.27;	author sem;	state Exp;
branches;
next	1.112;

1.112
date	2006.08.15.00.29.08;	author clsung;	state Exp;
branches;
next	1.111;

1.111
date	2006.07.30.09.55.21;	author sem;	state Exp;
branches;
next	1.110;

1.110
date	2006.05.24.20.42.21;	author pav;	state Exp;
branches;
next	1.109;

1.109
date	2006.05.24.08.06.06;	author pav;	state Exp;
branches;
next	1.108;

1.108
date	2006.05.15.12.42.30;	author pav;	state Exp;
branches;
next	1.107;

1.107
date	2006.05.03.04.55.51;	author okazaki;	state Exp;
branches;
next	1.106;

1.106
date	2006.05.02.12.15.24;	author anray;	state Exp;
branches;
next	1.105;

1.105
date	2006.04.30.17.50.21;	author nobutaka;	state Exp;
branches;
next	1.104;

1.104
date	2006.03.31.13.25.32;	author nobutaka;	state Exp;
branches;
next	1.103;

1.103
date	2006.01.24.14.38.33;	author ume;	state Exp;
branches;
next	1.102;

1.102
date	2006.01.21.19.29.18;	author ume;	state Exp;
branches;
next	1.101;

1.101
date	2006.01.21.05.38.22;	author ume;	state Exp;
branches;
next	1.100;

1.100
date	2006.01.21.04.26.40;	author ume;	state Exp;
branches;
next	1.99;

1.99
date	2006.01.20.19.32.32;	author ume;	state Exp;
branches;
next	1.98;

1.98
date	2006.01.16.09.41.49;	author pav;	state Exp;
branches;
next	1.97;

1.97
date	2006.01.16.01.43.29;	author pav;	state Exp;
branches;
next	1.96;

1.96
date	2006.01.14.18.57.17;	author pav;	state Exp;
branches;
next	1.95;

1.95
date	2006.01.14.18.42.11;	author pav;	state Exp;
branches;
next	1.94;

1.94
date	2006.01.14.14.38.58;	author pav;	state Exp;
branches;
next	1.93;

1.93
date	2006.01.14.14.10.30;	author pav;	state Exp;
branches;
next	1.92;

1.92
date	2006.01.14.14.05.32;	author pav;	state Exp;
branches;
next	1.91;

1.91
date	2006.01.14.13.25.42;	author pav;	state Exp;
branches;
next	1.90;

1.90
date	2005.11.21.22.58.20;	author sem;	state Exp;
branches;
next	1.89;

1.89
date	2005.11.14.09.46.15;	author sem;	state Exp;
branches;
next	1.88;

1.88
date	2005.11.09.08.54.12;	author sem;	state Exp;
branches;
next	1.87;

1.87
date	2005.10.27.19.40.25;	author sem;	state Exp;
branches;
next	1.86;

1.86
date	2005.07.03.10.26.31;	author simon;	state Exp;
branches;
next	1.85;

1.85
date	2005.02.25.00.17.27;	author mezz;	state Exp;
branches;
next	1.84;

1.84
date	2005.02.24.02.41.40;	author obrien;	state Exp;
branches;
next	1.83;

1.83
date	2005.02.05.04.59.24;	author knu;	state Exp;
branches;
next	1.82;

1.82
date	2004.12.25.16.05.59;	author knu;	state Exp;
branches;
next	1.81;

1.81
date	2004.12.25.04.28.37;	author knu;	state Exp;
branches;
next	1.80;

1.80
date	2004.12.25.04.02.17;	author knu;	state Exp;
branches;
next	1.79;

1.79
date	2004.12.23.20.30.09;	author knu;	state Exp;
branches;
next	1.78;

1.78
date	2004.11.25.15.25.33;	author simon;	state Exp;
branches;
next	1.77;

1.77
date	2004.08.12.09.46.42;	author knu;	state Exp;
branches;
next	1.76;

1.76
date	2004.08.12.08.57.52;	author knu;	state Exp;
branches;
next	1.75;

1.75
date	2004.07.13.07.03.53;	author knu;	state Exp;
branches;
next	1.74;

1.74
date	2004.05.02.20.30.10;	author knu;	state Exp;
branches;
next	1.73;

1.73
date	2004.03.14.00.18.21;	author kris;	state Exp;
branches;
next	1.72;

1.72
date	2004.02.26.19.20.09;	author knu;	state Exp;
branches;
next	1.71;

1.71
date	2004.02.17.03.58.34;	author knu;	state Exp;
branches;
next	1.70;

1.70
date	2003.12.22.10.08.34;	author knu;	state Exp;
branches;
next	1.69;

1.69
date	2003.12.15.06.35.47;	author knu;	state Exp;
branches;
next	1.68;

1.68
date	2003.11.27.08.37.42;	author marcel;	state Exp;
branches;
next	1.67;

1.67
date	2003.10.31.12.33.35;	author knu;	state Exp;
branches;
next	1.66;

1.66
date	2003.09.10.07.33.57;	author knu;	state Exp;
branches;
next	1.65;

1.65
date	2003.08.05.11.58.47;	author knu;	state Exp;
branches;
next	1.64;

1.64
date	2003.08.04.11.15.05;	author knu;	state Exp;
branches;
next	1.63;

1.63
date	2003.07.19.16.11.15;	author knu;	state Exp;
branches;
next	1.62;

1.62
date	2003.06.26.03.25.13;	author knu;	state Exp;
branches;
next	1.61;

1.61
date	2003.06.23.15.00.58;	author knu;	state Exp;
branches;
next	1.60;

1.60
date	2003.06.23.10.16.13;	author knu;	state Exp;
branches;
next	1.59;

1.59
date	2003.04.19.15.57.36;	author knu;	state Exp;
branches;
next	1.58;

1.58
date	2003.04.05.11.37.55;	author knu;	state Exp;
branches;
next	1.57;

1.57
date	2003.03.03.16.47.14;	author knu;	state Exp;
branches;
next	1.56;

1.56
date	2003.03.03.16.33.54;	author knu;	state Exp;
branches;
next	1.55;

1.55
date	2003.02.18.11.24.59;	author knu;	state Exp;
branches;
next	1.54;

1.54
date	2003.02.18.05.28.14;	author knu;	state Exp;
branches;
next	1.53;

1.53
date	2003.02.12.16.12.00;	author knu;	state Exp;
branches;
next	1.52;

1.52
date	2003.02.04.13.13.05;	author knu;	state Exp;
branches;
next	1.51;

1.51
date	2003.02.04.12.53.42;	author knu;	state Exp;
branches;
next	1.50;

1.50
date	2003.01.29.09.41.03;	author knu;	state Exp;
branches;
next	1.49;

1.49
date	2003.01.16.05.39.55;	author knu;	state Exp;
branches;
next	1.48;

1.48
date	2003.01.14.10.00.00;	author knu;	state Exp;
branches;
next	1.47;

1.47
date	2003.01.11.10.16.22;	author knu;	state Exp;
branches;
next	1.46;

1.46
date	2003.01.11.08.46.30;	author knu;	state Exp;
branches;
next	1.45;

1.45
date	2002.12.24.18.12.19;	author knu;	state Exp;
branches;
next	1.44;

1.44
date	2002.12.12.12.53.03;	author knu;	state Exp;
branches;
next	1.43;

1.43
date	2002.11.22.12.49.49;	author knu;	state Exp;
branches;
next	1.42;

1.42
date	2002.11.18.20.38.39;	author knu;	state Exp;
branches;
next	1.41;

1.41
date	2002.11.14.14.23.59;	author knu;	state Exp;
branches;
next	1.40;

1.40
date	2002.11.03.21.47.34;	author knu;	state Exp;
branches;
next	1.39;

1.39
date	2002.09.27.13.55.40;	author knu;	state Exp;
branches;
next	1.38;

1.38
date	2002.08.03.12.36.22;	author knu;	state Exp;
branches;
next	1.37;

1.37
date	2002.07.24.10.56.42;	author knu;	state Exp;
branches;
next	1.36;

1.36
date	2002.07.15.11.26.49;	author knu;	state Exp;
branches;
next	1.35;

1.35
date	2002.06.08.07.33.18;	author knu;	state Exp;
branches;
next	1.34;

1.34
date	2002.05.25.00.30.24;	author knu;	state Exp;
branches;
next	1.33;

1.33
date	2002.05.04.22.17.14;	author knu;	state Exp;
branches;
next	1.32;

1.32
date	2002.05.03.19.05.25;	author knu;	state Exp;
branches;
next	1.31;

1.31
date	2002.04.14.12.36.47;	author knu;	state Exp;
branches;
next	1.30;

1.30
date	2002.03.26.22.19.59;	author knu;	state Exp;
branches;
next	1.29;

1.29
date	2002.02.19.20.48.40;	author knu;	state Exp;
branches;
next	1.28;

1.28
date	2002.01.29.09.14.09;	author knu;	state Exp;
branches;
next	1.27;

1.27
date	2002.01.06.06.20.20;	author will;	state Exp;
branches;
next	1.26;

1.26
date	2001.12.25.17.02.33;	author knu;	state Exp;
branches;
next	1.25;

1.25
date	2001.12.22.16.45.05;	author knu;	state Exp;
branches;
next	1.24;

1.24
date	2001.11.06.19.58.27;	author knu;	state Exp;
branches;
next	1.23;

1.23
date	2001.11.06.19.56.23;	author knu;	state Exp;
branches;
next	1.22;

1.22
date	2001.10.07.19.30.39;	author knu;	state Exp;
branches;
next	1.21;

1.21
date	2001.09.17.17.54.19;	author knu;	state Exp;
branches;
next	1.20;

1.20
date	2001.09.13.05.51.38;	author knu;	state Exp;
branches;
next	1.19;

1.19
date	2001.09.03.13.00.01;	author knu;	state Exp;
branches;
next	1.18;

1.18
date	2001.08.22.10.08.19;	author knu;	state Exp;
branches;
next	1.17;

1.17
date	2001.07.31.16.46.55;	author knu;	state Exp;
branches;
next	1.16;

1.16
date	2001.07.11.12.14.06;	author knu;	state Exp;
branches;
next	1.15;

1.15
date	2001.06.21.16.36.46;	author knu;	state Exp;
branches;
next	1.14;

1.14
date	2001.06.16.08.46.33;	author knu;	state Exp;
branches;
next	1.13;

1.13
date	2001.06.11.09.32.02;	author knu;	state Exp;
branches;
next	1.12;

1.12
date	2001.06.09.02.33.13;	author knu;	state Exp;
branches;
next	1.11;

1.11
date	2001.06.09.01.43.01;	author knu;	state Exp;
branches;
next	1.10;

1.10
date	2001.06.04.14.54.32;	author knu;	state Exp;
branches;
next	1.9;

1.9
date	2001.06.01.12.17.24;	author knu;	state Exp;
branches;
next	1.8;

1.8
date	2001.05.29.21.38.41;	author knu;	state Exp;
branches;
next	1.7;

1.7
date	2001.05.29.21.22.10;	author knu;	state Exp;
branches;
next	1.6;

1.6
date	2001.05.29.21.16.54;	author knu;	state Exp;
branches;
next	1.5;

1.5
date	2001.05.17.21.16.44;	author knu;	state Exp;
branches;
next	1.4;

1.4
date	2001.05.11.18.22.57;	author knu;	state Exp;
branches;
next	1.3;

1.3
date	2001.05.07.19.52.04;	author knu;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.06.16.48.04;	author knu;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.05.23.20.12;	author knu;	state Exp;
branches;
next	;


desc
@@


1.156
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310250
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310250 | jgh | 2013-01-11 22:05:13 +0000 (Fri, 11 Jan 2013) | 5 lines
## SVN ##
## SVN ## - update remaining ruby@@ maintained ports to new options framework
## SVN ## - trim historical header where applicable
## SVN ##
## SVN ## Reviewed by:	swills@@ (ruby@@)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# New ports collection makefile for:	ruby18
# Date created:		6 May 2001
# Whom:			Akinori MUSHA aka knu <knu@@idaemons.org>
#
# $FreeBSD: head/lang/ruby18/Makefile 310250 2013-01-11 22:05:13Z jgh $
#

PORTNAME=	ruby
PORTVERSION=	${RUBY_PORTVERSION}
PORTREVISION=	${RUBY_PORTREVISION}
PORTEPOCH=	${RUBY_PORTEPOCH}
CATEGORIES=	lang ruby ipv6
MASTER_SITES=		${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR=	${MASTER_SITE_SUBDIR_RUBY}
DISTNAME=	${RUBY_DISTNAME}
DIST_SUBDIR=	ruby

MAINTAINER=	ruby@@FreeBSD.org
COMMENT?=	An object-oriented interpreted scripting language

GNU_CONFIGURE=	yes
WRKSRC=		${RUBY_WRKSRC}
CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} --enable-shared --enable-frame-address
CONFIGURE_ENV=	CFLAGS="-fwrapv -I${OPENSSLINC} ${CFLAGS}" \
		LDFLAGS="-L${OPENSSLLIB} ${LDFLAGS}" \
		LIBS="-L${OPENSSLLIB} ${LDFLAGS}" \
		CPPFLAGS="-I${OPENSSLINC} ${CPPFLAGS}"
USE_CSTD=	gnu89
USE_OPENSSL=	yes
USE_LDCONFIG=	yes
USE_AUTOTOOLS=	aclocal autoconf
ACLOCAL_ARGS=	-I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS=	--add-missing

WRKSRC=		${WRKDIR}/${PORTNAME}-${RUBY_DISTVERSION}

RUBY_VER=		1.8
USE_BZIP2=		yes
USE_RUBY=		yes
RUBY_NO_BUILD_DEPENDS=	yes
RUBY_NO_RUN_DEPENDS=	yes
_RUBY_SYSLIBDIR=	${PREFIX}/lib

OPTIONS_DEFINE=	ONIGURUMA RDOC DEBUG
ONIGURUMA_DESC=	Build with oniguruma regular expressions lib
RDOC_DESC=	Build and install Rdoc indexes
DEBUG_DESC=	Compile-in debug info
OPTIONS_DEFAULT=	RDOC

.include <bsd.port.pre.mk>

# PORTEPOCH/PORTREVISION hack

.if ${PORTEPOCH} != 0
_SUF2=	,${PORTEPOCH}
.endif

.if ${PORTREVISION} != 0
_SUF1=	_${PORTREVISION}
.endif

PKGNAMESUFFIX=	#empty

#
# pthreads in earlier versions has problems with malloc after fork
#
.if ${OSVERSION} < 702000
WITHOUT_PTHREADS=	yes
.endif

.if defined(WITHOUT_PTHREADS)
CONFIGURE_ARGS+=--disable-pthread
PKGNAMESUFFIX:=	${PKGNAMESUFFIX}+nopthreads
.else
LDFLAGS+=	${PTHREAD_LIBS}
CONFIGURE_ARGS+=--enable-pthread
.endif

.if ${PORT_OPTIONS:MONIGURUMA}
PKGNAMESUFFIX:=	${PKGNAMESUFFIX}+oniguruma
BUILD_DEPENDS+=	${NONEXISTENT}:${ONIGURUMA_PORTDIR}:patch
ONIGURUMA_PORTDIR=${PORTSDIR}/devel/oniguruma
ONIGURUMA_WRKSRC=`cd ${ONIGURUMA_PORTDIR}; ${MAKE} -V WRKSRC`
PLIST_SUB+=	ONIGURUMA=""
.else
PLIST_SUB+=	ONIGURUMA="@@comment "
.endif

#
# Disable doc generation if requested or docs disabled at all
#
.if ${PORT_OPTIONS:MRDOC} && ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=	--enable-install-doc
.else
CONFIGURE_ARGS+=	--disable-install-doc
.endif

.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
MLINKS=		${RUBY_NAME}.1 ruby.1
PLIST_SUB+=	IF_DEFAULT=""
.else
PLIST_SUB+=	IF_DEFAULT="@@comment "
.endif

INSTALLED_SCRIPTS=	irb erb h2rb rdoc ri ruby testrb

EXTSAMPLES=	bigdecimal/sample/*.rb	\
		curses/hello.rb		\
		curses/rain.rb		\
		curses/view.rb		\
		dl/sample/*.C		\
		dl/sample/*.rb		\
		pty/expect_sample.rb	\
		pty/script.rb		\
		pty/shl.rb

EXTDOCS=	bigdecimal/bigdecimal_*.html	\
		dl/doc/dl.txt			\
		etc/etc.txt*			\
		pty/README*			\
		readline/README*		\
		syslog/syslog.txt		\
		zlib/doc/zlib.rd

MAN1=		${RUBY_NAME}.1

# Macros to change variables in rbconfig.rb
RB_SET_CONF_VAR=${SH} -c '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' --

post-extract:
	${MV} ${WRKSRC}/ext/dl/h2rb ${WRKSRC}/bin/

post-patch:
#
# Remove modules we don't want
#
.for d in Win32API win32ole
	${RM} -rf ${BUILD_WRKSRC}/ext/${d}
.endfor

#
# Prepare modules we are wanting to build via external ports
#
.for d in gdbm iconv tk
	${MV} ${BUILD_WRKSRC}/ext/${d} ${WRKDIR}/
.endfor

pre-configure:
.if ${PORT_OPTIONS:MONIGURUMA}
	cd ${ONIGURUMA_WRKSRC}; ./configure; \
		${MAKE} -f Makefile ${RUBY_RELVERSION:S/.//g} \
		RUBYDIR="${WRKSRC}"
.endif
	${TOUCH} ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}

post-configure:
.if ${PORT_OPTIONS:MONIGURUMA}
	cd ${WRKSRC}/ && ${PATCH} -p0 < ${PATCHDIR}/extrapatch-oniguruma-reggnu.c
.endif

post-build:
#
# Hack to allow modules to be installed into separate PREFIX and/or under user
# privilegies
#
	@@${RB_SET_CONF_VAR} "prefix" "ENV['PREFIX'] || \3"
	@@${RB_SET_CONF_VAR} "INSTALL" "ENV['RB_USER_INSTALL'] ? '/usr/bin/install -c' : '/usr/bin/install -c ${_BINOWNGRP}'"
	@@${RB_SET_CONF_VAR} "INSTALL_PROGRAM" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} ${STRIP} -m ${BINMODE}' : '${INSTALL_PROGRAM}'"
	@@${RB_SET_CONF_VAR} "INSTALL_SCRIPT" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} -m ${BINMODE}' : '${INSTALL_SCRIPT}'"
	@@${RB_SET_CONF_VAR} "INSTALL_DATA" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} -m ${SHAREMODE}' : '${INSTALL_DATA}'"

pre-su-install:
	${MKDIR}	${RUBY_DOCDIR}		\
			${RUBY_ELISPDIR}	\
			${RUBY_EXAMPLESDIR}	\
			${RUBY_RIDIR}		\
			${RUBY_SITERIDIR}	\
			${RUBY_SITEARCHLIBDIR}	\
			${RUBY_VENDORARCHLIBDIR}

	${SETENV} LC_TIME=C /bin/date > ${RUBY_RIDIR}/created.rid
	${SETENV} LC_TIME=C /bin/date > ${RUBY_SITERIDIR}/created.rid
	${TOUCH} ${RUBY_ELISPDIR}/.keep_me.${RUBY_NAME}
	${TOUCH} ${RUBY_EXAMPLESDIR}/.keep_me
	${TOUCH} ${RUBY_DOCDIR}/.keep_me
	${TOUCH} ${RUBY_SITEARCHLIBDIR}/.keep_me
	${TOUCH} ${RUBY_VENDORARCHLIBDIR}/.keep_me

post-install:
#
# XXX: hack to strip ruby binary. Ruby uses its own install script that seems
# bogus to hack.
#
.if defined(STRIP) && ${STRIP} == -s
	${STRIP_CMD} ${PREFIX}/bin/${RUBY_NAME}
.endif

#
# Link just installed "ruby" to "ruby18", etc.
#
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
. for FILE in ${INSTALLED_SCRIPTS}
	${LN} -f ${PREFIX}/bin/${FILE}${RUBY_SUFFIX} ${PREFIX}/bin/${FILE}
. endfor
.endif

.if ${PORT_OPTIONS:MDOCS}
	# Create all dirs required (":u" isn't avaiable in STABLE yet :-()
	${MKDIR} ${EXTSAMPLES:C,^([^/]+)/.*,\1,:S,^,${RUBY_EXAMPLESDIR}/,}
	${MKDIR} ${EXTDOCS:C,^([^/]+)/.*,\1,:S,^,${RUBY_DOCDIR}/,}
.for FILE in ${EXTSAMPLES}
	${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \
		${RUBY_EXAMPLESDIR}/${FILE:C,^([^/]+)/.*,\1,}/
.endfor
.for FILE in ${EXTDOCS}
	${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \
		${RUBY_DOCDIR}/${FILE:C,^([^/]+)/.*,\1,}/
.endfor
	@@(cd ${WRKSRC}/sample/ && ${COPYTREE_SHARE} \* ${RUBY_EXAMPLESDIR}/)
	@@(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${RUBY_DOCDIR}/)
	${INSTALL_DATA} ${WRKSRC}/COPYING*	\
			${WRKSRC}/ChangeLog	\
			${WRKSRC}/LEGAL		\
			${WRKSRC}/README*	\
			${WRKSRC}/NEWS		\
			${RUBY_DOCDIR}/
.endif

	@@${FIND} -ds ${RUBY_RIDIR}/ ! -type d ! -name created.rid | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@@${FIND} -ds ${RUBY_RIDIR}/ -type d -mindepth 1 | \
		${SED} -E -e 's,^${PREFIX}/,@@dirrm ,' >> ${TMPPLIST}

	@@${ECHO_CMD} "@@unexec rmdir %D/${RUBY_SITERIDIR:S,^${PREFIX}/,,} 2>/dev/null || true" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec rmdir %D/${RUBY_RIDIR:S,^${PREFIX}/,,} 2>/dev/null || true" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec rmdir %D/share/ri/${RUBY_VER} 2>/dev/null || true" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec rmdir %D/share/ri 2>/dev/null || true" >> ${TMPPLIST}

	@@${CAT} ${PKGMESSAGE}

plist::
	truncate -s0 pkg-plist
.for FILE in ${INSTALLED_SCRIPTS}
	@@${ECHO_CMD} "bin/${FILE}%%RUBY_SUFFIX%%" >> pkg-plist
	@@${ECHO_CMD} "%%IF_DEFAULT%%bin/${FILE}" >> pkg-plist
.endfor
	@@${ECHO_CMD} "lib/lib%%RUBY_NAME%%-static.a" >> pkg-plist
	@@${ECHO_CMD} "lib/lib%%RUBY_NAME%%.so" >> pkg-plist
	@@${ECHO_CMD} "lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%" >> pkg-plist

	@@${FIND} -ds ${RUBY_DOCDIR}/ ! -type d ! -name .keep_me | \
		${SED} 's,^${RUBY_DOCDIR},%%PORTDOCS%%%%RUBY_DOCDIR%%,' \
		 >> pkg-plist
	@@${FIND} -ds ${RUBY_DOCDIR}/ -type d -mindepth 1 | ${SORT} -r | \
		${SED} -E -e \
		's,^${RUBY_DOCDIR}(.*),%%PORTDOCS%%@@dirrm %%RUBY_DOCDIR%%\1,' \
		>> pkg-plist

	@@${FIND} -ds ${RUBY_EXAMPLESDIR}/ ! -type d ! -name .keep_me | \
		${SED} 's,^${RUBY_EXAMPLESDIR},%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%,' \
		 >> pkg-plist
	@@${FIND} -ds ${RUBY_EXAMPLESDIR}/ -type d -mindepth 1 | ${SORT} -r | \
		${SED} -E -e \
		's,^${RUBY_EXAMPLESDIR}(.*),%%PORTDOCS%%@@dirrm %%RUBY_EXAMPLESDIR%%\1,' \
		>> pkg-plist

	@@${ECHO_CMD} "%%RUBY_DOCDIR%%/.keep_me" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_DOCDIR%%" >> pkg-plist

	@@${ECHO_CMD} "%%RUBY_EXAMPLESDIR%%/.keep_me" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_EXAMPLESDIR%%" >> pkg-plist

	@@${ECHO_CMD} "%%RUBY_ELISPDIR%%/.keep_me.%%RUBY_NAME%%" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_ELISPDIR%%" >> pkg-plist

	@@${ECHO_CMD} "@@exec /bin/mkdir -p %D/%%RUBY_RIDIR%%" >> pkg-plist
	@@${ECHO_CMD} "@@exec env LC_TIME=C /bin/date > %D/%%RUBY_RIDIR%%/created.rid" >> pkg-plist
	@@${ECHO_CMD} "@@unexec /bin/rm -f %D/%%RUBY_RIDIR%%/created.rid" \
		>> pkg-plist

	@@${ECHO_CMD} "@@exec /bin/mkdir -p %D/%%RUBY_SITERIDIR%%" >> pkg-plist
	@@${ECHO_CMD} "@@exec env LC_TIME=C /bin/date > %D/%%RUBY_SITERIDIR%%/created.rid"  >> pkg-plist
	@@${ECHO_CMD} "@@unexec /bin/rm -f %D/%%RUBY_SITERIDIR%%/created.rid" \
		>> pkg-plist

	@@${FIND} -ds ${RUBY_LIBDIR}/ ! -type d | \
		${SED} 's,^${RUBY_LIBDIR},%%RUBY_LIBDIR%%,' >> pkg-plist
	@@${FIND} -ds ${RUBY_LIBDIR}/ -type d | ${SORT} -r | \
		${SED} -E -e 's,^${RUBY_LIBDIR}(.*),@@dirrm %%RUBY_LIBDIR%%\1,' >> pkg-plist

	@@${ECHO_CMD} "%%RUBY_SITEARCHLIBDIR%%/.keep_me" >> pkg-plist
	@@${ECHO_CMD} "%%RUBY_VENDORARCHLIBDIR%%/.keep_me" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_SITEARCHLIBDIR%%" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_SITELIBDIR%%" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry lib/ruby/site_ruby" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_VENDORARCHLIBDIR%%" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_VENDORLIBDIR%%" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry lib/ruby/vendor_ruby" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry lib/ruby" >> pkg-plist

	@@${SED} -i "" -E -e "s,${RUBY_ARCH},%%RUBY_ARCH%%,g" pkg-plist

test:
	@@(cd ${WRKSRC}; ${MAKE} test)

validate::
	@@${MKDIR} ${WRKSRC}/rubyspec
	(cd ${WRKSRC}/rubyspec && git clone git://github.com/rubyspec/rubyspec.git)
	(cd ${WRKSRC}/rubyspec && git clone git://github.com/rubyspec/mspec.git)
	(cd ${WRKSRC}/rubyspec/rubyspec && env PATH=${WRKSRC}/rubyspec/mspec/bin:${PATH} mspec -t ${PREFIX}/bin/ruby${RUBY_SUFFIX})

.include <bsd.port.post.mk>
@


1.155
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/ruby18/Makefile 304456 2012-09-18 20:41:15Z swills $
d44 5
a48 3
OPTIONS=	ONIGURUMA "Build with oniguruma regular expressions lib" off \
		RDOC "Build and install Rdoc indexes" on \
		DEBUG "Compile-in debug info" off
d79 1
a79 1
.if defined(WITH_ONIGURUMA)
d92 1
a92 1
.if !defined(WITHOUT_RDOC) && !defined(NOPORTDOCS)
d149 1
a149 1
.if defined(WITH_ONIGURUMA)
d157 1
a157 1
.if defined(WITH_ONIGURUMA)
d207 1
a207 1
.if !defined(NOPORTDOCS)
@


1.154
log
@SVN rev 304456 on 2012-09-18 20:41:15Z by swills

- Fix build with clang

Submitted by:	dim
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.153
log
@Let ruby@@ maintain ruby
@
text
@d23 2
a24 2
CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} --enable-shared
CONFIGURE_ENV=	CFLAGS="-I${OPENSSLINC} ${CFLAGS}" \
d28 1
@


1.152
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
@d18 1
a18 1
MAINTAINER=	ports@@FreeBSD.org
@


1.151
log
@Sync to new bsd.autotools.mk
@
text
@d18 1
a18 1
MAINTAINER=	stas@@FreeBSD.org
@


1.150
log
@Punt autoconf267->autoconf268
@
text
@d30 1
a30 1
USE_AUTOTOOLS=	aclocal:111 autoconf:268
@


1.149
log
@Round one migration of ports from automake{19,110} to automake111
@
text
@d30 1
a30 1
USE_AUTOTOOLS=	aclocal:111 autoconf:267
@


1.148
log
@Autotools update.   Read ports/UPDATING 20100915 for details.

Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
@
text
@d30 1
a30 1
USE_AUTOTOOLS=	aclocal:110 autoconf:267
@


1.147
log
@- remove extra -g from CFLAGS
- WITH_DEBUG is handled in Mk/bsd.port.mk

PR:             ports/146863
Submitted by:   Anonymous <swell.k@@gmail.com>
Silence from:   stas (maintainer)
@
text
@d30 1
a30 1
USE_AUTOTOOLS=	aclocal:110 autoconf:262
@


1.146
log
@- Fix build with openssl 1.0.

Submitted by:	dinoex
@
text
@a85 5
.if defined(WITH_DEBUG)
CFLAGS+=	-g
STRIP=		# none
.endif

@


1.145
log
@- Don't build ruby with threads support on FreeBSD versions before 7.2
- On FreeBSD >= 7.2 allocate the new thread with adequate amount of stack
  space to run the main ruby code in.  This allows to mitigate problem
  when too low stack space available for ruby when running with pthreads
  enabled.
- Bump portrevision.

The long version.  Before this change we used to link ruby against pthreads
uncoditionally on all versions of FreeBSD.  This is indispensable in order
to load the threaded shared objects withing ruby.  However, this causes a
dramatic decrease in the stack space available as pthreads only allows
up to several megabytes of stack space for the main application threads.
The only solution to this is to create the new thread immediately after
the program start with rigth stack size attributes set.  Nonetheless this
scheme won't work for us on FreeBSD version before 7.2 as malloc implementation
in these versions was not threaded fork safe (i.e. this is impossible to
fork from the threaded program and expect malloc/free functions to work).
Thus the only solution for now can be to disable pthreads entirely on
FreeBSD <= 7.2.  This won't cause any performance/usability problems for
users as Ruby 1.8 uses green threads, however it may prevent <= 7.2
users to load shared libraries linked agains pthreads.

Reported by:	"Franois Montel" <seanmullen@@gmail.com>
Tested by:	Sean Mullen <seanmullen@@gmail.com>
@
text
@d23 5
a27 2
CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} \
		--enable-shared --with-openssl-include=${OPENSSLINC}
a43 1
		IPV6 "Enable IPv6 support" on \
a99 7
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=	--enable-ipv6
.endif

CONFIGURE_ENV=	CFLAGS="${CFLAGS}" \
		LIBS="${LDFLAGS}"

@


1.144
log
@- Add ${PTHREAD_LIBS} to LDFLAGS in threaded build.  This fixes the issue
  when pthread libraries don't show up in Config::CONFIG["LIBS"] in some
  cases.

Reported by:	dinoex
@
text
@d59 7
@


1.143
log
@- Fix stack overflow detection algorithm.  It has not worked before as
  we were linking the ruby binary against pthreads, and the default
  stack size detection method with getrlimit didn't returned right
  values in this case.  Now, if threads enabled, it also tries to
  determine the stack size via pthreads calls and use this value if
  it is smaller than what getrlimit returned.  Furthermore, the stack
  overflow detection routine now works proactively, generating
  exception if there're probability the stack will be exhausted by
  the time of the next check (ruby performs checks only in each 256th
  call of rb_call0). [1]
- Build pthreads-enabled ruby by default. I have not received any
  bug reports for this for years, and this verison will work correctly
  with threaded libraries. Also, do not link agains pthreads in non-pthread
  case (this breaks stack size detection algorithm), and eliminate the
  option to disable pthreads (so only power users who know what they're
  doing can disable them).
- Build RDoc by default so it is available in the package.
- Bump portrevision.

PR:		ports/132158
Reported by:	Eugene Pimenov <libc@@libc.st>
@
text
@d63 1
@


1.142
log
@- Really remove GC patch support.

PR:		ports/135207
Submitted by:	Keith Gaughan <kmgaughan@@eircom.net>
@
text
@d27 3
d40 1
a40 2
OPTIONS=	PTHREADS "Enable pthreads support (may break some apps)" off \
		ONIGURUMA "Build with oniguruma regular expressions lib" off \
d42 1
a42 1
		RDOC "Build and install Rdoc indexes" off \
a57 2
CFLAGS+=	${PTHREAD_CFLAGS}	# Keep this, else ruby will fail to load
LDFLAGS+=	${PTHREAD_LIBS}		# libraries dependent op libpthread.
d59 4
a62 1
.if defined(WITH_PTHREADS)
a63 3
PKGNAMESUFFIX:=	${PKGNAMESUFFIX}+pthreads
.else
CONFIGURE_ARGS+=--disable-pthread
d84 1
a84 1
.if defined(WITH_RDOC) && !defined(NOPORTDOCS)
a132 6
.if ${ARCH} == "sparc64" || ${ARCH} == "alpha"
	${REINPLACE_CMD} -e 's|-lc"|"|g' ${WRKSRC}/configure
.endif
	${REINPLACE_CMD} -e 's|-l$$pthread_lib|${PTHREAD_LIBS}|g' \
		${WRKSRC}/configure

@


1.141
log
@- Update ruby 1.8.7 to the latest revision available from ruby-lang.org.
  This updates also borrows some important bugfixes from Ruby CVS that
  is not available in patchlevel 160 yet.
- Drop GC patch support. It is broken with the new ruby version and
  seem to require the complete rewriting.
@
text
@a89 6
# This patch can be used for GC performance analysis and tweaking
# svn://rubyforge.org/var/svn/railsbench/trunk/railsbench/ruby185gc.patch
.if defined(WITH_GCPATCH)
EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-gc
.endif

@


1.140
log
@- Fix build with port's openssl version.

Reported by:	Jan Henrik Sylvester <me@@janh.de>
@
text
@a38 1
		GCPATCH "Build with GC performance statistics collector" off \
@


1.139
log
@- Fix pkg-plist.

Pointy hat to:	me
@
text
@a36 6
.ifdef(WITH_OPENSSL_PORT)
EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-ext_openssl_openssl_missing.h
.else
WITH_OPENSSL_BASE=	yes	# prefer base openssl
.endif

@


1.138
log
@- Update ruby18 to 1.8.7p72.

PR:		ports/124837 (based on)
Submitted by:	KIMURA Yasuhiro <yasu@@utahime.org>
@
text
@d196 2
a197 1
			${RUBY_SITEARCHLIBDIR}
d205 1
d310 1
d314 3
@


1.137
log
@- Fix build with OPENSSL_PORT.

PR:		ports/130399
Submitted by:	bf <bf2006a@@yahoo.com>
@
text
@d39 2
a130 1
		enumerator/enumerator.txt	\
d318 6
@


1.136
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d37 4
@


1.135
log
@- Update ruby to 1.8.6 patchset 287.
@
text
@a90 4
.if ${OSVERSION} < 502102
EXTRA_PATCHES=	${PATCHDIR}/extrapatch-eval.c
.endif

d141 1
a141 1
.if ${OSVERSION} < 502102 || ${ARCH} == "sparc64" || ${ARCH} == "alpha"
@


1.134
log
@- Update ruby to the latest 111 patchversion.
  It's a bugfix release.

Thanks to:	Alexander Logvinov <ports@@logvinov.com> for initial patchset.
@
text
@d173 5
@


1.133
log
@Remove support for OSVERSION < 5
@
text
@d47 2
d50 3
d54 1
@


1.132
log
@- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
  supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
@
text
@d95 1
a95 1
.if ${OSVERSION} >= 400014 && !defined(WITHOUT_IPV6)
@


1.131
log
@- Add a bunch of fixes and patchs from the upstream. These fixes a lot of
  serious bugs, some of which can pose security-related problems.
- Bump up PORTREVISION.

Requested by:	many
@
text
@d24 1
a24 2
		--enable-shared --with-openssl-include=${OPENSSLINC} \
		--mandir=${PREFIX}/man
@


1.130
log
@Do pre-install actions as root

Approved by:	stas (maintainer)
@
text
@d47 1
a47 1
# PORTEPOCH hack
d49 1
@


1.129
log
@- Install NEWS file too.

Suggested by:	knu
@
text
@d178 1
a178 1
pre-install:
@


1.128
log
@- Hack around RUBY_PORTEPOCH being set later than PKGNAME suffix is determined

With hat:	portmgr
@
text
@d229 1
@


1.127
log
@- Use common RUBY_PORTEPOCH variable.
@
text
@d47 3
@


1.126
log
@- Update ruby to 1.8.6
- Synchronise portversions and portepochs in all ruby subports
- Take maintainerships of all ruby subports.
@
text
@d11 1
a11 1
PORTEPOCH=	1
@


1.125
log
@- COPYTREE_* are now part of bsd.port.mk

PR:		ports/100996
Submitted by:	stass
@
text
@d32 1
a118 1
		digest/digest.txt*		\
d159 2
a160 1
		${MAKE} -f Makefile ${RUBY_VER:S/.//} RUBYDIR="${WRKSRC}"
@


1.124
log
@- Forced commit to note, that the previous patch was received from
  Roman Shterenzon <romanbsd@@yahoo.com>. Thanks!
@
text
@a128 7
# XXX: exists untill it will be committed to bsd.port.mk
COPYTREE_SHARE=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
		2>&1) && \
		${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
		${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
		${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --

@


1.123
log
@- Add patch that allows GC performance profiling and analasys.
- Bump portrevison
@
text
@@


1.122
log
@- Update lang/ruby18 to 1.8.5p12 (bugfix release)
- Make RI generation disabled by default (it causes problems
  on slow hardware)
- PREFIX-cleaness fixes (in bsd.ruby.mk) [1]
- Take maintainership of bsd.ruby.mk [1]

The patch was tested in the tinderbox with all ruby-dependend ports.

Approved by:	portmgr (linimon)
@
text
@d39 1
d85 6
@


1.121
log
@- Fix an another cgi library vulnerability
- Bump portrevision

PR:		ports/106287
Reported by:	UEDA Hiroyuki <bsdmad@@gmail.com>
Obtained from:	ruby cvs
@
text
@d10 1
a10 1
PORTREVISION=	5
d15 1
d29 2
d40 1
a40 1
		RDOC "Build and install Rdoc indexes" on \
d74 1
a74 1
.if !defined(WITHOUT_RDOC) && !defined(NOPORTDOCS)
a75 1
PLIST_SUB+=		RDOC=""
a77 1
PLIST_SUB+=		RDOC="@@comment "
a97 2
OBSOLETED_MODULES!=	${CAT} ${FILESDIR}/obsoleted

d109 1
d227 11
a237 11
	@@${ECHO} "Deinstalling obsoleted packages that are now part of ruby..."
	@@cd ${PKG_DBDIR}; for portname in ${OBSOLETED_MODULES}; do \
		for pkg in ${RUBY_PKGNAMEPREFIX}$$portname-*; do \
			if [ -d $$pkg ]; then \
				${ECHO} "---> $$pkg"; \
				${PKG_DELETE} -f $$pkg; \
			fi; \
		done; \
	done
	@@${ECHO_CMD} "@@exec ${ECHO_CMD} \"Deinstalling obsoleted packages that are now part of ruby...\"" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@exec cd ${PKG_DBDIR} && for portname in ${OBSOLETED_MODULES}; do for pkg in ${RUBY_PKGNAMEPREFIX}\$$portname-*; do if [ -d \$$pkg ]; then ${ECHO_CMD} \"---> \$$pkg\"; ${PKG_DELETE} -f \$$pkg; fi; done; done" >> ${TMPPLIST}
d250 1
a250 1
	@@${FIND} ${RUBY_DOCDIR}/ ! -type d ! -name .keep_me | \
d253 1
a253 1
	@@${FIND} ${RUBY_DOCDIR}/ -type d -mindepth 1 | ${SORT} -r | \
d258 1
a258 1
	@@${FIND} ${RUBY_EXAMPLESDIR}/ ! -type d ! -name .keep_me | \
d261 1
a261 1
	@@${FIND} ${RUBY_EXAMPLESDIR}/ -type d -mindepth 1 | ${SORT} -r | \
a274 6
	@@${FIND} ${RUBY_RIDIR}/ ! -type d ! -name created.rid | \
		${SED} 's,^${RUBY_RIDIR},%%RDOC%%%%RUBY_RIDIR%%,' >> pkg-plist
	@@${FIND} ${RUBY_RIDIR}/ -type d -mindepth 1| ${SORT} -r | \
		${SED} -E -e 's,^${RUBY_RIDIR}(.*),%%RDOC%%@@dirrm %%RUBY_RIDIR%%\1,' \
		>> pkg-plist

d277 2
a278 1
	@@${ECHO_CMD} "@@unexec /bin/rm -f %D/%%RUBY_RIDIR%%/created.rid" >> pkg-plist
d285 1
a285 6
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_SITERIDIR%%" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_RIDIR%%" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry share/ri/%%RUBY_VER%%" >> pkg-plist
	@@${ECHO_CMD} "@@dirrmtry share/ri" >> pkg-plist

	@@${FIND} ${RUBY_LIBDIR}/ ! -type d | \
d287 1
a287 1
	@@${FIND} ${RUBY_LIBDIR}/ -type d | ${SORT} -r | \
@


1.120
log
@- Back-out the previous commit, as it can cause linking problems (pthread's
  unresolved symbols) on some systems (e.g. with libgnomeui). Linking
  threading libraries donesn't employ threading in ruby per se, so it's safe
  to do that in non-threaded case.

Reported by:	mezz
@
text
@d10 1
a10 1
PORTREVISION=	4
@


1.119
log
@- Don't links agains threading libraries in case if pthreads support was
disabled.

Reported by:	Anton Yuzhaninov <citrin@@citrin.ru>
@
text
@d43 3
a47 2
CFLAGS+=	${PTHREAD_CFLAGS}
LDFLAGS+=	${PTHREAD_LIBS}
@


1.118
log
@- Add a workaround for the recently disclosed DoS vulnerability in the cgi.rb
  ruby18 module
- Bump portrevision

PR:		ports/105113
Submitted by:	UEDA Hiroyuki <BSDmad@@gmail.com>
@
text
@d45 2
d86 2
a87 2
CONFIGURE_ENV=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
		LIBS="${LIBS} ${PTHREAD_LIBS}"
@


1.117
log
@- Fix pkg-plist when ONIGURUMA option used
- Bump portrevision

Submitted by:	nork
Approved by:	portmgr (clement)
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.116
log
@- Add runtime knob to allow libraries installation under user
  privileges. When RB_INSTALL_USER environment  variable is set, ruby
  will not pass '${_BINOWNGRP}' to install program, thus allowing an
  ordinal user to install gem or library (e.g. into home directory).
- Eliminate extra whitespace
- Bump portrevision.

PR:		ports/103801 (idea)
Submitted by:	Dimitri Aivaliotis <aglarond@@gmail.com>
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.115
log
@- Prepare port to make ruby libraries PREFIX-clean (also requires bsd.ruby.mk
  modifications)
- Add OPTIONS
- Provide automatic pkg-plist generator to simplify updates
- Guarantee permissions safety when installing docs and examples (eliminate
  ${CP} -r *)
- Create handy docs and examples structure (install examples for external
  libraries in separate directories)
- Remove unused KNOB (NORUBYLIB)
- Add knob to disable RDOC generation [1]
- Add knob to disable IPv6 support
- Move list of obsoleted packages to the separate file (files/obsoleted)
- Add additional .keep_me like files to allow shared directories to not
  be deleted by dependent ports
- Minor cleanups and modifications
- Bump-up portrevision

All ruby ports were tested in tinderbox with these modifications.

Requested by:	VANHULLEBUS Yvan <vanhu_bsd@@zeninc.net> [1]
PR:		ports/103353 [1], ports/102648, ports/102663, ports/102685, ports/102646
Approved by:	sem (mentor)
@
text
@d10 1
a10 1
PORTREVISION=	1
d126 3
d162 2
a163 1
# Hack to allow modules to be installed into separate PREFIX
d165 5
a169 2
	@@${REINPLACE_CMD} -E -e \
		"s,(CONFIG\[\"prefix\"\][[:space:]]*=[[:space:]]*\()(.*),\1ENV\['PREFIX'\] || \2," ${WRKSRC}/rbconfig.rb
d286 1
a286 1
	
@


1.114
log
@- Assign a new ruby maintainer who submitted patches which will be committed
  after 6.3-RELEASE

Submitted by:	Stanislav Sedov <ssedov@@mbsd.msk.ru>
@
text
@d10 1
d17 1
a17 1
MAINTAINER=	ssedov@@mbsd.msk.ru
d20 5
a24 10
.if defined(WITH_ONIGURUMA)
PKGNAMESUFFIX=	+oniguruma
BUILD_DEPENDS+=	${NONEXISTENT}:${ONIGURUMA_PORTDIR}:patch
ONIGURUMA_PORTDIR=	${PORTSDIR}/devel/oniguruma
ONIGURUMA_WRKSRC=	`cd ${ONIGURUMA_PORTDIR}; ${MAKE} -V WRKSRC`
PLIST_SUB+=	ONIGURUMA=""
.else
PLIST_SUB+=	ONIGURUMA="@@comment "
.endif

d26 1
d28 2
a29 3
RUBY_VER=	1.8

USE_RUBY=	yes
d32 7
d40 1
a40 5
GNU_CONFIGURE=	yes
WRKSRC=		${RUBY_WRKSRC}
CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} \
		--enable-shared --with-openssl-include=${OPENSSLINC} \
		--mandir=${PREFIX}/man
d42 1
d50 11
a60 1
.if defined(DEBUG)
d65 10
a74 5
USE_LDCONFIG=	yes
MAN1=		${RUBY_NAME}.1
#NOMANCOMPRESS=	yes

.include <bsd.port.pre.mk>
d80 1
a80 6
# Uncomment if it still segfaults with 1.8.4
#.if ${ARCH} == "ia64"
#BROKEN=		"Segfault during build on ia64"
#.endif

.if ${OSVERSION} >= 400014
d89 1
a89 1
IF_DEFAULT=	""
d91 1
a91 1
IF_DEFAULT=	"@@comment "
d94 22
a115 5
.if defined(NORUBYLIB)
RUBYLIB=	"@@comment "
.else
RUBYLIB=	""
.endif
d117 1
a117 2
PLIST_SUB+=	IF_DEFAULT=${IF_DEFAULT} \
		RUBYLIB=${RUBYLIB}
d119 6
a124 42
INSTALLED_SCRIPTS=	${PREFIX}/bin/irb \
			${PREFIX}/bin/erb \
			${PREFIX}/bin/h2rb \
			${PREFIX}/bin/rdoc \
			${PREFIX}/bin/ri \
			${PREFIX}/bin/testrb

OBSOLETED_MODULES=	bigfloat \
			csv \
			dl \
			drb \
			erb \
			fileutils \
			gserver \
			openssl \
			optparse \
			racc-runtime \
			rdoc \
			rexml \
			ri \
			sha1 \
			shell \
			soap \
			strscan \
			syslog \
			testunit \
			timex \
			urb \
			uri \
			webrick \
			xmlrpc \
			yaml \
			zlib

pre-everything::
.if !defined(WITH_PTHREADS)
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "NOTE:"
	@@${ECHO_MSG} "You can enable pthread support by defining WITH_PTHREADS variable,"
	@@${ECHO_MSG} "but not recommended since this might break some ruby apps."
	@@${ECHO_MSG} ""
.endif
d135 4
a138 1
	${FIND} ${PATCH_WRKSRC} -name '*.orig' -delete
d142 4
d152 2
a153 3
	cd ${ONIGURUMA_WRKSRC}; \
	./configure; \
	${MAKE} -f Makefile ${RUBY_VER:S/.//} RUBYDIR=${WRKSRC}
d157 22
d180 4
d185 1
a185 1
	${STRIP_CMD} ${RUBY}
d187 4
d192 3
a194 5
# Link just installed "ruby" to "ruby18", etc.
	${LN} -f ${RUBY_WITH_SUFFIX} ${RUBY_WITHOUT_SUFFIX}
	for f in ${INSTALLED_SCRIPTS}; do \
		${LN} -f $${f}${RUBY_SUFFIX} $${f}; \
	done
d196 1
a196 11
	${LDCONFIG} -m ${PREFIX}/lib
	${MKDIR} ${RUBY_ELISPDIR}
	${TOUCH} ${RUBY_ELISPDIR}/.keep_me.${RUBY_NAME}
	${MKDIR} ${RUBY_EXAMPLESDIR}
	${TOUCH} ${RUBY_EXAMPLESDIR}/.keep_me
	${MKDIR} ${RUBY_DOCDIR}
	${TOUCH} ${RUBY_DOCDIR}/.keep_me
	${MKDIR} ${RUBY_RIDIR}
	${SETENV} LC_TIME=C /bin/date > ${RUBY_RIDIR}/created.rid
	${MKDIR} ${RUBY_SITERIDIR}
	${SETENV} LC_TIME=C /bin/date > ${RUBY_SITERIDIR}/created.rid
d198 18
a215 27
	${CP} -R ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/
	${MKDIR} ${RUBY_EXAMPLESDIR}/bigdecimal
	${INSTALL_DATA} ${WRKSRC}/ext/bigdecimal/sample/*.rb ${RUBY_EXAMPLESDIR}/bigdecimal
	${MKDIR} ${RUBY_EXAMPLESDIR}/curses
	${INSTALL_DATA} ${WRKSRC}/ext/curses/hello.rb ${WRKSRC}/ext/curses/rain.rb ${WRKSRC}/ext/curses/view.rb ${RUBY_EXAMPLESDIR}/curses
	${MKDIR} ${RUBY_EXAMPLESDIR}/dl
	${INSTALL_DATA} ${WRKSRC}/ext/dl/sample/*.C ${WRKSRC}/ext/dl/sample/*.rb ${RUBY_EXAMPLESDIR}/dl
	${MKDIR} ${RUBY_EXAMPLESDIR}/pty
	${INSTALL_DATA} ${WRKSRC}/ext/pty/expect_sample.rb ${WRKSRC}/ext/pty/script.rb ${WRKSRC}/ext/pty/shl.rb ${RUBY_EXAMPLESDIR}/pty
	${INSTALL_DATA} ${WRKSRC}/COPYING* ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/LEGAL ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/README* ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/ext/bigdecimal/bigdecimal_*.html ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/ext/digest/digest.txt* ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/ext/dl/doc/dl.txt ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/ext/enumerator/enumerator.txt ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/ext/etc/etc.txt* ${RUBY_DOCDIR}
	${MKDIR} ${RUBY_DOCDIR}/pty
	${INSTALL_DATA} ${WRKSRC}/ext/pty/README* ${RUBY_DOCDIR}/pty
	${MKDIR} ${RUBY_DOCDIR}/readline
	${INSTALL_DATA} ${WRKSRC}/ext/readline/README* ${RUBY_DOCDIR}/readline
	${INSTALL_DATA} ${WRKSRC}/ext/syslog/syslog.txt ${RUBY_DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/ext/zlib/doc/zlib.rd ${RUBY_DOCDIR}
	${CP} -R ${WRKSRC}/doc/* ${RUBY_DOCDIR}/
	cd ${INSTALL_WRKSRC}; \
	${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-doc
d230 68
@


1.113
log
@- Update to 1.8.5
  A bugs fix release.
@
text
@d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
@


1.112
log
@- s,INSTALLS_SHLIB,USE_LDCONFIG,g
- these include irc/ japanese/ java/ lang/ mail/ math/ maintained by ports@@

PR:		ports/101916
Submitted by:	Gea-Suan Lin <gslin_AT_gslin dot org>
@
text
@a9 1
PORTREVISION=	9
d40 2
a41 1
		--enable-shared --with-openssl-include=${OPENSSLINC}
d57 1
@


1.111
log
@- Fix last discovered security vulnerabilities.

VuXML id:	76562594-1f19-11db-b7d4-0008743bf21a
@
text
@d55 1
a55 1
INSTALLS_SHLIB=	yes
@


1.110
log
@- Revert previous commit, it broke ruby-gtk2

Reported by:	mezz
@
text
@d10 1
a10 1
PORTREVISION=	8
@


1.109
log
@- Don't link pthread libs in non-pthread case (the default case)

PR:		ports/97765 (based on)
Submitted by:	Takeshi MUTOH <mutoh@@openedu.org>
@
text
@d10 1
a10 1
PORTREVISION=	7
a45 2
CONFIGURE_ENV=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
		LIBS="${LIBS} ${PTHREAD_LIBS}"
d73 3
@


1.108
log
@- Fix PKGNAMESUFFIX when both Oniguruma and pthreads are enabled

PR:		ports/97178 (based on)
Submitted by:	cokane
@
text
@d10 1
a10 1
PORTREVISION=	6
d46 2
a74 3
CONFIGURE_ENV=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
		LIBS="${LIBS} ${PTHREAD_LIBS}"

@


1.107
log
@Remove obsolete USE_REINPLACE.
Add missing entries for the ONIGURUMA option to the plist.
@
text
@d45 1
a45 1
PKGNAMESUFFIX=	-pthreads
@


1.106
log
@Wrong type of integer argument to ioctl(2) cause ruby18 to produce lots
of sign-extension noises through console / kernel log on FreeBSD/amd64.

PR:		ports/94088
Submitted by:	ariff
@
text
@a37 1
USE_REINPLACE=	yes
@


1.105
log
@Show the message about WITH_PTHREADS knob only when WITH_PTHREADS isn't defined.

Submitted by:	MOROHOSHI Akihiko <moro@@remus.dti.ne.jp>
@
text
@d10 1
a10 1
PORTREVISION=	5
@


1.104
log
@- Disable pthread support by default to fix breakage of some ruby applications
  (migemo, mod_ruby, etc.).
- Remove WITHOUT_PTHREADS knob and add WITH_PTHREADS knob.
- Bump PORTREVISION.

Approved by:	portmgr (krion)
@
text
@d128 1
d134 1
@


1.103
log
@Use the code actually committed into Ruby CVS against
getcontext/setcontext issue.

Obtained from:	Ruby CVS
@
text
@d10 1
a10 1
PORTREVISION=	4
d44 4
a47 1
.if defined(WITHOUT_PTHREADS)
a48 3
PKGNAMESUFFIX=	-nopthreads
.else
CONFIGURE_ARGS+=--enable-pthread
d74 3
d127 7
@


1.102
log
@WITHOUT_CPU_CFLAGS hack is not required anymore.

Tested by:	TAKANO Yuji <takachan__at__running-dog.net>
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.101
log
@${CPUTYPE} might not defined.

Reported by:	cperciva
@
text
@a64 6
.if defined(CPUTYPE)
.if ${CPUTYPE} == "athlon64" || ${CPUTYPE} == "athlon-xp"
WITHOUT_CPU_CFLAGS=     yes
.endif
.endif

@


1.100
log
@It was not buildable with CPUTYPE=athlon64 or CPUTYPE=athlon-xp
since my last commit.  It spun in 'miniruby' somewhere in a
bigdecimal compile.  So, if CPUTYPE is defined as athlon64 or
athlon-xp, ignore CPU_CFLAGS for workaround.

Reported by:	Mike Harding <mvh__at__ix.netcom.com>
@
text
@d65 1
d69 1
@


1.99
log
@eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): use only for SPARC and IA64
before gcc 4.0.3.

previous one broke xcgroup of XCAST6:
	http://sourceforge.net/projects/xcast6/

Reported by:	SUZUKI Koichi <metal__at__gc5.so-net.ne.jp>
Obtained from:	http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/eval.c.diff?r1=1.616.2.148;r2=1.616.2.149
@
text
@d65 4
@


1.98
log
@- Provide WITHOUT_PTHREADS option

Submitted by:	Yoshiaki Kasahara <kasahara@@nc.kyushu-u.ac.jp>
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.97
log
@- Fix bug: FileUtils.mv() does not unlink source file when moving over
  filesystem boundaries

Reported by:	Virgil Champlin <champlin@@stupidog.org>
@
text
@d18 1
a18 1
COMMENT=	An object-oriented interpreted scripting language
d42 8
a49 2
		--enable-shared --enable-pthread \
		--with-openssl-include=${OPENSSLINC}
@


1.96
log
@- OPENSSLINC is even better

Submitted by:	mezz
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.95
log
@- Use OPENSSLBASE

Suggested by:	mezz
@
text
@d43 1
a43 1
		--with-openssl-include=${OPENSSLBASE}/include
@


1.94
log
@- Enable pthreads using configure switch, so autodetection based on headers
  parsing works
@
text
@d42 2
a43 1
		--enable-shared --enable-pthread
a54 4
.if !defined(WITH_OPENSSL_BASE)
CONFIGURE_ARGS+=--with-openssl-include=${LOCALBASE}/include
.endif

@


1.93
log
@- Correct OpenSSL handling from previous commit
@
text
@d10 1
d42 1
a42 3
		--enable-shared
CONFIGURE_ENV=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
		LIBS="${PTHREAD_LIBS}"
@


1.92
log
@- Make OpenSSL handling more obvious
@
text
@d55 1
a55 1
.if defined(WITH_OPENSSL_PORT)
@


1.91
log
@- Update to 1.8.4

PR:		ports/91556
Submitted by:	Alexander Wittig <alexander@@wittig.name>
@
text
@d41 1
a41 2
		--enable-shared \
		--with-openssl-include=${PREFIX}/include
d54 5
@


1.90
log
@- Drop maintinership to ports@@

Reminded by:	linimon
@
text
@a9 1
PORTREVISION=	5
a13 1
DISTFILES=		${RUBY_DISTNAME}${EXTRACT_SUFX}
a15 6
PATCH_SITES=	${MASTER_SITE_RUBY}
#PATCH_SITE_SUBDIR=	snapshots
PATCH_SITE_SUBDIR=	1.8
PATCHFILES=	${RUBY_PATCHFILES}
#PATCH_DIST_STRIP=	-p1

a28 1
#USE_BZIP2=	yes
a36 1
#USE_AUTOCONF=	yes	# does not work with 2.13; requires 2.53 or later
d41 2
a42 1
		--enable-shared
a53 2
LATEST_LINK=	ruby-devel

d59 4
a62 5
.if ${ARCH} == "ia64"
BROKEN=		"Segfault during build on ia64"
.endif

MAKE_ARGS=	-j3
d128 1
a128 1
.for d in Win32API
d131 1
a131 1
.for d in gdbm iconv tcltklib tk
d167 2
@


1.89
log
@- Back out the last update. It breaks many ruby ports install.

Reported by:	kris via pointyhat
@
text
@d24 1
a24 1
MAINTAINER=	knu@@FreeBSD.org
@


1.88
log
@bsd.ruby.mk:
- Change LOCALBASE with _RUBY_BASE
- Set _RUBY_BASE=PREFIX if defined _RUBY_PORT_TEST
  _RUBY_BASE=LOCALBASE otherwise for easy ports testing.

lang/ruby18:
- Update to 1.8.3

Grant maintainership to submitter.

While I'm here:
- Add _RUBY_PORT_TEST=yes to lang/ruby16 port too.
  (lang/ruby1[68] must set it for right install).

PR:		ports/87332
Submitted by:	Alexander Novitsky
@
text
@d10 2
d15 1
a15 1
DISTNAME=		${RUBY_DISTNAME}
d19 1
a19 1
PATCH_SITE_SUBDIR=	snapshots
d22 1
a22 1
PATCH_DIST_STRIP=	-p1
d24 1
a24 1
MAINTAINER=	alecn2002@@yandex.ru
d27 9
a35 1
OPTIONS+=	ONIGURUMA "With Oniguruma (BSDL RegEx library) support" off
a45 3
# For port testing: should install in PREFIX, not in LOCALBASE
_RUBY_PORT_TEST=	yes

a64 2
DATE_CMD=	/bin/date

a65 11

.if defined(WITH_ONIGURUMA)
PKGNAMESUFFIX=	+oniguruma
BUILD_DEPENDS+=	${NONEXISTENT}:${ONIGURUMA_PORTDIR}:patch
ONIGURUMA_PORTDIR=	${PORTSDIR}/devel/oniguruma
ONIGURUMA_WRKSRC=	`cd ${ONIGURUMA_PORTDIR}; ${MAKE} -V WRKSRC`
PLIST_SUB+=	ONIGURUMA=""
.else
PLIST_SUB+=	ONIGURUMA="@@comment "
.endif

d174 1
a174 1
	${SETENV} LC_TIME=C ${DATE_CMD} > ${RUBY_RIDIR}/created.rid
d176 1
a176 1
	${SETENV} LC_TIME=C ${DATE_CMD} > ${RUBY_SITERIDIR}/created.rid
@


1.87
log
@- Fix a ruby vulnerabuility in the safe level settings.

Based on:	ports/87816
Submitted by:	Phil Oleson <oz@@nixil.net>

Security:	http://vuxml.FreeBSD.org/1daea60a-4719-11da-b5c6-0004614cc33d.html
@
text
@a9 1
PORTREVISION=	5
d13 1
a13 1
DISTFILES=		${RUBY_DISTNAME}${EXTRACT_SUFX}
d17 1
a17 1
#PATCH_SITE_SUBDIR=	snapshots
d20 1
a20 1
#PATCH_DIST_STRIP=	-p1
d22 1
a22 1
MAINTAINER=	knu@@FreeBSD.org
d25 1
a25 9
.if defined(WITH_ONIGURUMA)
PKGNAMESUFFIX=	+oniguruma
BUILD_DEPENDS+=	${NONEXISTENT}:${ONIGURUMA_PORTDIR}:patch
ONIGURUMA_PORTDIR=	${PORTSDIR}/devel/oniguruma
ONIGURUMA_WRKSRC=	`cd ${ONIGURUMA_PORTDIR}; ${MAKE} -V WRKSRC`
PLIST_SUB+=	ONIGURUMA=""
.else
PLIST_SUB+=	ONIGURUMA="@@comment "
.endif
d36 3
d58 2
d61 11
d180 1
a180 1
	${SETENV} LC_TIME=C /bin/date > ${RUBY_RIDIR}/created.rid
d182 1
a182 1
	${SETENV} LC_TIME=C /bin/date > ${RUBY_SITERIDIR}/created.rid
@


1.86
log
@Fix arbitrary command execution in XMLRPC server.

PR:		ports/82855
Submitted by:	Renato Botelho <freebsd@@galle.com.br>
Obtained from:	Ruby CVS
Approved by:	maintainer timeout (1 day; security)
With hat:	secteam
Security:	CAN-2005-1992
Security:	http://vuxml.FreeBSD.org/594eb447-e398-11d9-a8bd-000cf18bbe54.html
@
text
@d10 1
a10 1
PORTREVISION=	4
d18 2
a19 1
PATCH_SITE_SUBDIR=	snapshots
d21 1
a21 1
PATCH_DIST_STRIP=	-p1
@


1.85
log
@Disable threads again; it has caused the more troubles. This time, it has
${PTHREAD_CFLAGS} and ${PTHREAD_LIBS} include in the build to kill the
headache of old '_r' and can't run with something like ruby-opengl, ruby-sdl,
ruby-gtk2 and etc on FreeBSD 4.x or older 5.x. With this commit should solve
those issues. It is recommend you to rebuild any apps that depend on
lang/ruby18, so see the UPDATING for detail.

Remove the 'BROKEN' on the other ports that knu has added them few weeks ago.
Some of them have been tested, so if one of them is still broke then please
let us know and one of us will re-add the 'BROKEN'.

This changes was worked by lofi and me. lofi did everything on FreeBSD 4.x
and I did others. lofi, thanks for help!

Tested by:	many people
Tested on:	i386 (FreeBSD 4.x, 5.x and 6.x), amd64 (FreeBSD 5.x and 6.x),
		and sparc64 (FreeBSD 5.x and 6.x)
Not test on:	ia64 and alpha
Approved by:	portmgr (kris)
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.84
log
@Hack commit to allow ruby18 to build on sparc64.  This changes to threading,
so a real fix should be found ASAP.

Submitted by:	gad
@
text
@d10 1
a10 1
PORTREVISION=	2
d45 1
d50 2
d64 2
a65 10
.if ${OSVERSION} >= 502102 && ${ARCH} != "sparc64"                              
RUBY_ENABLE_PTHREAD?=	public demand
.endif

.if defined(RUBY_ENABLE_PTHREAD) && ${RUBY_ENABLE_PTHREAD} != "no"
CONFIGURE_ARGS+=	--enable-pthread

# There seems to be a bug in either gcc or libpthread that gets
# (mini)ruby to malfunction..
CFLAGS:=	${CFLAGS:N-march=*}
d132 5
@


1.83
log
@The slippery pthread support for systems prior to 502102 has been
dropped and the lang/ruby16_r and lang/ruby18_r ports have been
removed, since no one seems to appreciate the partially working
solution.

Good news is that the pthread support of lang/ruby18 is now enabled by
default for newer systems, which means the ruby interpreter is linked
with libpthread.  This will allow threaded extension libraries to run
and work properly on those systems.

The --march=cputype flag is disabled because it gets ruby to
malfunction and fail to build.  I don't know if the problem is in
libpthread or in gcc.

(It really makes me wonder if they had actually tested before asking
me to do this somewhat risky change ;-)
@
text
@d61 1
a61 1
.if ${OSVERSION} >= 502102
@


1.82
log
@Update to the "second" 1.8.2 release. (officially announced, of course)
@
text
@d1 1
a1 1
# New ports collection makefile for:	ruby-devel
d8 1
a8 1
PORTNAME=	ruby${RUBY_R}
d10 1
a10 1
PORTREVISION=	1
d61 11
d84 1
a84 1
MLINKS=		${RUBY_NAME}.1 ruby${RUBY_R}.1
d159 1
a159 2
	${LN} -f ${RUBY_WITH_SUFFIX} ${RUBY_WITHOUT_SUFFIX}${RUBY_R}
	${LN} -f ${PREFIX}/man/man1/${RUBY_NAME}.1 ${PREFIX}/man/man1/ruby${RUBY_R}.1
d161 1
a161 1
		${LN} -f $${f}${RUBY_SUFFIX} $${f}${RUBY_R}; \
@


1.81
log
@Update lang/ruby18 to the 1.8.2 release.  Happy holidays!
@
text
@d10 1
@


1.80
log
@Fix plist.
@
text
@a9 1
PORTREVISION=	1
@


1.79
log
@Update lang/ruby18 to 1.8.2-preview4.

* Please upgrade sysutils/portupgrade prior to this one, or pkgdb(1)
  may coredump with a double free() problem from a misuse of the DL
  module.  In that case, reinstall sysutils/portupgrade manually.
@
text
@d10 1
@


1.78
log
@Fix DoS in the Ruby CGI module.

Obtained from:	ruby CVS
Reviewed by:	trhodes
OK'ed by:	maintainer silence
With hat:	secteam
@
text
@a9 1
PORTREVISION=	2
@


1.77
log
@Handle ri document directories properly.
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.76
log
@Update lang/ruby18 to 1.8.2-preview2.
@
text
@d10 1
d161 4
@


1.75
log
@Pull in the latest change to mkmf.rb to avoid build error when
devel/readline is installed.
@
text
@a9 1
PORTREVISION=	1
d34 1
a34 1
USE_BZIP2=	yes
d184 2
@


1.74
log
@Update lang/ruby18 and the bundled modules to the latest 1.8 branch
snapshot as of 2004-05-02.
@
text
@d10 1
@


1.73
log
@BROKEN on ia64: segfault during build
@
text
@a9 1
PORTREVISION=	2
d34 1
a34 1
#USE_BZIP2=	yes
@


1.72
log
@Change the default version of ruby to 1.8 for i386 as well, finally.

Always put a version suffix to the ruby name (no matter if ruby is the
default version) to avoid mess in future.

[Notes for i386 users]

If you are a ruby developer and still want to stick with ruby 1.6 as
default, please add RUBY_DEFAULT_VER=1.6 to /etc/make.conf.

If you are a ruby developer and want to keep ruby 1.6 as default,
please add RUBY_DEFAULT_VER=1.6 to /etc/make.conf.  Otherwise, please
run the following series of commands to migrate to ruby 1.8:

  1) Reinstall portupgrade manually (and ruby 1.8 will be installed)
	pkg_delete portupgrade-\*
        (cd /usr/ports/sysutils/portupgrade; make install clean)

  2) Reinstall everything that depends on ruby 1.6 (to use ruby 1.8)
	portupgrade -fr lang/ruby16

  3) Reinstall ruby 1.8 (because the previous step kills symlinks)
	portupgrade -f lang/ruby18

  4) Deinstall ruby 1.6 stuff (if you are paranoia)
        pkg_deinstall -ri lang/ruby16
@
text
@d62 4
@


1.71
log
@Fix plist and bump PORTREVISION.

PR:		ports/61596
Submitted by:	Oliver Eikemeier <eikemeier@@fillmore-labs.com>
@
text
@d10 1
a10 1
PORTREVISION=	1
d56 1
a56 1
MAN1=		ruby${_RUBY_SUFFIX}.1
d69 1
a69 1
MLINKS=		ruby${_RUBY_SUFFIX}.1 ruby${RUBY_R}.1
d144 2
a145 2
	${LN} -f ${RUBY_WITHOUT_SUFFIX}${RUBY_R} ${RUBY_WITH_SUFFIX}
	${LN} -f ${PREFIX}/man/man1/ruby${RUBY_R}.1 ${PREFIX}/man/man1/ruby${_RUBY_SUFFIX}.1
d147 1
a147 1
		${LN} -f $${f}${RUBY_R} $${f}${_RUBY_SUFFIX}; \
@


1.70
log
@Update lang/ruby18 to 1.8.1.p4.
@
text
@d10 1
@


1.69
log
@Update lang/ruby18 and lang/ruby16-shim-ruby18 to 1.8.1-preview3.
@
text
@d87 1
d102 1
@


1.68
log
@Now that the build on ia64 has been fixed, remove the ONLY_FOR_ARCHS
that listed all archs, except ia64.

Approved by: portmgr (kris)
@
text
@d85 3
a87 1
			${PREFIX}/bin/h2rb
d99 1
d169 1
@


1.67
log
@Update lang/ruby18 to 1.8.1-preview2.
@
text
@a33 3
# Ruby 1.8 does not support IA64 yet.
ONLY_FOR_ARCHS=	i386 alpha sparc64 amd64

@


1.66
log
@Update lang/ruby18 to the latest snapshot as of 2003-09-09.

Many bugs have been fixed since the 1.8.0 release. (The diff file is
very big because some big files were moved, sorry)
@
text
@d38 1
d96 1
d103 1
@


1.65
log
@Ruby 1.8.0 builds fine and make test passes on amd64.
@
text
@d152 1
a152 1
	${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}
@


1.64
log
@Update lang/ruby-devel to the long-awaited 1.8.0 release. (IA64 and
AMD64 ports still need some more testing and tweaking)

By this update, openssl, webrick and xmlrpc modules are now part of
the standard distribution.

Since this version should no longer be called -devel, I am planning on
repo-moving lang/ruby{,-devel} to lang/ruby{16,18}, respectively.
@
text
@d35 1
a35 1
ONLY_FOR_ARCHS=	i386 alpha sparc64
@


1.63
log
@The dl module seems to cause coredump on Pentium4 boxen when compiled
with gcc 3.3 with a -mcpu or -march flag (even -mcpu=pentiumpro, which
is the default CPU cflag that bsd.cpu.mk sets, leads ruby to coredump).

Although currently I'm not sure if gcc 3.3's optimization has a bug or
it is that it just exposed the dl module's hidden bug, disable those
flags to work around the problem for the moment.
@
text
@a9 1
PORTREVISION=	1
d95 1
d107 2
@


1.62
log
@Update lang/ruby-devel to the snapshot as of 2003-06-25 and hopefully
unbreak for alpha and sparc64. (ia64 and amd64 are not supported yet)
@
text
@d10 1
@


1.61
log
@It turned out that ruby 1.8.0-preview3 only works with i386 due to
lack of prototypes.  A patch to fix this will follow in a couple of
days, and in the meantime mark this port as ONLY_FOR_ARCHS=i386.
@
text
@d35 1
a35 2
#ONLY_FOR_ARCHS=	i386 alpha sparc64
ONLY_FOR_ARCHS=	i386
@


1.60
log
@Update lang/ruby-devel to 1.8.0-preview3.

ruby-csv, drb, rexml and yaml are now part of the ruby 1.8 standard
distribution.
@
text
@d35 2
a36 1
ONLY_FOR_ARCHS=	i386 alpha sparc64
@


1.59
log
@Update lang/ruby, lang/ruby-devel and lang/ruby16-shim-ruby18 to the
latest snapshots as of 2003-04-19.

ruby-bigdecimal (formerly known as ruby-bigfloat) and ruby-zlib are
now part of ruby 1.8.
@
text
@d13 1
a13 2
DISTFILES=		${RUBY_DISTNAME}${EXTRACT_SUFX} \
			${RUBY_DISTNAME}-missing${EXTRACT_SUFX}
d90 1
d92 1
d97 1
d106 1
@


1.58
log
@Install a cookie file per variant in RUBY_ELISPDIR.

Reported by:	kris
@
text
@d90 2
a91 1
OBSOLETED_MODULES=	dl \
d103 2
a104 1
			uri
d157 4
a160 6
	${MKDIR} ${RUBY_DOCDIR}/digest
	${INSTALL_DATA} ${WRKSRC}/ext/digest/digest.txt* ${RUBY_DOCDIR}/digest
	${MKDIR} ${RUBY_DOCDIR}/dl
	${INSTALL_DATA} ${WRKSRC}/ext/dl/doc/dl.txt ${RUBY_DOCDIR}/dl
	${MKDIR} ${RUBY_DOCDIR}/etc
	${INSTALL_DATA} ${WRKSRC}/ext/etc/etc.txt* ${RUBY_DOCDIR}/etc
d165 2
a166 2
	${MKDIR} ${RUBY_DOCDIR}/syslog
	${INSTALL_DATA} ${WRKSRC}/ext/syslog/syslog.txt ${RUBY_DOCDIR}/syslog
@


1.57
log
@ruby-testunit has been integrated into ruby.
@
text
@d138 1
a138 1
	${TOUCH} ${RUBY_ELISPDIR}/.keep_me
@


1.56
log
@Update lang/ruby-devel to 1.8.0-preview2.
@
text
@d99 1
@


1.55
log
@Touch configure in the pre-configure stage lest the timestamp of
configure.in be ahead of that of configure and autoconf thus be
demanded.

Submitted:	kris, bento
@
text
@d13 2
a14 1
DISTFILES=		${RUBY_DISTNAME}${EXTRACT_SUFX}
a103 1
	${RMDIR} ${WRKSRC}/doc/net
@


1.54
log
@De-pkg-comment.
@
text
@d107 1
a107 1
	${FIND} ${WRKSRC} -name '*.orig' -delete
d109 1
a109 1
	${RM} -rf ${WRKSRC}/ext/${d}
d112 1
a112 1
	${MV} ${WRKSRC}/ext/${d} ${WRKDIR}/
d121 1
@


1.53
log
@ruby-erb is now part of ruby 1.8 and shim-ruby18.
@
text
@d22 1
@


1.52
log
@Use devel/oniguruma to build ruby with oniguruma.
@
text
@d89 1
@


1.51
log
@Update Oniguruma to 20030204.
@
text
@d11 3
a13 6
MASTER_SITES=		${MASTER_SITE_RUBY} \
			${ONIGURUMA_MASTER_SITES:S,$,:oniguruma,}
MASTER_SITE_SUBDIR=	${MASTER_SITE_SUBDIR_RUBY} \
			${ONIGURUMA_MASTER_SITE_SUBDIR:S,$,/:oniguruma,}
DISTFILES=		${RUBY_DISTNAME}${EXTRACT_SUFX} \
			${ONIGURUMA_DISTFILE:S,$,:oniguruma,}
d24 4
a27 3
ONIGURUMA_MASTER_SITES=		${MASTER_SITE_RUBY}
ONIGURUMA_MASTER_SITE_SUBDIR=	contrib
ONIGURUMA_DISTFILE=		onigd20030204.tar.gz
d115 3
a117 1
	cd ${WRKDIR}/oniguruma; ./configure; ${MAKE} 18 RUBYDIR=${WRKSRC}
@


1.50
log
@Update lang/ruby-devel to the latest snapshot as of 2003.01.28.

Update Oni Guruma to 20030121.

Now that the MAKE_ARGS problem is gone, re-enable MAKE_ARGS for
sparc64.
@
text
@d29 1
a29 1
ONIGURUMA_DISTFILE=		onigd20030121.tar.gz
@


1.49
log
@Avoid "make: don't know how to make INSTALLS_DEPENDS. Stop" error by
disabling parallel build on sparc64.  The INSTALLS_DEPENDS thing
probably comes from bsd.port.mk, but I wonder why it is regarded as a
target when it is only used as a boolean variable.  I think make(1)
has some problem with parallel build (-jN) on that platform.

I could not really reproduce the error on panther, but a submitter [1]
says the build went fine if he commented the -jN option out as I
suggested.

Submitted by:	Anders Andersson <anders@@hack.org>,
		Joao Pedras <jpedras@@webvolution.net> [1],
		kris
@
text
@a9 1
PORTREVISION=	1
d29 1
a29 1
ONIGURUMA_DISTFILE=		onigd20030109.tar.gz
a63 1
.if ${ARCH} != sparc64
a64 1
.endif
@


1.48
log
@Add missing files to pkg-plist and bump PORTREVISION.

Submitted by:	kris, bento
@
text
@a57 1
MAKE_ARGS=	-j3
d64 4
@


1.47
log
@Update lang/ruby-devel to the latest 1.8 snapshot as of 2003-01-11,
which now supports FreeBSD/sparc64.

Set ONLY_FOR_ARCHS to i386, alpha and sparc64.  Ruby does not support
IA64 yet.  It does not even build or install correctly.  We need some
clue to the IA64 stack structure and handling of the IA64 register
windows.
@
text
@d10 1
@


1.46
log
@Update Oni Guruma (alternative BSDL regexp engine) to 20030109.
@
text
@d35 3
@


1.45
log
@lang/ruby:
  - Update to the 1.6.8 final release. (which fixes a couple of
    coredumping bugs)
  - Update Oni Guruma (alternative BSDL regexp engine) to 20021210.
  - Attach a small knob for debugging.

lang/ruby-devel
  - Update to 1.8.0 preview 1 + errata patch. (fixes a couple of
    coredumping bugs)
  - Update Oni Guruma (alternative BSDL regexp engine) to 20021210.
  - Fix pkg-plist nits.

lang/ruby16-shim-ruby18
  - Update to 1.8.0 preview 1. (sync with 1.6.8 & 1.8.0 preview1)
  - Fix pkg-plist nits.

Approved by:            lioux (and self)
A Merry Christmas to:   all of you
@
text
@a17 1
EXTRACT_ONLY=	${RUBY_DISTNAME}${EXTRACT_SUFX}
d29 1
a29 1
ONIGURUMA_DISTFILE=		onigd20021210.tar.gz
a100 3
.if defined(WITH_ONIGURUMA)
	${TAR} -zxvf ${DISTDIR}/${DIST_SUBDIR}/${ONIGURUMA_DISTFILE} -C ${WRKDIR}
.endif
a102 4
.if defined(WITH_ONIGURUMA)
	${CP} -f ${WRKDIR}/oniguruma/*.[ch] ${WRKSRC}/
	cd ${WRKSRC}; ${PATCH} < ${WRKDIR}/oniguruma/re.c.172.patch
.endif
d110 5
@


1.44
log
@Update lang/ruby to 1.6.8-preview3, lang/ruby16-shim-ruby18 to
1.7.3.2002.12.11, and lang/ruby-devel to 1.7.3-2002.12.12.

- Fix a few bugs that lead to core dump, one in the ruby interpreter
  and another in the syslog module.

  Reported by:	ume (net/dtcp was a victim)

- Fix an installation problem occasionally seen on bento. (a bug in
  Makefile that caused race)

  Submitted by:	bento

- Fix a problem that irb(1) didn't work because the symlink was wrong.

  Submitted by:	Jos Backus <jos@@catnook.com>

- Get rid of move & symlink spaghetti completely from the installation
  process.

Discussed with:	portmgr (will)
@
text
@d30 1
a30 1
ONIGURUMA_DISTFILE=		onigd20020424.tar.gz
d36 1
a36 1
USE_BZIP2=	yes
d38 1
a38 1
RUBY_VER=	1.7
d100 1
d124 1
a124 1
# Link just installed "ruby" to "ruby17", etc.
@


1.43
log
@Update lang/ruby-devel to the latest snapshot as of 2002-11-22.

Add a DEBUG knob here too.
@
text
@d13 1
a13 1
MASTER_SITE_SUBDIR=	snapshots \
a117 5
pre-install:
	${RM} -f ${RUBY_WITHOUT_SUFFIX}${RUBY_R} \
		${PREFIX}/man/man1/ruby${RUBY_R}.1 \
		${PREFIX}/man/man1/ruby${RUBY_R}.1.gz

d123 6
a128 18
	${MV} -f ${RUBY_WITHOUT_SUFFIX}${RUBY_R} ${RUBY_WITH_SUFFIX}
	${MV} -f ${PREFIX}/man/man1/ruby${RUBY_R}.1 ${PREFIX}/man/man1/ruby${_RUBY_SUFFIX}.1
.endif
	if [ -x ${RUBY_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX}${RUBY_R} ]; then \
		${LN} -fs ${RUBY_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX}${RUBY_R} ${RUBY_WITHOUT_SUFFIX}${RUBY_R}; \
		${LN} -fs ruby${RUBY_DEFAULT_SUFFIX}${RUBY_R}.1${MANEXT} ${PREFIX}/man/man1/ruby${RUBY_R}.1${MANEXT}; \
	fi
	if [ -x ${RUBY_WITHOUT_SUFFIX} ]; then \
		for f in ${INSTALLED_SCRIPTS}; do \
			${LN} -fs $${f}${RUBY_DEFAULT_SUFFIX} $${f}; \
		done; \
	fi
.if !empty(RUBY_R)
	if [ -x ${RUBY_WITHOUT_SUFFIX}${RUBY_R} ]; then \
		for f in ${INSTALLED_SCRIPTS}; do \
			${LN} -fs $${f}${_RUBY_SUFFIX} $${f}${RUBY_R}; \
		done; \
	fi
@


1.42
log
@Add a patch for tempfile.rb from CVS and bump PORTREVISION.
@
text
@a9 1
PORTREVISION=	1
d49 6
a54 1
MAKE_ENV=	LANG=C	# prevent bison 1.33 w/ gettext 0.10.35 from coredumping
d84 1
d100 1
a121 3
	for f in ${INSTALLED_SCRIPTS}; do \
		${RM} -f $${f}${RUBY_R}; \
	done
d125 1
a125 1
	strip ${RUBY}
a126 1
	${INSTALL_SCRIPT} ${WRKSRC}/ext/dl/h2rb ${PREFIX}/bin/
a130 3
	for f in ${INSTALLED_SCRIPTS}; do \
		${MV} -f $${f} $${f}${_RUBY_SUFFIX}; \
	done
a147 12
.for f in ${INSTALLED_SCRIPTS}
	${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
		-e 'if $$. == 1; ' \
		-e ' if /^#!/; ' \
		-e '  sub /^#!\s*\S*(\benv\s+)?\bruby/, "#!${RUBY_WITH_SUFFIX}";' \
		-e ' else;' \
		-e '  $$_ = "#!${RUBY_WITH_SUFFIX}\n" + $$_;' \
		-e ' end;' \
		-e 'end' \
		${f}${_RUBY_SUFFIX}
	${CHMOD} ${BINMODE} ${f}${_RUBY_SUFFIX}
.endfor
@


1.41
log
@Update lang/ruby-devel to the latest snapshot as of 2002-11-14.
@
text
@d10 1
@


1.40
log
@Fix installation.

Reported by:	Fritz Heinrichmeyer <Fritz.Heinrichmeyer@@FernUni-Hagen.de>
@
text
@d50 1
a50 1
#MAKE_ARGS=	-j3
d95 1
a95 1
	cd ${WRKDIR}; ${TAR} zxvf ${_DISTDIR}/${ONIGURUMA_DISTFILE}
@


1.39
log
@Update lang/ruby-devel to the latest snapshot as of 2002-09-27, which
fixes several coredump bugs and fatal threading problems.

Remove the autoconf dependency by including a pre-generated configure
script in the distfile.  It now also includes a pre-generated parse.c
made by bison 1.35.
@
text
@d50 1
a50 1
MAKE_ARGS=	-j3
@


1.38
log
@Add a header file that's installed only when WITH_ONIGURUMA is defined
to pkg-plist.

Reported by:	nork
@
text
@a26 2
BUILD_DEPENDS=	autoconf:${PORTSDIR}/devel/autoconf

a45 1
INSTALLS_SHLIB=	yes
d51 1
a109 3

pre-configure:
	cd ${WRKSRC}; autoconf
@


1.37
log
@Install ChangeLog too.

Suggested by:	Andreas Hauser <hauser@@informatik.uni-muenchen.de>
@
text
@d33 3
@


1.36
log
@Update lang/ruby and lang/ruby-devel to the latest snapshots as of
2002-07-15.
@
text
@d177 1
@


1.35
log
@Funnily enough, missing.h was missing in the pkg-plist.
@
text
@a9 1
PORTREVISION=	1
d82 1
@


1.34
log
@Make sure STRIP is defined before referencing the value.  STRIP can be
undefined when DEBUG_FLAGS is defined.

Submitted by:	Dave Cornejo <dave@@dogwood.com>,
		Joshua Goodall <joshua@@roughtrade.net>
@
text
@d10 1
@


1.33
log
@Update lang/ruby-devel to the latest development snapshot as of
2002-05-05.  This fixes some ruby extensions under RUBY_VER=1.7.

Update the Oni Guruma regex engine to 20020424.
@
text
@d121 1
a121 1
.if ${STRIP} == -s
@


1.32
log
@Update lang/ruby-devel to the latest development stapshot as of 2002-05-03.
@
text
@d32 1
a32 1
ONIGURUMA_DISTFILE=		onigd20020325.tar.gz
d98 1
a98 1
	${CP} -f ${WRKDIR}/oniguruma/regex.[ch] ${WRKSRC}/
@


1.31
log
@Update ruby-devel to the latest 1.7 snapshot as of 2002-04-12.
@
text
@d80 1
a80 2
OBSOLETED_MODULES=	bigfloat \
			dl \
d172 1
a172 1
	${INSTALL_DATA} ${WRKSRC}/ext/dl/sample/*.rb ${RUBY_EXAMPLESDIR}/dl
@


1.30
log
@lang/ruby:
- Update to the latest 1.6 stable snapshot as of 2002-03-27.
- Update the Oni Guruma alternative regex engine to 20020325.

lang/ruby-devel:
- Update to the latest 1.7 development snapshot as of 2002-03-26.
- Add the WITH_ONIGURUMA knob as well as lang/ruby.
- Require devel/autoconf (2.53 or later is required).
- Add several modules to the obsoleted modules list (now included):
	bigfloat
	fileutils
	racc-runtime
	strscan
@
text
@d77 2
a78 2
IRB_WITHOUT_SUFFIX=	${LOCALBASE}/bin/irb
IRB_WITH_SUFFIX=	${IRB_WITHOUT_SUFFIX}${_RUBY_SUFFIX}
d81 1
d116 4
a119 2
		${PREFIX}/man/man1/ruby${RUBY_R}.1.gz \
		${IRB_WITHOUT_SUFFIX}${RUBY_R}
d125 1
d130 3
a132 1
	${MV} -f ${IRB_WITHOUT_SUFFIX} ${IRB_WITH_SUFFIX}
d138 3
a140 1
		${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}; \
d144 3
a146 1
		${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}; \
d149 2
a150 1
	${LDCONFIG} -m ${LOCALBASE}/lib
d159 3
a161 2
		${IRB_WITH_SUFFIX}
	${CHMOD} ${BINMODE} ${IRB_WITH_SUFFIX}
d172 2
d181 2
@


1.29
log
@Set MAKE_ENV to "LANG=C" to prevent bison 1.33 w/ gettext 0.10.35
(what is built from ports) from coredumping. [workaround]

Set MAKE_ARGS to "-j3" to hasten the build.
@
text
@d11 6
a16 3
MASTER_SITES=	${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR=	snapshots
DISTNAME=	${RUBY_DISTNAME}
d18 1
d27 8
d43 2
a44 1
USE_AUTOCONF_VER=213
d80 15
a94 1
OBSOLETED_MODULES=	sha1 shell syslog timex urb uri
d97 5
a101 1
	find ${WRKSRC} -name '*.orig' -delete
d105 1
a105 1
.for d in gdbm tcltklib tk
d108 3
@


1.28
log
@To keep users from experiencing upgrading problems, make lang/ruby and
lang/ruby-devel deinstall obsoleted (integrated) packages in their
post-install targets (for installation from ports) and in their plists
(for installation from packages),

Update to the latest snapshot as of 2002-01-29 while I'm at it.
@
text
@d36 2
@


1.27
log
@First round of auto* cleanups:
 - USE_AUTO* -> USE_AUTO*_VER=* where required
 - USE_AUTO* / *_DEPENDS=.*auto*:*/devel/auto* -> GNU_CONFIGURE where OK
 - Other minor changes to fix things

These changes should be no-ops with the current bsd.port.mk, but will
assist in preparing for the next generation of USE_AUTO*.

Submitted by:	bento 4-exp USE_AUTO* cleanups
		http://people.FreeBSD.org/~will/4-exp/
		http://bento.FreeBSD.org/errorlogs/4-exp-latest/
@
text
@d65 2
d141 11
@


1.26
log
@Update lang/ruby to the 1.6.6 Xmas stable release.

Update lang/ruby-devel to the 1.7.2 Xmas' development snapshot.
@
text
@d31 1
a31 1
USE_AUTOCONF=	yes
@


1.25
log
@Properly set the file mode bits of the irb executables to ${BINMODE}.
@
text
@d135 2
@


1.24
log
@(Forced commit to correct the previous log)

Set LATEST_LINK to "ruby-devel".
@
text
@d111 1
@


1.23
log
@Set LATEST_LINK to "ruby_static-devel".
@
text
@@


1.22
log
@Update lang/ruby{,-devel} to the latest snapshots (2001.10.05).
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.21 2001/09/17 17:54:19 knu Exp $
d37 2
@


1.21
log
@Bump the PORTREVISION's of the ports which install architecture
dependent ruby modules, due to the RUBY_ARCH change I've just
committed.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.20 2001/09/13 05:51:38 knu Exp $
a9 1
PORTREVISION=	2
d18 1
a18 1
PATCHFILES=	${RUBY_PATCHFILES} ruby-thread_alloc_hotfix.diff
@


1.20
log
@Apply a THREAD_ALLOC hotfix.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.19 2001/09/03 13:00:01 knu Exp $
d10 1
a10 1
PORTREVISION=	1
@


1.19
log
@Update to the latest snapshots.

We are now six hours away from the ports freeze!
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.18 2001/08/22 10:08:19 knu Exp $
d10 1
d19 1
a19 1
PATCHFILES=	${RUBY_PATCHFILES}
@


1.18
log
@Utilize ${MANEXT} to fix manpage symlinks.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.17 2001/07/31 16:46:55 knu Exp $
d16 4
a19 4
#PATCH_SITES=	${MASTER_SITE_RUBY}
#PATCH_SITE_SUBDIR=	snapshots
#PATCHFILES=	${RUBY_PATCHFILES}
#PATCH_DIST_STRIP=	-p1
@


1.17
log
@Update lang/ruby and lang/ruby-devel to the latest snapshots as of
2001.07.31.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.16 2001/07/11 12:14:06 knu Exp $
d89 1
a89 1
		${LN} -fs ruby${RUBY_DEFAULT_SUFFIX}${RUBY_R}.1 ${PREFIX}/man/man1/ruby${RUBY_R}.1; \
@


1.16
log
@Add a backup server to PATCH_SITES.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.15 2001/06/21 16:36:46 knu Exp $
d11 2
a12 2
MASTER_SITES=	http://www.ruby-lang.org/~knu/	# ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR=	${RUBY_VER}
d16 4
a19 4
PATCH_SITES=	http://www.ruby-lang.org/~knu/ \
		http://www.iDaemons.org/distfiles/
PATCHFILES=	${RUBY_PATCHFILES}
PATCH_DIST_STRIP=	-p1
d23 2
d121 2
d124 2
a127 2
	${MKDIR} ${RUBY_DOCDIR}/md5
	${INSTALL_DATA} ${WRKSRC}/ext/md5/md5.txt* ${RUBY_DOCDIR}/md5
d131 1
a131 3
	${INSTALL_DATA} ${WRKSRC}/ext/readline/README ${RUBY_DOCDIR}/readline
	${MKDIR} ${RUBY_DOCDIR}/sha1
	${INSTALL_DATA} ${WRKSRC}/ext/sha1/sha1.txt* ${RUBY_DOCDIR}/sha1
@


1.15
log
@Update lang/ruby and lang/ruby-devel to the latest snapshots.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.14 2001/06/16 08:46:33 knu Exp $
d16 2
a17 1
PATCH_SITES=	http://www.ruby-lang.org/~knu/
@


1.14
log
@Put dummy files in the empty directories so they are surely packed.

Let each elisp port create XEMACSLISPDIR by itself.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.13 2001/06/11 09:32:02 knu Exp $
a9 1
PORTREVISION=	1
@


1.13
log
@Fix plist problems.

Reported by:	bento
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.12 2001/06/09 02:33:13 knu Exp $
a106 1
	${MKDIR} ${LOCALBASE}/lib/xemacs/site-lisp
d108 1
d110 1
d112 1
@


1.12
log
@Do a ldconfig before invoking the just installed binary in
post-install.

Dig XEmacs' site-lisp directory and RUBY_ELISPDIR.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.11 2001/06/09 01:43:01 knu Exp $
d89 3
a91 1
	${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}
d93 3
a95 1
	${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
@


1.11
log
@Dig ${RUBY_EXAMPLESDIR} and ${RUBY_DOCDIR} even if NOPORTDOCS is
defined. (But not actual examples & docs)
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.10 2001/06/04 14:54:32 knu Exp $
d10 1
d93 1
d103 2
@


1.10
log
@Introduce RUBY_DEFALUT_VER to choose a default version of ruby to use.

Introduce RUBY_R in preparation for ruby_r & ruby_r-devel ports.

Define RUBY_CONFIGURE_ARGS.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.9 2001/06/01 12:17:24 knu Exp $
d101 2
a103 1
	${MKDIR} ${RUBY_EXAMPLESDIR}
a108 1
	${MKDIR} ${RUBY_DOCDIR}
@


1.9
log
@Update ruby-devel to the latest snapshot, which now enters upon the
1.7.1 phase.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.8 2001/05/29 21:38:41 knu Exp $
d8 1
a8 1
PORTNAME=	ruby
d31 2
a32 1
CONFIGURE_ARGS=	--enable-shared
a33 1
MLINKS=		ruby${_RUBY_SUFFIX}.1 ruby.1
d35 4
a38 2
.if defined(WITH_LIBC_R)
CONFIGURE_ARGS+=	--with-libc_r=yes
d41 6
a46 1
.include <bsd.port.pre.mk>
d48 4
a51 2
.if !empty(RUBY_SUFFIX)
CONFIGURE_ARGS+=	--program-suffix="${RUBY_SUFFIX}"
d54 2
a55 3
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS+=	--enable-ipv6
.endif
d69 6
d79 12
a90 6
.if empty(RUBY_SUFFIX)
	${MV} -f ${RUBY_WITHOUT_SUFFIX} ${RUBY_WITH_SUFFIX}
	${LN} -fs ${RUBY_WITH_SUFFIX} ${RUBY_WITHOUT_SUFFIX}
	${MV} ${PREFIX}/man/man1/ruby.1 ${PREFIX}/man/man1/ruby${_RUBY_SUFFIX}.1
.else
	${LN} -fs ${RUBY_WITH_SUFFIX} ${RUBY_WITHOUT_SUFFIX}
d92 1
a92 11
	${INSTALL_SCRIPT} ${IRB_WITHOUT_SUFFIX} ${IRB_WITH_SUFFIX}
	${RUBY} ${RUBY_FLAGS} -i -p \
		-e 'if $$. == 1; ' \
		-e ' if /^#!/; ' \
		-e '  sub /^#!\s*\S*(\benv\s+)?\bruby/, "#!${RUBY_WITHOUT_SUFFIX}";' \
		-e ' else;' \
		-e '  $$_ = "#!${RUBY_WITHOUT_SUFFIX}\n" + $$_;' \
		-e ' end;' \
		-e 'end' \
		${IRB_WITHOUT_SUFFIX}
	${RUBY} ${RUBY_FLAGS} -i -p \
@


1.8
log
@It's not my day...  Fix typo and unbreak.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.7 2001/05/29 21:22:10 knu Exp $
a9 1
PORTREVISION=	1
d35 2
a36 2
.if !defined(WITH_LIBC_R)
CONFIGURE_ARGS+=	--with-libc_r=no
@


1.7
log
@Forgot to bump PORTREVISION's in the previous commit.

Note that you'll have to rebuild all the installed ruby modules
if you upgrade.  To do it, just install the latest portupgrade and
hit `portupgrade -rfcC ruby'.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.6 2001/05/29 21:16:54 knu Exp $
d37 1
a37 1
CONFIGURE_ARGS+=	--with_libc_r=no
@


1.6
log
@As some people including me are seeing reproduceable coredump,
temporarily stop linking ruby with libc_r.  This will break such
extension modules as ruby-qt, but we have to investigate the
annoying problems we are seeing, present in both ruby and our libc_r.

Once suggested by:	green
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.5 2001/05/17 21:16:44 knu Exp $
d10 1
@


1.5
log
@Update lang/ruby and lang/ruby-devel to the latest snapshots.

Remove shells/ruby-shell as it is now part of the standard distribution.
(in both Ruby 1.6.4 and 1.7.0)

Mark security/ruby-sha1 broken for Ruby >= 1.7.0, as it is also part of the
standard distribution now.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.4 2001/05/11 18:22:57 knu Exp $
d34 4
@


1.4
log
@Update lang/ruby to 1.6.4.p2.2001.05.12.

Update lang/ruby-devel to 1.7.0-a2001.05.12.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.3 2001/05/07 19:52:04 knu Exp $
d104 2
@


1.3
log
@Update lang/ruby and lang/ruby-devel to the latest snapshots.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.2 2001/05/06 16:48:04 knu Exp $
d16 3
a18 3
#PATCH_SITES=	http://www.ruby-lang.org/~knu/
#PATCHFILES=	${RUBY_DISTNAME}-${RUBY_PATCHLEVEL}.patch.gz
#PATCH_DIST_STRIP=	-p1
d104 1
a104 1
	${CP} -R ${WRKSRC}/doc/irb ${RUBY_DOCDIR}/
@


1.2
log
@Let irb16 properly run on ruby16 and irb17 on ruby17.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby-devel/Makefile,v 1.1 2001/05/05 23:20:12 knu Exp $
d16 3
a18 3
PATCH_SITES=	http://www.ruby-lang.org/~knu/
PATCHFILES=	${RUBY_DISTNAME}-${RUBY_PATCHLEVEL}.patch.gz
PATCH_DIST_STRIP=	-p1
@


1.1
log
@Add lang/ruby-devel, the development version of Ruby. (1.7)
@
text
@d5 1
a5 1
# $FreeBSD$
d45 2
a46 1
IRB=			${LOCALBASE}/bin/irb
d62 2
a63 2
	${MV} -f ${RUBY} ${RUBY_WITH_SUFFIX}
	${LN} -fs ${RUBY_WITH_SUFFIX} ${RUBY}
d66 1
a66 1
	${LN} -fs ${RUBY} ${PREFIX}/bin/ruby
d68 10
d86 1
a86 3
		${IRB}
	${MV} -f ${IRB} ${IRB}${_RUBY_SUFFIX}
	${LN} -fs ${IRB}${_RUBY_SUFFIX} ${IRB}
@

