diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-04-21 16:39:01 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-04-21 16:39:01 +0000 |
commit | c6987a9b800bb5a708a1cc7038183515044631e2 (patch) | |
tree | fa3f3d2b945738ca33c1a66673b025fcd3fee810 /dev-util/cmt | |
parent | Version bump (diff) | |
download | gentoo-2-c6987a9b800bb5a708a1cc7038183515044631e2.tar.gz gentoo-2-c6987a9b800bb5a708a1cc7038183515044631e2.tar.bz2 gentoo-2-c6987a9b800bb5a708a1cc7038183515044631e2.zip |
Bump
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/cmt')
-rw-r--r-- | dev-util/cmt/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/cmt/cmt-1.20.20081118.ebuild | 96 |
2 files changed, 104 insertions, 2 deletions
diff --git a/dev-util/cmt/ChangeLog b/dev-util/cmt/ChangeLog index f3b8257a4d62..b00b044bd26f 100644 --- a/dev-util/cmt/ChangeLog +++ b/dev-util/cmt/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/cmt -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cmt/ChangeLog,v 1.5 2008/10/13 22:09:40 bicatali Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cmt/ChangeLog,v 1.6 2009/04/21 16:39:01 bicatali Exp $ + +*cmt-1.20.20081118 (21 Apr 2009) + + 21 Apr 2009; Sébastien Fabbro <bicatali@gentoo.org> + +cmt-1.20.20081118.ebuild: + Bump 13 Oct 2008; Sébastien Fabbro <bicatali@gentoo.org> files/80cmt-mode-gentoo.el, cmt-1.20.20080222.ebuild: diff --git a/dev-util/cmt/cmt-1.20.20081118.ebuild b/dev-util/cmt/cmt-1.20.20081118.ebuild new file mode 100644 index 000000000000..8214ec380afa --- /dev/null +++ b/dev-util/cmt/cmt-1.20.20081118.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cmt/cmt-1.20.20081118.ebuild,v 1.1 2009/04/21 16:39:01 bicatali Exp $ + +EAPI=2 +inherit eutils elisp-common toolchain-funcs versionator + +CPV=($(get_version_components ${PV})) +CMT_PV=v${CPV[0]}r${CPV[1]}p${CPV[2]} + +DESCRIPTION="Cross platform configuration management environment" +HOMEPAGE="http://www.cmtsite.org/" +SRC_URI="http://www.cmtsite.org/${CMT_PV}/CMT${CMT_PV}.tar.gz" + +LICENSE="CeCILL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="emacs java doc" + +DEPEND="emacs? ( virtual/emacs )" +RDEPEND="${DEPEND} + java? ( virtual/jdk )" + +S="${WORKDIR}/CMT/${CMT_PV}" + +src_configure() { + cd "${S}"/mgr + ./INSTALL + source setup.sh +} + +src_compile() { + cd "${S}"/mgr + emake -j1 \ + cpp="$(tc-getCXX)" \ + cppflags="${CXXFLAGS}" \ + || die "emake failed" + + sed -i -e "s:${WORKDIR}:/usr/$(get_libdir):g" setup.*sh || die + cd "${S}" + mv src/demo . + rm -f ${CMTBIN}/*.o + + if use emacs; then + elisp-compile doc/cmt-mode.el || die + fi +} + +src_install() { + CMTDIR=/usr/$(get_libdir)/CMT/${CMT_PV} + dodir ${CMTDIR} + cp -pPR mgr src ${CMTBIN} "${D}"/${CMTDIR} || die + dodir /usr/bin + dosym ${CMTDIR}/${CMTBIN}/cmt.exe /usr/bin/cmt + + cat > 99cmt <<-EOF + CMTROOT="${CMTDIR}" + CMTBIN="$(uname)-$(uname -m | sed -e 's# ##g')" + CMTCONFIG="$(${CMTROOT}/mgr/cmt_system.sh)" + EOF + if use java; then + cp -pPR java "${D}"/${CMTDIR} + echo "#!/bin/sh" > jcmt + echo "java cmt_parser" >> jcmt + exeinto /usr/bin + doexe jcmt || die "doexe failed" + echo "CLASSPATH=\"${CMTDIR}/java/cmt.jar\"" >> 99cmt + fi + + doenvd 99cmt || die "doenvd failed" + dodoc ChangeLog doc/*.txt || die "dodoc failed" + dohtml doc/{ChangeLog,ReleaseNotes}.html || die "dohtml failed" + + if use doc; then + cd "${S}"/mgr + emake gendoc || die "emake gendoc failed" + insinto /usr/share/doc/${PF} + cd "${S}"/doc + doins -r {CMTDoc,CMTFAQ}.{html,pdf} Images || die "doc install failed" + cd "${S}" + doins -r demo || die "doins demo failed" + fi + + if use emacs; then + elisp-install ${PN} doc/cmt-mode.{el,elc} || die + elisp-site-file-install "${FILESDIR}"/80cmt-mode-gentoo.el || die + fi +} + +pkg_postinst () { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |