Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2019 21:38:11 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r502921 - head/lang/erlang-java
Message-ID:  <201905282138.x4SLcBNV005899@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Tue May 28 21:38:10 2019
New Revision: 502921
URL: https://svnweb.freebsd.org/changeset/ports/502921

Log:
  lang/erlang-java: add APP_VERSION check.
  
  Check that the specified APP_VERSION matches the value in vsn.mk,
  as there is no other way to know if the Makefile is correct when
  updating the port.

Modified:
  head/lang/erlang-java/Makefile

Modified: head/lang/erlang-java/Makefile
==============================================================================
--- head/lang/erlang-java/Makefile	Tue May 28 21:19:37 2019	(r502920)
+++ head/lang/erlang-java/Makefile	Tue May 28 21:38:10 2019	(r502921)
@@ -26,7 +26,6 @@ MAKE_JOBS_UNSAFE=yes
 
 PLIST_SUB=	APP_VERSION=${APP_VERSION}
 
-# always check the app version in otp_versions.table
 APP_VERSION=	1.9.1
 APP_DIR=	${PREFIX}/lib/erlang/lib/jinterface-${APP_VERSION}
 
@@ -42,6 +41,9 @@ do-build:
 	${RM} -r ${WRKSRC}/lib/jinterface/priv/com
 
 do-install:
+	@if [ ! $$(${CAT} ${WRKSRC}/lib/jinterface/vsn.mk | ${CUT} -w -f3) = ${APP_VERSION} ]; then \
+		${ECHO_MSG} "===>  APP_VERSION (${APP_VERSION}) in Makefile does not match value in lib/jinterface/vsn.mk"; exit 1; \
+	fi
 	@${MKDIR} ${STAGEDIR}${APP_DIR}
 	@${MKDIR} ${STAGEDIR}${APP_DIR}/priv
 	cd ${WRKSRC}/lib/jinterface && ${COPYTREE_SHARE} ebin ${STAGEDIR}${APP_DIR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905282138.x4SLcBNV005899>