summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-07-18 16:16:32 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-07-18 16:16:45 +0200
commit96ed85b2242f64ddedcab27016fde4ea0a6ceb15 (patch)
tree5bf50a38534981cbf2e0b8ab54d7f6a4146c7285 /net-irc
parentdev-libs/libebml: sparc stable wrt bug #689692 (diff)
downloadgentoo-96ed85b2242f64ddedcab27016fde4ea0a6ceb15.tar.gz
gentoo-96ed85b2242f64ddedcab27016fde4ea0a6ceb15.tar.bz2
gentoo-96ed85b2242f64ddedcab27016fde4ea0a6ceb15.zip
net-irc/rhapsody: Fixed build with sys-libs/ncurses[tinfo]
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/rhapsody/files/rhapsody-0.28b-tinfo.patch147
-rw-r--r--net-irc/rhapsody/rhapsody-0.28b.ebuild29
2 files changed, 163 insertions, 13 deletions
diff --git a/net-irc/rhapsody/files/rhapsody-0.28b-tinfo.patch b/net-irc/rhapsody/files/rhapsody-0.28b-tinfo.patch
new file mode 100644
index 000000000000..834b93165abf
--- /dev/null
+++ b/net-irc/rhapsody/files/rhapsody-0.28b-tinfo.patch
@@ -0,0 +1,147 @@
+https://bugs.gentoo.org/690088
+
+--- rhapsody-0.28b/configure
++++ rhapsody-0.28b/configure
+@@ -66,6 +66,7 @@
+ OSNAME=`uname -o 2>/dev/null`
+ OSVER=`uname -r 2>/dev/null`
+ USER=`whoami 2>/dev/null`
++PKGCONFIG="${PKGCONFIG:-pkg-config}"
+
+ echo "The OS appears to be $OS ($OSNAME) version $OSVER."
+ echo ""
+@@ -75,7 +76,7 @@
+ CCPATH="/usr/bin /usr/local/bin"
+ CURSESPATH="/usr/include /usr/include/ncurses /usr/local/include /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/usr/lib"
+ GCCBASEINCPATHS="-I/usr/include"
+ GCCBASEFLAGS="-g -Wall -Wno-unused"
+@@ -86,12 +87,12 @@
+ CCPATH="/usr/bin /usr/local/bin"
+ CURSESPATH="/usr/include /usr/include/ncurses /usr/local/include /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses -lnsl -lsocket"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses) -lnsl -lsocket"
+ GCCBASELIBPATHS=""
+ GCCBASEINCPATHS="-I/usr/local/include"
+ GCCBASEFLAGS="-g -Wall -Wno-unused"
+
+- CCBASELIBS="-lncurses -lnsl -lsocket"
++ CCBASELIBS="$(${PKGCONFIG} --libs ncurses) -lnsl -lsocket"
+ CCBASELIBPATHS=""
+ CCBASEINCPATHS="-I/usr/local/include"
+ CCBASEFLAGS="-g -Wall"
+@@ -102,7 +103,7 @@
+ CCPATH="/usr/bin /usr/local/bin"
+ CURSESPATH="/sw/include /usr/include /sw/include/ncurses /usr/include/ncurses /usr/local/include /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/sw/lib"
+ GCCBASEINCPATHS="/usr/include /usr/local/include"
+ GCCBASEFLAGS="-g -Wall -Wno-unused -no-cpp-precomp"
+@@ -113,7 +114,7 @@
+ CCPATH="/usr/bin /usr/local/bin"
+ CURSESPATH="/usr/include /usr/include/ncurses /usr/local/include /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/usr/lib"
+ GCCBASEINCPATHS="-I/usr/include"
+ GCCBASEFLAGS="-g -Wall -Wno-unused"
+@@ -124,12 +125,12 @@
+ CCPATH="/usr/freeware/bin /usr/bin"
+ CURSESPATH="/usr/freeware/include/ncurses /usr/include /usr/local/include /usr/include/ncurses /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/usr/freeware/lib64"
+ GCCBASEINCPATHS=""
+ GCCBASEFLAGS="-mabi=64 -g -Wall -Wno-unused"
+
+- CCBASELIBS="-lncurses"
++ CCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ CCBASELIBPATHS=""
+ CCBASEINCPATHS=""
+ CCBASEFLAGS="-mabi=64"
+@@ -140,12 +141,12 @@
+ CCPATH="/usr/freeware/bin /usr/bin"
+ CURSESPATH="/usr/freeware/include/ncurses /usr/include /usr/local/include /usr/include/ncurses /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/usr/freeware/lib32"
+ GCCBASEINCPATHS=""
+ GCCBASEFLAGS="-mabi=n32 -g -Wall -Wno-unused"
+
+- CCBASELIBS="-lncurses"
++ CCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ CCBASELIBPATHS=""
+ CCBASEINCPATHS=""
+ CCBASEFLAGS="-mabi=n32 -g -Wall"
+@@ -156,7 +157,7 @@
+ CCPATH="/boot/develop/bin /bin /usr/bin /usr/local/bin"
+ CURSESPATH="/boot/develop/headers /boot/develop/headers/gnu /boot/home/config/include"
+
+- GCCBASELIBS="-lncurses -lsocket -lbind"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses) -lsocket -lbind"
+ GCCBASELIBPATHS="-L/boot/home/config/lib"
+ GCCBASEINCPATHS="-I/boot/home/config/include"
+ GCCBASEFLAGS="-g -Wall -Wno-unused"
+@@ -172,12 +173,12 @@
+ CCPATH="/bin /usr/bin /usr/local/bin"
+ CURSESPATH="/usr/include /usr/local/include /usr/include/ncurses /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/usr/lib -L/lib -L/usr/local/lib"
+ GCCBASEINCPATHS="-I/usr/local/include"
+ GCCBASEFLAGS="-g -Wall -Wno-unused"
+
+- CCBASELIBS="-lncurses"
++ CCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ CCBASELIBPATHS="-L/usr/lib -L/lib -L/usr/local/lib"
+ CCBASEINCPATHS="-I/usr/local/include"
+ CCBASEFLAGS="-g"
+@@ -188,12 +189,12 @@
+ CCPATH="/bin /usr/bin /usr/local/bin"
+ CURSESPATH="/usr/include /usr/local/include /usr/include/ncurses /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/usr/lib -L/lib -L/usr/local/lib"
+ GCCBASEINCPATHS="-I/usr/include -I/usr/local/include"
+ GCCBASEFLAGS="-g -Wall -Wno-unused"
+
+- CCBASELIBS="-lncurses"
++ CCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ CCBASELIBPATHS="-L/usr/lib -L/lib -L/usr/local/lib"
+ CCBASEINCPATHS="-I/usr/include -I/usr/local/include"
+ CCBASEFLAGS="-g"
+@@ -204,7 +205,7 @@
+ CCPATH="/usr/bin /usr/local/bin"
+ CURSESPATH="/usr/freeware/include/ncurses /usr/include /usr/local/include /usr/include/ncurses /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/usr/lib -L/lib"
+ GCCBASEINCPATHS=""
+ GCCBASEFLAGS="-g -Wall -Wno-unused"
+@@ -217,12 +218,12 @@
+ CCPATH="/bin /sbin /usr/bin /usr/sbin/ /usr/local/bin/ /usr/local/sbin"
+ CURSESPATH="/include /usr/include /include/ncurses /usr/include/ncurses /usr/local/include /usr/local/include/ncurses"
+
+- GCCBASELIBS="-lncurses"
++ GCCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ GCCBASELIBPATHS="-L/usr/lib"
+ GCCBASEINCPATHS="-I/usr/include -I/include"
+ GCCBASEFLAGS=""
+
+- CCBASELIBS="-lncurses"
++ CCBASELIBS="$(${PKGCONFIG} --libs ncurses)"
+ CCBASELIBPATHS="-L/usr/lib"
+ CCBASEINCPATHS="-I/usr/include -I/include"
+ CCBASEFLAGS=""
diff --git a/net-irc/rhapsody/rhapsody-0.28b.ebuild b/net-irc/rhapsody/rhapsody-0.28b.ebuild
index 892b4df67e4a..52d276a3bb78 100644
--- a/net-irc/rhapsody/rhapsody-0.28b.ebuild
+++ b/net-irc/rhapsody/rhapsody-0.28b.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
-inherit toolchain-funcs eutils
+inherit toolchain-funcs
DESCRIPTION="IRC client intended to be displayed on a text console"
HOMEPAGE="http://rhapsody.sourceforge.net/"
@@ -14,25 +14,28 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
-DEPEND=">=sys-libs/ncurses-5.0"
+DEPEND=">=sys-libs/ncurses-5.0:0="
+BDEPEND="virtual/pkgconfig"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+PATCHES=(
+ "${FILESDIR}"/${P}-uclibc.patch
+ "${FILESDIR}"/${P}-tinfo.patch
+)
- epatch "${FILESDIR}"/${P}-uclibc.patch
+src_configure() {
+ PKGCONFIG="$(tc-getPKG_CONFIG)" \
+ ./configure -i /usr/share/rhapsody || die "configure failed"
}
src_compile() {
- ./configure -i /usr/share/rhapsody || die "configure failed"
- emake CC="$(tc-getCC)" LOCALFLAGS="${CFLAGS}" || die "emake failed"
+ emake CC="$(tc-getCC)" LOCALFLAGS="${CFLAGS}"
}
src_install() {
- dobin rhapsody || die "dobin failed"
+ dobin rhapsody
insinto /usr/share/rhapsody/help
- doins help/*.hlp || die "doins failed"
+ doins help/*.hlp
- dodoc docs/CHANGELOG || die "dodoc failed"
+ dodoc docs/CHANGELOG
}