diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-10-21 20:07:24 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-10-21 20:07:24 +0000 |
commit | 07829182ebd04f8dbed2c890ad656c2d729b05c6 (patch) | |
tree | c89423f9639c449c64d5f937a0ca342753efa1ee /eclass | |
parent | new version release. (diff) | |
download | historical-07829182ebd04f8dbed2c890ad656c2d729b05c6.tar.gz historical-07829182ebd04f8dbed2c890ad656c2d729b05c6.tar.bz2 historical-07829182ebd04f8dbed2c890ad656c2d729b05c6.zip |
smarter autodetection of ECVS_MODULE and S
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/enlightenment.eclass | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/eclass/enlightenment.eclass b/eclass/enlightenment.eclass index c2506b888c63..59844efa765c 100644 --- a/eclass/enlightenment.eclass +++ b/eclass/enlightenment.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.26 2004/10/21 19:59:40 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.27 2004/10/21 20:07:24 vapier Exp $ # # Author: vapier@gentoo.org @@ -11,8 +11,15 @@ EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst ECVS_STATE="release" if [ "${PV/9999}" != "${PV}" ] ; then - ECVS_MODULE="${ECVS_MODULE:-${PN}}" - ECVS_SERVER="cvs.sourceforge.net:/cvsroot/enlightenment" + if [ -z "${ECVS_MODULE}" ] ; then + ECVS_MODULE="${PN}" + if [ "${CATEGORY/libs}" != "${CATEGORY}" ] ; then + ECVS_MODULE="e17/libs/${PN}" + else + ECVS_MODULE="e17/apps/${PN}" + fi + fi + ECVS_SERVER="${ECVS_SERVER:-cvs.sourceforge.net:/cvsroot/enlightenment}" ECVS_STATE="live" inherit cvs elif [ "${PV/.200?????/}" != "${PV}" ] ; then @@ -37,8 +44,9 @@ DEPEND="doc? ( app-doc/doxygen ) RDEPEND="nls? ( sys-devel/gettext )" case ${ECVS_STATE} in - release) S=${WORKDIR}/${P};; - snap|live) S=${WORKDIR}/${PN};; + release) S=${WORKDIR}/${P};; + snap) S=${WORKDIR}/${PN};; + live) S=${WORKDIR}/${ECVS_MODULE};; esac enlightenment_warning_msg() { |