head	1.22;
access;
symbols
	RELEASE_8_3_0:1.17
	RELEASE_9_0_0:1.16
	RELEASE_7_4_0:1.10
	RELEASE_8_2_0:1.10
	RELEASE_6_EOL:1.9
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.5
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2;
locks; strict;
comment	@# @;


1.22
date	2013.01.29.00.50.17;	author svnexp;	state Exp;
branches;
next	1.21;

1.21
date	2013.01.11.23.13.18;	author svnexp;	state Exp;
branches;
next	1.20;

1.20
date	2012.11.17.05.58.56;	author svnexp;	state Exp;
branches;
next	1.19;

1.19
date	2012.11.01.10.55.29;	author swills;	state Exp;
branches;
next	1.18;

1.18
date	2012.10.31.17.01.03;	author swills;	state Exp;
branches;
next	1.17;

1.17
date	2012.02.25.15.25.49;	author swills;	state Exp;
branches;
next	1.16;

1.16
date	2011.11.21.20.59.09;	author swills;	state Exp;
branches;
next	1.15;

1.15
date	2011.11.01.22.56.45;	author pgollucci;	state Exp;
branches;
next	1.14;

1.14
date	2011.10.24.03.33.11;	author stas;	state Exp;
branches;
next	1.13;

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

1.12
date	2011.08.23.03.47.28;	author swills;	state Exp;
branches;
next	1.11;

1.11
date	2011.08.21.04.03.36;	author swills;	state Exp;
branches;
next	1.10;

1.10
date	2010.12.04.07.32.24;	author ade;	state Exp;
branches;
next	1.9;

1.9
date	2010.10.16.11.52.16;	author ade;	state Exp;
branches;
next	1.8;

1.8
date	2010.10.11.03.09.54;	author stas;	state Exp;
branches;
next	1.7;

1.7
date	2010.08.31.03.58.11;	author pgollucci;	state Exp;
branches;
next	1.6;

1.6
date	2010.02.16.00.08.17;	author pgollucci;	state Exp;
branches;
next	1.5;

1.5
date	2009.06.18.14.51.39;	author stas;	state Exp;
branches;
next	1.4;

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

1.3
date	2009.01.05.20.36.32;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2008.05.03.23.40.04;	author stas;	state Exp;
branches;
next	1.1;

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


desc
@@


1.22
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311141
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by:	Akinori MUSHA aka knu <knu@@idaemons.org>
# $FreeBSD: head/lang/ruby19/Makefile 311141 2013-01-29 00:35:32Z jkim $

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

LIB_DEPENDS=	ffi:${PORTSDIR}/devel/libffi \
		yaml-0.2:${PORTSDIR}/textproc/libyaml \
		execinfo.1:${PORTSDIR}/devel/libexecinfo

GNU_CONFIGURE=	yes
WRKSRC=		${RUBY_WRKSRC}
CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} \
		--enable-shared \
		--enable-pthread \
		--with-ruby-version=minor \
		--with-sitedir="${PREFIX}/lib/ruby/site_ruby" \
		--with-vendordir="${PREFIX}/lib/ruby/vendor_ruby"
USE_OPENSSL=	yes
USE_LDCONFIG=	yes
USE_AUTOTOOLS=	autoconf

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

RUBY_VER=		1.9
USE_BZIP2=		yes
USE_RUBY=		yes
RUBY_NO_BUILD_DEPENDS=	yes
RUBY_NO_RUN_DEPENDS=	yes
_RUBY_SYSLIBDIR=	${PREFIX}/lib
_RUBY_EXTDIR=		${PREFIX}/lib/ruby19

MAKE_JOBS_UNSAFE=	yes

NO_LATEST_LINK=	yes

OPTIONS_DEFINE=	RDOC DEBUG
RDOC_DESC=	Build and install Rdoc indexes
DEBUG_DESC=	Compile-in debug info

.include <bsd.port.pre.mk>

# PORTEPOCH/PORTREVISION hack

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

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

PKGNAMESUFFIX=	#empty
CFLAGS+=	${PTHREAD_CFLAGS}	# Keep this, else ruby will fail to load
LDFLAGS+=	${PTHREAD_LIBS}		# libraries dependent op libpthread.

#
# 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

CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
		LIBS="-L${LOCALBASE}/lib ${LDFLAGS}" \
		debugflags=

.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 rdoc ri ruby testrb

