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

Diff of /eclass/enlightenment.eclass

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

Revision 1.23 Revision 1.30
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.23 2004/08/10 03:06:53 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.30 2004/10/22 12:51:57 vapier Exp $
4# 4#
5# Author: vapier@gentoo.org 5# Author: vapier@gentoo.org
6 6
7ECLASS=enlightenment 7ECLASS=enlightenment
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
9 9
10EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst 10EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst
11 11
12ECVS_STATE="release" 12ECVS_STATE="release"
13if [ "${PV/.9999}" != "${PV}" ] ; then 13if [ "${PV/9999}" != "${PV}" ] ; then
14 if [ -z "${ECVS_MODULE}" ] ; then
15 ECVS_MODULE="${PN}"
16 if [ "${CATEGORY/libs}" != "${CATEGORY}" ] ; then
17 ECVS_MODULE="e17/libs/${PN}"
18 else
19 ECVS_MODULE="e17/apps/${PN}"
20 fi
21 fi
22 ECVS_SERVER="${ECVS_SERVER:-cvs.sourceforge.net:/cvsroot/enlightenment}"
14 ECVS_STATE="live" 23 ECVS_STATE="live"
15 inherit cvs 24 inherit cvs
16elif [ "${PV/.200?????/}" != "${PV}" ] ; then 25elif [ "${PV/.200?????/}" != "${PV}" ] ; then
17 ECVS_STATE="snap" 26 ECVS_STATE="snap"
18fi 27fi
25 live) SRC_URI="";; 34 live) SRC_URI="";;
26esac 35esac
27 36
28LICENSE="BSD" 37LICENSE="BSD"
29SLOT="0" 38SLOT="0"
30KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64" 39case ${ECVS_STATE} in
40 release) KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86";;
41 snap) KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86";;
42 live) KEYWORDS="-*";;
43esac
31IUSE="nls doc" 44IUSE="nls doc"
32 45
33DEPEND="doc? ( app-doc/doxygen ) 46DEPEND="doc? ( app-doc/doxygen )
34 >=sys-devel/autoconf-2.58-r1" 47 >=sys-devel/autoconf-2.58-r1"
35RDEPEND="nls? ( sys-devel/gettext )" 48RDEPEND="nls? ( sys-devel/gettext )"
36 49
37case ${ECVS_STATE} in 50case ${ECVS_STATE} in
38 release) S=${WORKDIR}/${P};; 51 release) S=${WORKDIR}/${P};;
39 snap|live) S=${WORKDIR}/${PN};; 52 snap) S=${WORKDIR}/${PN};;
53 live) S=${WORKDIR}/${ECVS_MODULE};;
40esac 54esac
41 55
42enlightenment_warning_msg() { 56enlightenment_warning_msg() {
43 if [ "${PV/200}" != "${PV}" ] ; then 57 if [ "${PV/200}" != "${PV}" ] ; then
44 ewarn "Please do not contact the E team about bugs in Gentoo." 58 ewarn "Please do not contact the E team about bugs in Gentoo."
64 cp ${T}/gettextize ${T}/gettextize.old 78 cp ${T}/gettextize ${T}/gettextize.old
65 sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize 79 sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize
66} 80}
67 81
68enlightenment_src_unpack() { 82enlightenment_src_unpack() {
69 [ "${ECVS_STATE}" != "live" ] && unpack ${A} 83 if [ "${ECVS_STATE}" == "live" ] ; then
84 cvs_src_unpack
85 else
86 unpack ${A}
87 fi
70 gettext_modify 88 gettext_modify
71} 89}
72 90
73enlightenment_src_compile() { 91enlightenment_src_compile() {
74 if [ "${ECVS_STATE}" != "release" ] ; then 92 if [ "${ECVS_STATE}" != "release" ] ; then

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20