summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-18 23:03:57 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-18 23:03:57 +0200
commitad042f68fd8a86f53633b7ec6c953483f6a47b82 (patch)
treecd1ead806e2e360ebcd296cc84c5298a61adc850 /app-text/reed/reed-5.4-r1.ebuild
parentapp-office/sc: add pkgconfig or pkgconfig-referenced libs deps (diff)
downloadgentoo-ad042f68fd8a86f53633b7ec6c953483f6a47b82.tar.gz
gentoo-ad042f68fd8a86f53633b7ec6c953483f6a47b82.tar.bz2
gentoo-ad042f68fd8a86f53633b7ec6c953483f6a47b82.zip
app-text/reed: add pkgconfig or pkgconfig-referenced libs deps
Add dependencies for either virtual/pkgconfig, move it into BDEPEND where applicable, or add dependencies for libraries we're trying to find with pkgconfig. Package-Manager: Portage-3.0.18-prefix, Repoman-3.0.3 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-text/reed/reed-5.4-r1.ebuild')
-rw-r--r--app-text/reed/reed-5.4-r1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/app-text/reed/reed-5.4-r1.ebuild b/app-text/reed/reed-5.4-r1.ebuild
new file mode 100644
index 000000000000..65801c720fc7
--- /dev/null
+++ b/app-text/reed/reed-5.4-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="This is a text pager (text file viewer), used to display etexts"
+# Homepage http://www.sacredchao.net/software/reed/index.shtml does not exist.
+HOMEPAGE="http://web.archive.org/web/20040217010815/www.sacredchao.net/software/reed/"
+SRC_URI="http://www.sacredchao.net/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="sys-libs/ncurses:="
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS BUGS NEWS README )
+
+src_prepare() {
+ default
+
+ sed -e 's;-O2;$(CFLAGS) $(LDFLAGS);' \
+ -e 's: wrap::' \
+ -e 's:-s reed:reed:' \
+ -e "s:-lcurses:$($(tc-getPKG_CONFIG) --libs ncurses):g" \
+ -i Makefile.in || die
+
+ # Collision with talkfilters, bug #247396
+ rm wrap.1 || die
+
+ tc-export CC
+}
+
+src_configure() {
+ ./configures --prefix=/usr || die
+}