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

Contents of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.26 - (hide annotations) (download)
Thu Oct 21 19:59:40 2004 UTC (10 years, 2 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 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.26 # $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.25 2004/10/21 19:54:03 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.26 ECVS_SERVER="cvs.sourceforge.net:/cvsroot/enlightenment"
16 vapier 1.23 ECVS_STATE="live"
17 vapier 1.21 inherit cvs
18 vapier 1.23 elif [ "${PV/.200?????/}" != "${PV}" ] ; then
19     ECVS_STATE="snap"
20 vapier 1.21 fi
21    
22 vapier 1.2 DESCRIPTION="A DR17 production"
23 vapier 1.1 HOMEPAGE="http://www.enlightenment.org/"
24 vapier 1.23 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 vapier 1.1
30 vapier 1.10 LICENSE="BSD"
31 vapier 1.2 SLOT="0"
32 vapier 1.18 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
33 vapier 1.6 IUSE="nls doc"
34 vapier 1.1
35 vapier 1.15 DEPEND="doc? ( app-doc/doxygen )
36     >=sys-devel/autoconf-2.58-r1"
37 vapier 1.11 RDEPEND="nls? ( sys-devel/gettext )"
38 vapier 1.1
39 vapier 1.23 case ${ECVS_STATE} in
40     release) S=${WORKDIR}/${P};;
41     snap|live) S=${WORKDIR}/${PN};;
42     esac
43 vapier 1.2
44 vapier 1.3 enlightenment_warning_msg() {
45 vapier 1.16 if [ "${PV/200}" != "${PV}" ] ; then
46 vapier 1.3 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 vapier 1.16 enlightenment_die() {
54     enlightenment_warning_msg
55     die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org NOT THE E TEAM"
56     }
57    
58 vapier 1.3 enlightenment_pkg_setup() {
59     enlightenment_warning_msg
60     }
61    
62 vapier 1.1 # 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 vapier 1.2 }
69    
70     enlightenment_src_unpack() {
71 vapier 1.23 [ "${ECVS_STATE}" != "live" ] && unpack ${A}
72 vapier 1.2 gettext_modify
73     }
74    
75     enlightenment_src_compile() {
76 vapier 1.23 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 vapier 1.4 fi
91 vapier 1.16 econf ${MY_ECONF} || enlightenment_die "econf failed"
92     emake || enlightenment_die "emake failed"
93 vapier 1.17 use doc && [ -x ./gendoc ] && { ./gendoc || enlightenment_die "gendoc failed" ; }
94 vapier 1.2 }
95    
96     enlightenment_src_install() {
97 vapier 1.16 make install DESTDIR=${D} || enlightenment_die
98 vapier 1.6 find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null
99 vapier 1.9 dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS}
100 vapier 1.17 use doc && [ -d doc ] && dohtml -r doc/*
101 vapier 1.3 }
102    
103     enlightenment_pkg_postinst() {
104     enlightenment_warning_msg
105 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20