You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
1.5 KiB

# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: package/.../zope/zope-conf.in
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
# Function for installing Zope Products
prepare_product() {
# checking where to install the Zope Product
pkgprefix -t zope
if [ $prefix_auto = 1 ] ; then
if [ "$SDECFG_PKG_ZOPE_PRODDIR" ] ; then
prefix="$SDECFG_PKG_ZOPE_PRODDIR"
else
prefix="$( pkgprefix zope )/products"
fi
set_confopt
fi
# adding a version to Zope Product directory
if [ ${xsrcdir%%-*} == $xsrcdir ]; then
mv $builddir/$xsrcdir $builddir/$xsrcdir-$ver
xsrcdir=$xsrcdir-$ver
fi
# remove extra levels on srcdir
if [ ${xsrcdir##*/} != $xsrcdir ]; then
mv $builddir/$xsrcdir $builddir/${xsrcdir##*/}
xsrcdir=${xsrcdir##*/}
fi
}
install_product() {
# creating Zope Product directory and copying files
mkdir -pv $root/$prefix/$xsrcdir
cp -av $builddir/$xsrcdir/* $root/$prefix/$xsrcdir/
}
createdocs="0"
makeopt=""
makeinstopt=""
hook_add postpatch 5 "prepare_product"
hook_add postmake 5 "install_product"