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/fontconfig/fontconfig-2.9.0.ebuild,v 1.2 2012/05/05 08:02:34 jdhore Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/fontconfig-2.9.0.ebuild,v 1.2 2012/05/05 08:02:34 jdhore Exp $ |
4 |
|
4 |
|
5 |
EAPI="4" |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
inherit autotools eutils libtool toolchain-funcs flag-o-matic |
7 |
AUTOTOOLS_AUTORECONF=yes |
|
|
8 |
inherit autotools-multilib toolchain-funcs flag-o-matic |
8 |
|
9 |
|
9 |
DESCRIPTION="A library for configuring and customizing font access" |
10 |
DESCRIPTION="A library for configuring and customizing font access" |
10 |
HOMEPAGE="http://fontconfig.org/" |
11 |
HOMEPAGE="http://fontconfig.org/" |
Lines 18-25
IUSE="doc static-libs"
Link Here
|
18 |
# Purposefully dropped the xml USE flag and libxml2 support. Expat is the |
19 |
# Purposefully dropped the xml USE flag and libxml2 support. Expat is the |
19 |
# default and used by every distro. See bug #283191. |
20 |
# default and used by every distro. See bug #283191. |
20 |
|
21 |
|
21 |
RDEPEND=">=media-libs/freetype-2.2.1 |
22 |
RDEPEND=">=media-libs/freetype-2.2.1[${MULTILIB_USEDEP}] |
22 |
>=dev-libs/expat-1.95.3" |
23 |
>=dev-libs/expat-1.95.3 |
|
|
24 |
!<app-emulation/emul-linux-x86-xlibs-20121202-r1" |
23 |
DEPEND="${RDEPEND} |
25 |
DEPEND="${RDEPEND} |
24 |
virtual/pkgconfig |
26 |
virtual/pkgconfig |
25 |
doc? ( |
27 |
doc? ( |
Lines 29-79
DEPEND="${RDEPEND}
Link Here
|
29 |
PDEPEND="app-admin/eselect-fontconfig |
31 |
PDEPEND="app-admin/eselect-fontconfig |
30 |
virtual/ttf-fonts" |
32 |
virtual/ttf-fonts" |
31 |
|
33 |
|
32 |
src_prepare() { |
34 |
PATCHES=( |
33 |
epatch "${FILESDIR}"/${PN}-2.7.1-latin-reorder.patch # 130466 |
35 |
"${FILESDIR}"/${PN}-2.7.1-latin-reorder.patch # 130466 |
34 |
epatch "${FILESDIR}"/${PN}-2.3.2-docbook.patch # 310157 |
36 |
"${FILESDIR}"/${PN}-2.3.2-docbook.patch # 310157 |
35 |
|
37 |
) |
36 |
eautoreconf |
|
|
37 |
|
38 |
# Needed to get a sane .so versioning on fbsd, please dont drop. |
39 |
# If you have to run eautoreconf, you can also leave the elibtoolize |
40 |
# call as it will be a no-op. |
41 |
elibtoolize |
42 |
} |
43 |
|
38 |
|
44 |
src_configure() { |
39 |
src_configure() { |
45 |
local myconf |
40 |
local myeconfargs=( |
|
|
41 |
$(use_enable doc docs) |
42 |
$(use_enable doc docbook) |
43 |
--localstatedir=/var |
44 |
--with-default-fonts=/usr/share/fonts |
45 |
--with-add-fonts=/usr/local/share/fonts |
46 |
) |
47 |
|
46 |
if tc-is-cross-compiler; then |
48 |
if tc-is-cross-compiler; then |
47 |
myconf="--with-arch=${ARCH}" |
49 |
myeconfargs+=( --with-arch=${ARCH} ) |
48 |
replace-flags -mtune=* -DMTUNE_CENSORED |
50 |
replace-flags -mtune=* -DMTUNE_CENSORED |
49 |
replace-flags -march=* -DMARCH_CENSORED |
51 |
replace-flags -march=* -DMARCH_CENSORED |
50 |
fi |
52 |
fi |
51 |
econf \ |
53 |
|
52 |
$(use_enable static-libs static) \ |
54 |
autotools-multilib_src_configure |
53 |
$(use_enable doc docs) \ |
|
|
54 |
$(use_enable doc docbook) \ |
55 |
--localstatedir=/var \ |
56 |
--with-default-fonts=/usr/share/fonts \ |
57 |
--with-add-fonts=/usr/local/share/fonts \ |
58 |
${myconf} || die |
59 |
} |
55 |
} |
60 |
|
56 |
|
61 |
src_install() { |
57 |
src_install() { |
62 |
emake DESTDIR="${D}" install || die "emake install" |
58 |
autotools-multilib_src_install |
63 |
emake DESTDIR="${D}" -C doc install-man || die "emake install-man" |
|
|
64 |
|
59 |
|
65 |
find "${ED}" -name '*.la' -exec rm -f {} + |
60 |
install_others() { |
|
|
61 |
# stuff installed from build-dir |
62 |
autotools-utils_src_compile \ |
63 |
DESTDIR="${D}" -C doc install-man |
64 |
|
65 |
insinto /etc/fonts |
66 |
doins "${BUILD_DIR}"/fonts.conf |
67 |
} |
68 |
multilib_foreach_abi install_others |
66 |
|
69 |
|
67 |
#fc-lang directory contains language coverage datafiles |
70 |
#fc-lang directory contains language coverage datafiles |
68 |
#which are needed to test the coverage of fonts. |
71 |
#which are needed to test the coverage of fonts. |
69 |
insinto /usr/share/fc-lang |
72 |
insinto /usr/share/fc-lang |
70 |
doins fc-lang/*.orth |
73 |
doins fc-lang/*.orth |
71 |
|
74 |
|
72 |
insinto /etc/fonts |
|
|
73 |
doins "${S}"/fonts.conf |
74 |
|
75 |
dodoc doc/fontconfig-user.{txt,pdf} |
75 |
dodoc doc/fontconfig-user.{txt,pdf} |
76 |
dodoc AUTHORS ChangeLog README |
|
|
77 |
|
76 |
|
78 |
if [[ -e ${D}usr/share/doc/fontconfig/ ]]; then |
77 |
if [[ -e ${D}usr/share/doc/fontconfig/ ]]; then |
79 |
mv "${D}"usr/share/doc/fontconfig/* "${D}"/usr/share/doc/${P} |
78 |
mv "${D}"usr/share/doc/fontconfig/* "${D}"/usr/share/doc/${P} |