summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2006-03-25 16:53:36 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2006-03-25 16:53:36 +0000
commit8483f0b3395088a5ecc2b2161f4ddf31a83ee235 (patch)
tree32008ff4cc3a579dbace9deee3f28aaf4c904f6e /eclass
parentFace the facts... it's already 2006 (diff)
downloadgentoo-2-8483f0b3395088a5ecc2b2161f4ddf31a83ee235.tar.gz
gentoo-2-8483f0b3395088a5ecc2b2161f4ddf31a83ee235.tar.bz2
gentoo-2-8483f0b3395088a5ecc2b2161f4ddf31a83ee235.zip
Restored 1.32 version of java-pkg.eclass when I only meant to commit linux-mod.eclass.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-pkg.eclass34
1 files changed, 2 insertions, 32 deletions
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass
index 10fb61fe4d75..9476b13cc0ac 100644
--- a/eclass/java-pkg.eclass
+++ b/eclass/java-pkg.eclass
@@ -1,8 +1,6 @@
# 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.33 2006/03/25 16:43:09 betelgeuse Exp $
-
-#echo "sourcing java-pkg"
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.34 2006/03/25 16:53:36 betelgeuse Exp $
pkglistpath="${T}/java-pkg-list"
@@ -355,9 +353,8 @@ java-pkg_dosrc() {
local files
local startdir=$(pwd)
for x in ${@}; do
- echo $x
cd $(dirname ${x})
- zip -qq -r ${T}/${PN}-src.zip $(basename ${x}) -i '*.java'
+ zip -q -r ${T}/${PN}-src.zip $(basename ${x}) -i '*.java'
local res=$?
if [[ ${res} != 12 && ${res} != 0 ]]; then
die "zip failed"
@@ -370,30 +367,3 @@ java-pkg_dosrc() {
install ${INSOPTIONS} "${T}/${PN}-src.zip" "${D}${target}" \
|| die "failed to install sources"
}
-
-_copy() {
- local dest=${2}
- local toinstall=${1}
-
- if [[ -d "${toinstall}" ]]; then
- pushd "${toinstall}" > /dev/null
- _copy
- popd > /dev/null
- else
- cp "${toinstall}" "${D}${destroot}" || die ${error}
- fi
-}
-
-java-pkg_doexamples() {
- debug-print-function ${FUNCNAME} $*
- [[ $# -lt 1 ]] && die "${FUNCNAME}: at least one argument needed"
-
- local destroot="/usr/share/doc/${PF}/examples"
- dodir ${destroot}
-
- local error="${FUNCNAME}: Failed to install examples"
-
- for toinstall in "${@}"; do
- echo ${toinstall}
- done
-}