# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.13 2004/09/10 09:11:41 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.14 2004/10/08 19:09:23 axxo Exp $
inherit base
ECLASS=java-pkg
java-pkg_do_init_() {
debug-print-function ${FUNCNAME} $*
-
+
if [ -z "${JARDESTTREE}" ] ; then
JARDESTTREE="lib"
SODESTTREE="lib"
fi
-
+
# Set install paths
sharepath="${DESTTREE}/share"
if [ "$SLOT" == "0" ] ; then
else
pkg_name="${PN}-${SLOT}"
fi
-
+
shareroot="${sharepath}/${pkg_name}"
jardest="${shareroot}/${JARDESTTREE}"
sodest="/opt/${pkg_name}/${SODESTTREE}"
[ -z "$1" ]
java-pkg_do_init_
-
+
# Check for arguments
if [ -z "$*" ] ; then
die "at least one argument needed"
install -m 0755 "${mysrc}" "${D}${sodest}" || die "${mysrc} not found"
done
lp_pkg="${sodest}"
-
+
java-pkg_do_write_
}
die "Error in DEP_PREPEND."
fi
debug-print "cp_prepend=${cp_prepend}"
-
+
done
fi
cp_pkg="${cp_pkg}:${jardest}/"`/usr/bin/basename "${i}"`
fi
done
-
+
java-pkg_do_write_
}
{
debug-print-function ${FUNCNAME} $*
[ -z "$1" ]
-
+
# Check for arguments
if [ -z "$*" ] ; then
die "at least one argument needed"
fi
-
+
if [ -z "${WARDESTTREE}" ] ; then
WARDESTTREE="webapps"
fi
-
+
sharepath="${DESTTREE}/share"
shareroot="${sharepath}/${PN}"
wardest="${shareroot}/${WARDESTTREE}"
if [ ! -d "${D}${wardest}" ] ; then
install -d "${D}${wardest}"
fi
-
+
for i in $* ; do
# Check for symlink
if [ -L "${i}" ] ; then
return 0
else
return 1
- fi
+ fi
}