From 3cc1403e7d14258bd344768ad4ec4f76be9cbf15 Mon Sep 17 00:00:00 2001 From: Aisha Tammy Date: Thu, 30 Apr 2020 13:14:13 -0400 Subject: net-misc/purritobin: ultra fast, minimalistic commandline pastebin Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Aisha Tammy --- net-misc/purritobin/Manifest | 2 +- net-misc/purritobin/metadata.xml | 7 +++++ net-misc/purritobin/purritobin-0.0.2.ebuild | 30 --------------------- net-misc/purritobin/purritobin-0.1.3.ebuild | 41 +++++++++++++++++++++++++++++ net-misc/purritobin/purritobin-9999.ebuild | 21 +++++++++++---- 5 files changed, 65 insertions(+), 36 deletions(-) delete mode 100644 net-misc/purritobin/purritobin-0.0.2.ebuild create mode 100644 net-misc/purritobin/purritobin-0.1.3.ebuild diff --git a/net-misc/purritobin/Manifest b/net-misc/purritobin/Manifest index cca26b36c..2c34c541c 100644 --- a/net-misc/purritobin/Manifest +++ b/net-misc/purritobin/Manifest @@ -1 +1 @@ -DIST purritobin-0.0.2.tar.gz 6647 BLAKE2B e0b59920d644e5282966abed2128d583e306d9897c3fff6c20c3ab77b347d0cb244860d94238f1094c454489ce05570be9a19e1b2c548deb21114a66bacfdeb8 SHA512 4de009e3d2b6a15ca93affa2c0026c55d85473c9009b9f4b0766c90ef84fc860cedb433a9de4cc8a8ef0f79a3ef69f40100324ad016c74efd6a73b9651789c8b +DIST purritobin-0.1.3.tar.gz 7561 BLAKE2B 0b476678e5f06b64741e3cff68822dc7c7f32af0c1313405ae8aa0b39af7e649f33b2405d63194e7634d2f2e75d1715524383f6c1b11170eac925fd814579674 SHA512 8b79fed4abd8412d04af7cf67792a8f6f658f4bc0c87b891275eb7ffb72c747c5174ed8556f6a57f160c6e6e4700bcc55b89ca1076d51d6d59b1fd906e2824a1 diff --git a/net-misc/purritobin/metadata.xml b/net-misc/purritobin/metadata.xml index 65ac1f205..ea7ac63cb 100644 --- a/net-misc/purritobin/metadata.xml +++ b/net-misc/purritobin/metadata.xml @@ -5,4 +5,11 @@ gentoo@aisha.cc Aisha Tammy + + proxy-maint@gentoo.org + Proxy Maintainers + + + use libuv to do async operations, instead of linux kernels epoll + diff --git a/net-misc/purritobin/purritobin-0.0.2.ebuild b/net-misc/purritobin/purritobin-0.0.2.ebuild deleted file mode 100644 index 7502a8d5e..000000000 --- a/net-misc/purritobin/purritobin-0.0.2.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2019-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="minimalistic commanline pastebin" -HOMEPAGE="https://bsd.ac" - -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" -SLOT="0" -IUSE="" - -DEPEND="" -RDEPEND="" -BDEPEND="" - -src_install() { - emake prefix="/usr" DESTDIR="${D}" install - einstalldocs -} diff --git a/net-misc/purritobin/purritobin-0.1.3.ebuild b/net-misc/purritobin/purritobin-0.1.3.ebuild new file mode 100644 index 000000000..ed23716c1 --- /dev/null +++ b/net-misc/purritobin/purritobin-0.1.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="minimalistic commanline pastebin" +HOMEPAGE="https://bsd.ac" + +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="ISC" +SLOT="0" +IUSE="libuv" + +DEPEND=">=dev-cpp/usockets-0.3.5:=[libuv?] + >=dev-cpp/uwebsockets-0.17.4 + libuv? ( >=dev-libs/libuv-1.35.0 ) +" +RDEPEND="${DEPEND}" +BDEPEND="${DEPEND}" + +src_compile() { + if use libuv; then + WITH_LIBUV=1 emake all + else + emake all + fi +} + +src_install() { + emake prefix="/usr" DESTDIR="${D}" install + einstalldocs +} diff --git a/net-misc/purritobin/purritobin-9999.ebuild b/net-misc/purritobin/purritobin-9999.ebuild index 7502a8d5e..ed23716c1 100644 --- a/net-misc/purritobin/purritobin-9999.ebuild +++ b/net-misc/purritobin/purritobin-9999.ebuild @@ -16,13 +16,24 @@ else S="${WORKDIR}/PurritoBin-${PV}" fi -LICENSE="GPL-2" +LICENSE="ISC" SLOT="0" -IUSE="" +IUSE="libuv" -DEPEND="" -RDEPEND="" -BDEPEND="" +DEPEND=">=dev-cpp/usockets-0.3.5:=[libuv?] + >=dev-cpp/uwebsockets-0.17.4 + libuv? ( >=dev-libs/libuv-1.35.0 ) +" +RDEPEND="${DEPEND}" +BDEPEND="${DEPEND}" + +src_compile() { + if use libuv; then + WITH_LIBUV=1 emake all + else + emake all + fi +} src_install() { emake prefix="/usr" DESTDIR="${D}" install -- cgit v1.2.3-65-gdbad