Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/cmt: ChangeLog cmt-1.20.20081118.ebuild
Date: Tue, 21 Apr 2009 16:39:04
Message-Id: E1LwIzt-0003PW-OG@stork.gentoo.org
1 bicatali 09/04/21 16:39:01
2
3 Modified: ChangeLog
4 Added: cmt-1.20.20081118.ebuild
5 Log:
6 Bump
7 (Portage version: 2.2_rc28/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.6 dev-util/cmt/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmt/ChangeLog?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmt/ChangeLog?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmt/ChangeLog?r1=1.5&r2=1.6
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/cmt/ChangeLog,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- ChangeLog 13 Oct 2008 22:09:40 -0000 1.5
23 +++ ChangeLog 21 Apr 2009 16:39:01 -0000 1.6
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-util/cmt
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cmt/ChangeLog,v 1.5 2008/10/13 22:09:40 bicatali Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cmt/ChangeLog,v 1.6 2009/04/21 16:39:01 bicatali Exp $
30 +
31 +*cmt-1.20.20081118 (21 Apr 2009)
32 +
33 + 21 Apr 2009; Sébastien Fabbro <bicatali@g.o>
34 + +cmt-1.20.20081118.ebuild:
35 + Bump
36
37 13 Oct 2008; Sébastien Fabbro <bicatali@g.o>
38 files/80cmt-mode-gentoo.el, cmt-1.20.20080222.ebuild:
39
40
41
42 1.1 dev-util/cmt/cmt-1.20.20081118.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmt/cmt-1.20.20081118.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmt/cmt-1.20.20081118.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cmt-1.20.20081118.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/cmt/cmt-1.20.20081118.ebuild,v 1.1 2009/04/21 16:39:01 bicatali Exp $
52
53 EAPI=2
54 inherit eutils elisp-common toolchain-funcs versionator
55
56 CPV=($(get_version_components ${PV}))
57 CMT_PV=v${CPV[0]}r${CPV[1]}p${CPV[2]}
58
59 DESCRIPTION="Cross platform configuration management environment"
60 HOMEPAGE="http://www.cmtsite.org/"
61 SRC_URI="http://www.cmtsite.org/${CMT_PV}/CMT${CMT_PV}.tar.gz"
62
63 LICENSE="CeCILL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="emacs java doc"
67
68 DEPEND="emacs? ( virtual/emacs )"
69 RDEPEND="${DEPEND}
70 java? ( virtual/jdk )"
71
72 S="${WORKDIR}/CMT/${CMT_PV}"
73
74 src_configure() {
75 cd "${S}"/mgr
76 ./INSTALL
77 source setup.sh
78 }
79
80 src_compile() {
81 cd "${S}"/mgr
82 emake -j1 \
83 cpp="$(tc-getCXX)" \
84 cppflags="${CXXFLAGS}" \
85 || die "emake failed"
86
87 sed -i -e "s:${WORKDIR}:/usr/$(get_libdir):g" setup.*sh || die
88 cd "${S}"
89 mv src/demo .
90 rm -f ${CMTBIN}/*.o
91
92 if use emacs; then
93 elisp-compile doc/cmt-mode.el || die
94 fi
95 }
96
97 src_install() {
98 CMTDIR=/usr/$(get_libdir)/CMT/${CMT_PV}
99 dodir ${CMTDIR}
100 cp -pPR mgr src ${CMTBIN} "${D}"/${CMTDIR} || die
101 dodir /usr/bin
102 dosym ${CMTDIR}/${CMTBIN}/cmt.exe /usr/bin/cmt
103
104 cat > 99cmt <<-EOF
105 CMTROOT="${CMTDIR}"
106 CMTBIN="$(uname)-$(uname -m | sed -e 's# ##g')"
107 CMTCONFIG="$(${CMTROOT}/mgr/cmt_system.sh)"
108 EOF
109 if use java; then
110 cp -pPR java "${D}"/${CMTDIR}
111 echo "#!/bin/sh" > jcmt
112 echo "java cmt_parser" >> jcmt
113 exeinto /usr/bin
114 doexe jcmt || die "doexe failed"
115 echo "CLASSPATH=\"${CMTDIR}/java/cmt.jar\"" >> 99cmt
116 fi
117
118 doenvd 99cmt || die "doenvd failed"
119 dodoc ChangeLog doc/*.txt || die "dodoc failed"
120 dohtml doc/{ChangeLog,ReleaseNotes}.html || die "dohtml failed"
121
122 if use doc; then
123 cd "${S}"/mgr
124 emake gendoc || die "emake gendoc failed"
125 insinto /usr/share/doc/${PF}
126 cd "${S}"/doc
127 doins -r {CMTDoc,CMTFAQ}.{html,pdf} Images || die "doc install failed"
128 cd "${S}"
129 doins -r demo || die "doins demo failed"
130 fi
131
132 if use emacs; then
133 elisp-install ${PN} doc/cmt-mode.{el,elc} || die
134 elisp-site-file-install "${FILESDIR}"/80cmt-mode-gentoo.el || die
135 fi
136 }
137
138 pkg_postinst () {
139 use emacs && elisp-site-regen
140 }
141
142 pkg_postrm() {
143 use emacs && elisp-site-regen
144 }