Merge updates from master

This commit is contained in:
Repository mirror & CI
2020-11-23 22:35:20 +00:00
35 changed files with 10374 additions and 245 deletions

View File

@@ -6,6 +6,8 @@
<name>Matthias Coppens</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/denisidoro/navi/issues</bugs-to>
<doc>https://github.com/denisidoro/navi#usage</doc>
<remote-id type="github">denisidoro/navi</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -5,4 +5,8 @@
<email>coppens.matthias.abc@gmail.com</email>
<name>Matthias Coppens</name>
</maintainer>
<upstream>
<bugs-to>https://gitlab.com/jschx/ufetch/-/issues</bugs-to>
<remote-id type="gitlab">jschx/ufetch</remote-id>
</upstream>
</pkgmetadata>

1
app-text/lizard/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST lizard-1.17.7.tar.gz 1223565 BLAKE2B d49b7c05d459ff2c24a6c252840fd411a6fa720327d1ef0a7d0bb7fda6684210cca20f5d6e675c2e80f7edf9d4703c31b0e0aca267222037a6167a0265385169 SHA512 c47079e3077ebf87ee42dc361ffa4b68100408215f76d110ba20eaa44de51fbe54d695cefdd0a9e20752aafade865b7ed24551db4d34466b6e2d25df80806e79

View File

