public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Aisha Tammy" <gentoo@aisha.cc>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/purritobin/
Date: Sat, 13 Jun 2020 14:32:58 +0000 (UTC)	[thread overview]
Message-ID: <1592058661.18435148e74ea036bca5be0b334bb0a7a2558543.epsilon-0@gentoo> (raw)

commit:     18435148e74ea036bca5be0b334bb0a7a2558543
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Sat Jun 13 14:31:01 2020 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Sat Jun 13 14:31:01 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=18435148

net-misc/purritobin: version bump + lib depend fixes

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 net-misc/purritobin/Manifest                |  1 +
 net-misc/purritobin/purritobin-0.2.1.ebuild | 50 +++++++++++++++++++++++++++++
 net-misc/purritobin/purritobin-9999.ebuild  | 36 +++++++++++++--------
 3 files changed, 74 insertions(+), 13 deletions(-)

diff --git a/net-misc/purritobin/Manifest b/net-misc/purritobin/Manifest
index 2c34c54..c72479b 100644
--- a/net-misc/purritobin/Manifest
+++ b/net-misc/purritobin/Manifest
@@ -1 +1,2 @@
 DIST purritobin-0.1.3.tar.gz 7561 BLAKE2B 0b476678e5f06b64741e3cff68822dc7c7f32af0c1313405ae8aa0b39af7e649f33b2405d63194e7634d2f2e75d1715524383f6c1b11170eac925fd814579674 SHA512 8b79fed4abd8412d04af7cf67792a8f6f658f4bc0c87b891275eb7ffb72c747c5174ed8556f6a57f160c6e6e4700bcc55b89ca1076d51d6d59b1fd906e2824a1
+DIST purritobin-0.2.1.tar.gz 9487 BLAKE2B 1aa4e44b5d79d4da6c05195ed5aa187e8c4c2864905b0f225d4e6a0c65b469c046b2172d8b2108588955930dbfc2ab01f6d01b191fd988ebdb7b5714cda2bbd9 SHA512 4dbcc473b2f4df399a572a9ae588c32564eb0d807411448a4da701d2982bc72d45dd2fb5256b9cf1b6d6b3c06b588a18ac7a2f980758763f699fe54d11207ddb

diff --git a/net-misc/purritobin/purritobin-0.2.1.ebuild b/net-misc/purritobin/purritobin-0.2.1.ebuild
new file mode 100644
index 0000000..2c9702a
--- /dev/null
+++ b/net-misc/purritobin/purritobin-0.2.1.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"
+
+DEPEND="dev-cpp/usockets[libuv=,static-libs?]
+	libuv? ( >=dev-libs/libuv-1.35.0[static-libs?] )
+"
+BDEPEND="
+	dev-cpp/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 210bf60..2c9702a 100644
--- a/net-misc/purritobin/purritobin-9999.ebuild
+++ b/net-misc/purritobin/purritobin-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-DESCRIPTION="minimalistic commanline pastebin"
+DESCRIPTION="minimalistic commandline pastebin"
 HOMEPAGE="https://bsd.ac"
 
 if [[ ${PV} == 9999 ]]; then
@@ -16,25 +16,35 @@ else
 	S="${WORKDIR}/PurritoBin-${PV}"
 fi
 
-LICENSE="ISC"
+LICENSE="GPL-2"
 SLOT="0"
-IUSE="libuv"
+IUSE="libuv static-libs"
 
-DEPEND=">=dev-cpp/usockets-0.3.5:=[libuv?]
-	>=dev-cpp/uwebsockets-0.17.4
-	libuv? ( >=dev-libs/libuv-1.35.0 )
+DEPEND="dev-cpp/usockets[libuv=,static-libs?]
+	libuv? ( >=dev-libs/libuv-1.35.0[static-libs?] )
 "
-RDEPEND="${DEPEND}"
+BDEPEND="
+	dev-cpp/uwebsockets
+"
+
+src_prepare() {
+	sed -i -e "s:.ifdef:ifdef:g" \
+		   -e "s:.else:else:g" \
+		   -e "s:.endif:endif:g" \
+		   Makefile
+	default
+}
 
 src_compile() {
-	if use libuv; then
-		WITH_LIBUV=1 emake all
-	else
-		emake all
-	fi
+	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
+	emake prefix="/usr" \
+		  DESTDIR="${D}" \
+		  install
 	einstalldocs
 }


             reply	other threads:[~2020-06-13 14:33 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-13 14:32 Aisha Tammy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-05-17 11:31 [gentoo-commits] repo/proj/guru:dev commit in: net-misc/purritobin/ Aisha Tammy
2021-05-17 11:30 Aisha Tammy
2021-05-09 13:10 Aisha Tammy
2021-05-09 13:10 Aisha Tammy
2021-05-09 12:23 Aisha Tammy
2021-05-09 12:23 Aisha Tammy
2021-05-01  2:12 Aisha Tammy
2021-05-01  2:12 Aisha Tammy
2021-04-25 14:14 Aisha Tammy
2021-04-11 12:50 Aisha Tammy
2021-04-11 12:50 Aisha Tammy
2021-04-10 22:17 Aisha Tammy
2021-04-10 22:17 Aisha Tammy
2021-04-10 22:17 Aisha Tammy
2021-03-04  1:47 Aisha Tammy
2021-02-11 19:01 Aisha Tammy
2021-02-07 21:10 Aisha Tammy
2021-02-07 17:41 Aisha Tammy
2021-02-07 17:41 Aisha Tammy
2021-01-29  2:20 Aisha Tammy
2021-01-13 18:59 Aisha Tammy
2021-01-13 18:59 Aisha Tammy
2020-12-12  5:22 Aisha Tammy
2020-12-12  5:22 Aisha Tammy
2020-11-25 23:54 Aisha Tammy
2020-11-25 23:54 Aisha Tammy
2020-11-25 16:24 Aisha Tammy
2020-11-25 16:24 Aisha Tammy
2020-11-23 12:25 Aisha Tammy
2020-11-23  2:49 Aisha Tammy
2020-11-23  2:49 Aisha Tammy
2020-09-08 20:51 Aisha Tammy
2020-09-08 20:51 Aisha Tammy
2020-07-07 14:05 Aisha Tammy
2020-07-07 14:05 Aisha Tammy
2020-06-26 10:31 Aisha Tammy
2020-06-26 10:31 Aisha Tammy
2020-06-13 14:32 Aisha Tammy
2020-04-30 17:14 Aisha Tammy
2020-04-27 17:25 Andrew Ammerlaan
2020-04-27 16:35 Aisha Tammy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1592058661.18435148e74ea036bca5be0b334bb0a7a2558543.epsilon-0@gentoo \
    --to=gentoo@aisha.cc \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox