aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2006-04-26 13:45:48 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2006-04-26 13:45:48 +0000
commitc84477c0235cbf819eb386dcd9d1bdd400e224d6 (patch)
treec7ef0382cfb711d8301c8aaa52a3bdd05c058c3d /dev-util/cmt/cmt-1.18.20060301.ebuild
parentadded cmt-1.18.20060301 (diff)
downloadsci-c84477c0235cbf819eb386dcd9d1bdd400e224d6.tar.gz
sci-c84477c0235cbf819eb386dcd9d1bdd400e224d6.tar.bz2
sci-c84477c0235cbf819eb386dcd9d1bdd400e224d6.zip
cmt-1.18.20060301.ebuild: fixed CMTDIR
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@195 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'dev-util/cmt/cmt-1.18.20060301.ebuild')
-rw-r--r--dev-util/cmt/cmt-1.18.20060301.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-util/cmt/cmt-1.18.20060301.ebuild b/dev-util/cmt/cmt-1.18.20060301.ebuild
index e680379a4..3305df300 100644
--- a/dev-util/cmt/cmt-1.18.20060301.ebuild
+++ b/dev-util/cmt/cmt-1.18.20060301.ebuild
@@ -17,7 +17,8 @@ KEYWORDS="~amd64 ~x86"
IUSE="java doc"
S=${WORKDIR}/CMT/${CMT_PV}
-CMTDIR=/usr/share/${PN}/${CMT_PV}
+CMTDIR=/usr/share/CMT/${CMT_PV}
+
src_compile() {
cd ${S}/mgr
@@ -33,16 +34,19 @@ src_install() {
sed -i -e "s:${S}:${CMTDIR}:" mgr/setup.{sh,csh}
dodir ${CMTDIR}
cp -pPR mgr src "${D}"/${CMTDIR}
- exeinto /usr/bin
- newexe ${CMTCONFIG}/cmt.exe cmt
echo "CMTROOT=${CMTDIR}" > 99cmt
echo "CMTBIN=`uname`-`uname -m | sed -e 's# ##g'`" >> 99cmt
echo "CMTCONFIG=`${CMTROOT}/mgr/cmt_system.sh`" >> 99cmt
+ rm -f ${CMTBIN}/*.o
+ cp -pPR ${CMTBIN} "${D}"/${CMTDIR}
+ dodir /usr/bin
+ dosym ${CMTDIR}/${CMTBIN}/cmt.exe /usr/bin/cmt
if use java; then
echo "#!/bin/sh" > jcmt
echo "java cmt_parser" >> jcmt
+ exeinto /usr/bin
doexe jcmt
echo "CLASSPATH=${CLASSPATH}:${CMTDIR}/java/cmt.jar" >> 99cmt
fi