[packages/hhvm] up to 3.2.0

glen glen at pld-linux.org
Sun Aug 10 21:41:26 CEST 2014


commit 9f1ad7a849c06563803d9335c855ed2f6ff4f379
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Aug 10 22:41:15 2014 +0300

    up to 3.2.0

 hhvm.spec | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/hhvm.spec b/hhvm.spec
index 9bea69e..38839cb 100644
--- a/hhvm.spec
+++ b/hhvm.spec
@@ -72,6 +72,7 @@ Provides:	php(apache)
 Provides:	php(apc)
 Provides:	php(bcmath)
 Provides:	php(bz2)
+Provides:	%{name}(modules_api) = %{hhvm_api_version}
 Provides:	php(calendar)
 Provides:	php(ctype)
 Provides:	php(curl)
@@ -148,6 +149,9 @@ Obsoletes:	hiphop-php < 2.3.2-0.2
 ExclusiveArch:	%{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# must be in sync with source. extra check ensuring that it is so is done in %%build
+%define		hhvm_api_version		20140702
+
 %description
 HHVM (aka the HipHop Virtual Machine) is a new open-source virtual
 machine designed for executing programs written in PHP. HHVM uses a
@@ -234,6 +238,14 @@ rm -rf src/third_party/libafdt
 %endif
 
 %build
+API=$(awk '/#define hhvm_api_version/{print $3}' main/php.h)
+../BUILD.x86_64-linux/hhvm-HHVM-3.2.0/hphp/runtime/ext/extension.h:116:#define HHVM_API_VERSION 20140702L
+
+if [ $API != %{hhvm_api_version} ]; then
+	echo "Set %%define hhvm_api_version to $API and re-run."
+	exit 1
+fi
+
 export HPHP_HOME=$(pwd)
 export HPHP_LIB=$HPHP_HOME/bin
 install -d $HPHP_LIB
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hhvm.git/commitdiff/9f1ad7a849c06563803d9335c855ed2f6ff4f379



More information about the pld-cvs-commit mailing list