1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

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
This commit is contained in:
Yasuhiro Kimura 2022-08-17 01:18:52 +09:00
parent dcac5c1c91
commit a5e4acb365

View File

@ -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>