/[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.1 - (show annotations) (download)
Mon Apr 23 10:53:44 2012 UTC (2 years, 5 months ago) by scarabeus
Branch: MAIN
Version bump to latest.

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

  ViewVC Help
Powered by ViewVC 1.1.20