aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-06-26 06:30:56 -0400
committerAisha Tammy <gentoo@aisha.cc>2020-06-26 06:30:56 -0400
commitddacbdedfb09efa14c5099c3f1c70bae1419e10b (patch)
treec39460aea57edccc39da42b55edac3f945098ef0 /net-misc
parentwww-apps/uwebsockets: drop old version (diff)
downloadguru-ddacbdedfb09efa14c5099c3f1c70bae1419e10b.tar.gz
guru-ddacbdedfb09efa14c5099c3f1c70bae1419e10b.tar.bz2
guru-ddacbdedfb09efa14c5099c3f1c70bae1419e10b.zip
net-misc/purritobin: version bump to 0.2.2
Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/purritobin/Manifest1
-rw-r--r--net-misc/purritobin/purritobin-0.2.2.ebuild50
-rw-r--r--net-misc/purritobin/purritobin-9999.ebuild4
3 files changed, 53 insertions, 2 deletions
diff --git a/net-misc/purritobin/Manifest b/net-misc/purritobin/Manifest
index a2c4a310..73d4ad91 100644
--- a/net-misc/purritobin/Manifest
+++ b/net-misc/purritobin/Manifest
@@ -1 +1,2 @@
DIST purritobin-0.2.1.tar.gz 9487 BLAKE2B 1aa4e44b5d79d4da6c05195ed5aa187e8c4c2864905b0f225d4e6a0c65b469c046b2172d8b2108588955930dbfc2ab01f6d01b191fd988ebdb7b5714cda2bbd9 SHA512 4dbcc473b2f4df399a572a9ae588c32564eb0d807411448a4da701d2982bc72d45dd2fb5256b9cf1b6d6b3c06b588a18ac7a2f980758763f699fe54d11207ddb
+DIST purritobin-0.2.2.tar.gz 11223 BLAKE2B da28aab88578a076f3fb795264d8dc35fb279c9ce6ed170187b9269cd80c135e9f03b06bf5668f55272b6bc479aefedfe389a0b58eb52eac7d6a9c9129f42de4 SHA512 5bf64e62333f72a98c5e00b45885012212df6d88a609c7b71aecccb89b87ea6370567efa7a5b6c9ed0f09fb6b5ba15cb2769f67509fa6ee49a00ce19e5968f18
diff --git a/net-misc/purritobin/purritobin-0.2.2.ebuild b/net-misc/purritobin/purritobin-0.2.2.ebuild
new file mode 100644
index 00000000..301a1af7
--- /dev/null
+++ b/net-misc/purritobin/purritobin-0.2.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="minimalistic commandline 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="libuv static-libs"
+
+RDEPEND="net-libs/usockets[libuv=,static-libs?]
+ libuv? ( >=dev-libs/libuv-1.35.0[static-libs?] )
+"
+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
+ default
+}
+
+src_compile() {
+ env LDFLAGS="-L/usr/$(get_libdir)" \
+ emake $(usex libuv USE_DLIBUV=1 '') \
+ $(usex static-libs USE_STATIC=1 '') \
+ all
+}
+
+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 92b81b9f..301a1af7 100644
--- a/net-misc/purritobin/purritobin-9999.ebuild
+++ b/net-misc/purritobin/purritobin-9999.ebuild
@@ -20,10 +20,10 @@ LICENSE="GPL-2"
SLOT="0"
IUSE="libuv static-libs"
-DEPEND="net-libs/usockets[libuv=,static-libs?]
+RDEPEND="net-libs/usockets[libuv=,static-libs?]
libuv? ( >=dev-libs/libuv-1.35.0[static-libs?] )
"
-BDEPEND="
+DEPEND="${RDEPEND}
www-apps/uwebsockets
"