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

Contents of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.25 - (hide annotations) (download)
Thu Oct 21 19:54:03 2004 UTC (9 years, 10 months ago) by vapier
Branch: MAIN
Changes since 1.24: +2 -1 lines
oops, forgot to define ECVS_MODULE ... thanks to kernel_panic for pointing it out

1 vapier 1.19 # Copyright 1999-2004 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.25 # $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.24 2004/10/13 19:51:01 vapier Exp $
4 vapier 1.1 #
5     # Author: vapier@gentoo.org
6    
7     ECLASS=enlightenment
8     INHERITED="$INHERITED $ECLASS"
9    
10 vapier 1.3 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst
11 vapier 1.2
12 vapier 1.23 ECVS_STATE="release"
13 vapier 1.24 if [ "${PV/9999}" != "${PV}" ] ; then
14 vapier 1.25 ECVS_MODULE="${ECVS_MODULE:-${PN}}"
15 vapier 1.23 ECVS_STATE="live"
16 vapier 1.21 inherit cvs
17 vapier 1.23 elif [ "${PV/.200?????/}" != "${PV}" ] ; then
18     ECVS_STATE="snap"
19 vapier 1.21 fi
20    
21 vapier 1.2 DESCRIPTION="A DR17 production"
22 vapier 1.1 HOMEPAGE="http://www.enlightenment.org/"
23 vapier 1.23 case ${ECVS_STATE} in
24     release) SRC_URI="mirror://sourceforge/enlightenment/${P}.tar.gz";;
25     snap) SRC_URI="mirror://gentoo/${P}.tar.bz2";;
26     live) SRC_URI="";;
27     esac
28 vapier 1.1
29 vapier 1.10 LICENSE="BSD"
30 vapier 1.2 SLOT="0"
31 vapier 1.18 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
32 vapier 1.6 IUSE="nls doc"
33 vapier 1.1
34 vapier 1.15 DEPEND="doc? ( app-doc/doxygen )
35     >=sys-devel/autoconf-2.58-r1"
36 vapier 1.11 RDEPEND="nls? ( sys-devel/gettext )"
37 vapier 1.1
38 vapier 1.23 case ${ECVS_STATE} in
39     release) S=${WORKDIR}/${P};;
40     snap|live) S=${WORKDIR}/${PN};;
41     esac
42 vapier 1.2
43 vapier 1.3 enlightenment_warning_msg() {
44 vapier 1.16 if [ "${PV/200}" != "${PV}" ] ; then
45 vapier 1.3 ewarn "Please do not contact the E team about bugs in Gentoo."
46     ewarn "Only contact vapier@gentoo.org via e-mail or bugzilla."
47     ewarn "Remember, this stuff is CVS only code so dont cry when"
48     ewarn "I break you :)."
49     fi
50     }
51    
52 vapier 1.16 enlightenment_die() {
53     enlightenment_warning_msg
54     die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org NOT THE E TEAM"
55     }
56    
57 vapier 1.3 enlightenment_pkg_setup() {
58     enlightenment_warning_msg
59     }
60    
61 vapier 1.1 # the stupid gettextize script prevents non-interactive mode, so we hax it
62     gettext_modify() {
63     use nls || return 0
64     cp `which gettextize` ${T} || die "could not copy gettextize"
65     cp ${T}/gettextize ${T}/gettextize.old
66     sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize
67 vapier 1.2 }
68    
69     enlightenment_src_unpack() {
70 vapier 1.23 [ "${ECVS_STATE}" != "live" ] && unpack ${A}
71 vapier 1.2 gettext_modify
72     }
73    
74     enlightenment_src_compile() {
75 vapier 1.23 if [ "${ECVS_STATE}" != "release" ] ; then
76     [ ! -z "${EHACKAUTOGEN}" ] && sed -i 's:.*configure.*::' autogen.sh
77     export WANT_AUTOMAKE="${EAUTOMAKE:-1.8}"
78     env \
79     PATH="${T}:${PATH}" \
80     NOCONFIGURE=yes \
81     USER=blah \
82     ./autogen.sh \
83     || enlightenment_die "autogen failed"
84     if [ ! -z "${EHACKLIBLTDL}" ] ; then
85     cd libltdl
86     autoconf || enlightenment_die "autogen in libltdl failed"
87     cd ..
88     fi
89 vapier 1.4 fi
90 vapier 1.16 econf ${MY_ECONF} || enlightenment_die "econf failed"
91     emake || enlightenment_die "emake failed"
92 vapier 1.17 use doc && [ -x ./gendoc ] && { ./gendoc || enlightenment_die "gendoc failed" ; }
93 vapier 1.2 }
94    
95     enlightenment_src_install() {
96 vapier 1.16 make install DESTDIR=${D} || enlightenment_die
97 vapier 1.6 find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null
98 vapier 1.9 dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS}
99 vapier 1.17 use doc && [ -d doc ] && dohtml -r doc/*
100 vapier 1.3 }
101    
102     enlightenment_pkg_postinst() {
103     enlightenment_warning_msg
104 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20