Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 334661
Collapse All | Expand All

(-)mu-conference-0.7.ebuild.orig (-6 / +8 lines)
Lines 4-9 Link Here
4
4
5
inherit eutils
5
inherit eutils
6
6
7
EAPI="2"
8
7
DESCRIPTION="Multi-User Chat for jabberd"
9
DESCRIPTION="Multi-User Chat for jabberd"
8
HOMEPAGE="https://gna.org/projects/mu-conference/"
10
HOMEPAGE="https://gna.org/projects/mu-conference/"
9
SRC_URI="http://download.gna.org/mu-conference/${PN}_${PV}.tar.gz"
11
SRC_URI="http://download.gna.org/mu-conference/${PN}_${PV}.tar.gz"
Lines 22-41 Link Here
22
24
23
S="${WORKDIR}/${PN}_${PV}"
25
S="${WORKDIR}/${PN}_${PV}"
24
26
25
src_unpack() {
27
src_configure() {
26
	unpack ${A}
27
	cd "${S}"
28
28
29
	# Fix missing header in src/conference_user.c in order to
29
	# Fix missing header in src/conference_user.c in order to
30
	# make emerge happy and avoid QA notice.
30
	# make emerge happy and avoid QA notice.
31
	sed -i "/conference.h/ i #define _XOPEN_SOURCE" src/conference_user.c
31
	sed -i "/conference.h/ i #define _XOPEN_SOURCE" src/conference_user.c || die "sed failed"
32
32
33
	if use mysql; then
33
	if use mysql; then
34
		sed -i '/^CFLAGS/ a CFLAGS:=$(CFLAGS) -DHAVE_MYSQL' src/Makefile
34
		sed -i '/^CFLAGS/ a CFLAGS:=$(CFLAGS) -DHAVE_MYSQL/' src/Makefile || die "sed failed"
35
	else
35
	else
36
		# Makefile is broken. Should not always link against mysql
36
		# Makefile is broken. Should not always link against mysql
37
		sed -i 's/`mysql_config --libs`//' src/Makefile
37
		sed -i 's/`mysql_config --libs`//' src/Makefile || die "sed failed"
38
	fi
38
	fi
39
	#fix QA respect LDFLAGS ISSUE
40
	sed -i src/Makefile -e 's/LDFLAGS:=/LDFLAGS:=$(LDFLAGS),/' || die "sed LDFLAGS failed"
39
}
41
}
40
42
41
src_compile() {
43
src_compile() {

Return to bug 334661