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

Contents of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sat Nov 15 21:48:08 2003 UTC (11 years, 1 month ago) by vapier
Branch: MAIN
Changes since 1.4: +2 -1 lines
hppa needs pic

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.5 # $Header: /home/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.4 2003/11/08 19:26:49 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     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.3 enlightenment_warning_msg() {
27     if [ "${PV/2003}" != "${PV}" ] ; then
28     ewarn "Please do not contact the E team about bugs in Gentoo."
29     ewarn "Only contact vapier@gentoo.org via e-mail or bugzilla."
30     ewarn "Remember, this stuff is CVS only code so dont cry when"
31     ewarn "I break you :)."
32     fi
33     }
34    
35     enlightenment_pkg_setup() {
36     enlightenment_warning_msg
37     }
38    
39 vapier 1.1 # the stupid gettextize script prevents non-interactive mode, so we hax it
40     gettext_modify() {
41     use nls || return 0
42     cp `which gettextize` ${T} || die "could not copy gettextize"
43     cp ${T}/gettextize ${T}/gettextize.old
44     sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize
45 vapier 1.2 }
46    
47     enlightenment_src_unpack() {
48     unpack ${A}
49     gettext_modify
50     }
51    
52     enlightenment_src_compile() {
53     use alpha && append-flags -fPIC
54     use ppc && append-flags -fPIC
55 vapier 1.5 use hppa && append-flags -fPIC
56 vapier 1.2 [ ! -z "${EHACKAUTOGEN}" ] && sed -i 's:.*configure.*::' autogen.sh
57     env \
58     PATH="${T}:${PATH}" \
59     WANT_AUTOCONF_2_5=1 \
60     NOCONFIGURE=yes \
61     USER=blah \
62     ./autogen.sh \
63     || die "autogen failed"
64 vapier 1.4 if [ ! -z "${EHACKLIBLTDL}" ] ; then
65     cd libltdl
66     env WANT_AUTOCONF_2_5=1 autoconf || die "autogen in libltdl failed"
67     cd ..
68     fi
69 vapier 1.2 econf ${MY_ECONF} || die "econf failed"
70     emake || die "emake failed"
71     }
72    
73     enlightenment_src_install() {
74     make install DESTDIR=${D} || die
75     find ${D} -name CVS -type d -exec rm -rf '{}' \;
76     [ -z "${EDOCS}" ] && EDOCS="AUTHORS ChangeLog NEWS README TODO"
77     dodoc ${EDOCS}
78     [ -d doc ] && dohtml -r doc/*
79 vapier 1.3 }
80    
81     enlightenment_pkg_postinst() {
82     enlightenment_warning_msg
83 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20