/[gentoo-x86]/media-gfx/graphite2/graphite2-1.1.2.ebuild
Gentoo

Contents of /media-gfx/graphite2/graphite2-1.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed May 23 08:49:11 2012 UTC (2 years, 3 months ago) by scarabeus
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable on amd64, x86 and ppc. Remove overshadowed.

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/graphite2/graphite2-1.1.2.ebuild,v 1.2 2012/04/26 07:30:23 scarabeus Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="test? 2"
8 inherit base cmake-utils perl-module python
9
10 DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems"
11 HOMEPAGE="http://graphite.sil.org/"
12 SRC_URI="mirror://sourceforge/silgraphite/${PN}/${P}.tgz"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
17 IUSE="perl test"
18
19 RDEPEND="
20 perl? ( dev-lang/perl )
21 "
22 DEPEND="${RDEPEND}
23 perl? ( virtual/perl-Module-Build )
24 test? (
25 dev-libs/glib:2
26 media-libs/fontconfig
27 media-libs/silgraphite
28 )
29 "
30
31 PATCHES=(
32 "${FILESDIR}/${PN}-1.1.0-includes-libs-perl.patch"
33 "${FILESDIR}/${PN}-fix_wrong_linker_opts.patch"
34 "${FILESDIR}/${PN}-1.0.2-no_harfbuzz_tests.patch"
35 "${FILESDIR}/${PN}-1.0.3-no-test-binaries.patch"
36 )
37
38 pkg_setup() {
39 use perl && perl-module_pkg_setup
40 if use test; then
41 python_set_active_version 2
42 python_pkg_setup
43 fi
44 }
45
46 src_prepare() {
47 base_src_prepare
48
49 # fix perl linking
50 if use perl; then
51 _check_build_dir init
52 sed -i \
53 -e "s:@BUILD_DIR@:\"${CMAKE_BUILD_DIR}/src\":" \
54 contrib/perl/Build.PL || die
55 fi
56
57 # make tests optional
58 if ! use test; then
59 sed -i \
60 -e '/tests/d' \
61 CMakeLists.txt || die
62 fi
63 }
64
65 src_configure() {
66 local mycmakeargs=(
67 "-DVM_MACHINE_TYPE=direct"
68 )
69
70 cmake-utils_src_configure
71 }
72
73 src_compile() {
74 cmake-utils_src_compile
75 if use perl; then
76 cd contrib/perl
77 perl-module_src_prep
78 perl-module_src_compile
79 fi
80 }
81
82 src_test() {
83 cmake-utils_src_test
84 if use perl; then
85 cd contrib/perl
86 perl-module_src_test
87 fi
88 }
89
90 src_install() {
91 cmake-utils_src_install
92 if use perl; then
93 cd contrib/perl
94 perl-module_src_install
95 fixlocalpod
96 fi
97
98 find "${ED}" -name '*.la' -exec rm -f {} +
99
100 }

  ViewVC Help
Powered by ViewVC 1.1.20