aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-06-22 20:45:56 -0400
committerAisha Tammy <gentoo@aisha.cc>2020-06-22 20:53:48 -0400
commit4ccf174d1cd8cf5fd27f7b066d775c5735575da0 (patch)
treeff0055bcbe44ecc7d62ed8eea0de22822318bbd6 /www-apps/uwebsockets
parentnet-misc/kristall: Remove src_prepare(). (diff)
downloadguru-4ccf174d1cd8cf5fd27f7b066d775c5735575da0.tar.gz
guru-4ccf174d1cd8cf5fd27f7b066d775c5735575da0.tar.bz2
guru-4ccf174d1cd8cf5fd27f7b066d775c5735575da0.zip
net-misc/purritobin: fix categories for usockets/uwebsockets
net-libs/usockets: move to net-libs per OpenBSD/FreeBSD www-apps/uwebsockets: move to www-apps per Open/FreeBSD Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'www-apps/uwebsockets')
-rw-r--r--www-apps/uwebsockets/Manifest1
-rw-r--r--www-apps/uwebsockets/files/uwebsockets-Makefile.patch24
-rw-r--r--www-apps/uwebsockets/files/uwebsockets-src_Loop.h.patch13
-rw-r--r--www-apps/uwebsockets/metadata.xml8
-rw-r--r--www-apps/uwebsockets/uwebsockets-18.3.0.ebuild37
-rw-r--r--www-apps/uwebsockets/uwebsockets-9999.ebuild37
6 files changed, 120 insertions, 0 deletions
diff --git a/www-apps/uwebsockets/Manifest b/www-apps/uwebsockets/Manifest
new file mode 100644
index 000000000..62cd730ed
--- /dev/null
+++ b/www-apps/uwebsockets/Manifest
@@ -0,0 +1 @@
+DIST uwebsockets-18.3.0.tar.gz 263300 BLAKE2B 7225df4c8ce3bc09a92505ee7559a0d69b0cab09da44e7f0ca5e03f6c29ae23474566a1f28ececa938403b34bae4d2a53254ecd1eb7aa4330a9dbd065d74e943 SHA512 e694de5f206e72aa1872f69fdcfa9551103b42cc480f0e34e83a8dccce35fc0ef4c6dcbbcc817871e8bb8f0439a345295eaaf17654dedf6e94c78852507485cc
diff --git a/www-apps/uwebsockets/files/uwebsockets-Makefile.patch b/www-apps/uwebsockets/files/uwebsockets-Makefile.patch
new file mode 100644
index 000000000..bc6ba5cc0
--- /dev/null
+++ b/www-apps/uwebsockets/files/uwebsockets-Makefile.patch
@@ -0,0 +1,24 @@
+diff --git a/Makefile b/Makefile
+index ae71753..d057e96 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,3 +1,9 @@
++DESTDIR ?=
++
++prefix ?= "/usr/local"
++exec_prefix ?= "$(prefix)"
++includedir?= "$(exec_prefix)/include/uWebSockets"
++
+ EXAMPLE_FILES := HelloWorld EchoServer BroadcastingEchoServer
+ THREADED_EXAMPLE_FILES := HelloWorldThreaded EchoServerThreaded
+ override CXXFLAGS += -lpthread -Wconversion -std=c++17 -Isrc -IuSockets/src
+@@ -38,3 +44,9 @@ all:
+ clean:
+ rm -rf $(EXAMPLE_FILES) $(THREADED_EXAMPLE_FILES)
+ rm -rf fuzzing/*.o benchmarks/*.o
++install:
++ # create the folder for the header files
++ install -d "$(DESTDIR)$(includedir)/f2"
++ # now install the header files
++ install -m 644 src/*.h "$(DESTDIR)$(includedir)/"
++ install -m 644 src/f2/function2.hpp "$(DESTDIR)$(includedir)/f2/"
diff --git a/www-apps/uwebsockets/files/uwebsockets-src_Loop.h.patch b/www-apps/uwebsockets/files/uwebsockets-src_Loop.h.patch
new file mode 100644
index 000000000..d4bded9f0
--- /dev/null
+++ b/www-apps/uwebsockets/files/uwebsockets-src_Loop.h.patch
@@ -0,0 +1,13 @@
+diff --git a/src/Loop.h b/src/Loop.h
+index 3681dad..03d8a75 100644
+--- a/src/Loop.h
++++ b/src/Loop.h
+@@ -21,7 +21,7 @@
+ /* The loop is lazily created per-thread and run with uWS::run() */
+
+ #include "LoopData.h"
+-#include <libusockets.h>
++#include <uSockets/libusockets.h>
+
+ namespace uWS {
+ struct Loop {
diff --git a/www-apps/uwebsockets/metadata.xml b/www-apps/uwebsockets/metadata.xml
new file mode 100644
index 000000000..a3865a3c5
--- /dev/null
+++ b/www-apps/uwebsockets/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gentoo@aisha.cc</email>
+ <name>Aisha Tammy</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apps/uwebsockets/uwebsockets-18.3.0.ebuild b/www-apps/uwebsockets/uwebsockets-18.3.0.ebuild
new file mode 100644
index 000000000..e4fefa52e
--- /dev/null
+++ b/www-apps/uwebsockets/uwebsockets-18.3.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="ultra fast, simple, secure & standards compliant web I/O"
+HOMEPAGE="https://github.com/uNetworking/uWebSockets"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/uNetworking/uWebSockets.git"
+else
+ SRC_URI="https://github.com/uNetworking/uWebSockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~x86"
+ S="${WORKDIR}/uWebSockets-${PV}"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+RDEPEND=">=net-libs/usockets-0.4.0"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-src_Loop.h.patch"
+)
+
+src_prepare() {
+ default
+ mv src uWebSockets
+}
+
+src_compile() {
+ return 0
+}
+
+src_install() {
+ doheader -r uWebSockets
+}
diff --git a/www-apps/uwebsockets/uwebsockets-9999.ebuild b/www-apps/uwebsockets/uwebsockets-9999.ebuild
new file mode 100644
index 000000000..e4fefa52e
--- /dev/null
+++ b/www-apps/uwebsockets/uwebsockets-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="ultra fast, simple, secure & standards compliant web I/O"
+HOMEPAGE="https://github.com/uNetworking/uWebSockets"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/uNetworking/uWebSockets.git"
+else
+ SRC_URI="https://github.com/uNetworking/uWebSockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~x86"
+ S="${WORKDIR}/uWebSockets-${PV}"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+RDEPEND=">=net-libs/usockets-0.4.0"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-src_Loop.h.patch"
+)
+
+src_prepare() {
+ default
+ mv src uWebSockets
+}
+
+src_compile() {
+ return 0
+}
+
+src_install() {
+ doheader -r uWebSockets
+}