head	1.40;
access;
symbols
	RELEASE_4_EOL:1.39
	RELEASE_6_2_0:1.38
	RELEASE_6_1_0:1.37
	RELEASE_5_5_0:1.37
	RELEASE_6_0_0:1.36
	RELEASE_5_4_0:1.36
	RELEASE_4_11_0:1.36
	RELEASE_5_3_0:1.36
	RELEASE_4_10_0:1.35
	RELEASE_5_2_1:1.32
	RELEASE_5_2_0:1.32
	RELEASE_4_9_0:1.31
	old_RELEASE_5_1_0:1.29
	old_RELEASE_4_8_0:1.27
	old_RELEASE_5_0_0:1.23
	old_RELEASE_4_7_0:1.21
	old_RELEASE_4_6_2:1.14
	old_RELEASE_4_6_1:1.14
	old_RELEASE_4_6_0:1.14
	old_RELEASE_5_0_DP1:1.13
	old_RELEASE_4_5_0:1.9
	old_RELEASE_4_4_0:1.6
	old_RELEASE_4_3_0:1.2;
locks; strict;
comment	@# @;


1.40
date	2007.02.13.09.11.08;	author stas;	state dead;
branches;
next	1.39;

1.39
date	2007.01.02.19.19.05;	author stas;	state Exp;
branches;
next	1.38;

1.38
date	2006.08.31.20.52.21;	author sem;	state Exp;
branches;
next	1.37;

1.37
date	2005.11.11.01.17.43;	author linimon;	state Exp;
branches;
next	1.36;

1.36
date	2004.09.27.23.07.22;	author kris;	state Exp;
branches;
next	1.35;

1.35
date	2004.04.04.01.35.39;	author kris;	state Exp;
branches;
next	1.34;

1.34
date	2004.03.30.19.20.20;	author krion;	state Exp;
branches;
next	1.33;

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

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

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

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

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

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

1.27
date	2003.03.18.02.49.13;	author knu;	state Exp;
branches;
next	1.26;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


desc
@@


1.40
log
@- Remove expired ruby 1.6 ports.
- Remove expired ruby18_static port that depends on ruby16
@
text
@# New ports collection makefile for:	ruby_static
# Date created:			19 February 2001
# Whom:				Akinori MUSHA aka knu <knu@@idaemons.org>
#
# $FreeBSD: ports/lang/ruby16_static/Makefile,v 1.39 2007/01/02 19:19:05 stas Exp $
#

PORTNAME=	ruby_static
PORTVERSION=	${RUBY_PORTVERSION}
PORTREVISION?=	1
CATEGORIES=	lang ruby ipv6
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	A Ruby binary with some modules compiled in (in case of emergency)

DEPRECATED=	vulnerable, unmaintained and nothing uses it
EXPIRATION_DATE=2007-02-02

EXTRACT_DEPENDS=	${NONEXISTENT}:${.CURDIR}/../../${RUBY_PORT}:patch

USE_RUBY=	yes

RUBY_VER?=	1.6

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" && ${RUBY_VER} == 1.6
BROKEN=		"Configure fails on amd64"
.endif

# Beware, because gdbm is under GPL, you must treat the whole binary
# as GPL says if you include gdbm in it.
EXT_PORTS=	databases/ruby-bdb1
_PORTSDIR=	${.CURDIR}/../..
_RUBY_PORTDIR=	${_PORTSDIR}/${RUBY_PORT}

.if ${RUBY_VER} < 1.7
EXT_PORTS+=	${RUBY_SHIM18_PORT}
.else
EXT_PORTS+=	converters/ruby-iconv
.endif

.for p in ${EXT_PORTS}
EXTRACT_DEPENDS+=	${NONEXISTENT}:${_PORTSDIR}/${p}:patch
.endfor

GNU_CONFIGURE=	yes
USE_ICONV=	yes

WRKSRC=		${RUBY_WRKSRC}

DESCR=		${_RUBY_PORTDIR}/pkg-descr

# You can build a totally statically linked binary by defining STATIC,
# although the resulted interpreter is not capable of loading dynamic
# modules.

CONFIGURE_ENV=		LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS!=	cd ${_RUBY_PORTDIR} && ${MAKE} -V CONFIGURE_ARGS
.if defined(STATIC)
CONFIGURE_ARGS:=	${CONFIGURE_ARGS:N--enable-shared:M-*} \
			--with-static-linked-ext=yes \
			--with-opt-dir="${LOCALBASE}"
