--- mu-conference-0.7.ebuild.orig 2010-08-27 11:58:56.000000000 -0400 +++ mu-conference-0.7.ebuild 2010-08-27 11:57:23.000000000 -0400 @@ -4,6 +4,8 @@ inherit eutils +EAPI="2" + DESCRIPTION="Multi-User Chat for jabberd" HOMEPAGE="https://gna.org/projects/mu-conference/" SRC_URI="http://download.gna.org/mu-conference/${PN}_${PV}.tar.gz" @@ -22,20 +24,20 @@ S="${WORKDIR}/${PN}_${PV}" -src_unpack() { - unpack ${A} - cd "${S}" +src_configure() { # Fix missing header in src/conference_user.c in order to # make emerge happy and avoid QA notice. - sed -i "/conference.h/ i #define _XOPEN_SOURCE" src/conference_user.c + sed -i "/conference.h/ i #define _XOPEN_SOURCE" src/conference_user.c || die "sed failed" if use mysql; then - sed -i '/^CFLAGS/ a CFLAGS:=$(CFLAGS) -DHAVE_MYSQL' src/Makefile + sed -i '/^CFLAGS/ a CFLAGS:=$(CFLAGS) -DHAVE_MYSQL/' src/Makefile || die "sed failed" else # Makefile is broken. Should not always link against mysql - sed -i 's/`mysql_config --libs`//' src/Makefile + sed -i 's/`mysql_config --libs`//' src/Makefile || die "sed failed" fi + #fix QA respect LDFLAGS ISSUE + sed -i src/Makefile -e 's/LDFLAGS:=/LDFLAGS:=$(LDFLAGS),/' || die "sed LDFLAGS failed" } src_compile() {