diff options
author | Benda Xu <heroxbd@gentoo.org> | 2019-12-03 18:51:16 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2019-12-03 18:51:34 +0800 |
commit | c1a8c6348f6c2ad961f513f7309c7bb3db71a986 (patch) | |
tree | 10b404b47f4369bdc9a6fe9e1d3c19aa7b0bb16f /dev-util/cmt | |
parent | dev-util/dwarves: bind the maximum version of elfutils (diff) | |
download | gentoo-c1a8c6348f6c2ad961f513f7309c7bb3db71a986.tar.gz gentoo-c1a8c6348f6c2ad961f513f7309c7bb3db71a986.tar.bz2 gentoo-c1a8c6348f6c2ad961f513f7309c7bb3db71a986.zip |
dev-util/cmt: bump version and EAPI.
Adopt the package.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util/cmt')
-rw-r--r-- | dev-util/cmt/Manifest | 1 | ||||
-rw-r--r-- | dev-util/cmt/cmt-1.26_p20160527.ebuild | 88 | ||||
-rw-r--r-- | dev-util/cmt/metadata.xml | 4 |
3 files changed, 92 insertions, 1 deletions
diff --git a/dev-util/cmt/Manifest b/dev-util/cmt/Manifest index 48b4a47bcbd6..2dd414d47b24 100644 --- a/dev-util/cmt/Manifest +++ b/dev-util/cmt/Manifest @@ -1 +1,2 @@ DIST CMTv1r26.tar.gz 2194291 BLAKE2B 9c45cc5440fd8698c06343a1c5c0f26b9047c885bb93678cf15ec42b15951d055d45511b221642c756c447709e7ace480fff4ad88f8185ee5390f227d4f2ded8 SHA512 412366dbf4aaef9f092f9472792e314c6d8f3e0360ddfa6d135e2bea9a167b627ddc78ad5a2d4f5139b4835abb68c06166abf3204bf5ba3969089923782e817e +DIST CMTv1r26p20160527.tar.gz 2221004 BLAKE2B f9a57fcba7982e9d2f4c04f0c7f8f541a4b16a1555b95d0bad98cc1cd0cc5df7cbf7a6be37442c849451a78770749040ec001f16a53340e0cd3bcb68c3f6aa2d SHA512 36b3f020973d2ec518c25c589fdd981abd594cc8f7651c6636d72d5f6fed3fe6c8ba6128690533a9ab748abfbdc9b47d1b2289c99686031a8cc7fe9a43b68a6e diff --git a/dev-util/cmt/cmt-1.26_p20160527.ebuild b/dev-util/cmt/cmt-1.26_p20160527.ebuild new file mode 100644 index 000000000000..71772dec6211 --- /dev/null +++ b/dev-util/cmt/cmt-1.26_p20160527.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils elisp-common multilib toolchain-funcs + +CMT_PV=v$(ver_rs 1 r 2 "") + +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 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/metadata.xml b/dev-util/cmt/metadata.xml index 0f9287ff41d9..f4702aff8668 100644 --- a/dev-util/cmt/metadata.xml +++ b/dev-util/cmt/metadata.xml @@ -1,7 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>heroxbd@gentoo.org</email> + </maintainer> <longdescription lang="en"> CMT is a configuration management environment, based on some management conventions and comprises several shell-based |