summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Alberto Suarez Lopez <bass@gentoo.org>2004-08-01 20:00:07 +0000
committerJose Alberto Suarez Lopez <bass@gentoo.org>2004-08-01 20:00:07 +0000
commit80154ef6b2bbdcd5aba645259b0eb41cd5aab669 (patch)
treed9b37185821fe0e87d8a9ed23fc9819f252a271a /eclass/ebook.eclass
parentpartialy fixed #39486 (Manifest recommit) (diff)
downloadgentoo-2-80154ef6b2bbdcd5aba645259b0eb41cd5aab669.tar.gz
gentoo-2-80154ef6b2bbdcd5aba645259b0eb41cd5aab669.tar.bz2
gentoo-2-80154ef6b2bbdcd5aba645259b0eb41cd5aab669.zip
Added EBOOKFROMDIR
Diffstat (limited to 'eclass/ebook.eclass')
-rw-r--r--eclass/ebook.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/ebook.eclass b/eclass/ebook.eclass
index dee257f1024b..2847933fd7df 100644
--- a/eclass/ebook.eclass
+++ b/eclass/ebook.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ebook.eclass,v 1.17 2004/06/25 00:39:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ebook.eclass,v 1.18 2004/08/01 20:00:07 bass Exp $
#
# Author Francisco Gimeno <kikov@fco-gimeno.com>
# Mantainer José Alberto Suárez López <bass@gentoo.org>
@@ -36,6 +36,8 @@ KEYWORDS="x86 ppc ~amd64"
# NOVERSION: if it's not empty, then, remove -${EBOOKVERSION} from all
# vars...
# DEVHELPROOT: usually usr/share/devhelp
+# EBOOKFROMDIR: you can set the from dir, usually ${S}.
+
if [ "${NOVERSION}" = "" ]; then
_src="${EBOOKNAME}-${EBOOKVERSION}"
else
@@ -77,6 +79,9 @@ fi
if [ "${EBOOKDEVHELPFILE}" = "" ]; then
EBOOKDEVHELPFILE=${_ebookdevhelpfile}".devhelp"
fi
+if [ "${EBOOKFROMDIR}" = "" ]; then
+ EBOOKFROMDIR=${S}
+fi
S=${WORKDIR}
ebook_src_unpack() {
@@ -85,13 +90,14 @@ ebook_src_unpack() {
}
ebook_src_install() {
+
debug-print-function $FUNCNAME $*
dodir ${DEVHELPROOT}/books
dodir ${DEVHELPROOT}/books/${EBOOKDESTDIR}
echo EBOOKSRCDIR= ${EBOOKSRCDIR}
- cp ${S}/book.devhelp ${D}${DEVHELPROOT}/books/${EBOOKDESTDIR}/${EBOOKDEVHELPFILE}
- cp -R ${S}/book/* ${D}${DEVHELPROOT}/books/${EBOOKDESTDIR}
+ cp ${EBOOKFROMDIR}/book.devhelp ${D}${DEVHELPROOT}/books/${EBOOKDESTDIR}/${EBOOKDEVHELPFILE}
+ cp -R ${EBOOKFROMDIR}/book/* ${D}${DEVHELPROOT}/books/${EBOOKDESTDIR}
}
EXPORT_FUNCTIONS src_unpack src_install