/[gentoo-x86]/eclass/enlightenment.eclass
Gentoo

Diff of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.43 Revision 1.44
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.43 2005/04/10 03:10:28 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.44 2005/04/10 03:28:16 vapier Exp $
4# 4#
5# Author: vapier@gentoo.org 5# Author: vapier@gentoo.org
6 6
7inherit eutils 7inherit eutils
8 8
22 fi 22 fi
23 fi 23 fi
24 ECVS_SERVER=${ECVS_SERVER:-cvs.sourceforge.net:/cvsroot/enlightenment} 24 ECVS_SERVER=${ECVS_SERVER:-cvs.sourceforge.net:/cvsroot/enlightenment}
25 ECVS_STATE="live" 25 ECVS_STATE="live"
26 inherit cvs 26 inherit cvs
27elif [[ ${PV/.200?????/} != ${PV} ]] || [[ ${PV/2003????} != ${PV} ]] ; then 27elif [[ ${PV/.200?????/} != ${PV} ]] ; then
28 ECVS_STATE="snap" 28 ECVS_STATE="snap"
29fi 29fi
30 30
31DESCRIPTION="A DR17 production" 31DESCRIPTION="A DR17 production"
32HOMEPAGE="http://www.enlightenment.org/" 32HOMEPAGE="http://www.enlightenment.org/"
53 snap) S=${WORKDIR}/${PN};; 53 snap) S=${WORKDIR}/${PN};;
54 live) S=${WORKDIR}/${ECVS_MODULE};; 54 live) S=${WORKDIR}/${ECVS_MODULE};;
55esac 55esac
56 56
57enlightenment_warning_msg() { 57enlightenment_warning_msg() {
58 if [[ ${PV/200} != ${PV} ]] ; then 58 if [[ ${ECVS_STATE} == "snap" ]] ; then
59 ewarn "Please do not contact the E team about bugs in Gentoo." 59 ewarn "Please do not contact the E team about bugs in Gentoo."
60 ewarn "Only contact vapier@gentoo.org via e-mail or bugzilla." 60 ewarn "Only contact vapier@gentoo.org via e-mail or bugzilla."
61 ewarn "Remember, this stuff is CVS only code so dont cry when" 61 ewarn "Remember, this stuff is CVS only code so dont cry when"
62 ewarn "I break you :)." 62 ewarn "I break you :)."
63 elif [[ ${PV/9999} != ${PV} ]] ; then 63 elif [[ ${ECVS_STATE} == "live" ]] ; then
64 eerror "This is a LIVE CVS ebuild." 64 eerror "This is a LIVE CVS ebuild."
65 eerror "That means there are NO promises it will work." 65 eerror "That means there are NO promises it will work."
66 eerror "If it fails to build, FIX THE CODE YOURSELF" 66 eerror "If it fails to build, FIX THE CODE YOURSELF"
67 eerror "before reporting any issues." 67 eerror "before reporting any issues."
68 fi 68 fi
78} 78}
79 79
80# the stupid gettextize script prevents non-interactive mode, so we hax it 80# the stupid gettextize script prevents non-interactive mode, so we hax it
81gettext_modify() { 81gettext_modify() {
82 use nls || return 0 82 use nls || return 0
83 cp $(which gettextize) ${T} || die "could not copy gettextize" 83 cp $(which gettextize) "${T}"/ || die "could not copy gettextize"
84 cp ${T}/gettextize ${T}/gettextize.old 84 sed -i \
85 sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize 85 -e 's:read dummy < /dev/tty::' \
86 "${T}"/gettextize
86} 87}
87 88
88enlightenment_src_unpack() { 89enlightenment_src_unpack() {
89 if [[ ${ECVS_STATE} == "live" ]] ; then 90 if [[ ${ECVS_STATE} == "live" ]] ; then
90 cvs_src_unpack 91 cvs_src_unpack
93 fi 94 fi
94 gettext_modify 95 gettext_modify
95} 96}
96 97
97enlightenment_src_compile() { 98enlightenment_src_compile() {
98 if [[ ${ECVS_STATE} != "release" ]] ; then 99 if [[ ${ECVS_STATE} != "release" ]] || [[ ! -e configure ]] ; then
99 [[ ! -z ${EHACKAUTOGEN} ]] && sed -i 's:.*configure.*::' autogen.sh 100 [[ ! -z ${EHACKAUTOGEN} ]] && sed -i 's:.*configure.*::' autogen.sh
100 export WANT_AUTOMAKE=${EAUTOMAKE:-1.8} 101 export WANT_AUTOMAKE=${EAUTOMAKE:-1.8}
101 env \ 102 env \
102 PATH="${T}:${PATH}" \ 103 PATH="${T}:${PATH}" \
103 NOCONFIGURE=yes \ 104 NOCONFIGURE=yes \

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

  ViewVC Help
Powered by ViewVC 1.1.20