aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb>2007-02-15 17:58:25 +0000
committergrozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb>2007-02-15 17:58:25 +0000
commit1b129d1ae0f2992567d13a034d6838a6ae0af170 (patch)
tree230dd68bb92554c9289ccd0856a283ef5a8bd1e4 /dev-lang/aldor/aldor-1.0.3.ebuild
parentaldor-1.0.3 (binary, x86 only) (diff)
downloadsci-1b129d1ae0f2992567d13a034d6838a6ae0af170.tar.gz
sci-1b129d1ae0f2992567d13a034d6838a6ae0af170.tar.bz2
sci-1b129d1ae0f2992567d13a034d6838a6ae0af170.zip
aldor-1.0.3 (binary, x86 only)
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@488 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'dev-lang/aldor/aldor-1.0.3.ebuild')
-rw-r--r--dev-lang/aldor/aldor-1.0.3.ebuild30
1 files changed, 15 insertions, 15 deletions
diff --git a/dev-lang/aldor/aldor-1.0.3.ebuild b/dev-lang/aldor/aldor-1.0.3.ebuild
index 32eb22b36..a07ff563e 100644
--- a/dev-lang/aldor/aldor-1.0.3.ebuild
+++ b/dev-lang/aldor/aldor-1.0.3.ebuild
@@ -48,31 +48,27 @@ pkg_nofetch() {
einfo "Then move the downloaded file${PLURAL} to ${DISTDIR}"
}
-src_unpack() {
+src_compile() {
if use emacs; then
notangle "${DISTDIR}/aldor.el.nw" > aldor.el
notangle -Rinit.el "${DISTDIR}/aldor.el.nw" | \
sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el
- use doc && noweave "${DISTDIR}/aldor.el.nw" > aldor-mode.tex
- fi
-}
-
-src_compile() {
- if use doc; then
- dvipdfm algebra.dvi
- if use emacs; then
+ if use doc; then
+ noweave "${DISTDIR}/aldor.el.nw" > aldor-mode.tex
pdflatex aldor-mode.tex
pdflatex aldor-mode.tex
fi
fi
+ if use doc; then
+ dvipdfm algebra.dvi
+ fi
}
src_install() {
local LINE="205"
dodir /opt
cd "${D}/opt"
- tail -n +"${LINE}" "${DISTDIR}/${SRC_URI}" | tar xzf -
- dodir "/opt/${PN}/${PV}"
+ tail -n +"${LINE}" "${DISTDIR}/${ALDOR}" | tar xzf -
cd "${D}/opt/${PN}/linux/${PV}/bin"
cd "${S}"
cat > 64aldor <<EOF
@@ -91,11 +87,15 @@ EOF
}
pkg_postinst() {
- ln -s "/opt/${PN}/linux/${PV}" "/opt/${PN}/${PV}/linux"
- ln -s `which ar` "/opt/${PN}/linux/${PV}/bin/uniar"
+ mkdir "${ROOT}opt/${PN}/${PV}"
+ ln -s "${ROOT}opt/${PN}/linux/${PV}" "${ROOT}opt/${PN}/${PV}/linux"
+ ln -s `which ar` "${ROOT}opt/${PN}/linux/${PV}/bin/uniar"
+ use emacs && elisp-site-regen
}
pkg_prerm() {
- rm -f "/opt/${PN}/${PV}/linux"
- rm -rf "/opt/${PN}/linux"
+ rm -f "${ROOT}opt/${PN}/${PV}/linux"
+ rmdir "${ROOT}opt/${PN}/${PV}"
+ rm -f "${ROOT}opt/${PN}/linux/${PV}/bin/uniar"
+ [ -f "${SITELISP}/site-gentoo.el" ] && elisp-site-regen
}