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

Diff of /eclass/enlightenment.eclass

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

Revision 1.37 Revision 1.38
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.37 2004/12/09 16:05:47 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.38 2004/12/27 14:23:14 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 14 if [[ -z ${ECVS_MODULE} ]] ; then
15 ECVS_MODULE="${PN}" 15 ECVS_MODULE="${PN}"
16 if [ "${CATEGORY/libs}" != "${CATEGORY}" ] ; then 16 if [[ ${CATEGORY/libs} != ${CATEGORY} ]] ; then
17 ECVS_MODULE="e17/libs/${PN}" 17 ECVS_MODULE="e17/libs/${PN}"
18 else 18 else
19 ECVS_MODULE="e17/apps/${PN}" 19 ECVS_MODULE="e17/apps/${PN}"
20 fi 20 fi
21 fi 21 fi
22 ECVS_SERVER="${ECVS_SERVER:-cvs.sourceforge.net:/cvsroot/enlightenment}" 22 ECVS_SERVER="${ECVS_SERVER:-cvs.sourceforge.net:/cvsroot/enlightenment}"
23 ECVS_STATE="live" 23 ECVS_STATE="live"
24 inherit cvs 24 inherit cvs
25elif [ "${PV/.200?????/}" != "${PV}" ] || [ "${PV/2003????}" != "${PV}" ] ; then 25elif [[ ${PV/.200?????/} != ${PV} ]] || [[ ${PV/2003????} != ${PV} ]] ; then
26 ECVS_STATE="snap" 26 ECVS_STATE="snap"
27fi 27fi
28 28
29DESCRIPTION="A DR17 production" 29DESCRIPTION="A DR17 production"
30HOMEPAGE="http://www.enlightenment.org/" 30HOMEPAGE="http://www.enlightenment.org/"
76} 76}
77 77
78# the stupid gettextize script prevents non-interactive mode, so we hax it 78# the stupid gettextize script prevents non-interactive mode, so we hax it
79gettext_modify() { 79gettext_modify() {
80 use nls || return 0 80 use nls || return 0
81 cp `which gettextize` ${T} || die "could not copy gettextize" 81 cp $(which gettextize) ${T} || die "could not copy gettextize"
82 cp ${T}/gettextize ${T}/gettextize.old 82 cp ${T}/gettextize ${T}/gettextize.old
83 sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize 83 sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize
84} 84}
85 85
86enlightenment_src_unpack() { 86enlightenment_src_unpack() {
87 if [ "${ECVS_STATE}" == "live" ] ; then 87 if [[ ${ECVS_STATE} == "live" ]] ; then
88 cvs_src_unpack 88 cvs_src_unpack
89 else 89 else
90 unpack ${A} 90 unpack ${A}
91 fi 91 fi
92 gettext_modify 92 gettext_modify
93} 93}
94 94
95enlightenment_src_compile() { 95enlightenment_src_compile() {
96 if [ "${ECVS_STATE}" != "release" ] ; then 96 if [[ ${ECVS_STATE} != "release" ]] ; then
97 [ ! -z "${EHACKAUTOGEN}" ] && sed -i 's:.*configure.*::' autogen.sh 97 [[ ! -z ${EHACKAUTOGEN} ]] && sed -i 's:.*configure.*::' autogen.sh
98 export WANT_AUTOMAKE="${EAUTOMAKE:-1.8}" 98 export WANT_AUTOMAKE="${EAUTOMAKE:-1.8}"
99 env \ 99 env \
100 PATH="${T}:${PATH}" \ 100 PATH="${T}:${PATH}" \
101 NOCONFIGURE=yes \ 101 NOCONFIGURE=yes \
102 USER=blah \ 102 USER=blah \
103 ./autogen.sh \ 103 ./autogen.sh \
104 || enlightenment_die "autogen failed" 104 || enlightenment_die "autogen failed"
105 if [ ! -z "${EHACKLIBLTDL}" ] ; then 105 if [[ ! -z ${EHACKLIBLTDL} ]] ; then
106 cd libltdl 106 cd libltdl
107 autoconf || enlightenment_die "autogen in libltdl failed" 107 autoconf || enlightenment_die "autogen in libltdl failed"
108 cd .. 108 cd ..
109 fi 109 fi
110 fi 110 fi
111 econf ${MY_ECONF} || enlightenment_die "econf failed" 111 econf ${MY_ECONF} || enlightenment_die "econf failed"
112 emake || enlightenment_die "emake failed" 112 emake || enlightenment_die "emake failed"
113 use doc && [ -x ./gendoc ] && { ./gendoc || enlightenment_die "gendoc failed" ; } 113 use doc && [[ -x ./gendoc ]] && { ./gendoc || enlightenment_die "gendoc failed" ; }
114} 114}
115 115
116enlightenment_src_install() { 116enlightenment_src_install() {
117 make install DESTDIR=${D} || enlightenment_die 117 make install DESTDIR=${D} || enlightenment_die
118 find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null 118 find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null
119 dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS} 119 dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS}
120 use doc && [ -d doc ] && dohtml -r doc/* 120 use doc && [[ -d doc ]] && dohtml -r doc/*
121} 121}
122 122
123enlightenment_pkg_postinst() { 123enlightenment_pkg_postinst() {
124 enlightenment_warning_msg 124 enlightenment_warning_msg
125} 125}

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

  ViewVC Help
Powered by ViewVC 1.1.20