summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-09-21 13:25:56 -0400
committerRick Farina <zerochaos@gentoo.org>2020-09-21 14:05:33 -0400
commitf1973678ffeafe0ef3e73c589a01780c1e6e8ecc (patch)
treef531a08689d392604366372b92846f680f1ba84d /sys-apps/earlyoom
parentnet-wireless/kismet: bump (diff)
downloadgentoo-f1973678ffeafe0ef3e73c589a01780c1e6e8ecc.tar.gz
gentoo-f1973678ffeafe0ef3e73c589a01780c1e6e8ecc.tar.bz2
gentoo-f1973678ffeafe0ef3e73c589a01780c1e6e8ecc.zip
sys-apps/earlyoom: bump
please our pkgscan overlords Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'sys-apps/earlyoom')
-rw-r--r--sys-apps/earlyoom/Manifest1
-rw-r--r--sys-apps/earlyoom/earlyoom-1.3.ebuild2
-rw-r--r--sys-apps/earlyoom/earlyoom-1.6.1.ebuild47
-rw-r--r--sys-apps/earlyoom/earlyoom-9999.ebuild3
4 files changed, 53 insertions, 0 deletions
diff --git a/sys-apps/earlyoom/Manifest b/sys-apps/earlyoom/Manifest
index ba4f50e46ca3..6987a325711d 100644
--- a/sys-apps/earlyoom/Manifest
+++ b/sys-apps/earlyoom/Manifest
@@ -1 +1,2 @@
DIST earlyoom-1.3.tar.gz 31399 BLAKE2B 3867540afb23493fbb532bcb72a5cfacca4ed297a053ff5e2c7e394bfa3640887e3e7c6430789bc1eda4b7a68680d8a74ab56b641fe9e5d4caa4406e2edb0667 SHA512 c5de742289e82c2098bd88c61dcb3e20eb022905a015b4894c95a4de3978ce18d794a9e7c17c97851ca9f8888728908f7bf978c014b3b69799bffa8b546d258a
+DIST earlyoom-1.6.1.tar.gz 48200 BLAKE2B 559ed59fa24cb05dbc74785eff06e1e4a2772b555fba2c67cda2651cf1c514e842f18cd085905d556e0bd1de238012385eae37953d90a6a5302f7a727be9eb8a SHA512 4f7e2053f6331c1a0c0163952067503da0ea4f09a5650ef4f4d2692530e04cd0841e4fd83fe593d54dc5361d51c86002d93fb9e6ae0f76d669646bd8de9f2065
diff --git a/sys-apps/earlyoom/earlyoom-1.3.ebuild b/sys-apps/earlyoom/earlyoom-1.3.ebuild
index e760a136869a..cae1f13f3b86 100644
--- a/sys-apps/earlyoom/earlyoom-1.3.ebuild
+++ b/sys-apps/earlyoom/earlyoom-1.3.ebuild
@@ -26,6 +26,8 @@ BDEPEND="
test? ( dev-lang/go )
"
+RESTRICT="!test? ( test )"
+
src_prepare() {
eapply "${FILESDIR}/${P}-test-fixed.patch"
default
diff --git a/sys-apps/earlyoom/earlyoom-1.6.1.ebuild b/sys-apps/earlyoom/earlyoom-1.6.1.ebuild
new file mode 100644
index 000000000000..898c4fbac557
--- /dev/null
+++ b/sys-apps/earlyoom/earlyoom-1.6.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd
+
+DESCRIPTION="Early OOM Daemon for Linux"
+HOMEPAGE="https://github.com/rfjakob/earlyoom"
+
+LICENSE="MIT-with-advertising"
+SLOT="0"
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/rfjakob/earlyoom.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/rfjakob/earlyoom/archive/v$PV.tar.gz -> $P.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+IUSE="docs systemd test"
+
+RDEPEND=""
+DEPEND=""
+BDEPEND="
+ docs? ( app-text/pandoc )
+ test? ( dev-lang/go )
+"
+
+#tests don't work
+RESTRICT=test
+
+src_compile() {
+ VERSION="v${PV}" emake earlyoom
+ use docs && VERSION="v${PV}" emake earlyoom.1
+ use systemd && emake PREFIX=/usr earlyoom.service
+}
+
+src_install() {
+ dobin earlyoom
+ use docs && doman earlyoom.1
+
+ insinto /etc/default
+ newins earlyoom.default earlyoom
+
+ doinitd "${FILESDIR}/${PN}"
+ use systemd && systemd_dounit earlyoom.service
+}
diff --git a/sys-apps/earlyoom/earlyoom-9999.ebuild b/sys-apps/earlyoom/earlyoom-9999.ebuild
index b9059f99084c..898c4fbac557 100644
--- a/sys-apps/earlyoom/earlyoom-9999.ebuild
+++ b/sys-apps/earlyoom/earlyoom-9999.ebuild
@@ -26,6 +26,9 @@ BDEPEND="
test? ( dev-lang/go )
"
+#tests don't work
+RESTRICT=test
+
src_compile() {
VERSION="v${PV}" emake earlyoom
use docs && VERSION="v${PV}" emake earlyoom.1