EXTSAMPLES=	bigdecimal/sample/*.rb	\
		curses/hello.rb		\
		curses/rain.rb		\
		curses/view.rb		\
		curses/view2.rb

EXTDOCS=	bigdecimal/bigdecimal_*.html	\
		readline/README*		\
		ripper/README			\
		stringio/README			\
		syslog/syslog.txt

MAN1=		${RUBY_NAME}.1 erb${RUBY_SUFFIX}.1  irb${RUBY_SUFFIX}.1 \
		ri${RUBY_SUFFIX}.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-patch:
	@@${REINPLACE_CMD} -E \
		-e 's,-l$$pthread_lib,${PTHREAD_LIBS},g' \
		-e '/^RUBY_LIB_PATH/s,\.\$$\{TEENY\},,' \
		-e '/^RUBY_SITE_LIB_PATH2/s,\.\$$\{TEENY\},,' \
		-e '/^RUBY_VENDOR_LIB_PATH2/s,\.\$$\{TEENY\},,' \
		${WRKSRC}/configure

	#
	# Eliminate all leftovers
	#
	@@${FIND} ${WRKSRC}/ -name "*.orig" -delete

#
# Remove modules we don't want
#
.for d in win32ole
	${RM} -rf ${BUILD_WRKSRC}/ext/${d}
.endfor
# We get rake from ports.
.for d in bin/rake doc/rake lib/rake test/rake man/rake.1 lib/rake.rb
	${RM} -rf ${BUILD_WRKSRC}/${d}
.endfor
# We get the gem executable from ports.
	${RM} ${BUILD_WRKSRC}/bin/gem

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

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_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_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*	\
			${RUBY_DOCDIR}/
.endif

#
# Add generated RI files to pkg-plist
#
	@@${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}


#
# Add generated doxygen files to pkg-plist
#
	@@${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}
	@@${ECHO_CMD} "@@unexec rmdir %D/${RUBY_DOCDIR:S,^${PREFIX}/,,} 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
	@@${ECHO_CMD} "libdata/pkgconfig/ruby-1.9.pc" >> pkg-plist

#
# Includes
#
	@@${FIND} -ds ${PREFIX}/include/ruby-${RUBY_VER} ! -type d | \
		${SED} 's,^${PREFIX}/*,,' >> pkg-plist
	@@${FIND} -ds ${PREFIX}/include/ruby-${RUBY_VER} -type d | \
		${SED} 's,^${PREFIX}/*,@@dirrm ,' >> pkg-plist

#
# Vendor and site libs
#
	@@${FIND} -Eds ${RUBY_DOCDIR}/ ! -type d ! -name .keep_me | \
		${SED} 's,^${RUBY_DOCDIR},%%PORTDOCS%%%%RUBY_DOCDIR%%,' \
		 >> pkg-plist
	@@${FIND} -Eds ${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} "@@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

#
# Find all gem files/folders
#
	@@${ECHO_CMD} "%%RUBY_SITEARCHLIBDIR%%/.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} "%%RUBY_VENDORARCHLIBDIR%%/.keep_me" >> 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/gems" >> 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
	rm -rf ${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.21
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
@d2 1
a2 1
# $FreeBSD: head/lang/ruby19/Makefile 310250 2013-01-11 22:05:13Z jgh $
d17 1
a17 1
LIB_DEPENDS=	ffi.5:${PORTSDIR}/devel/libffi \
@


1.20
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/ruby19/Makefile 306792 2012-11-01 10:55:29Z swills $
d47 3
a49 2
OPTIONS=	RDOC "Build and install Rdoc indexes" off \
		DEBUG "Compile-in debug info" off
d70 1
a70 1
.if defined(WITH_RDOC) && !defined(NOPORTDOCS)
d184 1
a184 1
.if !defined(NOPORTDOCS)
@


1.19
log
@SVN rev 306792 on 2012-11-01 10:55:29Z by swills

- Fix a packaging issue (no package change so no portrevision bump)

Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.18
log
@SVN rev 306751 on 2012-10-31 17:01:03Z by swills

- Update lang/ruby19 to 1.9.3.286
- Don't try to cleanup dir created by ruby-gems
- Trim headers while here

Feature safe:	yes
@
text
@a211 7
#
# Add generated CAPI files to pkg-plist
#
	@@${FIND} -ds ${RUBY_DOCDIR}/capi/ ! -type d | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@@${FIND} -ds ${RUBY_DOCDIR}/capi -type d -mindepth 1 | \
		${SED} -E -e 's,^${PREFIX}/,@@dirrm ,' >> ${TMPPLIST}
@


1.17
log
@- Update lang/ruby18 to p385
- Update lang/ruby19 to p125

Changes:

http://www.ruby-forum.com/topic/3663807#1047121
http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/

PR:		ports/165223
Submitted by:	swills (myself)
Reviewed by:	pgollucci
Approved by:	portmgr
@
text
@d1 1
a1 4
# New ports collection makefile for:	ruby18
# Date created:		6 May 2001
# Whom:			Akinori MUSHA aka knu <knu@@idaemons.org>
#
a2 1
#
@


1.16
log
@- Update lang/ruby19 to 1.9.3

Submitted by:	stas@@
With hat:	ruby@@
Feature safe:	yes
Approved by:	portmgr (pav)
@
text
@d22 2
a23 1
		yaml-0.2:${PORTSDIR}/textproc/libyaml
@


1.15
log
@Let ruby@@ maintain ruby
@
text
@d216 8
d243 1
@


1.14
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.13
log
@- Do not install the 'gem' executable as part of ruby 1.9 install.  The
  version supplied is too old for some applications, so we're switching
  to using the version from ports.
- Allow ruby-gems installation for ruby 1.9.

Submitted by:	swills@@ (based on).
@
text
@d18 1
a18 1
MAINTAINER=	stas@@FreeBSD.org
@


1.12
log
@- Undo some of the changes related to making Ruby 1.9 default.
  Specifically, don't try to use devel/ruby-gems instead of the bundled
  gem.
@
text
@d89 1
a89 4
GEMS_DIR=	${PREFIX}/lib/ruby/gems/${RUBY_VER}
PLIST_SUB+=	GEMS_DIR="lib/ruby/gems/${RUBY_VER}"

INSTALLED_SCRIPTS=	irb erb rdoc ri ruby testrb gem
d128 6
a141 5
# we get rake from ports
.for d in bin/rake doc/rake lib/rake test/rake man/rake.1 lib/rake.rb
	${RM} -rf ${BUILD_WRKSRC}/${d}
.endfor

a166 2
	${MKDIR} ${GEMS_DIR}/gems
	${TOUCH} ${GEMS_DIR}/gems/.keep_me
a286 5
	@@${FIND} -ds ${GEMS_DIR}/ ! -type d | \
		${SED} 's,^${GEMS_DIR},%%GEMS_DIR%%,' >> pkg-plist
	@@${FIND} -ds ${GEMS_DIR}/ -type d | ${SORT} -r | \
		${SED} -E -e 's,^${GEMS_DIR}(.*),@@dirrm %%GEMS_DIR%%\1,' >> pkg-plist

@


1.11
log
@- Update Ruby 1.9 to p290
- Make Ruby 1.9 the default Ruby
@
text
@d89 4
a92 1
INSTALLED_SCRIPTS=	irb erb rdoc ri ruby testrb
a138 6
# we get ruby-gems from ports
.for d in bin/gem doc/rubygems lib/rubygems test/rubygems \
	lib/rubygems.rb lib/ubygems.rb gem_prelude.rb
	${RM} -rf ${BUILD_WRKSRC}/${d}
.endfor

d169 2
d288 23
@


1.10
log
@Sync to new bsd.autotools.mk
@
text
@d89 1
a89 4
GEMS_DIR=	${PREFIX}/lib/ruby/gems/${RUBY_VER}
PLIST_SUB+=	GEMS_DIR="lib/ruby/gems/${RUBY_VER}"

INSTALLED_SCRIPTS=	irb erb rdoc ri ruby testrb rake gem
d104 1
a104 1
		rake${RUBY_SUFFIX}.1 ri${RUBY_SUFFIX}.1
d136 11
a171 4
.for D in cache doc gems
	${MKDIR} ${GEMS_DIR}/${D}
	${TOUCH} ${GEMS_DIR}/${D}/.keep_me
.endfor
a222 7
.if defined(WITH_RDOC) && !defined(NOPORTDOCS)
	@@${FIND} -ds ${RUBY_DOCDIR}/capi ! -type d | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@@${FIND} -ds ${RUBY_DOCDIR}/capi -type d | \
		${SED} -E -e 's,^${PREFIX}/,@@dirrm ,' >> ${TMPPLIST}
.endif

d252 1
a252 2
	@@${FIND} -Eds ${RUBY_DOCDIR}/ ! -type d ! -name .keep_me \
		! -regex "${RUBY_DOCDIR}/capi/?.*" | \
d255 1
a255 2
	@@${FIND} -Eds ${RUBY_DOCDIR}/ -type d -mindepth 1 ! \
		-regex "${RUBY_DOCDIR}/capi/?.*" | ${SORT} -r | \
a288 23
#
# Find all gem files/folders
#
	@@${FIND} -ds ${GEMS_DIR}/ ! -type d | \
		${SED} 's,^${GEMS_DIR},%%GEMS_DIR%%,' >> pkg-plist
	@@${FIND} -ds ${GEMS_DIR}/ -type d | ${SORT} -r | \
		${SED} -E -e 's,^${GEMS_DIR}(.*),@@dirrm %%GEMS_DIR%%\1,' >> pkg-plist

	@@${ECHO_CMD} "%%RUBY_SITEARCHLIBDIR%%/.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} "%%RUBY_VENDORARCHLIBDIR%%/.keep_me" >> 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/gems" >> pkg-plist

	@@${ECHO_CMD} "@@dirrmtry lib/ruby" >> pkg-plist

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

@


1.9
log
@Punt autoconf267->autoconf268
@
text
@d34 1
a34 1
USE_AUTOTOOLS=	autoconf:268
@


1.8
log
@- Update ruby19 to 1.9.2.
- Do not link agains librt. [1]

PR:		ports/149003 [1]
Submitted by:	Anonymous <swell.k@@gmail.com> [1]
@
text
@d34 1
a34 1
USE_AUTOTOOLS=	autoconf:267
@


1.7
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
@d21 2
a22 1
MAKE_JOBS_UNSAFE=	yes
a28 1
		--with-openssl-include=${OPENSSLINC} \
d34 1
d46 2
d78 2
a79 2
CONFIGURE_ENV=	CFLAGS="${CFLAGS}" \
		LIBS="${LDFLAGS}" \
d89 3
d98 1
a98 4
		curses/view2.rb		\
		pty/expect_sample.rb	\
		pty/script.rb		\
		pty/shl.rb
a100 2
		etc/etc.txt*			\
		pty/README*			\
d104 1
a104 2
		syslog/syslog.txt		\
		zlib/doc/zlib.rd
d164 4
d216 10
d230 1
d255 2
a256 1
	@@${FIND} -ds ${RUBY_DOCDIR}/ ! -type d ! -name .keep_me | \
d259 2
a260 1
	@@${FIND} -ds ${RUBY_DOCDIR}/ -type d -mindepth 1 | ${SORT} -r | \
d274 1
a274 1
	@@${ECHO_CMD} "@@dirrmtry %%RUBY_DOCDIR%%" >> pkg-plist
d294 8
d311 1
d320 7
@


1.6
log
@- Mark MAKE_JOBS_UNSAFE=yes

Approved by:    stas (maintainer) via irc #bsdports

Feature safe:   yes
@
text
@a65 5
.if defined(WITH_DEBUG)
CFLAGS+=	-g
STRIP=		# none
.endif

d76 2
a77 1
		LIBS="${LDFLAGS}"
@


1.5
log
@- Fix pkg-plist. Apparently ruby19 install all files in its workdir
  including the patch(1) leftovers.
@
text
@d21 2
@


1.4
log
@- Update ruby19 to 1.9.1.

PR:		ports/129818 (based on)
Submitted by:	Hung-Yi Chen <gaod@@hychen.org>
@
text
@d122 5
@


1.3
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d26 4
a29 1
		--with-openssl-include=${OPENSSLINC}
d108 2
a109 1
MAN1=		${RUBY_NAME}.1
d230 1
a230 1
		${SED} 's,^${PREFIX},,' >> pkg-plist
d232 1
a232 1
		${SED} 's,^${PREFIX},@@dirrm ,' >> pkg-plist
@


1.2
log
@- Mark broken on 5.x where it fails to compile
  probably due a kse problem.
@
text
@a46 4
.if ${OSVERSION} < 600000
BROKEN=	Does not compile
.endif

@


1.1
log
@- Add ruby 1.9 support
- Implement new knobs for gems and rake (these are included in
  ruby 1.9 distribution already). Also move gem bits from
  ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend
  on gems or rake you should define USE_RUBYGEMS/USE_RAKE
  accordingly. Also RAKE_BIN variable is provided for
  pointing to the right rake executable.
- Rewrite RUBY_SCHEBANG in awk to eliminate build dependency
  on ruby.

Discussed with:	Jonathan Weiss <jw@@innerewut.de> [1] (gems maintainer)
Tested by:	ports@@
@
text
@d47 4
@

