| 1 | DESCRIPTION="V8 is Google's open source JavaScript engine." |
|---|
| 2 | HOMEPAGE="https://code.google.com/p/v8/" |
|---|
| 3 | SRC_URI="svn+http://v8.googlecode.com/svn/trunk/#13067" |
|---|
| 4 | REVISION="1" |
|---|
| 5 | STATUS_HAIKU="unstable" |
|---|
| 6 | DEPEND="" |
|---|
| 7 | #CHECKSUM_MD5="" |
|---|
| 8 | MESSAGE="This port only builds with gcc4." |
|---|
| 9 | BUILD { |
|---|
| 10 | gyp_patch_path=$(dirname ${PWD})/patches/gyp-r1501.patch |
|---|
| 11 | cd v8-r13067 |
|---|
| 12 | cd build |
|---|
| 13 | svn co http://gyp.googlecode.com/svn/trunk/@1501 gyp |
|---|
| 14 | cd gyp |
|---|
| 15 | patch -p1 -i $gyp_patch_path |
|---|
| 16 | cd ../.. |
|---|
| 17 | make library=shared ia32.debug |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | TEST { |
|---|
| 21 | cd cd v8-r13067 |
|---|
| 22 | make ia32.debug.check |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | INSTALL { |
|---|
| 26 | cd v8-r13067 |
|---|
| 27 | includedir=${DESTDIR}/`finddir B_COMMON_HEADERS_DIRECTORY`/v8 |
|---|
| 28 | mkdir -p ${includedir} |
|---|
| 29 | cp -R ./include/* ${includedir} |
|---|
| 30 | libdir=${DESTDIR}/`finddir B_COMMON_LIB_DIRECTORY` |
|---|
| 31 | mkdir -p ${libdir} |
|---|
| 32 | cp -R ./out/ia32.debug/obj.target/tools/gyp/*.a ${libdir} |
|---|
| 33 | cp -R ./out/ia32.debug/obj.target/tools/gyp/*.so ${libdir} |
|---|
| 34 | bindir=${DESTDIR}/`finddir B_COMMON_BIN_DIRECTORY`/v8 |
|---|
| 35 | mkdir -p ${bindir} |
|---|
| 36 | cp ./out/ia32.debug/cctest ${bindir} |
|---|
| 37 | cp ./out/ia32.debug/d8 ${bindir} |
|---|
| 38 | cp ./out/ia32.debug/lineprocessor ${bindir} |
|---|
| 39 | cp ./out/ia32.debug/mksnapshot ${bindir} |
|---|
| 40 | cp ./out/ia32.debug/preparser ${bindir} |
|---|
| 41 | cp ./out/ia32.debug/process ${bindir} |
|---|
| 42 | cp ./out/ia32.debug/shell ${bindir} |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | LICENSE="BSD (3-clause)" |
|---|
| 46 | COPYRIGHT="Google" |
|---|