diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2012-03-12 16:21:26 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2012-03-12 16:21:26 +0000 |
commit | 59c71f8a24ab9dd89ddcd530dacf64dbd490266f (patch) | |
tree | 0553f6f9840bfef9ebfd88b1baa0a0407a98ac07 /dev-util/cmt/cmt-1.24.ebuild | |
parent | Marking c2hs-0.16.3 ppc64 for bug 399971 (diff) | |
download | gentoo-2-59c71f8a24ab9dd89ddcd530dacf64dbd490266f.tar.gz gentoo-2-59c71f8a24ab9dd89ddcd530dacf64dbd490266f.tar.bz2 gentoo-2-59c71f8a24ab9dd89ddcd530dacf64dbd490266f.zip |
Version bump
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/cmt/cmt-1.24.ebuild')
-rw-r--r-- | dev-util/cmt/cmt-1.24.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/dev-util/cmt/cmt-1.24.ebuild b/dev-util/cmt/cmt-1.24.ebuild new file mode 100644 index 000000000000..257744eb996f --- /dev/null +++ b/dev-util/cmt/cmt-1.24.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cmt/cmt-1.24.ebuild,v 1.1 2012/03/12 16:21:26 bicatali Exp $ + +EAPI=4 +inherit eutils elisp-common toolchain-funcs versionator + +CPV=($(get_version_components ${PV})) +CMT_PV=v${CPV[0]}r${CPV[1]} + +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_prepare() { + epatch "${FILESDIR}"/${PN}-1.22-limits.patch +} + +src_configure() { + cd "${S}"/mgr + ./INSTALL + source setup.sh +} + +src_compile() { + cd "${S}"/mgr + emake -j1 \ + cpp="$(tc-getCXX)" \ + cppflags="${CXXFLAGS}" \ + cpplink="$(tc-getCXX) ${LDFLAGS}" + + sed -i -e "s:${WORKDIR}:${EPREFIX}/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="${EPREFIX}"/usr/$(get_libdir)/CMT/${CMT_PV} + dodir ${CMTDIR} + cp -pPR mgr src ${CMTBIN} "${ED}"/${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 "${ED}"/${CMTDIR} + echo "#!${EPREFIX}/bin/sh" > jcmt + echo "java cmt_parser" >> jcmt + exeinto /usr/bin + doexe jcmt + echo "CLASSPATH=\"${CMTDIR}/java/cmt.jar\"" >> 99cmt + fi + + doenvd 99cmt + dodoc ChangeLog doc/*.txt + dohtml doc/{ChangeLog,ReleaseNotes}.html + + if use doc; then + emake -C mgr gendoc + insinto /usr/share/doc/${PF} + doins -r doc/{CMTDoc,CMTFAQ}.{html,pdf} doc/Images + doins -r demo + 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 +} |