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

Collapse All | Expand All

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

Return to bug 126851