| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 Gentoo Foundation |
| 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.76 2008/11/30 09:05:51 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.80 2009/03/07 22:28:16 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: vapier@gentoo.org |
5 | # Author: vapier@gentoo.org |
| 6 | |
6 | |
| 7 | inherit eutils libtool |
7 | inherit eutils libtool |
| 8 | |
8 | |
| … | |
… | |
| 95 | if [[ -n ${E_LIVE_SERVER} ]] ; then |
95 | if [[ -n ${E_LIVE_SERVER} ]] ; then |
| 96 | einfo "Using user server for live sources: ${E_LIVE_SERVER}" |
96 | einfo "Using user server for live sources: ${E_LIVE_SERVER}" |
| 97 | fi |
97 | fi |
| 98 | if [[ ${E_STATE} == "snap" ]] ; then |
98 | if [[ ${E_STATE} == "snap" ]] ; then |
| 99 | ewarn "Please do not contact the E team about bugs in Gentoo." |
99 | ewarn "Please do not contact the E team about bugs in Gentoo." |
| 100 | ewarn "Only contact vapier@gentoo.org via e-mail or bugzilla." |
100 | ewarn "Only contact enlightenment@gentoo.org via e-mail or bugzilla." |
| 101 | ewarn "Remember, this stuff is DEV only code so dont cry when" |
101 | ewarn "Remember, this stuff is DEV only code so dont cry when" |
| 102 | ewarn "I break you :)." |
102 | ewarn "I break you :)." |
| 103 | elif [[ ${E_STATE} == "live" ]] ; then |
103 | elif [[ ${E_STATE} == "live" ]] ; then |
| 104 | eerror "This is a LIVE SOURCES ebuild." |
104 | eerror "This is a LIVE SOURCES ebuild." |
| 105 | eerror "That means there are NO promises it will work." |
105 | eerror "That means there are NO promises it will work." |
| … | |
… | |
| 108 | fi |
108 | fi |
| 109 | } |
109 | } |
| 110 | |
110 | |
| 111 | enlightenment_die() { |
111 | enlightenment_die() { |
| 112 | enlightenment_warning_msg |
112 | enlightenment_warning_msg |
| 113 | die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org NOT THE E TEAM" |
113 | die "$@"$'\n'"!!! SEND BUG REPORTS TO enlightenment@gentoo.org NOT THE E TEAM" |
| 114 | } |
114 | } |
| 115 | |
115 | |
| 116 | enlightenment_pkg_setup() { |
116 | enlightenment_pkg_setup() { |
| 117 | enlightenment_warning_msg |
117 | : enlightenment_warning_msg |
| 118 | } |
118 | } |
| 119 | |
119 | |
| 120 | # the stupid gettextize script prevents non-interactive mode, so we hax it |
120 | # the stupid gettextize script prevents non-interactive mode, so we hax it |
| 121 | gettext_modify() { |
121 | gettext_modify() { |
| 122 | use nls || return 0 |
122 | use nls || return 0 |
| … | |
… | |
| 169 | } |
169 | } |
| 170 | |
170 | |
| 171 | enlightenment_src_install() { |
171 | enlightenment_src_install() { |
| 172 | emake install DESTDIR="${D}" || enlightenment_die |
172 | emake install DESTDIR="${D}" || enlightenment_die |
| 173 | find "${D}" '(' -name CVS -o -name .svn -o -name .git ')' -type d -exec rm -rf '{}' \; 2>/dev/null |
173 | find "${D}" '(' -name CVS -o -name .svn -o -name .git ')' -type d -exec rm -rf '{}' \; 2>/dev/null |
| 174 | dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS} |
174 | for d in AUTHORS ChangeLog NEWS README TODO ${EDOCS}; do |
|
|
175 | [[ -f ${d} ]] && dodoc ${d} |
|
|
176 | done |
| 175 | use doc && [[ -d doc ]] && dohtml -r doc/* |
177 | use doc && [[ -d doc ]] && dohtml -r doc/* |
| 176 | } |
178 | } |
| 177 | |
179 | |
| 178 | enlightenment_pkg_postinst() { |
180 | enlightenment_pkg_postinst() { |
| 179 | enlightenment_warning_msg |
181 | : enlightenment_warning_msg |
| 180 | } |
182 | } |
| 181 | |
183 | |
| 182 | EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst |
184 | EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst |