[arch-commits] Commit in phantomjs/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Nov 12 14:21:08 UTC 2017


    Date: Sunday, November 12, 2017 @ 14:21:06
  Author: foutrelis
Revision: 266362

archrelease: copy trunk to community-staging-x86_64

Added:
  phantomjs/repos/community-staging-x86_64/
  phantomjs/repos/community-staging-x86_64/PKGBUILD
    (from rev 266361, phantomjs/trunk/PKGBUILD)
  phantomjs/repos/community-staging-x86_64/icu59.patch
    (from rev 266361, phantomjs/trunk/icu59.patch)

-------------+
 PKGBUILD    |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 icu59.patch |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

Copied: phantomjs/repos/community-staging-x86_64/PKGBUILD (from rev 266361, phantomjs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-12 14:21:06 UTC (rev 266362)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: grimsock <lord.grimsock at gmail dot com>
+# Contributor: Dieter Plaetinck <dieter at plaetinck.be>
+# Contributor: Vladimir Chizhov <jagoterr at gmail.com>
+# Contributor: Henry Tang <henryykt at gmail.com>
+
+pkgname=phantomjs
+pkgver=2.1.1
+pkgrel=9
+pkgdesc="Headless WebKit with JavaScript API"
+url="http://www.phantomjs.org/"
+license=('BSD' 'LGPL' 'MIT')
+arch=('i686' 'x86_64')
+depends=('icu' 'libjpeg-turbo' 'libpng' 'fontconfig' 'gperf' 'ruby' 'python2' 'openssl-1.0')
+makedepends=('git')
+source=("git+https://github.com/ariya/${pkgname}.git#tag=$pkgver"
+        icu59.patch)
+sha512sums=('SKIP'
+            'e349a14c5d32e5627f28be6ebd20104370ec6b7f086f670e7f19b484b38839220cfeb49178765f38d918d05fb889bbc990f8a3809db6d9e1cbde0af5b9dd923b')
+
+prepare() {
+  cd $pkgname
+  git submodule update --init
+  patch -Np1 -d src/qt/qtwebkit <../icu59.patch
+  mkdir "$srcdir/python2-path"
+  ln -s /usr/bin/python2 "$srcdir/python2-path/python"
+}
+
+build() {
+  cd $pkgname
+  export PATH="$srcdir/python2-path:$PATH" PYTHON=/usr/bin/python2
+  export CXXFLAGS+=" -I/usr/include/openssl-1.0"
+  export OPENSSL_LIBS='-L/usr/lib/openssl-1.0 -lssl -lcrypto'
+
+  python2 build.py --confirm --release --qt-config='-no-rpath'
+}
+
+package() {
+  install -Dm755 "$srcdir/$pkgname/bin/phantomjs" "$pkgdir/usr/bin/phantomjs"
+
+  mkdir -p "$pkgdir/usr/share/$pkgname"
+  cp -r "$srcdir/$pkgname/examples" "$pkgdir/usr/share/$pkgname"/
+
+  install -Dm644 "$srcdir/$pkgname/LICENSE.BSD" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD"
+  install -Dm644 "$srcdir/$pkgname/third-party.txt" "$pkgdir/usr/share/licenses/$pkgname/third-party.txt"
+}
+

Copied: phantomjs/repos/community-staging-x86_64/icu59.patch (from rev 266361, phantomjs/trunk/icu59.patch)
===================================================================
--- community-staging-x86_64/icu59.patch	                        (rev 0)
+++ community-staging-x86_64/icu59.patch	2017-11-12 14:21:06 UTC (rev 266362)
@@ -0,0 +1,38 @@
+--- qtwebkit-opensource-src-5.5.1/Source/JavaScriptCore/API/JSStringRef.h.orig	2015-10-13 06:37:10.000000000 +0200
++++ qtwebkit-opensource-src-5.5.1/Source/JavaScriptCore/API/JSStringRef.h	2017-04-24 12:26:42.495345570 +0200
+@@ -32,6 +32,7 @@
+ #include <stdbool.h>
+ #endif
+ #include <stddef.h> /* for size_t */
++#include <uchar.h>
+ 
+ #ifdef __cplusplus
+ extern "C" {
+@@ -43,7 +44,7 @@
+ @typedef JSChar
+ @abstract A Unicode character.
+ */
+-    typedef unsigned short JSChar;
++    typedef char16_t JSChar;
+ #else
+     typedef wchar_t JSChar;
+ #endif
+--- qtwebkit-opensource-src-5.5.1/Source/WebKit2/Shared/API/c/WKString.h.orig	2015-10-13 06:37:12.000000000 +0200
++++ qtwebkit-opensource-src-5.5.1/Source/WebKit2/Shared/API/c/WKString.h	2017-04-24 12:27:33.432011867 +0200
+@@ -31,6 +31,7 @@
+ #ifndef __cplusplus
+ #include <stdbool.h>
+ #endif
++#include <uchar.h>
+ 
+ #ifdef __cplusplus
+ extern "C" {
+@@ -38,7 +39,7 @@
+ 
+ #if !defined(WIN32) && !defined(_WIN32) \
+     && !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */
+-    typedef unsigned short WKChar;
++    typedef char16_t WKChar;
+ #else
+     typedef wchar_t WKChar;
+ #endif


More information about the arch-commits mailing list