Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 334861 | Differences between
and this patch

Collapse All | Expand All

(-)irssi-xmpp-0.50.ebuild (-15 / +9 lines)
Lines 4-10 Link Here
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
inherit toolchain-funcs
7
inherit eutils toolchain-funcs multilib
8
8
9
DESCRIPTION="An irssi plugin providing Jabber/XMPP support"
9
DESCRIPTION="An irssi plugin providing Jabber/XMPP support"
10
HOMEPAGE="http://cybione.org/~irssi-xmpp/"
10
HOMEPAGE="http://cybione.org/~irssi-xmpp/"
Lines 20-40 Link Here
20
RDEPEND="${DEPEND}"
20
RDEPEND="${DEPEND}"
21
21
22
src_prepare() {
22
src_prepare() {
23
	# Patch config.mk to include local CFLAGS and LDFLAGS.
23
	epatch "${FILESDIR}"/${P}-build_system.patch \
24
	# Those can probably be removed after 0.50 since upstream fixed it.
24
		"${FILESDIR}"/${P}-implicit_conversion.patch
25
	# Also set PREFIX and CC to the values we prefer.
25
}
26
	sed -i \
26
27
		-e "s#^CFLAGS = #CFLAGS = ${CFLAGS} #" \
27
src_compile() {
28
		-e "s#^LDFLAGS = #LDFLAGS = ${LDFLAGS} #" \
28
	emake PREFIX="/usr" CC="$(tc-getCC)" || die
29
		-e "/^PREFIX ?\\?= /cPREFIX = /usr" \
30
		-e "/^CC = /cCC = $(tc-getCC)" \
31
		config.mk || die "patching config.mk failed"
32
	# Patch Makefile to remove /irssi-xmpp suffix for docs.
33
	sed -i -e 's#\${IRSSI_DOC}/irssi-xmpp$#${IRSSI_DOC}#' \
34
		Makefile || die "patching Makefile failed"
35
}
29
}
36
30
37
src_install() {
31
src_install() {
38
	emake DESTDIR="${D}" IRSSI_DOC="/usr/share/doc/${PF}" \
32
	emake DESTDIR="${D}" PREFIX="/usr" IRSSI_LIB="/usr/$(get_libdir)/irssi" \
39
		install || die "install failed"
33
		IRSSI_DOC="/usr/share/doc/${PF}" install || die
40
}
34
}

Return to bug 334861