summaryrefslogtreecommitdiff
path: root/sysutils/portupgrade-devel/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-06-08 18:18:52 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-06-08 18:18:52 +0000
commit187bcf33c1204b92f69bdbde92cc6965be1b3922 (patch)
tree25ad77d168aeaca10b9fcafa54a8170c91fd1508 /sysutils/portupgrade-devel/Makefile
parentRemove #pragma weak usage. (diff)
devel/ruby-fnmatch has been replaced with lang/ruby16-shim-ruby18.
Diffstat (limited to 'sysutils/portupgrade-devel/Makefile')
-rw-r--r--sysutils/portupgrade-devel/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/sysutils/portupgrade-devel/Makefile b/sysutils/portupgrade-devel/Makefile
index 530f4f07dd46..ae2ac7dd9add 100644
--- a/sysutils/portupgrade-devel/Makefile
+++ b/sysutils/portupgrade-devel/Makefile
@@ -15,13 +15,12 @@ DISTNAME= pkgtools-${PORTVERSION}
PATCH_SITES= ${MASTER_SITES}
PATCH_SITE_SUBDIR= ${MASTER_SITE_SUBDIR}
-#PATCHFILES= ${DISTNAME}-yyyymmdd.diff.bz2
+PATCHFILES= ${DISTNAME}-shim.diff.bz2
PATCH_DIST_STRIP= -p1
MAINTAINER= knu@FreeBSD.org
RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse \
- ${RUBY_SITEARCHLIBDIR}/fnmatch.so:${PORTSDIR}/devel/ruby-fnmatch \
${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1 \
${LOCALBASE}/sbin/pkg_tarup:${PORTSDIR}/sysutils/pkg_tarup
# For PKG_DBDRIVER={bdb_btree,bdb_hash,bdb}
@@ -53,9 +52,15 @@ INSTALL_TARGET= install
INSTALL_TARGET+= install-doc
.endif
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} < 1.7
+RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/features/ruby18/file.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; \
fi
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>