pkgsrc/net/erlang-idna/Makefile
gdt ad0959afe5 erlang-idna: Install unicode_compat_util (which was built)
idna uses unicode_compat_util, and downloads it from the net and
builds it.  This wasn't installed, and thus any attempt to use idna
failed at runtime, breaking s2s in ejabberd with earlier erlang-xmpp,
and probably breaking everything with current erlang-xmpp.

The idna library has removed this library, but doesn't have a release
yet.  So this problem should go away soonish.  For now, accept the ick
to (very likely) unbreak ejabberd.

(This commit does not increase the use of the net during the build; it
merely uses the build products that already happened.)
2021-06-03 12:34:28 +00:00

34 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2021/06/03 12:34:28 gdt Exp $
DISTNAME= idna-6.1.1
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=benoitc/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/benoitc/erlang-idna/
COMMENT= Pure Erlang IDNA implementation following the RFC5891
LICENSE= mit
BUILD_DEPENDS+= rebar3-[0-9]*:../../devel/rebar3
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
REBAR= ${PREFIX}/bin/rebar3
do-build:
cd ${WRKSRC} && REBAR_CACHE_DIR=${WRKDIR}/rebar ${REBAR} compile
pre-install:
${MV} ${WRKSRC}/_build/default/lib/idna/ebin ${WRKSRC}
# Apparently this package depends on unicode_util_compat, but
# doesn't say that in the README.md, and includes (by
# downloading from the net at build time) a version. Rather
# than fixing this, wait until the next release which will no
# longer have this problem.
# https://github.com/benoitc/erlang-idna/issues/39
${MV} ${WRKSRC}/_build/default/lib/unicode_util_compat/ebin/* ${WRKSRC}/ebin
${RM} -rf ${WRKSRC}/_build
.include "../../lang/erlang/module.mk"
.include "../../mk/bsd.pkg.mk"