2020-04-28 12:51:03 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="An irssi plugin providing Jabber/XMPP support"
|
|
|
|
HOMEPAGE="https://cybione.org/~irssi-xmpp/"
|
|
|
|
SRC_URI="https://github.com/cdidier/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
2020-08-30 14:02:58 +03:00
|
|
|
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-musl-build.patch"
|
2020-04-28 12:51:03 +03:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
|
2020-08-30 14:02:58 +03:00
|
|
|
BDEPEND="virtual/pkgconfig"
|
2020-04-28 12:51:03 +03:00
|
|
|
DEPEND="
|
|
|
|
net-irc/irssi
|
|
|
|
net-libs/loudmouth
|
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
2020-08-30 14:02:58 +03:00
|
|
|
|
|
|
|
eapply "${DISTDIR}/${PN}-0.54-musl-build.patch"
|
|
|
|
|
2020-04-28 12:51:03 +03:00
|
|
|
sed -e "s/{MAKE} doc-install/{MAKE}/" \
|
|
|
|
-i Makefile || die #322355
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2020-08-30 14:02:58 +03:00
|
|
|
emake PREFIX=/usr CC="$(tc-getCC)"
|
2020-04-28 12:51:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2020-08-30 14:02:58 +03:00
|
|
|
emake DESTDIR="${ED}" PREFIX=/usr IRSSI_LIB=/usr/$(get_libdir)/irssi install
|
2020-04-28 12:51:03 +03:00
|
|
|
dodoc README.md NEWS TODO docs/*
|
|
|
|
}
|