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>
This commit is contained in:
Aisha Tammy
2020-06-22 20:45:56 -04:00
parent 0a3c0acbea
commit 4ccf174d1c
13 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1 @@
DIST uwebsockets-18.3.0.tar.gz 263300 BLAKE2B 7225df4c8ce3bc09a92505ee7559a0d69b0cab09da44e7f0ca5e03f6c29ae23474566a1f28ececa938403b34bae4d2a53254ecd1eb7aa4330a9dbd065d74e943 SHA512 e694de5f206e72aa1872f69fdcfa9551103b42cc480f0e34e83a8dccce35fc0ef4c6dcbbcc817871e8bb8f0439a345295eaaf17654dedf6e94c78852507485cc

View File

@@ -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/"

View File

@@ -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 {

View File

@@ -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>

View File

@@ -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
}

View File

@@ -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
}