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

Contents of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.26 - (show annotations) (download)
Thu Oct 21 19:59:40 2004 UTC (10 years, 9 months ago) by vapier
Branch: MAIN
Changes since 1.25: +2 -1 lines
oops, forgot to also define ECVS_SERVER ... 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.25 2004/10/21 19:54:03 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_SERVER="cvs.sourceforge.net:/cvsroot/enlightenment"
16 ECVS_STATE="live"
17 inherit cvs
18 elif [ "${PV/.200?????/}" != "${PV}" ] ; then
19 ECVS_STATE="snap"
20 fi
21
22 DESCRIPTION="A DR17 production"
23 HOMEPAGE="http://www.enlightenment.org/"
24 case ${ECVS_STATE} in
25 release) SRC_URI="mirror://sourceforge/enlightenment/${P}.tar.gz";;
26 snap) SRC_URI="mirror://gentoo/${P}.tar.bz2";;
27 live) SRC_URI="";;
28 esac
29
30 LICENSE="BSD"
31 SLOT="0"
32 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
33 IUSE="nls doc"
34
35 DEPEND="doc? ( app-doc/doxygen )
36 >=sys-devel/autoconf-2.58-r1"
37 RDEPEND="nls? ( sys-devel/gettext )"
38
39 case ${ECVS_STATE} in
40 release) S=${WORKDIR}/${P};;
41 snap|live) S=${WORKDIR}/${PN};;
42 esac
43
44 enlightenment_warning_msg() {
45 if [ "${PV/200}" != "${PV}" ] ; then
46 ewarn "Please do not contact the E team about bugs in Gentoo."
47 ewarn "Only contact vapier@gentoo.org via e-mail or bugzilla."
48 ewarn "Remember, this stuff is CVS only code so dont cry when"
49 ewarn "I break you :)."
50 fi
51 }
52
53 enlightenment_die() {
54 enlightenment_warning_msg
55 die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org NOT THE E TEAM"
56 }
57
58 enlightenment_pkg_setup() {
59 enlightenment_warning_msg
60 }
61
62 # the stupid gettextize script prevents non-interactive mode, so we hax it
63 gettext_modify() {
64 use nls || return 0
65 cp `which gettextize` ${T} || die "could not copy gettextize"
66 cp ${T}/gettextize ${T}/gettextize.old
67 sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize
68 }
69
70 enlightenment_src_unpack() {
71 [ "${ECVS_STATE}" != "live" ] && unpack ${A}
72 gettext_modify
73 }
74
75 enlightenment_src_compile() {
76 if [ "${ECVS_STATE}" != "release" ] ; then
77 [ ! -z "${EHACKAUTOGEN}" ] && sed -i 's:.*configure.*::' autogen.sh
78 export WANT_AUTOMAKE="${EAUTOMAKE:-1.8}"
79 env \
80 PATH="${T}:${PATH}" \
81 NOCONFIGURE=yes \
82 USER=blah \
83 ./autogen.sh \
84 || enlightenment_die "autogen failed"
85 if [ ! -z "${EHACKLIBLTDL}" ] ; then
86 cd libltdl
87 autoconf || enlightenment_die "autogen in libltdl failed"
88 cd ..
89 fi
90 fi
91 econf ${MY_ECONF} || enlightenment_die "econf failed"
92 emake || enlightenment_die "emake failed"
93 use doc && [ -x ./gendoc ] && { ./gendoc || enlightenment_die "gendoc failed" ; }
94 }
95
96 enlightenment_src_install() {
97 make install DESTDIR=${D} || enlightenment_die
98 find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null
99 dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS}
100 use doc && [ -d doc ] && dohtml -r doc/*
101 }
102
103 enlightenment_pkg_postinst() {
104 enlightenment_warning_msg
105 }

  ViewVC Help
Powered by ViewVC 1.1.20