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

Contents of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Oct 14 02:33:33 2003 UTC (10 years, 11 months ago) by vapier
Branch: MAIN
Changes since 1.1: +37 -2 lines
sexier eclass

1 vapier 1.1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 vapier 1.2 # $Header: /home/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.1 2003/06/29 06:14:04 vapier Exp $
4 vapier 1.1 #
5     # Author: vapier@gentoo.org
6    
7     ECLASS=enlightenment
8     INHERITED="$INHERITED $ECLASS"
9    
10 vapier 1.2 EXPORT_FUNCTIONS src_unpack src_compile src_install
11    
12     DESCRIPTION="A DR17 production"
13 vapier 1.1 HOMEPAGE="http://www.enlightenment.org/"
14     SRC_URI="mirror://gentoo/${P}.tar.bz2
15     http://wh0rd.de/gentoo/distfiles/${P}.tar.bz2"
16    
17 vapier 1.2 LICENSE="as-is"
18     SLOT="0"
19     KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64"
20 vapier 1.1 IUSE="nls"
21    
22     DEPEND="nls? ( sys-devel/gettext )"
23    
24 vapier 1.2 S=${WORKDIR}/${PN}
25    
26 vapier 1.1 # the stupid gettextize script prevents non-interactive mode, so we hax it
27     gettext_modify() {
28     use nls || return 0
29     cp `which gettextize` ${T} || die "could not copy gettextize"
30     cp ${T}/gettextize ${T}/gettextize.old
31     sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize
32 vapier 1.2 }
33    
34     enlightenment_src_unpack() {
35     unpack ${A}
36     gettext_modify
37     }
38    
39     enlightenment_src_compile() {
40     use alpha && append-flags -fPIC
41     use ppc && append-flags -fPIC
42     [ ! -z "${EHACKAUTOGEN}" ] && sed -i 's:.*configure.*::' autogen.sh
43     env \
44     PATH="${T}:${PATH}" \
45     WANT_AUTOCONF_2_5=1 \
46     NOCONFIGURE=yes \
47     USER=blah \
48     ./autogen.sh \
49     || die "autogen failed"
50     econf ${MY_ECONF} || die "econf failed"
51     emake || die "emake failed"
52     }
53    
54     enlightenment_src_install() {
55     make install DESTDIR=${D} || die
56     find ${D} -name CVS -type d -exec rm -rf '{}' \;
57     [ -z "${EDOCS}" ] && EDOCS="AUTHORS ChangeLog NEWS README TODO"
58     dodoc ${EDOCS}
59     [ -d doc ] && dohtml -r doc/*
60 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20