| 1 |
# Copyright 1999-2003 Gentoo Technologies, Inc.
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /home/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.3 2003/10/21 13:10:10 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 |
DESCRIPTION="A DR17 production"
|
| 13 |
HOMEPAGE="http://www.enlightenment.org/"
|
| 14 |
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
| 15 |
http://wh0rd.de/gentoo/distfiles/${P}.tar.bz2"
|
| 16 |
|
| 17 |
LICENSE="as-is"
|
| 18 |
SLOT="0"
|
| 19 |
KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64"
|
| 20 |
IUSE="nls"
|
| 21 |
|
| 22 |
DEPEND="nls? ( sys-devel/gettext )"
|
| 23 |
|
| 24 |
S=${WORKDIR}/${PN}
|
| 25 |
|
| 26 |
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 |
# 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 |
}
|
| 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 |
[ ! -z "${EHACKAUTOGEN}" ] && sed -i 's:.*configure.*::' autogen.sh
|
| 56 |
env \
|
| 57 |
PATH="${T}:${PATH}" \
|
| 58 |
WANT_AUTOCONF_2_5=1 \
|
| 59 |
NOCONFIGURE=yes \
|
| 60 |
USER=blah \
|
| 61 |
./autogen.sh \
|
| 62 |
|| die "autogen failed"
|
| 63 |
if [ ! -z "${EHACKLIBLTDL}" ] ; then
|
| 64 |
cd libltdl
|
| 65 |
env WANT_AUTOCONF_2_5=1 autoconf || die "autogen in libltdl failed"
|
| 66 |
cd ..
|
| 67 |
fi
|
| 68 |
econf ${MY_ECONF} || die "econf failed"
|
| 69 |
emake || die "emake failed"
|
| 70 |
}
|
| 71 |
|
| 72 |
enlightenment_src_install() {
|
| 73 |
make install DESTDIR=${D} || die
|
| 74 |
find ${D} -name CVS -type d -exec rm -rf '{}' \;
|
| 75 |
[ -z "${EDOCS}" ] && EDOCS="AUTHORS ChangeLog NEWS README TODO"
|
| 76 |
dodoc ${EDOCS}
|
| 77 |
[ -d doc ] && dohtml -r doc/*
|
| 78 |
}
|
| 79 |
|
| 80 |
enlightenment_pkg_postinst() {
|
| 81 |
enlightenment_warning_msg
|
| 82 |
}
|