pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cliqz: Import of cliqz-1.23.3 as wip/cliqz.



Module Name:	pkgsrc-wip
Committed By:	fox <santhosh.raju%gmail.com@localhost>
Pushed By:	fox
Date:		Fri Dec 7 17:59:29 2018 +0530
Changeset:	dff5310b8e99b69973d4dfd173aa0611e313dbeb

Added Files:
	cliqz/DESCR
	cliqz/Makefile
	cliqz/PLIST
	cliqz/TODO
	cliqz/distinfo
	cliqz/patches/patch-magic__build__and__package.sh
	cliqz/patches/patch-mozilla-release_browser_config_cliqz.mozconfig
	cliqz/patches/patch-mozilla-release_dom_base_nsAttrName.h
	cliqz/patches/patch-mozilla-release_servo_components_style_build__gecko.rs

Log Message:
cliqz: Import of cliqz-1.23.3 as wip/cliqz.

Cliqz develops novel Internet browsers that incorporate proprietary
features such as search and anti-tracking. Cliqz desktop browser is
based on Mozilla Firefox.

Read TODO, package currently broken.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dff5310b8e99b69973d4dfd173aa0611e313dbeb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 cliqz/DESCR                                        |  3 +
 cliqz/Makefile                                     | 96 ++++++++++++++++++++++
 cliqz/PLIST                                        |  0
 cliqz/TODO                                         |  9 ++
 cliqz/distinfo                                     | 10 +++
 cliqz/patches/patch-magic__build__and__package.sh  | 10 +++
 ...-mozilla-release_browser_config_cliqz.mozconfig | 31 +++++++
 .../patch-mozilla-release_dom_base_nsAttrName.h    | 16 ++++
 ...-release_servo_components_style_build__gecko.rs | 13 +++
 9 files changed, 188 insertions(+)

