diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile index ba8592cabdda..1ae4cf697486 100644 --- a/ports-mgmt/portupgrade-devel/Makefile +++ b/ports-mgmt/portupgrade-devel/Makefile @@ -1,55 +1,60 @@ PORTNAME= portupgrade PORTVERSION= 20180309 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 3 CATEGORIES= ports-mgmt MASTER_SITES= GH \ http://mirror.shatow.net/freebsd/${PORTNAME}/ \ LOCAL/bdrewery/${PORTNAME}/ PKGNAMESUFFIX= -devel MAINTAINER= bdrewery@FreeBSD.org COMMENT= FreeBSD ports/packages management tool (devel version) WWW= https://wiki.freebsd.org/portupgrade LICENSE= BSD3CLAUSE CONFLICTS_INSTALL= portupgrade USES= ruby uidfix USE_GITHUB= yes GH_ACCOUNT= freebsd GH_TAGNAME= 2.4.16 DIST_SUBDIR= ${PORTNAME} USE_LDCONFIG= ${PREFIX}/lib/compat/pkg MAKE_ARGS= PREFIX="${PREFIX}" RUBY="${RUBY}" \ RUBY_SITELIBDIR="${RUBY_SITELIBDIR}" MKDIR="${MKDIR}" EXAMPLESDIR= ${PREFIX}/share/examples/pkgtools DOCSDIR= ${PREFIX}/share/doc/pkgtools OPTIONS_DEFINE= DOCS EXAMPLES .include INSTALL_TARGET= install .if ${PORT_OPTIONS:MDOCS} INSTALL_TARGET+= install-doc .endif # For PKG_DBDRIVER={bdb_btree,bdb_hash} RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:databases/ruby-bdb regression-test: patch cd ${WRKSRC} && ${MAKE} test post-patch: .SILENT REVISION=`readlink "${_DISTDIR}/portupgrade/latest" | ${SED} -E -e 's,.*pkgtools-(.*).tar.gz,\1,g'` && ${SED} -E -e "s,%%DATE%%,${PORTVERSION},g;s,%%REVISION%%,$${REVISION},g" \ ${WRKSRC}/lib/pkgtools/revision.rb.in > ${WRKSRC}/lib/pkgtools/revision.rb +.if ${RUBY_VERSION_CODE:U} >= 320 + cd ${WRKSRC} && ${FIND} bin etc lib -type f |\ + ${XARGS} ${REINPLACE_CMD} 's/File\.exists\?/File.exist?/' +.endif + post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg .include