-
-
Save joshuataylor/8783649 to your computer and use it in GitHub Desktop.
2.4.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget both PKGBUILD and hhvm-2.3.3.patch | |
Install these from the AUR | |
`packer -S oniguruma libdwarf` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hphp/third_party/libzip/CMakeLists.txt b/hphp/third_party/libzip/CMakeLists.txt | |
index 1c7018a..333c5d4 100644 | |
--- a/hphp/third_party/libzip/CMakeLists.txt | |
+++ b/hphp/third_party/libzip/CMakeLists.txt | |
@@ -152,11 +152,7 @@ ENDIF(NOT HAVE_MKSTEMP) | |
ADD_LIBRARY(zip_static STATIC ${LIBZIP_SOURCES} ${LIBZIP_EXTRA_FILES}) | |
SET_TARGET_PROPERTIES(zip_static PROPERTIES OUTPUT_NAME zip) | |
TARGET_LINK_LIBRARIES(zip_static ${ZLIB_LIBRARY}) | |
-INSTALL(TARGETS zip_static DESTINATION lib) | |
ADD_LIBRARY(zip_shared SHARED ${LIBZIP_SOURCES} ${LIBZIP_EXTRA_FILES}) | |
SET_TARGET_PROPERTIES(zip_shared PROPERTIES OUTPUT_NAME zip) | |
TARGET_LINK_LIBRARIES(zip_shared ${ZLIB_LIBRARY}) | |
-INSTALL(TARGETS zip_shared DESTINATION lib) | |
- | |
-INSTALL(FILES zipconf.h zip.h DESTINATION include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: James Miller <[email protected]> | |
pkgname=hhvm | |
pkgver=2.4.0 | |
pkgrel=1 | |
epoch= | |
pkgdesc="Virtual Machine, Runtime, and JIT for PHP" | |
arch=('x86_64') | |
url="http://hhvm.com" | |
license=('PHP') | |
groups=() | |
depends=('boost-libs' 'google-glog' 'libmysqlclient' 'libmemcached' 'pcre' 'gd' | |
'libxml2' 'intel-tbb' 'libmcrypt' 'oniguruma' 'libldap' 'elfutils' | |
'jemalloc' 'curl' 'expat') | |
makedepends=('git' 'cmake' 'gcc>=4.8' 'chrpath' 'boost' 'imap' 'libdwarf') | |
checkdepends=() | |
optdepends=() | |
provides=() | |
conflicts=() | |
replaces=() | |
backup=() | |
options=() | |
install= | |
changelog= | |
source=("$pkgname-$pkgver::git+https://github.com/facebook/hhvm.git" | |
"$pkgname-$pkgver.patch" | |
'git+https://github.com/libevent/libevent.git#tag=release-1.4.14b-stable') | |
noextract=() | |
md5sums=('SKIP' | |
'SKIP' | |
'SKIP') | |
prepare() { | |
export CMAKE_PREFIX_PATH="$srcdir" | |
export HPHP_HOME="$srcdir/$pkgname-$pkgver" | |
cd "$srcdir/$pkgname-$pkgver" | |
pwd | |
git checkout HHVM-$pkgver | |
git submodule init | |
git submodule update | |
patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" | |
echo "add_definitions(-DSKIP_IMAP_GSS=1)" >> CMake/HPHPFindLibs.cmake | |
cd "$srcdir/libevent" | |
patch -p1 -i "$HPHP_HOME/hphp/third_party/libevent-1.4.14.fb-changes.diff" | |
# replace hashbang 'python' with 'python2' | |
sed '1 s/\bpython\b/python2/' -i event_rpcgen.py | |
} | |
build() { | |
cd "$srcdir/libevent" | |
echo "Building Custom Libevent" | |
./autogen.sh | |
./configure --prefix=$CMAKE_PREFIX_PATH --disable-shared | |
make -j2 | |
make install | |
cd "$srcdir/$pkgname-$pkgver" | |
CC=gcc CXX=g++ INCLUDE=/usr/include/libdwarf HPHP_NOTEST=1 \ | |
cmake . -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" -DLINK_PAM=1 | |
make -j4 hhvm | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
make install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment