diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-09-14 10:56:17 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-09-14 10:56:17 +0000 |
commit | 52b6a3a0c96c36530687abd8a078c9dc8d159da0 (patch) | |
tree | dfd009291e3d280b91c76ebad25e3d58b5e27bf2 /eclass | |
parent | Version bump, compressed patches and QA fix (Manifest recommit) (diff) | |
download | gentoo-2-52b6a3a0c96c36530687abd8a078c9dc8d159da0.tar.gz gentoo-2-52b6a3a0c96c36530687abd8a078c9dc8d159da0.tar.bz2 gentoo-2-52b6a3a0c96c36530687abd8a078c9dc8d159da0.zip |
Moved im-sdk tarball to gentoo mirrors.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/iiimf.eclass | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/eclass/iiimf.eclass b/eclass/iiimf.eclass index 34519d57c3c9..766f0a30d3f0 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.7 2004/09/13 20:11:13 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/iiimf.eclass,v 1.8 2004/09/14 10:56:17 usata Exp $ # # Author: Mamoru KOMACHI <usata@gentoo.org> # @@ -12,30 +12,16 @@ ECLASS=iiimf INHERITED="$INHERITED $ECLASS" EXPORT_FUNCTIONS src_compile src_install -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/./-}" +MY_PV="${IMSDK_PV/_pre/-svn}" +MY_PV="${MY_PV/_p/-svn}" +IMSDK_P="im-sdk-src-${MY_PV}" +IMSDK="${IMSDK_P/-src/}}" 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}.${MY_SUFFIX}" +SRC_URI="mirror://gentoo/${IMSDK_P}.tgz + http://dev.gentoo.org/~usata/distfiles/${IMSDK_P}.tgz" LICENSE="MIT X11" SLOT="0" @@ -48,7 +34,9 @@ S="${WORKDIR}/${IMSDK}/${PN}" iiimf_src_compile() { - snapshot && ./autogen.sh + if [ "${PV:0:2}" -eq 12 ] ; then + ./autogen.sh + fi econf --enable-optimize \ `use_enable debug` || die |