summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-news/snownews')
-rw-r--r--net-news/snownews/Manifest4
-rw-r--r--net-news/snownews/files/snownews-1.9-no-which.patch30
-rw-r--r--net-news/snownews/metadata.xml6
-rw-r--r--net-news/snownews/snownews-1.5.12-r1.ebuild60
-rw-r--r--net-news/snownews/snownews-1.5.13.ebuild49
-rw-r--r--net-news/snownews/snownews-1.6.10.ebuild51
-rw-r--r--net-news/snownews/snownews-1.9-r1.ebuild50
-rw-r--r--net-news/snownews/snownews-1.9.ebuild44
8 files changed, 128 insertions, 166 deletions
diff --git a/net-news/snownews/Manifest b/net-news/snownews/Manifest
index b02eb1a6c4a1..9efa8c2cb418 100644
--- a/net-news/snownews/Manifest
+++ b/net-news/snownews/Manifest
@@ -1,3 +1 @@
-DIST snownews-1.5.12.tar.gz 167944 BLAKE2B c629bfa53860a031a6afd3a82d44747e61780b03e5a74bb9db4b8c22b441870a8345317d901ddaf42de62aee54685d6329c49343821005ea211c1e17932bf755 SHA512 7a7ccd5ea57f8bbb73f1429ab931a38203e858c74a383c5347e66088b84f6a7240feeee99e179687ce0a7a89c6c1406ce20d6c5d6771d25a0a0301fa5526e220
-DIST snownews-1.5.13.tar.gz 199931 BLAKE2B 1e68fb46a0fdcea67281adb5334b4e90cb4b520b9d54dafc05e181c5f3ea1f552b80d4835fb0d0d00d2efc8d8cecf0554b547a4e029de49ecc01fb7dc2722c0e SHA512 dd91968141a44f4277eb9f333a5fe06c60805aae6fe36900cde55b85afc254aaca48d06e86b1e9d65b6bcaea76ca162d75d2160f46cb15539776a3f29f990963
-DIST snownews-1.6.10.tar.gz 189715 BLAKE2B 0456faa526b21d06c5a7fe70f52cffbb3c7d977afcc4a5bc80179fd928b9c00d0674d44a64342a469a1cbccd3a1e0264ecadc1065f5a85965d9ef76fc3d3d896 SHA512 df90c3c55da8d11b2936075aab86f66f54f9a6ace0cbe0db54d0e6177ae71e28ab3c700d79b521d55859bb94ef7ecc89e3eb69f215eb9f7286d30cc4e2bec078
+DIST snownews-1.9.tar.gz 149935 BLAKE2B 331c94964a617871df8ab0ed7c8b36acea9386e7cb5057232dc5e93d148f04b56e64af96b9a212469115592d4509cba641bf183e927bddc9e12baff9f3936f20 SHA512 f833dbb41b5c0215c034b8388d787398360fac0ec9670f8f31b76c3ee2ffd974b4c6ebebc30aebb539b9904f513628124b393f4f473a92d4969f483caeca8596
diff --git a/net-news/snownews/files/snownews-1.9-no-which.patch b/net-news/snownews/files/snownews-1.9-no-which.patch
new file mode 100644
index 000000000000..84335e93711b
--- /dev/null
+++ b/net-news/snownews/files/snownews-1.9-no-which.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/844901
+--- a/configure
++++ b/configure
+@@ -164,7 +164,7 @@ s/@builddir@/\$\{TMPDIR\}\/make/g"
+
+ #### Find programs and libs ##########################################
+
+-# Programs found using which
++# Programs found using command -v
+ for i in $progs; do
+ pname=$(expr $i : '\([^=]*\)')
+ pcall=$(expr $i : '[^=]*=\([^=]*\)')
+@@ -172,7 +172,7 @@ for i in $progs; do
+ # First check if an environment variable is set
+ [ -n "$ppath" ] && sub "s/@$pname@/$ppath/g"
+ # Check if the program exists
+- ppath=$(which $pcall 2>/dev/null)
++ ppath=$(command -v $pcall 2>/dev/null)
+ [ -n "$ppath" ] && [ -x "$ppath" ] && sub "s/@$pname@/$pcall/g"
+ done
+ # If nothing found in first loop, set the first pair anyway
+@@ -183,7 +183,7 @@ for i in $progs; do
+ done
+
+ # Packages found using pkg-config
+-pkgconfig=$(which pkg-config 2>/dev/null)
++pkgconfig=$(command -v pkg-config 2>/dev/null)
+ if [ -n "$pkgconfig" ] && [ -x "$pkgconfig" ]; then
+ faildeps=""
+ for i in $pkgs; do
diff --git a/net-news/snownews/metadata.xml b/net-news/snownews/metadata.xml
index e8523f5eab18..8d9ea378941f 100644
--- a/net-news/snownews/metadata.xml
+++ b/net-news/snownews/metadata.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
+ <maintainer type="person" proxied="yes">
<email>gentoo@culot.org</email>
<name>Frederic Culot</name>
</maintainer>
- <maintainer type="project">
+ <maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
diff --git a/net-news/snownews/snownews-1.5.12-r1.ebuild b/net-news/snownews/snownews-1.5.12-r1.ebuild
deleted file mode 100644
index fcc9eb54801c..000000000000
--- a/net-news/snownews/snownews-1.5.12-r1.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Snownews, a text-mode RSS/RDF newsreader"
-HOMEPAGE="https://kiza.eu/software/snownews/"
-SRC_URI="https://kiza.eu/media/software/snownews/${P}.tar.gz"
-LICENSE="GPL-2"
-
-SLOT="0"
-KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
-IUSE="unicode"
-
-COMMON_DEPEND="
- >=dev-libs/libxml2-2.5.6
- >=sys-libs/ncurses-5.3[unicode?]
- dev-libs/openssl
-"
-RDEPEND="
- ${COMMON_DEPEND}
- dev-perl/XML-LibXML
- dev-perl/libwww-perl
-"
-
-DEPEND="
- ${COMMON_DEPEND}
- virtual/pkgconfig
-"
-
-src_prepare() {
- sed -i -e "s|-O2||g" configure || die
- sed -i -e 's|$(INSTALL) -s|$(INSTALL)|g' Makefile || die
-}
-
-src_configure() {
- tc-export PKG_CONFIG
- if use unicode; then
- sed -i -e 's|-lncurses|`\\$(PKG_CONFIG) --libs ncursesw`|' configure || die
- else
- sed -i -e 's|-lncurses|`\\$(PKG_CONFIG) --libs ncurses`|' configure || die
- fi
-
- # perl script, not autotools based
- ./configure --prefix="${EPREFIX}/usr" || die
-}
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- EXTRA_CFLAGS="${CFLAGS}" \
- EXTRA_LDFLAGS="${LDFLAGS}"
-}
-
-src_install() {
- emake PREFIX="${ED}/usr" install
-
- dodoc AUTHOR Changelog CREDITS README README.de README.patching
-}
diff --git a/net-news/snownews/snownews-1.5.13.ebuild b/net-news/snownews/snownews-1.5.13.ebuild
deleted file mode 100644
index 93c384ef1664..000000000000
--- a/net-news/snownews/snownews-1.5.13.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit autotools toolchain-funcs
-
-DESCRIPTION="Command-line RSS feed reader"
-HOMEPAGE="https://github.com/kouya/snownews"
-SRC_URI="https://github.com/kouya/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
-IUSE="unicode"
-
-COMMON_DEPEND="
- >=dev-libs/libxml2-2.5.6
- >=sys-libs/ncurses-5.3:0=[unicode?]
- dev-libs/openssl:0=
-"
-RDEPEND="
- ${COMMON_DEPEND}
- dev-perl/XML-LibXML
- dev-perl/libwww-perl
-"
-
-DEPEND="
- ${COMMON_DEPEND}
- virtual/pkgconfig
-"
-
-src_prepare() {
- default
- tc-export PKG_CONFIG
- sed -i 's|-lncurses|`\\$(PKG_CONFIG) --libs '"$(usex unicode ncursesw ncurses)"'`|' configure || die
- sed -i 's|$(INSTALL) -s snownews|$(INSTALL) snownews|' Makefile || die
-}
-
-src_configure() {
- # perl script, not autotools based
- ./configure --prefix="${EPREFIX}/usr" || die
-}
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- EXTRA_CFLAGS="${CFLAGS}" \
- EXTRA_LDFLAGS="${LDFLAGS}"
-}
diff --git a/net-news/snownews/snownews-1.6.10.ebuild b/net-news/snownews/snownews-1.6.10.ebuild
deleted file mode 100644
index f0c7c765c20e..000000000000
--- a/net-news/snownews/snownews-1.6.10.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit autotools toolchain-funcs
-
-DESCRIPTION="Command-line RSS feed reader"
-HOMEPAGE="https://github.com/kouya/snownews"
-SRC_URI="https://github.com/kouya/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
-IUSE=""
-
-COMMON_DEPEND="
- >=dev-libs/libxml2-2.5.6
- >=sys-libs/ncurses-5.3:0=[unicode]
-"
-RDEPEND="
- ${COMMON_DEPEND}
- dev-perl/XML-LibXML
- dev-perl/libwww-perl
-"
-
-DEPEND="
- ${COMMON_DEPEND}
-"
-
-BDEPEND="virtual/pkgconfig"
-
-src_prepare() {
- default
- tc-export PKG_CONFIG
- local libs=$(${PKG_CONFIG} --libs ncursesw)
- sed -i "s|-lncursesw\?|${libs}|" configure Config.mk.in || die
- sed -i 's|$(INSTALL) -s snownews|$(INSTALL) snownews|' Makefile || die
-}
-
-src_configure() {
- tc-export PKG_CONFIG
- # perl script, not autotools based
- ./configure --prefix="${D}${EPREFIX}/usr" || die
-}
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- EXTRA_CFLAGS="${CFLAGS}" \
- EXTRA_LDFLAGS="${LDFLAGS}"
-}
diff --git a/net-news/snownews/snownews-1.9-r1.ebuild b/net-news/snownews/snownews-1.9-r1.ebuild
new file mode 100644
index 000000000000..da5e7bfd6e0a
--- /dev/null
+++ b/net-news/snownews/snownews-1.9-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Command-line RSS feed reader"
+HOMEPAGE="https://github.com/msharov/snownews"
+SRC_URI="https://github.com/msharov/snownews/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+RDEPEND="
+ dev-libs/libxml2
+ dev-libs/openssl:=
+ net-misc/curl
+ sys-libs/ncurses:=[unicode(+)]
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9-no-which.patch
+)
+
+src_prepare() {
+ default
+
+ tc-export CC
+
+ # Disable stripping in the build system - leave it to the package manager
+ sed -i -e '/ldflags/s/-s/-g -rdynamic/' -e '/cflags/s/-g0/-g/' Config.mk.in || die
+}
+
+src_configure() {
+ econf "$(use_with debug)"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
diff --git a/net-news/snownews/snownews-1.9.ebuild b/net-news/snownews/snownews-1.9.ebuild
new file mode 100644
index 000000000000..71d5ec48aa08
--- /dev/null
+++ b/net-news/snownews/snownews-1.9.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Command-line RSS feed reader"
+HOMEPAGE="https://github.com/msharov/snownews"
+SRC_URI="https://github.com/msharov/snownews/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+RDEPEND="
+ dev-libs/libxml2
+ dev-libs/openssl:=
+ net-misc/curl
+ sys-libs/ncurses:=[unicode(+)]
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ default
+
+ # Disable stripping in the build system - leave it to the package manager
+ sed -i -e '/ldflags/s/-s/-g -rdynamic/' -e '/cflags/s/-g0/-g/' Config.mk.in || die
+}
+
+src_configure() {
+ econf "$(use_with debug)"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}