mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
octaveforge.eclass: use PN instead of OCT_PKG
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -79,7 +79,6 @@ octaveforge_src_prepare() {
|
|||||||
octaveforge_src_compile() {
|
octaveforge_src_compile() {
|
||||||
PKGDIR="$(pwd | sed -e 's|^.*/||' || die)"
|
PKGDIR="$(pwd | sed -e 's|^.*/||' || die)"
|
||||||
export OCT_PACKAGE="${TMPDIR}/${PKGDIR}.tar.gz"
|
export OCT_PACKAGE="${TMPDIR}/${PKGDIR}.tar.gz"
|
||||||
export OCT_PKG=$(echo "${PKGDIR}" | sed -e 's|^\(.*\)-.*|\1|' || die)
|
|
||||||
export MKOCTFILE="mkoctfile -v"
|
export MKOCTFILE="mkoctfile -v"
|
||||||
|
|
||||||
cmd="disp(__octave_config_info__('octlibdir'));"
|
cmd="disp(__octave_config_info__('octlibdir'));"
|
||||||
@@ -120,10 +119,12 @@ octaveforge_src_install() {
|
|||||||
if [[ "X${DESTDIR}X" = "XX" ]]; then
|
if [[ "X${DESTDIR}X" = "XX" ]]; then
|
||||||
cmd="
|
cmd="
|
||||||
warning('off','all');
|
warning('off','all');
|
||||||
pkg('install','${OCT_PACKAGE}');l=pkg('list');
|
pkg('install','${OCT_PACKAGE}');
|
||||||
disp(l{cellfun(@(x)strcmp(x.name,'${OCT_PKG}'),l)}.dir);
|
l=pkg('list');
|
||||||
|
disp(l{cellfun(@(x)strcmp(x.name,'${PN}'),l)}.dir);
|
||||||
|
${stripcmd}
|
||||||
"
|
"
|
||||||
oct_pkgdir=$(octavecommand "${cmd}${stripcmd}" || die)
|
oct_pkgdir=$(octavecommand "${cmd}" || die)
|
||||||
else
|
else
|
||||||
cmd="disp(fullfile(__octave_config_info__('datadir'),'octave'));"
|
cmd="disp(fullfile(__octave_config_info__('datadir'),'octave'));"
|
||||||
shareprefix=${DESTDIR}/$(octavecommand "${cmd}" || die)
|
shareprefix=${DESTDIR}/$(octavecommand "${cmd}" || die)
|
||||||
@@ -151,9 +152,10 @@ octaveforge_src_install() {
|
|||||||
pkg('global_list',fullfile('${shareprefix}','octave_packages'));
|
pkg('global_list',fullfile('${shareprefix}','octave_packages'));
|
||||||
pkg('local_list',fullfile('${shareprefix}','octave_packages'));
|
pkg('local_list',fullfile('${shareprefix}','octave_packages'));
|
||||||
l=pkg('list');
|
l=pkg('list');
|
||||||
disp(l{cellfun(@(x)strcmp(x.name,'${OCT_PKG}'),l)}.dir);
|
disp(l{cellfun(@(x)strcmp(x.name,'${PN}'),l)}.dir);
|
||||||
|
${stripcmd}
|
||||||
"
|
"
|
||||||
oct_pkgdir=$(octavecommand "${cmd}${stripcmd}" || die)
|
oct_pkgdir=$(octavecommand "${cmd}" || die)
|
||||||
fi
|
fi
|
||||||
export oct_pkgdir
|
export oct_pkgdir
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user