summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAnant Narayanan <anant@gentoo.org>2007-04-01 18:37:37 +0000
committerAnant Narayanan <anant@gentoo.org>2007-04-01 18:37:37 +0000
commit7dbb60a71dadb05f908e2799b4cd117415026d8c (patch)
treea374c62616030c2a71c60a87a17d1b937f5ce08a /eclass
parentInitial import of overlay (diff)
downloadplan9-7dbb60a71dadb05f908e2799b4cd117415026d8c.tar.gz
plan9-7dbb60a71dadb05f908e2799b4cd117415026d8c.tar.bz2
plan9-7dbb60a71dadb05f908e2799b4cd117415026d8c.zip
Add acme and its dependencies
svn path=/; revision=2
Diffstat (limited to 'eclass')
-rw-r--r--eclass/plan9-libs.eclass14
1 files changed, 12 insertions, 2 deletions
diff --git a/eclass/plan9-libs.eclass b/eclass/plan9-libs.eclass
index 279aa33..5266b9c 100644
--- a/eclass/plan9-libs.eclass
+++ b/eclass/plan9-libs.eclass
@@ -23,7 +23,12 @@ S="${WORKDIR}/plan9"
function set_path() {
PLAN9=`pwd` export PLAN9
PATH=/bin:/usr/bin:$PLAN9/bin:$PATH export PATH
- cd ${S}/src/${PN}
+
+ if [[ -e ${S}/src/${PN} ]]; then
+ cd ${S}/src/${PN}
+ else
+ cd ${S}/src/cmd/${PN}
+ fi
}
function plan9-libs_src_compile() {
@@ -34,7 +39,12 @@ function plan9-libs_src_compile() {
function plan9-libs_src_install() {
set_path
mk install || die "Install Failed!"
- dolib.a ${S}/lib/${PN}.a
+
+ if [[ -n "$PLIBNAME" ]]; then
+ dolib.a ${S}/lib/${PLIBNAME}.a
+ else
+ dolib.a ${S}/lib/${PN}.a
+ fi
if [[ -n "$PHEADERS" ]]; then
insinto /usr/include/plan9