summaryrefslogtreecommitdiff
path: root/www/yaws
diff options
context:
space:
mode:
authoris <is@pkgsrc.org>2015-08-13 10:59:39 +0000
committeris <is@pkgsrc.org>2015-08-13 10:59:39 +0000
commit0c7f889542c342e3e3df8a0a856146f6892c47fc (patch)
tree6d50d51dae45394997b106a8840b2370ecf947bf /www/yaws
parent48b29cb474db0564752a4c86a810e2421576a939 (diff)
downloadpkgsrc-0c7f889542c342e3e3df8a0a856146f6892c47fc.tar.gz
Since we compile with -Werror, build fails on using the BIF now(), which
is deprecated and creates a warning. Quick and dirty replacement by erlang:timestamp(), until such time as upgrading to a fixed yaws will be done.
Diffstat (limited to 'www/yaws')
-rw-r--r--www/yaws/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/www/yaws/Makefile b/www/yaws/Makefile
index eeb5ffbbab7..8092828fb8e 100644
--- a/www/yaws/Makefile
+++ b/www/yaws/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2015/06/12 10:52:16 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2015/08/13 10:59:39 is Exp $
#
DISTNAME= yaws-1.97
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= www
MASTER_SITES= http://yaws.hyber.org/download/
@@ -42,6 +42,14 @@ INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
INSTALLATION_DIRS+= ${PKGMANDIR}/man5
+# remove after upgrading to a now()-less yaws:
+SUBST_CLASSES+= now
+SUBST_STAGE.now= post-patch
+SUBST_FILES.now= */*.erl
+SUBST_SED.now= -e 's|\([^:a-zA-Z]\)now()|\1erlang:timestamp()|g'
+SUBST_SED.now+= -e 's|\([^:a-zA-Z]\)erlang:now()|\1erlang:timestamp()|g'
+SUBST_MESSAGE.now= Replacing now().
+
post-patch:
${RM} ${WRKDIR}/yaws
${RM} -Rf ${WRKSRC}/www/.xvpics
@@ -72,6 +80,8 @@ do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PKG_SYSCONFDIR}/yaws
+BUILDLINK_API_DEPENDS.erlang+= erlang>=18.0
+
.include "../../lang/erlang/buildlink3.mk"
.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"