diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-09-13 20:11:13 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-09-13 20:11:13 +0000 |
commit | 66aee88c1d76ebb881809e0beecdd7867b656828 (patch) | |
tree | 1d3d1625c1a1ade8e8592f92c3f4023ab27e9bcd /eclass | |
parent | Added a snapshot. Renamed previous ebuild and marked it stable. (Manifest rec... (diff) | |
download | gentoo-2-66aee88c1d76ebb881809e0beecdd7867b656828.tar.gz gentoo-2-66aee88c1d76ebb881809e0beecdd7867b656828.tar.bz2 gentoo-2-66aee88c1d76ebb881809e0beecdd7867b656828.zip |
Support for snapshot ebuild.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/iiimf.eclass | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/eclass/iiimf.eclass b/eclass/iiimf.eclass index dc023409d258..34519d57c3c9 100644 --- a/eclass/iiimf.eclass +++ b/eclass/iiimf.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/iiimf.eclass,v 1.6 2004/06/29 15:16:23 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/iiimf.eclass,v 1.7 2004/09/13 20:11:13 usata Exp $ # # Author: Mamoru KOMACHI <usata@gentoo.org> # @@ -12,14 +12,30 @@ ECLASS=iiimf INHERITED="$INHERITED $ECLASS" EXPORT_FUNCTIONS src_compile src_install -IMSDK_PV="r${PV/./_}" -IMSDK_PN="im-sdk" -IMSDK_P="${IMSDK_PN}.${IMSDK_PV}" -IMSDK="${IMSDK_P//./-}" +snapshot() { + if [ "${PV:0:2}" -eq 12 ] ; then + true + else + false + fi +} + +IMSDK_PV="r${PV//./_}" +if snapshot ; then + MY_INFIX="-src-" + MY_PV="${IMSDK_PV/_pre/-svn}" + MY_SUFFIX="tgz" +else + MY_INFIX="." + MY_PV="${IMSDK_PV/_p/.}" + MY_SUFFIX="tar.bz2" +fi +IMSDK_P="im-sdk${MY_INFIX}${MY_PV}" +IMSDK="im-sdk-${MY_PV/./-}" DESCRIPTION="Based on the $ECLASS eclass" HOMEPAGE="http://www.openi18n.org/subgroups/im/IIIMF/" -SRC_URI="http://www.openi18n.org/download/docs/im-sdk/${IMSDK_P}.tar.bz2" +SRC_URI="http://www.openi18n.org/download/docs/im-sdk/${IMSDK_P}.${MY_SUFFIX}" LICENSE="MIT X11" SLOT="0" @@ -32,10 +48,12 @@ S="${WORKDIR}/${IMSDK}/${PN}" iiimf_src_compile() { + snapshot && ./autogen.sh + econf --enable-optimize \ `use_enable debug` || die # emake doesn't work on some libraries - make || die + emake -j1 || die } iiimf_src_install() { |