Lines 2-10
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.48 2005/06/01 22:13:02 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.48 2005/06/01 22:13:02 vapier Exp $ |
4 |
# |
4 |
# |
5 |
# Author: vapier@gentoo.org |
5 |
# Author: vapier@gentoo.org, beber@setibzh.com |
6 |
|
6 |
|
7 |
inherit eutils |
7 |
inherit eutils debug |
8 |
|
8 |
|
9 |
ECLASS=enlightenment |
9 |
ECLASS=enlightenment |
10 |
INHERITED="$INHERITED $ECLASS" |
10 |
INHERITED="$INHERITED $ECLASS" |
Lines 47-53
Link Here
|
47 |
esac |
47 |
esac |
48 |
IUSE="nls doc" |
48 |
IUSE="nls doc" |
49 |
|
49 |
|
50 |
DEPEND="doc? ( app-doc/doxygen )" |
50 |
DEPEND="doc? ( app-doc/doxygen ) |
|
|
51 |
debug? ( sys-devel/gdb )" |
51 |
RDEPEND="nls? ( sys-devel/gettext )" |
52 |
RDEPEND="nls? ( sys-devel/gettext )" |
52 |
|
53 |
|
53 |
case ${ECVS_STATE} in |
54 |
case ${ECVS_STATE} in |
Lines 56-78
Link Here
|
56 |
live) S=${WORKDIR}/${ECVS_MODULE};; |
57 |
live) S=${WORKDIR}/${ECVS_MODULE};; |
57 |
esac |
58 |
esac |
58 |
|
59 |
|
|
|
60 |
# debug.eclass modify RESTRICT, it seem to not work because (from the man) have |
61 |
# to be in ebuilds. |
62 |
use debug && FEATURES="${FEATURES} nostrip" |
63 |
|
59 |
enlightenment_warning_msg() { |
64 |
enlightenment_warning_msg() { |
60 |
if [[ ${ECVS_STATE} == "snap" ]] ; then |
65 |
if [[ ${ECVS_STATE} == "snap" ]] ; then |
61 |
ewarn "Please do not contact the E team about bugs in Gentoo." |
66 |
ewarn "Please do not contact the E team about bugs in Gentoo." |
62 |
ewarn "Only contact vapier@gentoo.org via e-mail or bugzilla." |
67 |
ewarn "Only contact vapier@gentoo.org or beber@setibzh.com via e-mail or bugzilla." |
|
|
68 |
ewarn "USE debug is available, use it, abuse it ;)" |
63 |
ewarn "Remember, this stuff is CVS only code so dont cry when" |
69 |
ewarn "Remember, this stuff is CVS only code so dont cry when" |
64 |
ewarn "I break you :)." |
70 |
ewarn "I break you :)." |
|
|
71 |
|
72 |
use debug || ewarn "PLEASE COMPILE WITH USE=\"debug\"" |
65 |
elif [[ ${ECVS_STATE} == "live" ]] ; then |
73 |
elif [[ ${ECVS_STATE} == "live" ]] ; then |
66 |
eerror "This is a LIVE CVS ebuild." |
74 |
eerror "This is a LIVE CVS ebuild." |
67 |
eerror "That means there are NO promises it will work." |
75 |
eerror "That means there are NO promises it will work." |
68 |
eerror "If it fails to build, FIX THE CODE YOURSELF" |
76 |
eerror "If it fails to build, FIX THE CODE YOURSELF" |
69 |
eerror "before reporting any issues." |
77 |
eerror "before reporting any issues." |
|
|
78 |
eerror "USE debug is available, use it, abuse it ;)" |
79 |
eerror "Find bugs, and repair them if you can, but report debugger information" |
80 |
eerror "Run gdb, valgrind, the best one you like, everybody will be happy :)" |
81 |
use debug || eerror "PLEASE COMPILE WITH USE=\"debug\"" |
70 |
fi |
82 |
fi |
71 |
} |
83 |
} |
72 |
|
84 |
|
73 |
enlightenment_die() { |
85 |
enlightenment_die() { |
74 |
enlightenment_warning_msg |
86 |
enlightenment_warning_msg |
75 |
die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org NOT THE E TEAM" |
87 |
die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org or beber@setibzh.com NOT THE E TEAM" |
76 |
} |
88 |
} |
77 |
|
89 |
|
78 |
enlightenment_pkg_setup() { |
90 |
enlightenment_pkg_setup() { |
Lines 101-106
Link Here
|
101 |
enlightenment_src_compile() { |
113 |
enlightenment_src_compile() { |
102 |
if [[ ${ECVS_STATE} != "release" ]] || [[ ! -e configure ]] ; then |
114 |
if [[ ${ECVS_STATE} != "release" ]] || [[ ! -e configure ]] ; then |
103 |
export WANT_AUTOMAKE=${EAUTOMAKE:-1.8} |
115 |
export WANT_AUTOMAKE=${EAUTOMAKE:-1.8} |
|
|
116 |
|
104 |
env \ |
117 |
env \ |
105 |
PATH="${T}:${PATH}" \ |
118 |
PATH="${T}:${PATH}" \ |
106 |
NOCONFIGURE=yes \ |
119 |
NOCONFIGURE=yes \ |
Lines 120-125
Link Here
|
120 |
fi |
133 |
fi |
121 |
fi |
134 |
fi |
122 |
epunt_cxx |
135 |
epunt_cxx |
|
|
136 |
MY_ECONF="${MY_ECONF} $(use_enable debug debug)" |
123 |
econf ${MY_ECONF} || enlightenment_die "econf failed" |
137 |
econf ${MY_ECONF} || enlightenment_die "econf failed" |
124 |
emake || enlightenment_die "emake failed" |
138 |
emake || enlightenment_die "emake failed" |
125 |
use doc && [[ -x ./gendoc ]] && { ./gendoc || enlightenment_die "gendoc failed" ; } |
139 |
use doc && [[ -x ./gendoc ]] && { ./gendoc || enlightenment_die "gendoc failed" ; } |