diffs:
diff --git a/cliqz/DESCR b/cliqz/DESCR
new file mode 100644
index 0000000000..4d44dbec9a
--- /dev/null
+++ b/cliqz/DESCR
@@ -0,0 +1,3 @@
+Cliqz develops novel Internet browsers that incorporate proprietary
+features such as search and anti-tracking. Cliqz desktop browser is
+based on Mozilla Firefox.
diff --git a/cliqz/Makefile b/cliqz/Makefile
new file mode 100644
index 0000000000..77a4d7f18d
--- /dev/null
+++ b/cliqz/Makefile
@@ -0,0 +1,96 @@
+# $NetBS$
+
+DISTNAME=	cliqz-${DISTVERSION}
+DISTVERSION=	1.23.3
+CATEGORIES=	www
+MASTER_SITES+=	${MASTER_SITE_GITHUB:=cliqz-oss/}
+GITHUB_PROJECT=	browser-f
+GITHUB_TAG=	${PKGVERSION_NOREV}
+EXTRACT_USING=	bsdtar
+EXTRACT_SUFX=	.tar.gz
+
+MAINTAINER=	fox%NetBSD.org@localhost
+HOMEPAGE=	https://cliqz.com/en/desktop
+COMMENT=	Secure browser (Mozilla based) with built-in quick search
+LICENSE=	mpl-2.0
+
+TOOL_DEPENDS+=	python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT} \
+		python37-[0-9]*:../../lang/python37 \
+		cbindgen-[0-9]*:../../devel/cbindgen \
+		nodejs-[0-9]*:../../lang/nodejs \
+
+BUILD_DEPENDS+=	yasm>=1.1:../../devel/yasm 
+
+USE_TOOLS+=	pkg-config perl gmake autoconf213 unzip zip bash
+USE_LANGUAGES+=	c99 c++14
+
+WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${DISTVERSION}
+
+#HAS_CONFIGURE=	 NO
+
+CLIQZ_CHANNEL=		release
+# If the DISTVERSION is updated, make sure to update the last build id from
+# fetch -qo - https://repository.cliqz.com/dist/${CLIQZ_CHANNEL}/${DISTVERSION}/lastbuildid
+CLIQZ_LAST_BUILD_ID=	20181116003917
+CLIQZ_ICON=		cliqz.png
+CLIQZ_ICON_SRC=		${WRKSRC}/mozilla-release/browser/branding/${PORTNAME}/default48.png
+MOZ_DESKTOP=		${WRKSRC}/mozilla-release/toolkit/mozapps/installer/linux/rpm/mozilla.desktop
+CLIQZ_DESKTOP=		${WRKSRC}/mozilla-release/toolkit/mozapps/installer/linux/rpm/cliqz.desktop
+
+CONFIGURE_ENV+=	CQZ_RELEASE_CHANNEL=${CLIQZ_CHANNEL}
+CONFIGURE_ENV+=	CQZ_BUILD_ID=${CLIQZ_LAST_BUILD_ID}
+
+.include "../../mk/bsd.prefs.mk"
+
+CHECK_PORTABILITY_SKIP+=	build-tools/scripts/l10n/release_repacks.sh
+CHECK_PORTABILITY_SKIP+=	mozilla-release/intl/icu/source/configure
+CHECK_PORTABILITY_SKIP+=	mozilla-release/modules/pdfium/update.sh
+CHECK_PORTABILITY_SKIP+=	mozilla-release/security/nss/tests/libpkix/libpkix.sh
+CHECK_PORTABILITY_SKIP+=	mozilla-release/security/nss/tests/multinit/multinit.sh
+
+# for lang/gcc6
+GCC_REQD+=	6.1
+USE_PKGSRC_GCC_RUNTIME=	yes
+
+CFLAGS+=	-D_GLIBCXX_INCLUDE_NEXT_C_HEADERS
+CXXFLAGS+=	-D_GLIBCXX_INCLUDE_NEXT_C_HEADERS
+LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib
+
+.include "../../archivers/bzip2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libevent+=	libevent>=1.1
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../devel/libffi/buildlink3.mk"
+BUILDLINK_API_DEPENDS.nspr+=	nspr>=4.19
+.include "../../devel/nspr/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+BUILDLINK_API_DEPENDS.nss+=     nss>=3.38
+.include "../../devel/nss/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+BUILDLINK_DEPMETHOD.clang=	build
+BUILDLINK_API_DEPENDS.clang+=	clang>=6.0.1nb1
+.include "../../lang/clang/buildlink3.mk"
+BUILDLINK_DEPMETHOD.rust=	build
+BUILDLINK_API_DEPENDS.rust+=	rust>=1.24.0
+.include "../../lang/rust/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libvpx+=	libvpx>=1.3.0
+.include "../../sysutils/dbus-glib/buildlink3.mk"
+.include "../../multimedia/libvpx/buildlink3.mk"
+.include "../../net/libIDL/buildlink3.mk"
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+BUILDLINK_API_DEPENDS.pixman+=	pixman>=0.25.2
+.include "../../x11/pixman/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../lang/python/pyversion.mk"
+
+pre-fetch:
+	${ECHO} ${LDFLAGS}
+	${ECHO} ${CONFIGURE_ENV}
+
+do-build:
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./magic_build_and_package.sh
+
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cliqz/PLIST b/cliqz/PLIST
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cliqz/TODO b/cliqz/TODO
new file mode 100644
index 0000000000..aa860baa7a
--- /dev/null
+++ b/cliqz/TODO
@@ -0,0 +1,9 @@
+1. Investigate build failures with --enable-gconf
+2. Investigate build failures with --disable-gconf
+3. Investigate tools/components/find (nsFind.cpp) failure when
+   build with --disable-gconf
+   
+The browser builds outside the pkgsrc environment as expected and
+produces a binary.
+
+NOTE: This package is currently broken and does not build.
\ No newline at end of file
diff --git a/cliqz/distinfo b/cliqz/distinfo
new file mode 100644
index 0000000000..7b2835c486
--- /dev/null
+++ b/cliqz/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+SHA1 (cliqz-1.23.3.tar.gz) = 7fccc68b51f3923409d887ccc2f56fdae935de53
+RMD160 (cliqz-1.23.3.tar.gz) = d82459eb5018441a81826741a6d8d475031991a3
+SHA512 (cliqz-1.23.3.tar.gz) = 0e649ea09b27b638608ceec6b5d2cd7b25a3e60022dd63dc56aa09b56a22db2bd520d0ad61d296305eeaa52cabbe5b84721689a05b7c13021f795b5d88d3526f
+Size (cliqz-1.23.3.tar.gz) = 400171513 bytes
+SHA1 (patch-magic__build__and__package.sh) = 8dbd241f545688df0c8b8b2337eb2166dc880470
+SHA1 (patch-mozilla-release_browser_config_cliqz.mozconfig) = 997534b7573564cdd0eb71b94527fe395fb29f69
+SHA1 (patch-mozilla-release_dom_base_nsAttrName.h) = b171688beb296089d582f264c91456aaaa4b6657
+SHA1 (patch-mozilla-release_servo_components_style_build__gecko.rs) = 391f26051857c224b54eec560b84c844f3027266
diff --git a/cliqz/patches/patch-magic__build__and__package.sh b/cliqz/patches/patch-magic__build__and__package.sh
new file mode 100644
index 0000000000..a99f651a3a
--- /dev/null
+++ b/cliqz/patches/patch-magic__build__and__package.sh
@@ -0,0 +1,10 @@
+$NetBSD$
+
+--- magic_build_and_package.sh.orig	2018-11-16 08:40:07.000000000 +0000
++++ magic_build_and_package.sh
+@@ -1,4 +1,4 @@
+-#! /bin/bash
++#! /usr/pkg/bin/bash
+ 
+ # Optional ENVs:
+ #  CQZ_BUILD_ID - specify special build timestamp or use latest one (depend on channel)
diff --git a/cliqz/patches/patch-mozilla-release_browser_config_cliqz.mozconfig b/cliqz/patches/patch-mozilla-release_browser_config_cliqz.mozconfig
new file mode 100644
index 0000000000..89710702ab
--- /dev/null
+++ b/cliqz/patches/patch-mozilla-release_browser_config_cliqz.mozconfig
@@ -0,0 +1,31 @@
+$NetBSD$
+
+--- mozilla-release/browser/config/cliqz.mozconfig.orig	2018-11-16 08:40:07.000000000 +0000
++++ mozilla-release/browser/config/cliqz.mozconfig
+@@ -8,9 +8,25 @@ ac_add_options --enable-signmar
+ ac_add_options --with-branding=browser/branding/cliqz
+ ac_add_options --enable-official-branding
+ ac_add_options --with-app-name=cliqz  # name for binaries
+-ac_add_options --enable-crashreporter
+ ac_add_options --enable-js-shell
+ 
++# NetBSD Options
++ac_add_options --disable-crashreporter
++ac_add_options --disable-updater
++ac_add_options --disable-debug
++ac_add_options --disable-debug-symbols
++ac_add_options --disable-tests
++ac_add_options --with-system-icu
++ac_add_options --disable-webrtc
++ac_add_options --enable-default-toolkit=cairo-gtk3
++ac_add_options --enable-system-pixman
++ac_add_options --disable-pulseaudio
++#ac_add_options --disable-gconf
++ac_add_options --enable-dbus
++
++ac_add_options --target=x86_64--netbsd 
++ac_add_options --host=x86_64--netbsd
++
+ export MOZ_APP_PROFILE=CLIQZ
+ export MOZ_AUTOMATION_UPLOAD=1
+ 
diff --git a/cliqz/patches/patch-mozilla-release_dom_base_nsAttrName.h b/cliqz/patches/patch-mozilla-release_dom_base_nsAttrName.h
new file mode 100644
index 0000000000..21d9160c30
--- /dev/null
+++ b/cliqz/patches/patch-mozilla-release_dom_base_nsAttrName.h
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- mozilla-release/dom/base/nsAttrName.h.orig	2018-11-16 08:40:07.000000000 +0000
++++ mozilla-release/dom/base/nsAttrName.h
+@@ -16,6 +16,11 @@
+ #include "mozilla/dom/NodeInfo.h"
+ #include "nsAtom.h"
+ #include "nsDOMString.h"
++#ifdef __NetBSD__
++/* This is also a macro which causes problems with cbindgen */
++#undef uintptr_t
++#endif
++
+ 
+ #define NS_ATTRNAME_NODEINFO_BIT 1
+ class nsAttrName
diff --git a/cliqz/patches/patch-mozilla-release_servo_components_style_build__gecko.rs b/cliqz/patches/patch-mozilla-release_servo_components_style_build__gecko.rs
new file mode 100644
index 0000000000..bbc0f5bb82
--- /dev/null
+++ b/cliqz/patches/patch-mozilla-release_servo_components_style_build__gecko.rs
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- mozilla-release/servo/components/style/build_gecko.rs.orig	2018-11-16 08:40:07.000000000 +0000
++++ mozilla-release/servo/components/style/build_gecko.rs
+@@ -557,6 +557,8 @@ mod bindings {
+                 .borrowed_type(ty)
+                 .zero_size_type(ty, &structs_types);
+         }
++	builder = builder
++	   .raw_line(format!("pub use gecko_bindings::structs::root::*;"));
+         write_binding_file(builder, BINDINGS_FILE, &fixups);
+     }
+ 


Home | Main Index | Thread Index | Old Index