summaryrefslogtreecommitdiff
path: root/dev-util/cmt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/cmt
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/cmt')
-rw-r--r--dev-util/cmt/Manifest4
-rw-r--r--dev-util/cmt/cmt-1.26.ebuild90
-rw-r--r--dev-util/cmt/files/80cmt-mode-gentoo.el6
-rw-r--r--dev-util/cmt/metadata.xml14
4 files changed, 114 insertions, 0 deletions
diff --git a/dev-util/cmt/Manifest b/dev-util/cmt/Manifest
new file mode 100644
index 000000000000..f9f2b12180c9
--- /dev/null
+++ b/dev-util/cmt/Manifest
@@ -0,0 +1,4 @@
+AUX 80cmt-mode-gentoo.el 207 BLAKE2B dd882d2b5eafca38bb300bac4848792357943c954bcc3825bf5e1e0818d0bd0f12bf975a20dbe78e45bedad9dc6a1d122534b4e51ef8083bab828a0a241a9bc9 SHA512 a4006264cde07d84ab9171f48fa2d18c3c6e3fe3025acd55707d94f96dac9573e22e45196d784d9aa04f904fe0d3ee99e63f3a2aded00ee7d76a305728c1ae8d
+DIST CMTv1r26.tar.gz 2194291 BLAKE2B 9c45cc5440fd8698c06343a1c5c0f26b9047c885bb93678cf15ec42b15951d055d45511b221642c756c447709e7ace480fff4ad88f8185ee5390f227d4f2ded8 SHA512 412366dbf4aaef9f092f9472792e314c6d8f3e0360ddfa6d135e2bea9a167b627ddc78ad5a2d4f5139b4835abb68c06166abf3204bf5ba3969089923782e817e
+EBUILD cmt-1.26.ebuild 2035 BLAKE2B d77f5b74e6e35019e28454712b4b4398959468ab433948fe98c16385a024e491cdb37ad49ff9d04aec798da954e75a8862875a5402a90bf82a31dd7c3f8b1b5d SHA512 e16d9e2d7da3ba148fa4e5ca7d1578ab4eba13b3953c851d06341cc188285e6d434b2b8a6fe8483916fed9ecf6eeaae0311fd30e9b891d3bcd782b979d80e2c0
+MISC metadata.xml 633 BLAKE2B 299f7f5b12cd6bd3b48cc753ef35ecae60140e8d38110becc5670c9fc6b555aaa22015d6895bded49353e19c8b1bc09e22997d13736a0089033c9ccbae0cede3 SHA512 e0e6c39d85e7a9f567561d76522a4e2b985f19969a686638717debee62ad7c94c0b2ae8fd1949c3e51d550c589de4fbfae793f8f4568e18a2ec1c9750c0fa7d7
diff --git a/dev-util/cmt/cmt-1.26.ebuild b/dev-util/cmt/cmt-1.26.ebuild
new file mode 100644
index 000000000000..c36fd4ad8f2b
--- /dev/null
+++ b/dev-util/cmt/cmt-1.26.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils elisp-common multilib 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.net/"
+SRC_URI="http://www.cmtsite.net/${CMT_PV}/CMT${CMT_PV}.tar.gz"
+
+LICENSE="CeCILL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="emacs java doc"
+
+DEPEND="emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}
+ java? ( virtual/jdk )"
+
+S="${WORKDIR}/CMT/${CMT_PV}"
+
+src_configure() {
+ cd "${S}"/mgr || die
+ ./INSTALL || die
+ source setup.sh
+}
+
+src_compile() {
+ cd "${S}"/mgr || die
+ emake \
+ cpp="$(tc-getCXX)" \
+ cppflags="${CXXFLAGS}" \
+ cpplink="$(tc-getCXX) ${LDFLAGS}"
+
+ sed -i -e "s:${WORKDIR}:${EPREFIX}/usr/$(get_libdir):g" setup.*sh || die
+ cd "${S}" || die
+ mv src/demo . || die
+ rm ${CMTBIN}/*.o || die
+
+ use emacs && elisp-compile doc/cmt-mode.el
+}
+
+src_install() {
+ CMTDIR=/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="${EROOT%/}${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
+ dobin 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
+}
diff --git a/dev-util/cmt/files/80cmt-mode-gentoo.el b/dev-util/cmt/files/80cmt-mode-gentoo.el
new file mode 100644
index 000000000000..91be98ebc614
--- /dev/null
+++ b/dev-util/cmt/files/80cmt-mode-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; cmt site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'cmt-mode "cmt-mode" "CMT requirements file editing mode." t)
+(add-to-list 'auto-mode-alist '("requirements\\'" . cmt-mode))
diff --git a/dev-util/cmt/metadata.xml b/dev-util/cmt/metadata.xml
new file mode 100644
index 000000000000..0f9287ff41d9
--- /dev/null
+++ b/dev-util/cmt/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ CMT is a configuration management environment, based on some
+ management conventions and comprises several shell-based
+ utilities. It is an attempt to formalize software production and
+ especially configuration management around a package-oriented
+ principle. Used in High Energy Physics large experiments, where
+ tailored packages are developped and they do not know the existence
+ of portage and overlays.
+</longdescription>
+</pkgmetadata>