diff options
author | Sam Jorna <wraeth@gentoo.org> | 2017-01-11 11:22:17 +1100 |
---|---|---|
committer | Sam Jorna <wraeth@gentoo.org> | 2017-01-11 12:49:39 +1100 |
commit | 9181213f899e5621602c17097e28dd181b6ba300 (patch) | |
tree | 464d79076270e6e1d95d2430bae3663f19d477fd /net-irc | |
parent | net-irc/quassel-irssi: bump to snapshot 20170107 (diff) | |
download | gentoo-9181213f899e5621602c17097e28dd181b6ba300.tar.gz gentoo-9181213f899e5621602c17097e28dd181b6ba300.tar.bz2 gentoo-9181213f899e5621602c17097e28dd181b6ba300.zip |
net-irc/quassel-irssi: revbump old vers, fix CFLAGS, CC
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/quassel-irssi/quassel-irssi-0_p20160412-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-irc/quassel-irssi/quassel-irssi-0_p20160412-r1.ebuild b/net-irc/quassel-irssi/quassel-irssi-0_p20160412-r1.ebuild new file mode 100644 index 000000000000..c564e456f1aa --- /dev/null +++ b/net-irc/quassel-irssi/quassel-irssi-0_p20160412-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit toolchain-funcs + +# https://github.com/phhusson/quassel-irssi/pull/10 if accepted will +# allow QuasselC to be installed as a separate package. +QC_VER="0_p20150406" + +DESCRIPTION="Irssi module to connect to Quassel cores." +HOMEPAGE="https://github.com/phhusson/quassel-irssi/" +SRC_URI="https://dev.gentoo.org/~wraeth/distfiles/${P}.tar.gz + https://dev.gentoo.org/~wraeth/distfiles/quasselc-${QC_VER}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="net-irc/irssi" +RDEPEND="${DEPEND}" + +src_prepare() { + mv "${WORKDIR}"/quasselc-"${QC_VER}"/* "${S}"/core/lib/ || die + default + + sed -e 's:^CFLAGS=:CFLAGS+=$(IRSSI_CFLAGS) :' \ + -e 's:gcc -shared:$(CC) -shared:' \ + -e "s:pkg-config:$(tc-getPKG_CONFIG):" \ + -i "${S}/core/Makefile" || die + + tc-export CC +} + +src_compile() { + emake IRSSI_LIB="${ROOT}/usr/$(get_libdir)/irssi" -C core +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="${ROOT}usr/$(get_libdir)" -C core install + default +} + +pkg_postinst() { + elog "Note that this requires additional configuration of your irssi client. See" + elog " ${ROOT}usr/share/doc/${P}/README.md.bz2'" + elog "for instructions." +} |