2002-06-08 19:24:56 +02:00
|
|
|
# New ports collection makefile for: ruby16-shim-ruby18
|
|
|
|
# Date created: 5 May 2002
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= shim-ruby18
|
2003-12-15 07:35:48 +01:00
|
|
|
PORTVERSION= 1.8.1.p3
|
2002-06-08 19:24:56 +02:00
|
|
|
CATEGORIES= lang devel ruby
|
2002-09-11 19:30:21 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_RUBY}
|
|
|
|
MASTER_SITE_SUBDIR= shim
|
2002-06-08 19:24:56 +02:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2003-12-15 07:35:48 +01:00
|
|
|
DISTNAME= shim-ruby16_18-1.8.1-preview3
|
2002-06-08 19:24:56 +02:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2005-11-11 02:18:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-18 06:42:05 +01:00
|
|
|
COMMENT= A set of Ruby modules to provide Ruby 1.8 functionalities
|
2002-06-08 19:24:56 +02:00
|
|
|
|
2007-01-02 20:19:05 +01:00
|
|
|
DEPRECATED= depends on deprecated port
|
|
|
|
EXPIRATION_DATE=2007-02-02
|
|
|
|
|
2002-06-08 19:24:56 +02:00
|
|
|
USE_BZIP2= yes
|
2003-10-31 19:26:01 +01:00
|
|
|
USE_OPENSSL= yes
|
2002-06-08 19:24:56 +02:00
|
|
|
|
|
|
|
USE_RUBY= yes
|
|
|
|
|
2003-07-19 18:11:15 +02:00
|
|
|
MAKE_ARGS= RUBY=${RUBY}
|
2002-09-11 19:30:21 +02:00
|
|
|
#CONFIGURE_ARGS+= CONFIGURE_ARGS="-- --config-opt=--with-opt-dir=${LOCALBASE}"
|
2002-06-08 19:24:56 +02:00
|
|
|
WRKSRC= ${WRKDIR}/shim/ruby16
|
|
|
|
|
2004-02-26 18:33:18 +01:00
|
|
|
RUBY_VER= 1.6
|
2002-06-08 19:24:56 +02:00
|
|
|
|
2004-02-26 18:33:18 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-06-08 19:24:56 +02:00
|
|
|
|
2002-12-12 13:53:03 +01:00
|
|
|
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
|
|
|
IF_DEFAULT= ""
|
|
|
|
.else
|
|
|
|
IF_DEFAULT= "@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-12-16 08:07:34 +01:00
|
|
|
INSTALLED_SCRIPTS= ${PREFIX}/bin/erb \
|
2003-12-15 07:35:48 +01:00
|
|
|
${PREFIX}/bin/h2rb \
|
|
|
|
${PREFIX}/bin/rdoc
|
2002-12-12 13:53:03 +01:00
|
|
|
|
|
|
|
PLIST_SUB+= IF_DEFAULT=${IF_DEFAULT} \
|
|
|
|
|
2002-06-08 19:24:56 +02:00
|
|
|
pre-install:
|
|
|
|
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2003-04-19 17:57:37 +02:00
|
|
|
# Make make reinstall work
|
2003-03-03 18:03:09 +01:00
|
|
|
${RM} -f ${WRKSRC}/InstalledFiles
|
2002-06-08 19:24:56 +02:00
|
|
|
|
2002-12-12 13:53:03 +01:00
|
|
|
post-install:
|
|
|
|
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
|
|
|
for f in ${INSTALLED_SCRIPTS}; do \
|
2004-02-26 20:20:09 +01:00
|
|
|
${LN} -f $${f}${RUBY_SUFFIX} $${f}${RUBY_R}; \
|
2002-12-12 13:53:03 +01:00
|
|
|
done
|
|
|
|
.endif
|
|
|
|
|
2002-06-08 19:24:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|