Compare commits

...

5 Commits

6 changed files with 104 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
require python [ blacklist=3 has_bin=true multibuild=false ]
require github [ user=haiwen tag="v${PV}-latest" ]
require github [ user=haiwen tag="v${PV}" ]
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
SUMMARY="A simple C language RPC framework (including both server side & client side)"

View File

@ -0,0 +1,25 @@
From 1586d708693b97d2962258419b3f366c439ae540 Mon Sep 17 00:00:00 2001
From: Julian Ospald <hasufell@posteo.de>
Date: Sat, 15 Sep 2018 21:51:53 +0800
Subject: [PATCH] Fix build with libressl-2.7.x
---
src/utils/rsa.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utils/rsa.cpp b/src/utils/rsa.cpp
index 99babc5..c103700 100644
--- a/src/utils/rsa.cpp
+++ b/src/utils/rsa.cpp
@@ -13,7 +13,7 @@ namespace {
/* Forward compatibility functions if libssl < 1.1.0. */
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
{
--
2.19.0

View File

@ -25,9 +25,9 @@ DEPENDENCIES="
virtual/pkg-config
build+run:
dev-db/sqlite:3
dev-libs/glib:2
dev-libs/jansson
dev-libs/libevent
net-libs/ccnet[~${PV}]
net-libs/libsearpc
net-misc/seafile[~${PV}]
x11-libs/qtbase:5
@ -39,4 +39,5 @@ BUGS_TO="hasufell@posteo.de"
DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}"/select-qt5.patch
"${FILES}"/0001-Fix-build-with-libressl-2.7.x.patch
)

View File

@ -24,7 +24,6 @@ DEPENDENCIES="
dev-libs/glib:2
dev-libs/jansson
dev-libs/libevent
net-libs/ccnet[~${PV}][python_abis:*(-)?]
net-libs/libsearpc[python_abis:*(-)?]
net-misc/curl
sys-libs/zlib

View File

@ -0,0 +1,76 @@
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require freedesktop-desktop
SUMMARY="Next generation Brave browser"
HOMEPAGE="https://brave-browser.readthedocs.io"
DOWNLOADS="https://brave-browser-apt-dev.s3.brave.com/pool/main/b/${PN}/${PN}_0.50.14_amd64.deb"
LICENCES="MPL-2.0"
SLOT="0"
PLATFORMS="-* ~amd64"
MYOPTIONS=""
DEPENDENCIES="
run:
dev-libs/at-spi2-atk
dev-libs/atk
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
net-print/cups
sys-apps/dbus
sys-sound/alsa-lib
x11-dri/mesa
x11-libs/cairo
x11-libs/gdk-pixbuf:2.0
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXtst
x11-libs/libxcb
x11-libs/pango
"
BUGS_TO="hasufell@posteo.de"
REMOTE_IDS="github:brave/brave-browser"
WORK=${WORKBASE}
pkg_setup() {
exdirectory --allow /opt
}
src_unpack() {
default
unpack ./data.tar.xz
}
src_install() {
local f
edo mv usr/share/doc/${PN} usr/share/doc/${PNV}
insinto /usr/share
doins -r usr/share/*
insinto /opt
doins -r opt/*
for f in "${IMAGE}"/opt/brave.com/brave-dev/{${PN},brave-browser,brave,brave-sandbox} ; do
edo chmod +x "${f}"
done
dodir /usr/$(exhost --target)/bin
dosym ../../../opt/brave.com/brave-dev/${PN} /usr/$(exhost --target)/bin/${PN}
}