aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Kimura <yasu@FreeBSD.org>2022-08-16 16:18:52 +0000
committerYasuhiro Kimura <yasu@FreeBSD.org>2022-08-16 23:25:36 +0000
commita5e4acb365ad6e78b9dc40107ef5dccf3863bb20 (patch)
treee2d6a2f54575e3bc7430ec740264eb74514aad8a
parentdcac5c1c912b735a55126851583eb0d8220ba4cb (diff)
downloadports-a5e4acb365ad6e78b9dc40107ef5dccf3863bb20.tar.gz
ports-a5e4acb365ad6e78b9dc40107ef5dccf3863bb20.zip
mail/milter-manager: Fix runtime error with Ruby 3.0 or later
milter-manager requires rexml to run. Since Ruby 3.0 rexml is converted to bundled gem. But our Ruby ports don't include bundled gems. So fix runtime error with Ruby 3.0 or later by adding rexml port to RUN_DEPENDS. While here, change post-patch target so it doesn't remove bundled glib2 gem. Build succeeds without doing it. Reference: https://github.com/milter-manager/milter-manager/discussions/168 Reported by: Aoba Dai (in freebsd-users-jp ML) Tested by: Aoba Dai MFH: 2022Q3
-rw-r--r--mail/milter-manager/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/milter-manager/Makefile b/mail/milter-manager/Makefile
index 911c23c6bcfc..d4c4fce1b08c 100644
--- a/mail/milter-manager/Makefile
+++ b/mail/milter-manager/Makefile
@@ -1,5 +1,6 @@
PORTNAME= milter-manager
DISTVERSION= 2.1.6
+PORTREVISION= 1
CATEGORIES= mail ruby
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
@@ -11,7 +12,8 @@ LICENSE_COMB= multi
BUILD_DEPENDS= rubygem-gio2>0:devel/rubygem-gio2
LIB_DEPENDS= libev.so:devel/libev
-RUN_DEPENDS= rubygem-gio2>0:devel/rubygem-gio2
+RUN_DEPENDS= rubygem-gio2>0:devel/rubygem-gio2 \
+ rubygem-rexml>0:textproc/rubygem-rexml
USES= compiler:c++11-lang gettext gmake gnome libtool pathfix \
pkgconfig
@@ -41,6 +43,5 @@ post-patch:
${REINPLACE_CMD} -e "s#\$$(datadir)/@PACKAGE@#${DATADIR}#" \
-e "s#\$$(datarootdir)/\$$(PACKAGE)#${DATADIR}#" {} +
@${REINPLACE_CMD} -e "s#\\\\\$$(pkgdatadir)/sample#${EXAMPLESDIR}#" ${WRKSRC}/configure
- @${RM} -r ${WRKSRC}/binding/ruby/glib-2.2.5
.include <bsd.port.mk>