@@ -0,0 +1,26 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
inherit distutils-r1
DESCRIPTION="A simple code complexity analyser, supports most of the popular languages."
HOMEPAGE="http://www.lizard.ws/"
SRC_URI="https://github.com/terryyin/lizard/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="MIT"
SLOT="0"
DEPEND="
test? (
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest

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>davidroman96@gmail.com</email>
<name>David Roman</name>
</maintainer>
</pkgmetadata>

10090
app-text/lizard/tester.log Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -8,6 +8,7 @@
<upstream>
<doc>https://asciimatics.readthedocs.io/en/stable/</doc>
<remote-id type="github">peterbrittain/asciimatics</remote-id>
<remote-id type="pypi">asciimatics</remote-id>
<bugs-to>https://github.com/peterbrittain/asciimatics/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@@ -5,4 +5,10 @@
<email>coppens.matthias.abc@gmail.com</email>
<name>Matthias Coppens</name>
</maintainer>
<upstream>
<doc>https://github.com/fakefred/ascim#usage</doc>
<bugs-to>https://github.com/fakefred/ascim/issues</bugs-to>
<remote-id type="github">fakefred/ascim</remote-id>
<remote-id type="pypi">ascim</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -9,4 +9,9 @@
Very simple Python library for color and formatting in terminal.
Collection of color codes and names for 256 color terminal setups.
</longdescription>
<upstream>
<bugs-to>https://gitlab.com/dslackw/colored/-/issues</bugs-to>
<remote-id type="gitlab">dslackw/colored</remote-id>
<remote-id type="pypi">colored</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -7,6 +7,7 @@
</maintainer>
<upstream>
<remote-id type="github">pwaller/pyfiglet</remote-id>
<remote-id type="pypi">pyfiglet</remote-id>
<bugs-to>https://github.com/pwaller/pyfiglet/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@@ -16,6 +16,7 @@
</longdescription>
<upstream>
<remote-id type="github">CITGuru/PyInquirer</remote-id>
<remote-id type="pypi">PyInquirer</remote-id>
<bugs-to>https://github.com/CITGuru/PyInquirer/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@@ -21,6 +21,8 @@ esac
LICENSE="GPL-3"
SLOT="0"
RESTRICT="mirror test"
RDEPEND="
media-video/mpv[libmpv]
gui-libs/wlroots

View File

@@ -21,6 +21,8 @@ esac
LICENSE="GPL-3"
SLOT="0"
RESTRICT="mirror test"
RDEPEND="
media-video/mpv[libmpv]
gui-libs/wlroots

View File

@@ -13,4 +13,12 @@
<flag name="grid">Installs nwggrid,
a GNOME-like application grid.</flag>
</use>
<upstream>
<maintainer>
<name>Piotr Miller</name>
<email>nwg.piotr@gmail.com</email>
</maintainer>
<bugs-to>https://github.com/nwg-piotr/nwg-launchers/issues</bugs-to>
<remote-id type="github">nwg-piotr/nwg-launchers</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -11,6 +11,11 @@
<flag name="man">Build and install man pages</flag>
</use>
<upstream>
<maintainer>
<name>Martin Dørum</name>
<email>martid0311@gmail.com</email>
</maintainer>
<doc>https://github.com/mortie/swaylock-effects#effects</doc>
<remote-id type="github">mortie/swaylock-effects</remote-id>
<bugs-to>https://github.com/mortie/swaylock-effects/issues</bugs-to>
</upstream>

View File

@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Matthias Coppens</name>
<email>coppens.matthias.abc@gmail.com</email>
</maintainer>
<maintainer type="person">
<name>Matthias Coppens</name>
<email>coppens.matthias.abc@gmail.com</email>
</maintainer>
<upstream>
<bugs-to>https://github.com/cyclopsian/wdisplays/issues</bugs-to>
<remote-id type="github">cyclopian/wdisplays</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Matthias Coppens</name>
<email>coppens.matthias.abc@gmail.com</email>
</maintainer>
<maintainer type="person">
<name>Matthias Coppens</name>
<email>coppens.matthias.abc@gmail.com</email>
</maintainer>
<upstream>
<bugs-to>https://todo.sr.ht/~scoopta/wofi</bugs-to>
<doc>https://cloudninja.pw/docs/wofi.html</doc>
</upstream>
</pkgmetadata>

View File

@@ -12,4 +12,13 @@
<use>
<flag name="X">Enable support for X11 applications (XWayland)</flag>
</use>
<upstream>
<maintainer>
<name>Jente Hidskes</name>
<email>dev@hjdskes.nl</email>
</maintainer>
<doc>https://github.com/Hjdskes/cage/wiki</doc>
<bugs-to>https://github.com/Hjdskes/cage/issues</bugs-to>
<remote-id type="github">Hjdskes/cage</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,8 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>coppens.matthias.abc@gmail.com</email>
<name>Matthias Coppens</name>
</maintainer>
<maintainer type="person">
<email>coppens.matthias.abc@gmail.com</email>
<name>Matthias Coppens</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/fakefred/memethesis-cli/issues</bugs-to>
<doc>https://github.com/fakefred/memethesis-cli#usage</doc>
<remote-id type="github">fakefred/memethesis-cli</remote-id>
<remote-id type="pypi">memethesis</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1 +1 @@
DIST usockets-0.6.0.tar.gz 57590 BLAKE2B 8438a3d2a1861d995410fcda8b888d561de2fb51af319e58c529f1113cb8e4d0f821b1649618c28d43dbc64f28b6b4e90f7e0bd51fcabc5afdc8318ca8f21448 SHA512 0803a117334d4dc38b4936e6f1d34984a9fba30da1c360c3ff3d7ce14275a4ac9c4a4e7b407791fc3661c50be6b6a8335d26f808b21d0ade5f85ab721b14a500
DIST usockets-0.6.0_p1.tar.gz 57634 BLAKE2B 67faa23add9c88dd49eed4849766e3eeeeaedd3993741ced9491d01b6d0caf56b032a9689827018714dbc87b500f3755db4edacb035573f7a563cd7147b1e187 SHA512 0dbedc5e90af9a92e6597e801116b57fd99dcd5a8488e3b5ddce83bbcd1852d30f2c8954dc1991a807d32f00bdb62e654498687fec344d295f299ccf3920a1ca

View File

@@ -0,0 +1,124 @@
diff --git a/Makefile b/Makefile
index 27f97ce..f8bf8d7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,60 +1,59 @@
+DESTDIR ?=
+
+prefix ?= /usr
+exec_prefix ?= $(prefix)
+LIB ?= lib
+libdir ?= $(exec_prefix)/$(LIB)
+includedir ?= $(exec_prefix)/include
+
+PKG_CONFIG ?= pkg-config
+
+VERSION ?= 0.0
+LIBTARGET = libusockets.so.$(VERSION)
+
+REQUIRES =
+COMMON_FLAGS = -Isrc
+
# WITH_OPENSSL=1 enables OpenSSL 1.1+ support or BoringSSL
# For now we need to link with C++ for OpenSSL support, but should be removed with time
ifeq ($(WITH_OPENSSL),1)
- override CFLAGS += -DLIBUS_USE_OPENSSL
- # With problems on macOS, make sure to pass needed LDFLAGS required to find these
- override LDFLAGS += -lssl -lcrypto -lstdc++
-else
- # WITH_WOLFSSL=1 enables WolfSSL 4.2.0 support (mutually exclusive with OpenSSL)
- ifeq ($(WITH_WOLFSSL),1)
- # todo: change these
- override CFLAGS += -DLIBUS_USE_WOLFSSL -I/usr/local/include
- override LDFLAGS += -L/usr/local/lib -lwolfssl
- else
- override CFLAGS += -DLIBUS_NO_SSL
- endif
+COMMON_FLAGS += -DLIBUS_USE_OPENSSL
+LDFLAGS += -lstdc++
+REQUIRES += libssl libcrypto
endif
# WITH_LIBUV=1 builds with libuv as event-loop
ifeq ($(WITH_LIBUV),1)
- override CFLAGS += -DLIBUS_USE_LIBUV
- override LDFLAGS += -luv
+COMMON_FLAGS += -DLIBUS_USE_LIBUV
+REQUIRES += libuv
endif
-# WITH_GCD=1 builds with libdispatch as event-loop
-ifeq ($(WITH_GCD),1)
- override CFLAGS += -DLIBUS_USE_GCD
- override LDFLAGS += -framework CoreFoundation
-endif
+CFLAGS += -std=c11 $(COMMON_FLAGS)
+CXXFLAGS += -std=c++17 $(COMMON_FLAGS)
-# WITH_ASAN builds with sanitizers
-ifeq ($(WITH_ASAN),1)
- override CFLAGS += -fsanitize=address -g
- override LDFLAGS += -lasan
-endif
-
-override CFLAGS += -std=c11 -Isrc
-override LDFLAGS += uSockets.a
-
-# By default we build the uSockets.a static library
default:
- rm -f *.o
- $(CC) $(CFLAGS) -flto -O3 -c src/*.c src/eventing/*.c src/crypto/*.c
-# For now we do rely on C++17 for OpenSSL support but we will be porting this work to C11
+ $(CC) $(CFLAGS) -fPIC -c src/*.c src/eventing/*.c src/crypto/*.c
ifeq ($(WITH_OPENSSL),1)
- $(CXX) $(CXXFLAGS) -std=c++17 -flto -O3 -c src/crypto/*.cpp
+ $(CXX) $(CXXFLAGS) -fPIC -c src/crypto/*.cpp
endif
- $(AR) rvs uSockets.a *.o
-
-# Builds all examples
-.PHONY: examples
-examples: default
- for f in examples/*.c; do $(CC) -flto -O3 $(CFLAGS) -o $$(basename "$$f" ".c") "$$f" $(LDFLAGS); done
-
-swift_examples:
- swiftc -O -I . examples/swift_http_server/main.swift uSockets.a -o swift_http_server
+ $(AR) rvs libusockets.a *.o
+ $(CC) -shared -o $(LIBTARGET) *.o -Wl,-soname,$(LIBTARGET) `$(PKG_CONFIG) --libs $(REQUIRES)` $(LDFLAGS)
+ sed -e "s:@PREFIX@:$(prefix):" -e "s:@REQUIRES@:$(REQUIRES):" \
+ -e "s:@LIB@:$(LIB):" -e "s:@VERSION@:$(VERSION):" libusockets.pc.in > libusockets.pc
+
+install:
+ install -d "$(DESTDIR)$(libdir)/pkgconfig" "$(DESTDIR)$(includedir)"
+ install -m 644 src/libusockets.h "$(DESTDIR)$(includedir)/"
+ install -m 755 $(LIBTARGET) "$(DESTDIR)$(libdir)"
+ ln -sf $(LIBTARGET) "$(DESTDIR)$(libdir)/libusockets.so"
+ install -m 755 libusockets.a "$(DESTDIR)$(libdir)/"
+ install -m 644 libusockets.pc "$(DESTDIR)$(libdir)/pkgconfig/"
clean:
rm -f *.o
rm -f *.a
+ rm -f *.so
rm -rf .certs
+ rm -f libusockets.pc
+
+.PHONY: default install clean
diff --git a/libusockets.pc.in b/libusockets.pc.in
new file mode 100644
index 0000000..b818020
--- /dev/null
+++ b/libusockets.pc.in
@@ -0,0 +1,12 @@
+prefix=@PREFIX@
+libdir=${prefix}/@LIB@
+includedir=${prefix}/include
+
+Name: uSockets
+Version: @VERSION@
+Description: eventing, networking and crypto for async applications.
+URL: https://github.com/uNetworking/uSockets
+
+Cflags: -I${includedir}
+Libs: -L${libdir} -lusockets
+Requires.private: @REQUIRES@

View File

@@ -1,61 +0,0 @@
diff --git a/Makefile b/Makefile
index 27f97ce..1a01539 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,13 @@
+DESTDIR ?=
+
+prefix ?= "/usr/local"
+exec_prefix ?= "$(prefix)"
+libdir ?= "$(exec_prefix)/lib"
+includedir?= "$(exec_prefix)/include/uSockets"
+
+# OpenBSD specific library version
+LIBTARGET = libusockets.so.$(LIBusockets_VERSION)
+
# WITH_OPENSSL=1 enables OpenSSL 1.1+ support or BoringSSL
# For now we need to link with C++ for OpenSSL support, but should be removed with time
ifeq ($(WITH_OPENSSL),1)
@@ -34,17 +44,28 @@ ifeq ($(WITH_ASAN),1)
endif
override CFLAGS += -std=c11 -Isrc
-override LDFLAGS += uSockets.a
-# By default we build the uSockets.a static library
+
default:
rm -f *.o
- $(CC) $(CFLAGS) -flto -O3 -c src/*.c src/eventing/*.c src/crypto/*.c
-# For now we do rely on C++17 for OpenSSL support but we will be porting this work to C11
-ifeq ($(WITH_OPENSSL),1)
- $(CXX) $(CXXFLAGS) -std=c++17 -flto -O3 -c src/crypto/*.cpp
-endif
- $(AR) rvs uSockets.a *.o
+ $(CC) -fPIC -c src/*.c src/eventing/*.c src/crypto/*.c $(CFLAGS)
+ $(AR) rvs libusockets.a *.o
+ $(CC) -shared -fPIC -Wl,-soname,$(LIBTARGET) $(CFLAGS) -o $(LIBTARGET) *.o $(LDFLAGS)
+
+install:
+ # install the folders needed (making sure that the exist)
+ install -d "$(DESTDIR)$(libdir)" \
+ "$(DESTDIR)$(includedir)/internal/eventing" \
+ "$(DESTDIR)$(includedir)/internal/networking"
+ # OpenBSD specific library version
+ install -m 755 $(LIBTARGET) "$(DESTDIR)$(libdir)/"
+ # install static library
+ install -m 755 libusockets.a "$(DESTDIR)$(libdir)/"
+ # we also install all the header files
+ install src/*.h "$(DESTDIR)$(includedir)/"
+ install -m 644 src/internal/*.h "$(DESTDIR)$(includedir)/internal/"
+ install -m 644 src/internal/eventing/*.h "$(DESTDIR)$(includedir)/internal/eventing/"
+ install -m 644 src/internal/networking/*.h "$(DESTDIR)$(includedir)/internal/networking/"
# Builds all examples
.PHONY: examples
@@ -57,4 +78,5 @@ swift_examples:
clean:
rm -f *.o
rm -f *.a
+ rm -f *.so
rm -rf .certs

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit multilib
inherit toolchain-funcs
DESCRIPTION="tiny eventing, networking & crypto for async applications"
HOMEPAGE="https://github.com/uNetworking/uSockets"
@@ -12,43 +12,45 @@ if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/uNetworking/uSockets.git"
else
SRC_URI="https://github.com/uNetworking/uSockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
COMMIT=7683672d87067cd75b854f4e36b9820f4809a4be
SRC_URI="https://github.com/uNetworking/uSockets/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S="${WORKDIR}/uSockets-${PV}"
S="${WORKDIR}/uSockets-${COMMIT}"
fi
LICENSE="Apache-2.0"
SLOT="0"
IUSE="libuv +ssl libressl static-libs"
IUSE="libuv +ssl static-libs"
DEPEND="ssl? (
libressl? ( >=dev-libs/libressl-3.0.0:=[static-libs?] )
!libressl? ( >=dev-libs/openssl-1.1.0:=[static-libs?] )
>=dev-libs/openssl-1.1.0:=[static-libs?]
)
libuv? ( dev-libs/libuv[static-libs?] )
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/usockets-Makefile.patch"
"${FILESDIR}/${PN}-0.6.0-Makefile.patch"
)
src_compile() {
tc-export CC CXX
# the Makefile uses environment variables
emake LIBusockets_VERSION=${PV} \
emake VERSION=${PV} \
LIB="$(get_libdir)" \
WITH_OPENSSL=$(usex ssl 1 0) \
WITH_LIBUV=$(usex libuv 1 0) \
default
}
src_install() {
emake libdir="/usr/$(get_libdir)" \
prefix="/usr" \
DESTDIR="${D}" \
LIBusockets_VERSION=${PV} \
emake LIB="$(get_libdir)" \
prefix="${EPREFIX%/}/usr" \
DESTDIR="${D}" \
VERSION=${PV} \
install
einstalldocs
if ! use static-libs; then
rm "${D}/usr/$(get_libdir)/libusockets.a" || die
rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die
fi
}

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit multilib
inherit toolchain-funcs
DESCRIPTION="tiny eventing, networking & crypto for async applications"
HOMEPAGE="https://github.com/uNetworking/uSockets"
@@ -12,43 +12,45 @@ if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/uNetworking/uSockets.git"
else
SRC_URI="https://github.com/uNetworking/uSockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
COMMIT=7683672d87067cd75b854f4e36b9820f4809a4be
SRC_URI="https://github.com/uNetworking/uSockets/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S="${WORKDIR}/uSockets-${PV}"
S="${WORKDIR}/uSockets-${COMMIT}"
fi
LICENSE="Apache-2.0"
SLOT="0"
IUSE="libuv +ssl libressl static-libs"
IUSE="libuv +ssl static-libs"
DEPEND="ssl? (
libressl? ( >=dev-libs/libressl-3.0.0:=[static-libs?] )
!libressl? ( >=dev-libs/openssl-1.1.0:=[static-libs?] )
>=dev-libs/openssl-1.1.0:=[static-libs?]
)
libuv? ( dev-libs/libuv[static-libs?] )
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/usockets-Makefile.patch"
"${FILESDIR}/${PN}-0.6.0-Makefile.patch"
)
src_compile() {
tc-export CC CXX
# the Makefile uses environment variables
emake LIBusockets_VERSION=${PV} \
emake VERSION=${PV} \
LIB="$(get_libdir)" \
WITH_OPENSSL=$(usex ssl 1 0) \
WITH_LIBUV=$(usex libuv 1 0) \
default
}
src_install() {
emake libdir="/usr/$(get_libdir)" \
prefix="/usr" \
DESTDIR="${D}" \
LIBusockets_VERSION=${PV} \
emake LIB="$(get_libdir)" \
prefix="${EPREFIX%/}/usr" \
DESTDIR="${D}" \
VERSION=${PV} \
install
einstalldocs
if ! use static-libs; then
rm "${D}/usr/$(get_libdir)/libusockets.a" || die
rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die
fi
}

View File

@@ -1 +1 @@
DIST purritobin-0.2.4.tar.gz 11356 BLAKE2B 5a96a71b5426f0e27813aaa7287fa803a7127f16e21f15689f325784878b53603536f809d898842ff4eb68a9ceee2e565015e02de4e3eb067f66ed4b84c90e99 SHA512 1394a203b80c0d53c5bd0b5d941c9d69549fb53d3ad2974e197a3d323fc6a9a00b3c5c4c81c6b42bda8b06269886c63faf6246d4c9493fb4d145e858ed69ef1e
DIST purritobin-0.3.0.tar.gz 12531 BLAKE2B 78d2c447e5bea602258d328d054229404aeaa3f8ad244e94cc21df09a96da77a90e95052e13e3c918b77de7a186b0231cb994e9fb9b01fe25d0c6398ca794e6b SHA512 3ea26c4cbc03acd17f83e118bcd2a77a9f35f2fad54d60baa68b5451d99d058d709f88d2151d8d3876eb216845b246932f736e96c6690f0ef140cdc8c686a829

View File

@@ -5,7 +5,4 @@
<email>gentoo@aisha.cc</email>
<name>Aisha Tammy</name>
</maintainer>
<use>
<flag name="libuv">use libuv to do async operations, instead of linux kernels epoll</flag>
</use>
</pkgmetadata>

View File

@@ -6,45 +6,31 @@ EAPI=7
DESCRIPTION="minimalistic commandline pastebin"
HOMEPAGE="https://bsd.ac"
inherit toolchain-funcs
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/PurritoBin/PurritoBin.git"
KEYWORDS=""
else
SRC_URI="https://github.com/PurritoBin/PurritoBin/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S="${WORKDIR}/PurritoBin-${PV}"
fi
LICENSE="GPL-2"
LICENSE="ISC"
SLOT="0"
IUSE="libuv static-libs"
RDEPEND="net-libs/usockets[libuv=,static-libs?]
libuv? ( >=dev-libs/libuv-1.35.0[static-libs?] )
"
RDEPEND="net-libs/usockets"
DEPEND="${RDEPEND}
www-apps/uwebsockets
"
src_prepare() {
sed -i -e "s:.ifdef:ifdef:g" \
-e "s:.else:else:g" \
-e "s:.endif:endif:g" \
Makefile
src_configure() {
default
}
src_compile() {
env LDFLAGS="-L/usr/$(get_libdir)" \
emake $(usex libuv USE_DLIBUV=1 '') \
$(usex static-libs USE_STATIC=1 '') \
all
tc-export CXX
}
src_install() {
emake prefix="/usr" \
DESTDIR="${D}" \
install
emake PREFIX="/usr" DESTDIR="${ED}" install
einstalldocs
}

View File

@@ -6,45 +6,31 @@ EAPI=7
DESCRIPTION="minimalistic commandline pastebin"
HOMEPAGE="https://bsd.ac"
inherit toolchain-funcs
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/PurritoBin/PurritoBin.git"
KEYWORDS=""
else
SRC_URI="https://github.com/PurritoBin/PurritoBin/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S="${WORKDIR}/PurritoBin-${PV}"
fi
LICENSE="GPL-2"
LICENSE="ISC"
SLOT="0"
IUSE="libuv static-libs"
RDEPEND="net-libs/usockets[libuv=,static-libs?]
libuv? ( >=dev-libs/libuv-1.35.0[static-libs?] )
"
RDEPEND="net-libs/usockets"
DEPEND="${RDEPEND}
www-apps/uwebsockets
"
src_prepare() {
sed -i -e "s:.ifdef:ifdef:g" \
-e "s:.else:else:g" \
-e "s:.endif:endif:g" \
Makefile
src_configure() {
default
}
src_compile() {
env LDFLAGS="-L/usr/$(get_libdir)" \
emake $(usex libuv USE_DLIBUV=1 '') \
$(usex static-libs USE_STATIC=1 '') \
all
tc-export CXX
}
src_install() {
emake prefix="/usr" \
DESTDIR="${D}" \
install
emake PREFIX="/usr" DESTDIR="${ED}" install
einstalldocs
}

View File

@@ -16,6 +16,11 @@
you've freed up in this session.
</longdescription>
<upstream>
<maintainer>
<name>Aram Drevekenin</name>
<email>aram@poor.dev</email>
</maintainer>
<changelog>https://github.com/imsnif/diskonaut/blob/main/CHANGELOG.md</changelog>
<remote-id type="github">imsnif/diskonaut</remote-id>
<bugs-to>https://github.com/imsnif/diskonaut/issues</bugs-to>
</upstream>

View File

@@ -1,3 +1 @@
DIST uwebsockets-18.13.0.tar.gz 270125 BLAKE2B 236dbda4458649710bd0b5144ce6ecbd589e251774e84d8673e05c3acaab444ef6e68d66e3fff840e7c4de56d3631ed734820ea4f6b5e253bf87a5a2a5b01544 SHA512 5a05480191ac7dd8948090a1bb8565eef6b14c8b32b5d7b5f082f5d51afc5eb5b15cf7eb1c91f6b4d2956bae10d4eeb5498cfa211cbbd54366d98ac0fe1c00a2
DIST uwebsockets-18.14.0.tar.gz 271448 BLAKE2B 739bf75e6494b40ad7f09337400337cf52e9f69fa294cda11eaa7211715c19ffa736e6bcc0d09c738de766bbe75e5a11dacb7ed761e8804688986f3a1e996b22 SHA512 43238c4bdff512817dc1a09100bc0efc7c941808ca250c52d9527e7255dd0a96bd57c7b52e721412a98cc0818877548692a93ac702e4b09d3623e07df098057b
DIST uwebsockets-18.15.0.tar.gz 271485 BLAKE2B 77e661abdf82728dbe3c52689d42b8fe98314c9e7bc1e8700a935114608771fa26d272bd30dd03ede870a1b4dc63a4dc91e816f1df7b402a2f85bff09de12c7a SHA512 b49a3f4ce446b9c113bfb567fe9598cdc6c453ac5dc4556e11d74ef5d702cb480d53488e2650f765f8c95e0de980d586be62982bed9c5728fee974e7e287f143

View File

@@ -1,13 +0,0 @@
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

@@ -1,37 +0,0 @@
# 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.1"
PATCHES=(
"${FILESDIR}/${PN}-src_Loop.h.patch"
)
src_prepare() {
default
mv src uWebSockets
}
src_compile() {
return 0
}
src_install() {
doheader -r uWebSockets
}

View File

@@ -1,37 +0,0 @@
# 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.1"
PATCHES=(
"${FILESDIR}/${PN}-src_Loop.h.patch"
)
src_prepare() {
default
mv src uWebSockets
}
src_compile() {
return 0
}
src_install() {
doheader -r uWebSockets
}

View File

@@ -17,11 +17,7 @@ fi
LICENSE="Apache-2.0"
SLOT="0"
RDEPEND=">=net-libs/usockets-0.4.1"
PATCHES=(
"${FILESDIR}/${PN}-src_Loop.h.patch"
)
RDEPEND=">=net-libs/usockets-0.6.0"
src_prepare() {
default

View File

@@ -17,11 +17,7 @@ fi
LICENSE="Apache-2.0"
SLOT="0"
RDEPEND=">=net-libs/usockets-0.4.1"
PATCHES=(
"${FILESDIR}/${PN}-src_Loop.h.patch"
)
RDEPEND=">=net-libs/usockets-0.6.0"
src_prepare() {
default