aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portupgrade
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-09-21 15:11:33 +0800
committerknu <knu@FreeBSD.org>2002-09-21 15:11:33 +0800
commit26a5decc21d5346ac279d24e9a5f550a5df7df86 (patch)
tree7b03c7a89bb45363781bdfdbde422c2711df4537 /ports-mgmt/portupgrade
parent51f52db84625d66e2ce85affe0065e6bdd12429d (diff)
downloadfreebsd-ports-gnome-26a5decc21d5346ac279d24e9a5f550a5df7df86.tar.gz
freebsd-ports-gnome-26a5decc21d5346ac279d24e9a5f550a5df7df86.tar.zst
freebsd-ports-gnome-26a5decc21d5346ac279d24e9a5f550a5df7df86.zip
Define USE_RUBY_FEATURES instead of hardcoding conditional *_DEPENDS.
Diffstat (limited to 'ports-mgmt/portupgrade')
-rw-r--r--ports-mgmt/portupgrade/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile
index 16aed7712e66..897ced101ff4 100644
--- a/ports-mgmt/portupgrade/Makefile
+++ b/ports-mgmt/portupgrade/Makefile
@@ -30,6 +30,7 @@ RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1
USE_BZIP2= yes
USE_RUBY= yes
+USE_RUBY_FEATURES= optparse ruby18
MAKE_ARGS= PREFIX="${PREFIX}" RUBY="${RUBY}"
@@ -63,10 +64,6 @@ PKG_CREATE_OK!= /usr/sbin/pkg_create 2>&1 | ${GREP} ' -b ' || ${TRUE}
IGNORE= pkg_create does not support -b. Please update pkg_* tools or stick with portupgrade-20020920 + pkg_tarup-1.2_3, which work just fine
.endif
-.if ${RUBY_VER} < 1.7
-RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/features/ruby18/file_ruby18.so:${PORTSDIR}/lang/ruby16-shim-ruby18
-.endif
-
post-install:
if [ ! -f ${PREFIX}/etc/pkgtools.conf ]; then \
${CP} -p ${PREFIX}/etc/pkgtools.conf.sample ${PREFIX}/etc/pkgtools.conf; \