community/bluegriffon to 2.1.1-3

This commit is contained in:
Kevin Mihelich 2016-10-12 12:50:09 +00:00
parent 5ce09c4bf7
commit 85d9add15c
4 changed files with 1806 additions and 10 deletions

View file

@ -11,35 +11,45 @@ highmem=1
pkgname=bluegriffon
pkgver=2.1.1
_mozilla_ver=f14898695ee0
pkgrel=2
pkgrel=3
pkgdesc="The next-generation Web Editor based on the rendering engine of Firefox"
arch=('i686' 'x86_64')
url="http://bluegriffon.org/"
license=('MPL' 'GPL' 'LGPL')
depends=('alsa-lib' 'desktop-file-utils' 'dbus-glib' 'gtk2' 'hunspell' 'mozilla-common'
'nss' 'libevent' 'libvpx' 'libxt' 'python2' 'startup-notification' 'gconf')
depends=('alsa-lib' 'desktop-file-utils' 'dbus-glib' 'gtk2' 'gtk3' 'hunspell' 'mozilla-common'
'nss' 'libevent' 'libvpx' 'libxt' 'python2' 'startup-notification')
makedepends=('autoconf2.13' 'libpulse' 'unzip' 'zip' 'yasm')
options=('!emptydirs')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/therealglazou/${pkgname}/archive/${pkgver}.tar.gz"
"mozilla-central-${_mozilla_ver}.tar.bz2"::"http://hg.mozilla.org/mozilla-central/archive/${_mozilla_ver}.tar.bz2"
"${pkgname}_gtk3.patch"
"bug_1234158_firefox-gtk3-20.patch"
"mozconfig"
"${pkgname}.desktop"
"bug_1257019.patch"::"https://hg.mozilla.org/mozilla-central/raw-rev/d5e77c8d64c9")
sha256sums=('50810c4b287c1cd14aedbfff48dd93df4ff3c590e0dcca52f7ef28841b49e5ee'
'0b13213b5f9b3819b56872f7fb4fa7a1170ade06f8797dc11114e5f7c8eabca2'
'b548bd055dbddc0cae7ad9d9e98b9f540b2838003bacf69e10928842baa77c03'
'3868f39181a258823c45e7ad62bba8e7b6e8b07c41535dd584c2dc71431f5deb'
'd5e1b9a702dc693184494899fc4cd57ac206e1fd5415a8e5520b8ff3b822e734'
'3c162de2bae884a573b2c1260500352e6b9c7803758cc73975109482503b9eb0'
'882133b77840356985a81e496b4ddc443f8f33c068cfb7ef0858497820adcfff'
'cae36525cffd2869b5c76c1f48eac4d77e4b8b1c0767a0ddb967596f9dc6d717')
prepare() {
cd "${srcdir}/mozilla-central-${_mozilla_ver}"
# Fix build with GTK+3
cd "${pkgname}-${pkgver}"
patch -Np1 -i "../${pkgname}_gtk3.patch"
# Move files to their correct location
cd "${srcdir}/mozilla-central-${_mozilla_ver}"
cp -r "${srcdir}/${pkgname}-${pkgver}" bluegriffon
cp "${srcdir}/mozconfig" .mozconfig
# https://bugzilla.mozilla.org/show_bug.cgi?id=1234158
patch -Np1 -i "../bug_1234158_firefox-gtk3-20.patch"
# Apply BlueGriffon's upstream customizations
patch -Np1 -i bluegriffon/config/content.patch
patch -Np1 -i "bluegriffon/config/content.patch"
# ALARM
patch -p1 -i ../bug_1257019.patch
@ -56,6 +66,9 @@ build() {
export CPPFLAGS+=' -O2'
export PYTHON=python2
# Fix linking with gtk3
export LDFLAGS+=" $(pkg-config --libs gtk+-3.0)"
# Build the package
./mach build
}
@ -72,9 +85,9 @@ package() {
ln -sf /usr/lib/${pkgname}/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
# Install icons
cp bg/dist/branding/mozicon128.png bg/dist/branding/default128.png
for _icon in 16 32 48 128; do
install -Dm644 bg/dist/branding/default${_icon}.png \
cp bluegriffon/branding/mozicon128.png bluegriffon/branding/default128.png
for _icon in 16 32 48 128 256; do
install -Dm644 bluegriffon/branding/default${_icon}.png \
"${pkgdir}/usr/share/icons/hicolor/${_icon}x${_icon}/apps/${pkgname}.png"
done

View file

@ -0,0 +1,46 @@
diff -Naur bluegriffon-2.1.1.orig/config/content.patch bluegriffon-2.1.1/config/content.patch
--- bluegriffon-2.1.1.orig/config/content.patch 2016-07-23 21:54:18.367575963 +0000
+++ bluegriffon-2.1.1/config/content.patch 2016-07-24 00:36:03.891186550 +0000
@@ -4714,14 +4714,8 @@
diff --git a/widget/gtk/nsColorPicker.cpp b/widget/gtk/nsColorPicker.cpp
--- a/widget/gtk/nsColorPicker.cpp
+++ b/widget/gtk/nsColorPicker.cpp
-@@ -1,21 +1,24 @@
- /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
- /* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
+@@ -6,16 +6,18 @@
#include <gtk/gtk.h>
-+#include <gtk/gtkcolorsel.h>
#include "nsColor.h"
#include "nsColorPicker.h"
@@ -4739,7 +4733,7 @@
return color_component * 255 + 0.5;
}
-@@ -54,38 +57,39 @@ GtkColorSelection* nsColorPicker::Widget
+@@ -54,38 +56,39 @@ GtkColorSelection* nsColorPicker::Widget
{
return GTK_COLOR_SELECTION(gtk_color_selection_dialog_get_color_selection(
GTK_COLOR_SELECTION_DIALOG(widget)));
@@ -4785,7 +4779,7 @@
NS_WARNING("mCallback is already set. Open called twice?");
return NS_ERROR_FAILURE;
}
-@@ -113,16 +117,18 @@ NS_IMETHODIMP nsColorPicker::Open(nsICol
+@@ -113,16 +116,18 @@ NS_IMETHODIMP nsColorPicker::Open(nsICol
GtkWidget *color_chooser = gtk_color_selection_dialog_new(title);
if (parent_window) {
@@ -4804,7 +4798,7 @@
G_CALLBACK(OnColorChanged), this);
#endif
-@@ -176,20 +182,38 @@ nsColorPicker::Update(GtkColorSelection*
+@@ -176,20 +181,38 @@ nsColorPicker::Update(GtkColorSelection*
}
}

File diff suppressed because it is too large Load diff

View file

@ -51,10 +51,11 @@ ac_add_options --with-pthreads
# Features
ac_add_options --disable-necko-wifi
ac_add_options --disable-tests
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --enable-default-toolkit=cairo-gtk3
ac_add_options --disable-crashreporter
ac_add_options --enable-safe-browsing
ac_add_options --enable-gio
ac_add_options --disable-gconf
ac_add_options --disable-updater
ac_add_options --disable-update-packaging
ac_add_options --disable-webrtc