/[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.5 - (hide annotations) (download)
Fri Jun 29 11:54:55 2012 UTC (2 years, 5 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Stable 1.1.3 on amd64 x86 and ppc. Drop older.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20