.else
CONFIGURE_ARGS:=	${CONFIGURE_ARGS:M-*} \
			--with-opt-dir="${LOCALBASE}"
.endif

.if defined(DEBUG)
CFLAGS+=	-g
STRIP=		# none
.endif

#MAKE_ARGS=	-j3

.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
IF_DEFAULT=	""
.else
IF_DEFAULT=	"@@comment "
.endif

PLIST_SUB+=	IF_DEFAULT=${IF_DEFAULT}

do-fetch:
	@@${DO_NADA}

post-patch:
.if defined(STATIC)
	${RUBY} -i -pe 'gsub /-rdynamic/, "-static"' ${WRKSRC}/configure.in
.endif
	${RUBY} -i -pe '$$. == 1 and puts %q/require "rbconfig.rb"/' ${WRKSRC}/ext/bdb1/extconf.rb

do-extract:
	${MKDIR} ${WRKDIR}
	${LN} -sf `cd ${_RUBY_PORTDIR} && ${MAKE} -V WRKSRC` ${WRKSRC}
.for p in ${EXT_PORTS}
	wrksrc=$$(cd ${_PORTSDIR}/${p} && ${MAKE} -V WRKSRC) ; \
	${FIND} -L $$wrksrc -name extconf.rb | \
	${XARGS} ${GREP} -l create_makefile | \
	while read extdir; do \
		extdir=$${extdir%/extconf.rb}; \
		case "$p" in \
		${RUBY_SHIM18_PORT}) \
			m=$$(basename $$extdir); \
			case $$extdir in \
			*/racc/*) \
				${MKDIR} ${WRKSRC}/ext/racc; \
				m=racc/$${m} ;; \
			*/ext/features/ruby18/*) \
				${MKDIR} ${WRKSRC}/ext/features/ruby18; \
				m=features/ruby18/$${m}_ruby18 ;; \
			esac ;; \
		*) \
			m="${p:T:S,^ruby-,,}" ;; \
		esac; \
		${CP} -RPp $$extdir ${WRKSRC}/ext/$$m; \
		${TOUCH} ${WRKSRC}/ext/$$m/MANIFEST; \
	done
.endfor
.if defined(STATIC)
	${ECHO_CMD} "option nodynamic" > ${WRKSRC}/ext/Setup
.else
	${ECHO_CMD} "#option nodynamic" > ${WRKSRC}/ext/Setup
.endif
	cd ${WRKSRC}/ext; ${FIND} * -name extconf.rb | \
	${XARGS} ${GREP} -l create_makefile | \
	while read extdir; do \
		extdir=$${extdir%/extconf.rb}; \
		echo $$extdir; \
	done >> Setup

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${RUBY_NAME} ${RUBY_WITH_SUFFIX}_s
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
	${LN} -fs ${RUBY_NAME}_s ${RUBY_WITHOUT_SUFFIX}_s
.endif

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


1.39
log
@- Deprecate old and unmaintained ruby ports. It seems, that nobody uses it.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.38
log
@- Comment out -j3 make flag. ruby18_static build can fail with it.
@
text
@d18 3
@


1.37
log
@With portmgr hat on, reset maintainership of knu's ports since he has
been inactive more than 6 months.  We hope to see him back sometime.
@
text
@d73 1
a73 1
MAKE_ARGS=	-j3
@


1.36
log
@ruby18_static builds on amd64

Approved by:	portmgr (self)
@
text
@d15 1
a15 1
MAINTAINER=	knu@@FreeBSD.org
@


1.35
log
@Slave port ruby18_static is BROKEN on amd64: Configure fails
@
text
@d26 1
a26 1
.if ${ARCH} == "amd64"
@


1.34
log
@- Use USE_ICONV knob

Approved by:	portmgr
@
text
@d26 4
@


1.33
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
@a31 2
LIB_DEPENDS+=	iconv.3:${PORTSDIR}/converters/libiconv

d43 1
@


1.32
log
@Unbreak by removing an obsolete patch, which fix has already been
integrated into lang/ruby16.
@
text
@d10 1
a10 1
PORTREVISION?=	0
d131 1
a131 1
	${LN} -fs ruby${_RUBY_SUFFIX}_s ${RUBY_WITHOUT_SUFFIX}_s
@


1.31
log
@Get lang/ruby_static-devel to build.
@
text
@a35 1
EXTRA_PATCHES=	${PATCHDIR}/ruby16-patch-*
@


1.30
log
@Load rbconfig.rb before referring to Config and unbreak.
@
text
@d55 1
a55 1
CONFIGURE_ENV=	XLDFLAGS="-L${LOCALBASE}/lib"
@


1.29
log
@Unbreak the build.
@
text
@d84 1
a85 1
post-patch:
d88 1
@


1.28
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
@d36 1
@


1.27
log
@Another BUILD_DEPENDS -> EXTRACT_DEPENDS leftover.

Noted by:	kris
@
text
@d28 1
a28 2
EXT_PORTS=	archivers/ruby-zlib \
		databases/ruby-bdb1
@


1.26
log
@Change BUILD_DEPENDS to EXTRACT_DEPENDS.

Submitted by:	bento
@
text
@d42 1
a42 1
BUILD_DEPENDS+=	${NONEXISTENT}:${_PORTSDIR}/${p}:patch
@


1.25
log
@De-pkg-comment.
@
text
@d18 1
a18 1
BUILD_DEPENDS=	${NONEXISTENT}:${.CURDIR}/../../${RUBY_PORT}:patch
@


1.24
log
@Explicitly specify RUBY_VER?=1.6 to avoid duplicate INDEX entry when
RUBY_DEFAULT_VER=1.8.

Submitted by:	kris
@
text
@d16 1
@


1.23
log
@Remove an obsolete LANG=C kludge.

Add a knob for debugging.
@
text
@d21 2
@


1.22
log
@Zero PORTREVISION after the PORTVERSION is bumped.
@
text
@d49 2
a50 1
# although it is not capable of loading dynamic modules.
d63 5
a67 1
MAKE_ENV=	LANG=C	# prevent bison 1.33 w/ gettext 0.10.35 from coredumping
@


1.21
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
@d10 1
a10 1
PORTREVISION?=	1
@


1.20
log
@lang/ruby_static doesn't depend on autoconf any more.
(but lang/ruby_static-devel still does)
@
text
@a41 9
.if defined(RUBY_VER)
.if ${RUBY_VER} > 1.6
NEWAUTOCONF=	yes
.endif
.endif

.if defined(NEWAUTOCONF)
BUILD_DEPENDS+=	autoconf:${PORTSDIR}/devel/autoconf
.endif
a118 5

.if defined(NEWAUTOCONF)
pre-configure:
	cd ${WRKSRC}; autoconf
.endif
@


1.19
log
@Fix a silly typo introduced in the previous commit and unbreak.

Submitted by:	bento
@
text
@d10 1
a10 1
PORTREVISION?= 1
d50 1
a51 3
.else
USE_AUTOCONF=	yes
.endif
@


1.18
log
@Use RUBY_SHIM18_PORT.
@
text
@d102 1
a102 1
		${RUBY_SHIM18_PORT) \
@


1.17
log
@- Integrate the digest/*, racc/cparse, iconv, shim16_18 modules into
  lang/ruby_static.

- Integrate the iconv module into lang/ruby_static-devel.
@
text
@d33 1
a33 1
EXT_PORTS+=	lang/ruby16-shim-ruby18
d102 1
a102 1
		lang/ruby16-shim-ruby18) \
@


1.16
log
@devel/ruby-strscan has been replaced with lang/ruby16-shim-ruby18.

Reported by:	make index
@
text
@d10 1
a10 1
PORTREVISION?=	0
d21 2
d30 8
a58 2
.include <bsd.port.pre.mk>

a95 1
	m="${p:T:S,^ruby-,,}"; \
d97 21
a117 5
	extdir=$$(${FIND} -L $$wrksrc -name extconf.rb | \
	${XARGS} ${GREP} -l create_makefile | ${HEAD} -1 ); \
	extdir=$${extdir%/extconf.rb}; \
	${CP} -RPp $$extdir ${WRKSRC}/ext/$$m; \
	${TOUCH} ${WRKSRC}/ext/$$m/MANIFEST
d124 6
a129 2
	(cd ${WRKSRC}/ext && \
	for x in *; do [ -d $$x ] && echo $$x >> Setup; done)
@


1.15
log
@devel/ruby-fnmatch has been replaced with lang/ruby16-shim-ruby18.
@
text
@d24 1
a24 2
		databases/ruby-bdb1 \
		devel/ruby-strscan
@


1.14
log
@Update lang/ruby and lang/ruby-devel to the latest snapshots as of
2002-05-23.
@
text
@a28 4
.if !defined(HAVE_FNMATCH)
EXT_PORTS+=	devel/ruby-fnmatch
.endif

@


1.13
log
@Use autoconf 2.53 for lang/ruby_static-devel and unbreak it.
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.12
log
@Include databases/ruby-bdb1.

Improve the extconf.rb detection routine in Makefile.

Bump PORTREVISION.
@
text
@a20 2
USE_AUTOCONF=	yes

d37 13
d108 5
@


1.11
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
@d10 1
d24 1
a24 1
# as GPL says.
d26 1
d82 1
d84 2
a85 1
	extdir=$$(find -L $$wrksrc -name extconf.rb); \
d87 2
a88 1
	${CP} -RPp $$extdir ${WRKSRC}/ext/
@


1.10
log
@Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.
@
text
@d57 3
@


1.9
log
@Remove ruby-syslog from here too.

Submitted by:	olgeni
@
text
@d83 1
a83 1
	${ECHO} "option nodynamic" > ${WRKSRC}/ext/Setup
d85 1
a85 1
	${ECHO} "#option nodynamic" > ${WRKSRC}/ext/Setup
@


1.8
log
@Update ruby to the 1.6.5 release.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby_static/Makefile,v 1.7 2001/09/17 07:45:58 knu Exp $
d25 1
a25 2
		devel/ruby-strscan \
		sysutils/ruby-syslog
@


1.7
log
@Do not static link everything (including libc) but just compile in
some dynamic modules, and leave a knob which links everything as
before (-DSTATIC).
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby_static/Makefile,v 1.6 2001/06/21 16:45:19 knu Exp $
a9 1
PORTREVISION=	1
@


1.6
log
@Now Ruby 1.7 has fnmatch out-of-the-box.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby_static/Makefile,v 1.5 2001/06/11 05:04:09 knu Exp $
d10 1
d23 2
a24 2
# Beware, you can't statically link Ruby with GPL'ed libraries,
# which means you can't link such modules as ruby-gdbm within.
d45 3
d50 1
d54 4
d70 1
d73 1
d80 1
a80 1
	extdir=$$(find $$wrksrc -name extconf.rb); \
d84 5
a89 1
	${ECHO} "option nodynamic" > Setup; \
@


1.5
log
@Compile ruby-fnmatch in.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby_static/Makefile,v 1.4 2001/06/04 14:54:32 knu Exp $
a9 1
PORTREVISION=	1
a25 1
		devel/ruby-fnmatch \
d29 4
@


1.4
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_static/Makefile,v 1.3 2001/05/06 16:46:05 knu Exp $
d10 1
d27 1
@


1.3
log
@Support installing multiple versions of ruby_s. (You'll have ruby16_s
and ruby17_s, and ruby_s as a symlink to either)
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby_static/Makefile,v 1.2 2001/04/01 18:14:49 knu Exp $
a43 1
			--with-libc_r=no \
d46 8
d75 3
a77 1
	${LN} -fs ${RUBY_WITH_SUFFIX}_s ${RUBY_WITHOUT_SUFFIX}_s
@


1.2
log
@Do not link libc_r when it is unnecessary.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ruby_static/Makefile,v 1.1 2001/02/19 15:55:35 knu Exp $
d22 2
a23 1
# Beware, we can't statically link the gdbm module because gdbm is GPL'ed.
d67 2
a68 2
	${INSTALL_PROGRAM} ${WRKSRC}/${RUBY_NAME} ${RUBY}${_RUBY_SUFFIX}_s
	${LN} -fs ${RUBY}${_RUBY_SUFFIX}_s ${RUBY}_s
@


1.1
log
@Add lang/ruby_static, the statically linked version of the "ruby"
executable, with some basic extensions compiled in.

This is added so people can use ruby even in an emergency.
@
text
@d5 1
a5 1
# $FreeBSD$
d43 1
@

