aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorGuillermo Ramos2012-09-07 16:31:30 +0000
committerGuillermo Ramos2012-09-07 16:31:30 +0000
commit4578f5735710f4f6ea8dcdf0c998bd47bfab4487 (patch)
treea9fb413f24ff7c9e430729a03ab534fa006371b7 /packages
parent7bf1afc97cc81592b2423f0182ef9bc5fcf2f327 (diff)
downloadexheres-4578f5735710f4f6ea8dcdf0c998bd47bfab4487.tar.gz
Make clojure use alternatives instead of symlinks
Diffstat (limited to 'packages')
-rw-r--r--packages/dev-lang/clojure/clojure-1.4.0.exheres-06
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/dev-lang/clojure/clojure-1.4.0.exheres-0 b/packages/dev-lang/clojure/clojure-1.4.0.exheres-0
index 14f1159..73feb86 100644
--- a/packages/dev-lang/clojure/clojure-1.4.0.exheres-0
+++ b/packages/dev-lang/clojure/clojure-1.4.0.exheres-0
@@ -3,7 +3,7 @@
# Based in part upon 'clojure-1.4.0.ebuild' from Gentoo, which is:
# Copyright 1999-2012 Gentoo Foundation
-require ant
+require alternatives ant
SUMMARY="Clojure is a dynamic programming language that targets the Java Virtual Machine"
HOMEPAGE="http://clojure.org/"
@@ -38,8 +38,8 @@ src_install() {
exeinto /usr/bin/
doexe ${FILES}/${SHORT_PNV}
- # Is this ethical?
- dosym /usr/bin/${SHORT_PNV} /usr/bin/${PN}
+ alternatives_for ${PN} ${SLOT} 0 \
+ "/usr/bin/${PN}" "${SHORT_PNV}"
dodoc changes.md readme.txt
}