1 |
tommy 10/02/28 10:52:07 |
2 |
|
3 |
Modified: enlightenment.eclass |
4 |
Log: |
5 |
Update enlightenment eclass as discussed on enlightenment alias |
6 |
|
7 |
Revision Changes Path |
8 |
1.81 eclass/enlightenment.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/enlightenment.eclass?rev=1.81&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/enlightenment.eclass?rev=1.81&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/enlightenment.eclass?r1=1.80&r2=1.81 |
13 |
|
14 |
Index: enlightenment.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v |
17 |
retrieving revision 1.80 |
18 |
retrieving revision 1.81 |
19 |
diff -u -r1.80 -r1.81 |
20 |
--- enlightenment.eclass 7 Mar 2009 22:28:16 -0000 1.80 |
21 |
+++ enlightenment.eclass 28 Feb 2010 10:52:06 -0000 1.81 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.80 2009/03/07 22:28:16 vapier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.81 2010/02/28 10:52:06 tommy Exp $ |
27 |
# |
28 |
# Author: vapier@g.o |
29 |
|
30 |
@@ -62,6 +62,13 @@ |
31 |
inherit autotools |
32 |
fi |
33 |
|
34 |
+ENLIGHTENMENT_EXPF="pkg_setup src_unpack src_compile src_install pkg_postinst" |
35 |
+case "${EAPI:-0}" in |
36 |
+ 2|3|4) ENLIGHTENMENT_EXPF+=" src_prepare src_configure" ;; |
37 |
+ *) ;; |
38 |
+esac |
39 |
+EXPORT_FUNCTIONS ${ENLIGHTENMENT_EXPF} |
40 |
+ |
41 |
DESCRIPTION="A DR17 production" |
42 |
HOMEPAGE="http://www.enlightenment.org/" |
43 |
case ${EURI_STATE:-${E_STATE}} in |
44 |
@@ -117,15 +124,6 @@ |
45 |
: enlightenment_warning_msg |
46 |
} |
47 |
|
48 |
-# the stupid gettextize script prevents non-interactive mode, so we hax it |
49 |
-gettext_modify() { |
50 |
- use nls || return 0 |
51 |
- cp $(type -P gettextize) "${T}"/ || die "could not copy gettextize" |
52 |
- sed -i \ |
53 |
- -e 's:read dummy < /dev/tty::' \ |
54 |
- "${T}"/gettextize |
55 |
-} |
56 |
- |
57 |
enlightenment_src_unpack() { |
58 |
if [[ ${E_STATE} == "live" ]] ; then |
59 |
case ${E_LIVE_SOURCE} in |
60 |
@@ -136,34 +134,31 @@ |
61 |
else |
62 |
unpack ${A} |
63 |
fi |
64 |
- gettext_modify |
65 |
- [[ -s gendoc ]] && chmod a+rx gendoc |
66 |
+ hasq src_prepare ${ENLIGHTENMENT_EXPF} || enlightenment_src_prepare |
67 |
} |
68 |
|
69 |
-enlightenment_src_compile() { |
70 |
- # gstreamer sucks, work around it doing stupid stuff |
71 |
- export GST_REGISTRY="${S}/registry.xml" |
72 |
- |
73 |
- if [[ ! -e configure ]] ; then |
74 |
- env \ |
75 |
- PATH="${T}:${PATH}" \ |
76 |
- NOCONFIGURE=yes \ |
77 |
- USER=blah \ |
78 |
- ./autogen.sh \ |
79 |
- || enlightenment_die "autogen failed" |
80 |
- # symlinked files will cause sandbox violation |
81 |
- local x |
82 |
- for x in config.{guess,sub} ; do |
83 |
- [[ ! -L ${x} ]] && continue |
84 |
- rm -f ${x} |
85 |
- touch ${x} |
86 |
- done |
87 |
- elif [[ ${WANT_AUTOTOOLS} == "yes" ]] ; then |
88 |
+enlightenment_src_prepare() { |
89 |
+ [[ -s gendoc ]] && chmod a+rx gendoc |
90 |
+ if [[ ${WANT_AUTOTOOLS} == "yes" ]] ; then |
91 |
+ [[ -d po ]] && eautopoint -f |
92 |
+ # autotools require README, when README.in is around, but README |
93 |
+ # is created later in configure step |
94 |
+ [[ -f README.in ]] && touch README |
95 |
eautoreconf |
96 |
fi |
97 |
epunt_cxx |
98 |
elibtoolize |
99 |
- econf ${MY_ECONF} || enlightenment_die "econf failed" |
100 |
+} |
101 |
+ |
102 |
+enlightenment_src_configure() { |
103 |
+ # gstreamer sucks, work around it doing stupid stuff |
104 |
+ export GST_REGISTRY="${S}/registry.xml" |
105 |
+ |
106 |
+ econf ${MY_ECONF} |
107 |
+} |
108 |
+ |
109 |
+enlightenment_src_compile() { |
110 |
+ hasq src_configure ${ENLIGHTENMENT_EXPF} || enlightenment_src_configure |
111 |
emake || enlightenment_die "emake failed" |
112 |
use doc && [[ -x ./gendoc ]] && { ./gendoc || enlightenment_die "gendoc failed" ; } |
113 |
} |
114 |
@@ -181,4 +176,3 @@ |
115 |
: enlightenment_warning_msg |
116 |
} |
117 |
|
118 |
-EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst |