svn commit: r502921 - head/lang/erlang-java
Jimmy Olgeni
olgeni at FreeBSD.org
Tue May 28 21:38:12 UTC 2019
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}
More information about the svn-ports-all
mailing list