summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2019-11-03 18:11:51 +0000
committerrillig <rillig@pkgsrc.org>2019-11-03 18:11:51 +0000
commit43b9d1998add9cd9837e29d32a64c0a1de938570 (patch)
tree1b255dc4c772e46bbbe54149ad5a6bd39751a573 /lang
parent77f8d7c37cb5f47c19ea3a443382706b5d463f4b (diff)
downloadpkgsrc-43b9d1998add9cd9837e29d32a64c0a1de938570.tar.gz
lang/erlang: write _VERSIONS variable in a single line
In the previous version, pkglint would want to indent the continuation line with a tab. To prevent this, the variable assignment is now printed in its canonical format. Just like humans, pkglint does not read the "do not edit" notice at the top of the file. Maybe it should.
Diffstat (limited to 'lang')
-rw-r--r--lang/erlang/Makefile5
-rw-r--r--lang/erlang/versions.mk5
2 files changed, 4 insertions, 6 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index 6bddf223440..e1dd4a0c716 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.95 2019/08/11 13:21:19 wiz Exp $
+# $NetBSD: Makefile,v 1.96 2019/11/03 18:11:51 rillig Exp $
DISTNAME= OTP-${DIST_VERSION_MAJOR}.${DIST_VERSION_MINOR}${!empty(DIST_VERSION_PATCH):?.:}${DIST_VERSION_PATCH}
PKGNAME= ${DISTNAME:S/OTP-/erlang-/}
@@ -101,9 +101,8 @@ pre-build:
versions: do-extract
@${ECHO} "# \$$NetBSD\$$" > ${.CURDIR}/versions.mk
@${ECHO} "# Do not edit, regenerate using 'make versions'" >> ${.CURDIR}/versions.mk
- @${ECHO} "_VERSIONS= \\" >> ${.CURDIR}/versions.mk
${AWK} -F: '/OTP-${PKGVERSION_NOREV} :/{print $$2}' ${WRKSRC}/otp_versions.table |\
- ${SED} -e 's/# //g' -e 's/-/ /g' >> ${.CURDIR}/versions.mk
+ ${SED} -e 's/# //g' -e 's/-/ /g' -e 's,^ ,_VERSIONS= ,' >> ${.CURDIR}/versions.mk
post-install:
chmod -R go-w ${DESTDIR}${PREFIX}/lib/erlang/lib
diff --git a/lang/erlang/versions.mk b/lang/erlang/versions.mk
index 0d5ed69ea3c..a83fe09f9c2 100644
--- a/lang/erlang/versions.mk
+++ b/lang/erlang/versions.mk
@@ -1,4 +1,3 @@
-# $NetBSD: versions.mk,v 1.13 2019/08/01 11:43:00 nia Exp $
+# $NetBSD: versions.mk,v 1.14 2019/11/03 18:11:51 rillig Exp $
# Do not edit, regenerate using 'make versions'
-_VERSIONS= \
- compiler 7.4.4 asn1 5.0.9 common_test 1.17.3 crypto 4.5.1 debugger 4.2.7 dialyzer 4.0.3 diameter 2.2.1 edoc 0.11 eldap 1.2.8 erl_docgen 0.9.1 erl_interface 3.12 erts 10.4.4 et 1.6.4 eunit 2.3.7 ftp 1.0.2 hipe 3.19.1 inets 7.0.9 jinterface 1.10 kernel 6.4.1 megaco 3.18.5 mnesia 4.16 observer 2.9.1 odbc 2.12.4 os_mon 2.5 parsetools 2.1.8 public_key 1.6.7 reltool 0.8 runtime_tools 1.13.3 sasl 3.4 snmp 5.3 ssh 4.7.7 ssl 9.3.5 stdlib 3.9.2 syntax_tools 2.2 tftp 1.0.1 tools 3.2 wx 1.8.8 xmerl 1.3.21
+_VERSIONS= compiler 7.4.4 asn1 5.0.9 common_test 1.17.3 crypto 4.5.1 debugger 4.2.7 dialyzer 4.0.3 diameter 2.2.1 edoc 0.11 eldap 1.2.8 erl_docgen 0.9.1 erl_interface 3.12 erts 10.4.4 et 1.6.4 eunit 2.3.7 ftp 1.0.2 hipe 3.19.1 inets 7.0.9 jinterface 1.10 kernel 6.4.1 megaco 3.18.5 mnesia 4.16 observer 2.9.1 odbc 2.12.4 os_mon 2.5 parsetools 2.1.8 public_key 1.6.7 reltool 0.8 runtime_tools 1.13.3 sasl 3.4 snmp 5.3 ssh 4.7.7 ssl 9.3.5 stdlib 3.9.2 syntax_tools 2.2 tftp 1.0.1 tools 3.2 wx 1.8.8 xmerl 1.3.21