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

Collapse All | Expand All

(-)/usr/portage/media-libs/freetype/freetype-2.1.5-r1.ebuild.orig (-2 / +46 lines)
Lines 2-8 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/media-libs/freetype/freetype-2.1.5-r1.ebuild,v 1.21 2005/01/17 03:28:35 vapier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.5-r1.ebuild,v 1.21 2005/01/17 03:28:35 vapier Exp $
4
4
5
inherit eutils flag-o-matic gnuconfig libtool
5
inherit eutils flag-o-matic gnuconfig libtool multilib
6
6
7
DESCRIPTION="A high-quality and portable font engine"
7
DESCRIPTION="A high-quality and portable font engine"
8
HOMEPAGE="http://www.freetype.org/"
8
HOMEPAGE="http://www.freetype.org/"
Lines 14-20 Link Here
14
IUSE="zlib bindist cjk doc"
14
IUSE="zlib bindist cjk doc"
15
15
16
DEPEND="virtual/libc
16
DEPEND="virtual/libc
17
	zlib? ( sys-libs/zlib )"
17
	zlib? ( sys-libs/zlib )
18
	!app-emulation/emul-linux-x86-baselibs"
18
19
19
src_unpack() {
20
src_unpack() {
20
	local SPV="`echo ${PV} | cut -d. -f1,2`"
21
	local SPV="`echo ${PV} | cut -d. -f1,2`"
Lines 28-36 Link Here
28
	gnuconfig_update ${S}
29
	gnuconfig_update ${S}
29
	uclibctoolize
30
	uclibctoolize
30
	epunt_cxx
31
	epunt_cxx
32
33
	if use amd64 && has_multilib_profile; then
34
		cp -ar ${S} ${S}-x86
35
		mv ${S} ${S}-amd64
36
	fi
31
}
37
}
32
38
33
src_compile() {
39
src_compile() {
40
	if use amd64 && has_multilib_profile; then
41
		local OABI=${ABI}
42
		local OPWD=$PWD
43
		ABI="x86"
44
		cd ${S}-x86
45
		src_compile-multilib
46
		ABI="amd64"
47
		cd ${S}-amd64
48
		src_compile-multilib
49
		cd ${OPWD}
50
		ABI=${OABI}
51
		unset OPWD
52
		unset OABI
53
	else
54
		src_compile-multilib
55
	fi
56
}
57
58
src_compile-multilib() {
34
	use bindist || append-flags -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
59
	use bindist || append-flags -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
35
60
36
	make setup CFG="--host=${CHOST} --prefix=/usr `use_with zlib` --libdir=/usr/$(get_libdir)" unix || die
61
	make setup CFG="--host=${CHOST} --prefix=/usr `use_with zlib` --libdir=/usr/$(get_libdir)" unix || die
Lines 46-51 Link Here
46
}
71
}
47
72
48
src_install() {
73
src_install() {
74
	if use amd64 && has_multilib_profile; then
75
		local OABI=${ABI}
76
		local OPWD=$PWD
77
		ABI="x86"
78
		cd ${S}-x86
79
		src_install-multilib
80
		ABI="amd64"
81
		cd ${S}-amd64
82
		src_install-multilib
83
		cd ${OPWD}
84
		ABI=${OABI}
85
		unset OPWD
86
		unset OABI
87
	else
88
		src_install-multilib
89
	fi
90
}
91
92
src_install-multilib() {
49
	einstall libdir="${D}/usr/$(get_libdir)" || die
93
	einstall libdir="${D}/usr/$(get_libdir)" || die
50
94
51
	dodoc ChangeLog README
95
	dodoc ChangeLog README

Return to bug 83811