1 |
scarabeus 11/07/27 09:59:58 |
2 |
|
3 |
Modified: ChangeLog graphite2-0.9.4.ebuild |
4 |
Log: |
5 |
Disable some tests and build perl bindings. |
6 |
|
7 |
(Portage version: 2.2.0_alpha47/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 media-gfx/graphite2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphite2/ChangeLog?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphite2/ChangeLog?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphite2/ChangeLog?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphite2/ChangeLog,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- ChangeLog 26 Jul 2011 19:02:19 -0000 1.1 |
23 |
+++ ChangeLog 27 Jul 2011 09:59:58 -0000 1.2 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for media-gfx/graphite2 |
26 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphite2/ChangeLog,v 1.1 2011/07/26 19:02:19 scarabeus Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphite2/ChangeLog,v 1.2 2011/07/27 09:59:58 scarabeus Exp $ |
29 |
+ |
30 |
+ 27 Jul 2011; Tomáš Chvátal <scarabeus@g.o> |
31 |
+ +files/graphite2-disablefonttest.patch, |
32 |
+ +files/graphite2-includes-libs-perl.patch, graphite2-0.9.4.ebuild: |
33 |
+ Disable some tests and build perl bindings. |
34 |
|
35 |
*graphite2-0.9.4 (26 Jul 2011) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.2 media-gfx/graphite2/graphite2-0.9.4.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphite2/graphite2-0.9.4.ebuild?rev=1.2&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphite2/graphite2-0.9.4.ebuild?rev=1.2&content-type=text/plain |
44 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphite2/graphite2-0.9.4.ebuild?r1=1.1&r2=1.2 |
45 |
|
46 |
Index: graphite2-0.9.4.ebuild |
47 |
=================================================================== |
48 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphite2/graphite2-0.9.4.ebuild,v |
49 |
retrieving revision 1.1 |
50 |
retrieving revision 1.2 |
51 |
diff -u -r1.1 -r1.2 |
52 |
--- graphite2-0.9.4.ebuild 26 Jul 2011 19:02:19 -0000 1.1 |
53 |
+++ graphite2-0.9.4.ebuild 27 Jul 2011 09:59:58 -0000 1.2 |
54 |
@@ -1,10 +1,10 @@ |
55 |
# Copyright 1999-2011 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphite2/graphite2-0.9.4.ebuild,v 1.1 2011/07/26 19:02:19 scarabeus Exp $ |
58 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphite2/graphite2-0.9.4.ebuild,v 1.2 2011/07/27 09:59:58 scarabeus Exp $ |
59 |
|
60 |
EAPI=4 |
61 |
|
62 |
-inherit cmake-utils |
63 |
+inherit base cmake-utils perl-module |
64 |
|
65 |
DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems" |
66 |
HOMEPAGE="http://graphite.sil.org/" |
67 |
@@ -13,19 +13,42 @@ |
68 |
LICENSE="LGPL-2.1" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
71 |
-IUSE="doc" |
72 |
+IUSE="doc perl" |
73 |
|
74 |
RDEPEND=" |
75 |
dev-libs/glib:2 |
76 |
media-libs/fontconfig |
77 |
+ perl? ( dev-lang/perl ) |
78 |
" |
79 |
DEPEND="${RDEPEND} |
80 |
doc? ( |
81 |
app-doc/doxygen |
82 |
dev-texlive/texlive-latex |
83 |
) |
84 |
+ perl? ( virtual/perl-Module-Build ) |
85 |
" |
86 |
|
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}/${PN}-includes-libs-perl.patch" |
89 |
+ "${FILESDIR}/${PN}-disablefonttest.patch" |
90 |
+) |
91 |
+ |
92 |
+pkg_setup() { |
93 |
+ use perl && perl-module_pkg_setup |
94 |
+} |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ base_src_prepare |
98 |
+ |
99 |
+ # fix perl linking |
100 |
+ if use perl; then |
101 |
+ _check_build_dir init |
102 |
+ sed -i \ |
103 |
+ -e "s:@BUILD_DIR@:\"${CMAKE_BUILD_DIR}/src\":" \ |
104 |
+ perl/Build.PL || die |
105 |
+ fi |
106 |
+} |
107 |
+ |
108 |
src_configure() { |
109 |
local mycmakeargs=( |
110 |
"-DVM_MACHINE_TYPE=direct" |
111 |
@@ -37,10 +60,28 @@ |
112 |
src_compile() { |
113 |
cmake-utils_src_compile |
114 |
use doc && Icmake-utils_src_compile docs |
115 |
+ if use perl; then |
116 |
+ cd perl |
117 |
+ perl-module_src_prep |
118 |
+ perl-module_src_compile |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+src_test() { |
123 |
+ cmake-utils_src_test |
124 |
+ if use perl; then |
125 |
+ cd perl |
126 |
+ perl-module_src_test |
127 |
+ fi |
128 |
} |
129 |
|
130 |
src_install() { |
131 |
cmake-utils_src_install |
132 |
+ if use perl; then |
133 |
+ cd perl |
134 |
+ perl-module_src_install |
135 |
+ fixlocalpod |
136 |
+ fi |
137 |
|
138 |
find "${ED}" -name '*.la' -exec rm -f {} + |