Lines 2-10
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.4.11.ebuild,v 1.9 2013/01/28 12:21:52 pinkbyte Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.4.11.ebuild,v 1.9 2013/01/28 12:21:52 pinkbyte Exp $ |
4 |
|
4 |
|
5 |
EAPI="4" |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic libtool multilib |
7 |
inherit autotools-multilib flag-o-matic multilib |
8 |
|
8 |
|
9 |
DESCRIPTION="A high-quality and portable font engine" |
9 |
DESCRIPTION="A high-quality and portable font engine" |
10 |
HOMEPAGE="http://www.freetype.org/" |
10 |
HOMEPAGE="http://www.freetype.org/" |
Lines 24-30
DEPEND="sys-libs/zlib
Link Here
|
24 |
x11-libs/libXau |
24 |
x11-libs/libXau |
25 |
x11-libs/libXdmcp )" |
25 |
x11-libs/libXdmcp )" |
26 |
RDEPEND="${DEPEND} |
26 |
RDEPEND="${DEPEND} |
27 |
infinality? ( media-libs/fontconfig-infinality )" |
27 |
infinality? ( media-libs/fontconfig-infinality ) |
|
|
28 |
!<app-emulation/emul-linux-x86-xlibs-20121202-r1" |
28 |
|
29 |
|
29 |
src_prepare() { |
30 |
src_prepare() { |
30 |
enable_option() { |
31 |
enable_option() { |
Lines 70-75
src_prepare() {
Link Here
|
70 |
|
71 |
|
71 |
epatch "${FILESDIR}"/${P}-auto-hinter_compile_fix.patch # 453956 |
72 |
epatch "${FILESDIR}"/${P}-auto-hinter_compile_fix.patch # 453956 |
72 |
|
73 |
|
|
|
74 |
# for our variable use, includedir needs to go after libdir |
75 |
# so swap the two lines |
76 |
sed -i -n -e '/@includedir@/{x;n;p;x};p' builds/unix/freetype-config.in || die |
77 |
|
73 |
if use utils; then |
78 |
if use utils; then |
74 |
cd "${WORKDIR}/ft2demos-${PV}" |
79 |
cd "${WORKDIR}/ft2demos-${PV}" |
75 |
sed -i -e "s:\.\.\/freetype2$:../freetype-${PV}:" Makefile || die |
80 |
sed -i -e "s:\.\.\/freetype2$:../freetype-${PV}:" Makefile || die |
Lines 79-86
src_prepare() {
Link Here
|
79 |
fi |
84 |
fi |
80 |
fi |
85 |
fi |
81 |
|
86 |
|
82 |
elibtoolize |
87 |
autotools-utils_src_prepare |
83 |
epunt_cxx |
|
|
84 |
} |
88 |
} |
85 |
|
89 |
|
86 |
src_configure() { |
90 |
src_configure() { |
Lines 92-104
src_configure() {
Link Here
|
92 |
sed -i -e "1s:^#![[:space:]]*/bin/sh:#!$CONFIG_SHELL:" \ |
96 |
sed -i -e "1s:^#![[:space:]]*/bin/sh:#!$CONFIG_SHELL:" \ |
93 |
"${S}"/builds/unix/configure |
97 |
"${S}"/builds/unix/configure |
94 |
|
98 |
|
95 |
econf \ |
99 |
|
96 |
$(use_enable static-libs static) \ |
100 |
local myeconfargs=( |
|
|
101 |
# expanded by make |
102 |
--includedir='${libdir}/freetype2/include' |
97 |
$(use_with bzip2) |
103 |
$(use_with bzip2) |
|
|
104 |
) |
105 |
|
106 |
autotools-multilib_src_configure |
98 |
} |
107 |
} |
99 |
|
108 |
|
100 |
src_compile() { |
109 |
src_compile() { |
101 |
emake |
110 |
autotools-multilib_src_compile |
102 |
|
111 |
|
103 |
if use utils; then |
112 |
if use utils; then |
104 |
einfo "Building utils" |
113 |
einfo "Building utils" |
Lines 109-115
src_compile() {
Link Here
|
109 |
} |
118 |
} |
110 |
|
119 |
|
111 |
src_install() { |
120 |
src_install() { |
112 |
emake DESTDIR="${D}" install |
121 |
autotools-multilib_src_install |
113 |
|
122 |
|
114 |
if use utils; then |
123 |
if use utils; then |
115 |
einfo "Installing utils" |
124 |
einfo "Installing utils" |
Lines 130-140
src_install() {
Link Here
|
130 |
done |
139 |
done |
131 |
fi |
140 |
fi |
132 |
|
141 |
|
133 |
prune_libtool_files |
|
|
134 |
|
135 |
dodoc ChangeLog README |
136 |
dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO} |
142 |
dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO} |
137 |
|
|
|
138 |
use doc && dohtml -r docs/* |
143 |
use doc && dohtml -r docs/* |
139 |
|
|
|
140 |
} |
144 |
} |