forked from Lainports/freebsd-ports
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
58 lines
1.2 KiB
Makefile
58 lines
1.2 KiB
Makefile
# 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
|
|
PORTVERSION= 1.8.1.p3
|
|
CATEGORIES= lang devel ruby
|
|
MASTER_SITES= ${MASTER_SITE_RUBY}
|
|
MASTER_SITE_SUBDIR= shim
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= shim-ruby16_18-1.8.1-preview3
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
COMMENT= A set of Ruby modules to provide Ruby 1.8 functionalities
|
|
|
|
USE_BZIP2= yes
|
|
USE_OPENSSL= yes
|
|
|
|
USE_RUBY= yes
|
|
|
|
MAKE_ARGS= RUBY=${RUBY}
|
|
#CONFIGURE_ARGS+= CONFIGURE_ARGS="-- --config-opt=--with-opt-dir=${LOCALBASE}"
|
|
WRKSRC= ${WRKDIR}/shim/ruby16
|
|
|
|
RUBY_VER= 1.6
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
|
IF_DEFAULT= ""
|
|
.else
|
|
IF_DEFAULT= "@comment "
|
|
.endif
|
|
|
|
INSTALLED_SCRIPTS= ${PREFIX}/bin/erb \
|
|
${PREFIX}/bin/h2rb \
|
|
${PREFIX}/bin/rdoc
|
|
|
|
PLIST_SUB+= IF_DEFAULT=${IF_DEFAULT} \
|
|
|
|
pre-install:
|
|
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
# Make make reinstall work
|
|
${RM} -f ${WRKSRC}/InstalledFiles
|
|
|
|
post-install:
|
|
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
|
for f in ${INSTALLED_SCRIPTS}; do \
|
|
${LN} -f $${f}${RUBY_SUFFIX} $${f}${RUBY_R}; \
|
|
done
|
|
.endif
|
|
|
|
|
|
.include <bsd.port.post.mk>
|