summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2022-02-19 22:54:22 +0100
committerCédric Krier <cedk@gentoo.org>2022-02-19 22:54:44 +0100
commit3f1b7f4633eaf24ef6f9c60c4c40fe07010a8f35 (patch)
tree2275b6449d1426ad120014446c3f282b48eab40a /net-news/sfeed
parentapp-containers/cosign: remove vulnerable versions (diff)
downloadgentoo-3f1b7f4633eaf24ef6f9c60c4c40fe07010a8f35.tar.gz
gentoo-3f1b7f4633eaf24ef6f9c60c4c40fe07010a8f35.tar.bz2
gentoo-3f1b7f4633eaf24ef6f9c60c4c40fe07010a8f35.zip
net-news/sfeed: new ebuild
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Cédric Krier <cedk@gentoo.org>
Diffstat (limited to 'net-news/sfeed')
-rw-r--r--net-news/sfeed/Manifest1
-rw-r--r--net-news/sfeed/metadata.xml7
-rw-r--r--net-news/sfeed/sfeed-1.2.ebuild48
3 files changed, 56 insertions, 0 deletions
diff --git a/net-news/sfeed/Manifest b/net-news/sfeed/Manifest
new file mode 100644
index 000000000000..a528a160f8c9
--- /dev/null
+++ b/net-news/sfeed/Manifest
@@ -0,0 +1 @@
+DIST sfeed-1.2.tar.gz 62575 BLAKE2B 080ef555e9ea6711ec1eea296c15dc11d937035742d32096f28ee4b4023c9cd4fcd0f7b59807cfdbfaa82c5f2bd7d51045caabcf33e72f2fd193c82885547cf3 SHA512 4307f11ab02310a881717d99892486152dad93ecb1d6526401e60d6275c1610d90599de9784d9878f9ebb5aa34881abd1daa348c977d9ef6758095be74216a29
diff --git a/net-news/sfeed/metadata.xml b/net-news/sfeed/metadata.xml
new file mode 100644
index 000000000000..05c7cc05fd2c
--- /dev/null
+++ b/net-news/sfeed/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>cedk@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-news/sfeed/sfeed-1.2.ebuild b/net-news/sfeed/sfeed-1.2.ebuild
new file mode 100644
index 000000000000..d4f43e5c5c2b
--- /dev/null
+++ b/net-news/sfeed/sfeed-1.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="simple RSS and Atom parser"
+HOMEPAGE="https://codemadness.org/sfeed-simple-feed-parser.html"
+SRC_URI="https://codemadness.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="ncurses"
+
+DEPEND="ncurses? ( sys-libs/ncurses )"
+RDEPEND="${DEPEND}
+ net-misc/curl
+ sys-apps/coreutils
+ sys-libs/glibc
+ virtual/awk
+ www-client/lynx
+ x11-misc/xclip
+ x11-misc/xdg-utils"
+BDEPEND=""
+
+src_compile() {
+ if use ncurses; then
+ emake \
+ CC=$(tc-getCC) \
+ LDFLAGS="$LDFLAGS -lcurses -ltinfo"
+ else
+ emake \
+ CC=$(tc-getCC) \
+ SFEED_CURSES=""
+ fi
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ MANPREFIX="${EPREFIX}/usr/share/man" \
+ DOCPREFIX="${EPREFIX}/usr/share/doc/${P}" \
+ SFEED_CURSES=$(usex ncurses "sfeed_curses" "") \
+ install
+}