diff options
author | 2003-10-14 02:33:33 +0000 | |
---|---|---|
committer | 2003-10-14 02:33:33 +0000 | |
commit | 01317157a93b2ac7c5ef60d01bc70c0e57b182f1 (patch) | |
tree | e25a2e499e8608287696ed7bafaac5d1fa1fd96e /eclass | |
parent | fix install #31075 (diff) | |
download | gentoo-2-01317157a93b2ac7c5ef60d01bc70c0e57b182f1.tar.gz gentoo-2-01317157a93b2ac7c5ef60d01bc70c0e57b182f1.tar.bz2 gentoo-2-01317157a93b2ac7c5ef60d01bc70c0e57b182f1.zip |
sexier eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/enlightenment.eclass | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/eclass/enlightenment.eclass b/eclass/enlightenment.eclass index e9cca6d2957d..f7bdf380b17b 100644 --- a/eclass/enlightenment.eclass +++ b/eclass/enlightenment.eclass @@ -1,21 +1,28 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.1 2003/06/29 06:14:04 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.2 2003/10/14 02:33:33 vapier Exp $ # # Author: vapier@gentoo.org ECLASS=enlightenment INHERITED="$INHERITED $ECLASS" -DESCRIPTION="An DR17 production" +EXPORT_FUNCTIONS src_unpack src_compile src_install + +DESCRIPTION="A DR17 production" HOMEPAGE="http://www.enlightenment.org/" SRC_URI="mirror://gentoo/${P}.tar.bz2 http://wh0rd.de/gentoo/distfiles/${P}.tar.bz2" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64" IUSE="nls" DEPEND="nls? ( sys-devel/gettext )" +S=${WORKDIR}/${PN} + # the stupid gettextize script prevents non-interactive mode, so we hax it gettext_modify() { use nls || return 0 @@ -23,3 +30,31 @@ gettext_modify() { cp ${T}/gettextize ${T}/gettextize.old sed -e 's:read dummy < /dev/tty::' ${T}/gettextize.old > ${T}/gettextize } + +enlightenment_src_unpack() { + unpack ${A} + gettext_modify +} + +enlightenment_src_compile() { + use alpha && append-flags -fPIC + use ppc && append-flags -fPIC + [ ! -z "${EHACKAUTOGEN}" ] && sed -i 's:.*configure.*::' autogen.sh + env \ + PATH="${T}:${PATH}" \ + WANT_AUTOCONF_2_5=1 \ + NOCONFIGURE=yes \ + USER=blah \ + ./autogen.sh \ + || die "autogen failed" + econf ${MY_ECONF} || die "econf failed" + emake || die "emake failed" +} + +enlightenment_src_install() { + make install DESTDIR=${D} || die + find ${D} -name CVS -type d -exec rm -rf '{}' \; + [ -z "${EDOCS}" ] && EDOCS="AUTHORS ChangeLog NEWS README TODO" + dodoc ${EDOCS} + [ -d doc ] && dohtml -r doc/* +} |