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

Contents of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.25 - (show annotations) (download)
Thu Oct 21 19:54:03 2004 UTC (10 years, 7 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 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.24 2004/10/13 19:51:01 vapier Exp $
4 #
5 # Author: vapier@gentoo.org
6
7 ECLASS=enlightenment
8 INHERITED="$INHERITED $ECLASS"
9
10 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst
11
12 ECVS_STATE="release"
13 if [ "${PV/9999}" != "${PV}" ] ; then
14 ECVS_MODULE="${ECVS_MODULE:-${PN}}"
15 ECVS_STATE="live"
16 inherit cvs
17 elif [ "${PV/.200?????/}" != "${PV}" ] ; then
18 ECVS_STATE="snap"
19 fi
20
21 DESCRIPTION="A DR17 production"
22 HOMEPAGE="http://www.enlightenment.org/"
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
29 LICENSE="BSD"
30 SLOT="0"
31 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
32 IUSE="nls doc"
33
34 DEPEND="doc? ( app-doc/doxygen )
35 >=sys-devel/autoconf-2.58-r1"
36 RDEPEND="nls? ( sys-devel/gettext )"
37
38 case ${ECVS_STATE} in
39 release) S=${WORKDIR}/${P};;
40 snap|live) S=${WORKDIR}/${PN};;
41 esac
42
43 enlightenment_warning_msg() {
44 if [ "${PV/200}" != "${PV}" ] ; then
45 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 enlightenment_die() {
53 enlightenment_warning_msg
54 die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org NOT THE E TEAM"
55 }
56
57 enlightenment_pkg_setup() {
58 enlightenment_warning_msg
59 }
60
61 # 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 }
68
69 enlightenment_src_unpack() {
70 [ "${ECVS_STATE}" != "live" ] && unpack ${A}
71 gettext_modify
72 }
73
74 enlightenment_src_compile() {
75 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 fi
90 econf ${MY_ECONF} || enlightenment_die "econf failed"
91 emake || enlightenment_die "emake failed"
92 use doc && [ -x ./gendoc ] && { ./gendoc || enlightenment_die "gendoc failed" ; }
93 }
94
95 enlightenment_src_install() {
96 make install DESTDIR=${D} || enlightenment_die
97 find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null
98 dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS}
99 use doc && [ -d doc ] && dohtml -r doc/*
100 }
101
102 enlightenment_pkg_postinst() {
103 enlightenment_warning_msg
104 }

  ViewVC Help
Powered by ViewVC 1.1.20