diff options
author | Marijn Schouten <hkbst@gentoo.org> | 2007-11-18 17:50:50 +0000 |
---|---|---|
committer | Marijn Schouten <hkbst@gentoo.org> | 2007-11-18 17:50:50 +0000 |
commit | 78092b56712951e71ad56e33a5125233ace23870 (patch) | |
tree | dfb3f8796cb763c729e5844b33d3aaca9abe4563 /dev-lang/smlnj | |
parent | Stable on ppc64; bug #198992 (diff) | |
download | gentoo-2-78092b56712951e71ad56e33a5125233ace23870.tar.gz gentoo-2-78092b56712951e71ad56e33a5125233ace23870.tar.bz2 gentoo-2-78092b56712951e71ad56e33a5125233ace23870.zip |
fix several issues that prevented sml from working correctly, bug 139381
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-lang/smlnj')
-rw-r--r-- | dev-lang/smlnj/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/smlnj/files/digest-smlnj-110.67-r1 (renamed from dev-lang/smlnj/files/digest-smlnj-110.67) | 0 | ||||
-rw-r--r-- | dev-lang/smlnj/smlnj-110.67-r1.ebuild (renamed from dev-lang/smlnj/smlnj-110.67.ebuild) | 49 |
3 files changed, 19 insertions, 38 deletions
diff --git a/dev-lang/smlnj/ChangeLog b/dev-lang/smlnj/ChangeLog index 9e3c81d0d3e6..8373004f094b 100644 --- a/dev-lang/smlnj/ChangeLog +++ b/dev-lang/smlnj/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/smlnj # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/smlnj/ChangeLog,v 1.17 2007/11/15 22:18:13 hkbst Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/smlnj/ChangeLog,v 1.18 2007/11/18 17:50:49 hkbst Exp $ + +*smlnj-110.67-r1 (18 Nov 2007) + + 18 Nov 2007; Marijn Schouten <hkBst@gentoo.org> -smlnj-110.67.ebuild, + +smlnj-110.67-r1.ebuild: + fix several issues that prevented sml from working correctly, bug 139381 15 Nov 2007; Marijn Schouten <hkBst@gentoo.org> files/digest-smlnj-110.67, Manifest: diff --git a/dev-lang/smlnj/files/digest-smlnj-110.67 b/dev-lang/smlnj/files/digest-smlnj-110.67-r1 index 95e21a79b91e..95e21a79b91e 100644 --- a/dev-lang/smlnj/files/digest-smlnj-110.67 +++ b/dev-lang/smlnj/files/digest-smlnj-110.67-r1 diff --git a/dev-lang/smlnj/smlnj-110.67.ebuild b/dev-lang/smlnj/smlnj-110.67-r1.ebuild index 94dee1b4ea03..7e79344d7997 100644 --- a/dev-lang/smlnj/smlnj-110.67.ebuild +++ b/dev-lang/smlnj/smlnj-110.67-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/smlnj/smlnj-110.67.ebuild,v 1.1 2007/11/15 17:48:39 hkbst Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/smlnj/smlnj-110.67-r1.ebuild,v 1.1 2007/11/18 17:50:49 hkbst Exp $ inherit eutils @@ -71,38 +71,15 @@ src_unpack() { for file in ${A}; do [[ ${file} != ${P}-config.tgz ]] && mv "${DISTDIR}/${file}" "${S}/${file#${P}-}" done - unpack ${P}-config.tgz -} - -_src_unpack() { - unpack ${P}-config.tgz - - mkdir ${S}/srcarchive - echo SRCARCHIVEURL=\"file:/${S}\" > ${S}/config/srcarchiveurl -} - -__src_unpack() { - unpack ${A} - - mkdir -p "${WORKDIR}/src" - - for dir in ${WORKDIR}/*; do -# echo ${dir} - [[ -d $dir && ( ! $dir =~ .*config ) && ( ! $dir =~ .*src ) ]] && mv ${dir} ${WORKDIR}/src - done - -# printf ${GEN_POSIX_NAMES_PATCH} | ed -s ${WORKDIR}/src/runtime/config/gen-posix-names.sh + unpack ${P}-config.tgz && rm config/*.bat + echo SRCARCHIVEURL=\"file:/${S}\" > "${S}"/config/srcarchiveurl } src_compile() { -# export SMLNJ_HOME=${WORKDIR} -# cd ${WORKDIR} - # echo "request ml-burg" >> $SMLNJ_TARGETS # echo "request eXene" >> $SMLNJ_TARGETS -# LC_ALL=C ./config/install.sh || die - ./config/install.sh || die "compilation failed" + SMLNJ_HOME="${S}" ./config/install.sh || die "compilation failed" } _src_install() { @@ -113,11 +90,16 @@ _src_install() { src_install() { mkdir -p "${D}"/usr mv {bin,lib} "${D}"/usr + + for file in "${D}"/usr/bin/{*,.*}; do + [[ -f ${file} ]] && sed "2iSMLNJ_HOME=/usr" -i ${file} +# [[ -f ${file} ]] && sed "s:${WORKDIR}:/usr:" -i ${file} + done } _src_install() { dodir ${SMLNJ_DEST} - cd ${WORKDIR} + cd "${WORKDIR}" sed -i -e "s/head -1/head -n 1/" bin/.run-sml @@ -135,10 +117,10 @@ _src_install() { dosym .run-sml ${SMLNJ_DEST}/bin/$i done - cp -Rp ${WORKDIR}/lib ${D}/${SMLNJ_DEST} + cp -Rp "${WORKDIR}"/lib "${D}/${SMLNJ_DEST}" dodir /etc/env.d - echo -e SMLNJ_HOME=${SMLNJ_DEST} > ${D}/etc/env.d/50smlnj + echo -e SMLNJ_HOME=${SMLNJ_DEST} > "${D}"/etc/env.d/50smlnj #need to provide symlinks into /usr/bin dodir /usr/bin @@ -149,10 +131,3 @@ _src_install() { dosym ${SMLNJ_DEST}/bin/ml-yacc /usr/bin dosym ${SMLNJ_DEST}/bin/sml /usr/bin } - -_pkg_postinst() -{ - elog - elog "You need to run env-update to get a working installation" - elog -} |