View | Details | Raw Unified
Collapse All | Expand All

(-) /home/flame/devel/gentoo-x86/app-text/convertlit/convertlit-1.8.ebuild (-8 / +17 lines)
 Lines 2-7    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/convertlit/convertlit-1.8.ebuild,v 1.8 2005/10/27 00:32:24 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/app-text/convertlit/convertlit-1.8.ebuild,v 1.8 2005/10/27 00:32:24 vapier Exp $
inherit eutils toolchain-funcs
MY_P="clit${PV//./}"
MY_P="clit${PV//./}"
DESCRIPTION="CLit converts MS ebook .lit files to .opf (xml+html+png+jpg)"
DESCRIPTION="CLit converts MS ebook .lit files to .opf (xml+html+png+jpg)"
 Lines 13-34    Link Here 
KEYWORDS="amd64 ppc ~ppc-macos x86"
KEYWORDS="amd64 ppc ~ppc-macos x86"
IUSE=""
IUSE=""
DEPEND="dev-libs/libtommath
RDEPEND="dev-libs/libtommath"
	>=sys-apps/sed-4
DEPEND="${RDEPEND}
	app-arch/unzip"
	app-arch/unzip"
RDEPEND="!app-text/open_c-lit"	# link libtommath statically
RDEPEND="${RDEPEND}
	!app-text/open_c-lit"
S=${WORKDIR}
S=${WORKDIR}
src_unpack() {
	unpack ${A}
	cd ${S}
	epatch "${FILESDIR}/${P}-respectflags.patch"
}
src_compile() {
src_compile() {
	tc-export CC
	cd "${S}"/lib
	cd "${S}"/lib
	sed -i -e "/^CFLAGS/s/-O3 -Wall/${CFLAGS}/" Makefile \
		|| die "sed lib/Makefile failed."
	emake || die "make lib failed"
	emake || die "make lib failed"
	cd "${S}"/${MY_P}
	cd "${S}"/${MY_P}
	sed -i -e "/^CFLAGS/s:-Wall -O2:${CFLAGS}:" \
		-e "s:../libtommath-0.30:/usr/lib:g" Makefile \
		|| die "sed ${MY_P}/Makefile failed."
	emake || die "make ${MY_P} failed"
	emake || die "make ${MY_P} failed"
}
}