From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63AA3158041 for ; Sun, 31 Mar 2024 17:49:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40C61E2AB1; Sun, 31 Mar 2024 17:49:32 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1D91EE2AB1 for ; Sun, 31 Mar 2024 17:49:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 09FEB343012 for ; Sun, 31 Mar 2024 17:49:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A46A1618 for ; Sun, 31 Mar 2024 17:49:29 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1711906170.d2fc27f82b8f6c95c24de4dd764108419784c05d.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/octaveforge.eclass X-VCS-Directories: eclass/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: d2fc27f82b8f6c95c24de4dd764108419784c05d X-VCS-Branch: dev Date: Sun, 31 Mar 2024 17:49:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f4a3a787-ce1f-4f57-8310-2b9e7e16b5dd X-Archives-Hash: 69444592f284184394cdbae055c4f866 commit: d2fc27f82b8f6c95c24de4dd764108419784c05d Author: Julien Roy jroy ca> AuthorDate: Sun Mar 31 17:29:30 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sun Mar 31 17:29:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d2fc27f8 octaveforge.eclass: drop not inherited eclass Signed-off-by: Julien Roy jroy.ca> eclass/octaveforge.eclass | 240 ---------------------------------------------- 1 file changed, 240 deletions(-) diff --git a/eclass/octaveforge.eclass b/eclass/octaveforge.eclass deleted file mode 100644 index 0528d2d907..0000000000 --- a/eclass/octaveforge.eclass +++ /dev/null @@ -1,240 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: octaveforge.eclass -# @AUTHOR: -# Rafael G. Martins -# Alessandro Barbieri -# @BLURB: octaveforge helper eclass. -# @MAINTAINER: -# Alessandro Barbieri -# @SUPPORTED_EAPIS: 8 - -inherit autotools edo - -case ${EAPI} in - 8) ;; - *) die "${ECLASS}: EAPI ${EAPI} unsupported." -esac - -EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install src_test pkg_postinst pkg_prerm pkg_postrm - -# @ECLASS_VARIABLE: REPO_URI -# @DESCRIPTION: -# URI to the sourceforge octave-forge repository -REPO_URI="http://svn.code.sf.net/p/octave/code/trunk/octave-forge" - -# defining some paths - -# @ECLASS_VARIABLE: OCT_ROOT -# @DESCRIPTION: -# full path to octave share -OCT_ROOT="/usr/share/octave" - -# @ECLASS_VARIABLE: OCT_PKGDIR -# @DESCRIPTION: -# path to octave pkgdir -OCT_PKGDIR="${OCT_ROOT}/packages" - -# @ECLASS_VARIABLE: OCT_BIN -# @DESCRIPTION: -# octave binary name -OCT_BIN="octave" - -SRC_URI="mirror://sourceforge/octave/${P}.tar.gz" -SLOT="0" - -# @FUNCTION: octaveforge_src_unpack -# @DESCRIPTION: -# function to unpack and set the correct S -octaveforge_src_unpack() { - default - if [[ ! -d "${WORKDIR}/${P}" ]]; then - S="${WORKDIR}/${PN}" - fi -} - -# @FUNCTION: octaveforge_src_prepare -# @DESCRIPTION: -# function to add octaveforge specific makefile and configure and reconfigure if possible -octaveforge_src_prepare() { - default - - _generate_configure || die - - if [[ -e "${S}/src/configure.ac" ]]; then - pushd "${S}/src" || die - eautoreconf - popd || die - elif [[ -e "${S}/src/autogen.sh" ]]; then - pushd "${S}/src" || die - edo ./autogen.sh - popd || die - fi - if [[ -e "${S}/src/Makefile" ]]; then - sed -i 's/ -s / /g' "${S}/src/Makefile" || die - fi -} - -octaveforge_src_compile() { - PKGDIR="$(pwd | sed -e 's|^.*/||' || die)" - export OCT_PACKAGE="${TMPDIR}/${PKGDIR}.tar.gz" - export MKOCTFILE="mkoctfile -v" - - cmd="disp(__octave_config_info__('octlibdir'));" - OCTLIBDIR=$(octavecommand "${cmd}" || die) - export LFLAGS="${LFLAGS} -L${OCTLIBDIR}" - export LDFLAGS="${LDFLAGS} -L${OCTLIBDIR}" - - if [[ -e src/Makefile ]]; then - emake -C src - fi - - if [[ -e src/Makefile ]]; then - mv src/Makefile src/Makefile.disable || die - fi - if [[ -e src/configure ]]; then - mv src/configure src/configure.disable || die - fi - - pushd .. || die - tar -czf "${OCT_PACKAGE}" "${PKGDIR}" || die -} - -# @FUNCTION: octaveforge_src_install -# @DESCRIPTION: -# function to install the octave package -octaveforge_src_install() { - DESTDIR="${D}" _octaveforge_pkg_install || die -} - -octaveforge_src_test() { - DESTDIR="${T}" _octaveforge_pkg_install || die - - # cargo culted from Fedora - cmd=" - pkg('load','${PN}'); - oruntests('${oct_pkgdir}'); - unlink(pkg('local_list')); - unlink(pkg('global_list')); - " - octavecommand "${cmd}" || die -} - -# @FUNCTION: octaveforge_pkg_postinst -# @DESCRIPTION: -# function that will rebuild the octave package database -octaveforge_pkg_postinst() { - einfo "Registering ${CATEGORY}/${PF} on the Octave package database." - if [[ ! -d "${OCT_PKGDIR}" ]] ; then - mkdir -p "${OCT_PKGDIR}" || die - fi - cmd="pkg('rebuild');" - octavecommand "${cmd}" || die -} - -# @FUNCTION: octaveforge_pkg_prerm -# @DESCRIPTION: -# function that will run on_uninstall routines to prepare the package to remove -octaveforge_pkg_prerm() { - einfo 'Running on_uninstall routines to prepare the package to remove.' - cmd=" - pkg('rebuild'); - l = pkg('list'); - disp(l{cellfun(@(x)strcmp(x.name,'${PN}'),l)}.dir); - " - oct_pkgdir=$(octavecommand "${cmd}" || die) - rm -f "${oct_pkgdir}/packinfo/on_uninstall.m" || die - if [[ -e "${oct_pkgdir}/packinfo/on_uninstall.m.orig" ]]; then - mv "$oct_pkgdir"/packinfo/on_uninstall.m{.orig,} || die - pushd "$oct_pkgdir/packinfo" || die - cmd=" - l = pkg('list'); - on_uninstall(l{cellfun(@(x)strcmp(x.name,'${PN}'), l)}); - " - octavecommand "${cmd}" || die - fi -} - -# @FUNCTION: octaveforge_pkg_postrm -# @DESCRIPTION: -# function that will rebuild the octave package database -octaveforge_pkg_postrm() { - einfo 'Rebuilding the Octave package database.' - if [[ ! -d "${OCT_PKGDIR}" ]] ; then - mkdir -p "${OCT_PKGDIR}" || die - fi - cmd="pkg('rebuild');" - edo "${OCT_BIN}" -H --silent --no-gui --eval "${cmd}" -} - -octavecommand() { - edo "${OCT_BIN}" -H -q --no-site-file --no-gui --eval "$1" -} - -_generate_configure() { - cat << EOF > configure || die -#! /bin/sh -f - -if [ -e src/configure ]; then - cd src - ./configure $* -fi -EOF - chmod 0755 "configure" || die -} - -_octaveforge_pkg_install() { - TMPDIR="${T}" - DISTPKG='Gentoo' - - pushd ../ || die - if [[ "X${DISTPKG}X" != "XX" ]]; then - stripcmd=" - unlink(pkg('local_list')); - unlink(pkg('global_list')); - " - fi - if [[ "X${DESTDIR}X" = "XX" ]]; then - cmd=" - warning('off','all'); - pkg('install','${OCT_PACKAGE}'); - l=pkg('list'); - disp(l{cellfun(@(x)strcmp(x.name,'${PN}'),l)}.dir); - ${stripcmd} - " - oct_pkgdir=$(octavecommand "${cmd}" || die) - else - cmd="disp(fullfile(__octave_config_info__('datadir'),'octave'));" - shareprefix=${DESTDIR}/$(octavecommand "${cmd}" || die) - cmd="disp(fullfile(__octave_config_info__('libdir'),'octave'));" - libprefix=${DESTDIR}/$(octavecommand "${cmd}" || die) - octprefix="${shareprefix}/packages" - archprefix="${libprefix}/packages" - if [[ ! -e "${octprefix}" ]]; then - mkdir -p "${octprefix}" || die - fi - if [[ ! -e "${archprefix}" ]]; then - mkdir -p "${archprefix}" || die - fi - cmd=" - warning('off','all'); - pkg('prefix','${octprefix}','${archprefix}'); - pkg('global_list',fullfile('${shareprefix}','octave_packages')); - pkg('local_list',fullfile('${shareprefix}','octave_packages')); - pkg('install','-nodeps','-verbose','${OCT_PACKAGE}'); - " - octavecommand "${cmd}" || die - cmd=" - warning('off','all'); - pkg('prefix','${octprefix}','${archprefix}'); - pkg('global_list',fullfile('${shareprefix}','octave_packages')); - pkg('local_list',fullfile('${shareprefix}','octave_packages')); - l=pkg('list'); - disp(l{cellfun(@(x)strcmp(x.name,'${PN}'),l)}.dir); - ${stripcmd} - " - oct_pkgdir=$(octavecommand "${cmd}" || die) - fi - export oct_pkgdir -} From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0551B158041 for ; Sun, 31 Mar 2024 17:57:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA428E2A4C; Sun, 31 Mar 2024 17:57:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A78D7E2A48 for ; Sun, 31 Mar 2024 17:57:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ACF2A3430CF for ; Sun, 31 Mar 2024 17:57:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E852D1618 for ; Sun, 31 Mar 2024 17:57:49 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1711906170.d2fc27f82b8f6c95c24de4dd764108419784c05d.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/octaveforge.eclass X-VCS-Directories: eclass/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: d2fc27f82b8f6c95c24de4dd764108419784c05d X-VCS-Branch: master Date: Sun, 31 Mar 2024 17:57:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4965dbeb-2315-40c3-afe4-d64895e2101b X-Archives-Hash: d0898bf70c5d1c2538d8992be1199810 Message-ID: <20240331175749.ybjVvRzOmudX-0Di1NBJAXVj09xRHgvcadgLtBCdPTI@z> commit: d2fc27f82b8f6c95c24de4dd764108419784c05d Author: Julien Roy jroy ca> AuthorDate: Sun Mar 31 17:29:30 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sun Mar 31 17:29:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d2fc27f8 octaveforge.eclass: drop not inherited eclass Signed-off-by: Julien Roy jroy.ca> eclass/octaveforge.eclass | 240 ---------------------------------------------- 1 file changed, 240 deletions(-) diff --git a/eclass/octaveforge.eclass b/eclass/octaveforge.eclass deleted file mode 100644 index 0528d2d907..0000000000 --- a/eclass/octaveforge.eclass +++ /dev/null @@ -1,240 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: octaveforge.eclass -# @AUTHOR: -# Rafael G. Martins -# Alessandro Barbieri -# @BLURB: octaveforge helper eclass. -# @MAINTAINER: -# Alessandro Barbieri -# @SUPPORTED_EAPIS: 8 - -inherit autotools edo - -case ${EAPI} in - 8) ;; - *) die "${ECLASS}: EAPI ${EAPI} unsupported." -esac - -EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install src_test pkg_postinst pkg_prerm pkg_postrm - -# @ECLASS_VARIABLE: REPO_URI -# @DESCRIPTION: -# URI to the sourceforge octave-forge repository -REPO_URI="http://svn.code.sf.net/p/octave/code/trunk/octave-forge" - -# defining some paths - -# @ECLASS_VARIABLE: OCT_ROOT -# @DESCRIPTION: -# full path to octave share -OCT_ROOT="/usr/share/octave" - -# @ECLASS_VARIABLE: OCT_PKGDIR -# @DESCRIPTION: -# path to octave pkgdir -OCT_PKGDIR="${OCT_ROOT}/packages" - -# @ECLASS_VARIABLE: OCT_BIN -# @DESCRIPTION: -# octave binary name -OCT_BIN="octave" - -SRC_URI="mirror://sourceforge/octave/${P}.tar.gz" -SLOT="0" - -# @FUNCTION: octaveforge_src_unpack -# @DESCRIPTION: -# function to unpack and set the correct S -octaveforge_src_unpack() { - default - if [[ ! -d "${WORKDIR}/${P}" ]]; then - S="${WORKDIR}/${PN}" - fi -} - -# @FUNCTION: octaveforge_src_prepare -# @DESCRIPTION: -# function to add octaveforge specific makefile and configure and reconfigure if possible -octaveforge_src_prepare() { - default - - _generate_configure || die - - if [[ -e "${S}/src/configure.ac" ]]; then - pushd "${S}/src" || die - eautoreconf - popd || die - elif [[ -e "${S}/src/autogen.sh" ]]; then - pushd "${S}/src" || die - edo ./autogen.sh - popd || die - fi - if [[ -e "${S}/src/Makefile" ]]; then - sed -i 's/ -s / /g' "${S}/src/Makefile" || die - fi -} - -octaveforge_src_compile() { - PKGDIR="$(pwd | sed -e 's|^.*/||' || die)" - export OCT_PACKAGE="${TMPDIR}/${PKGDIR}.tar.gz" - export MKOCTFILE="mkoctfile -v" - - cmd="disp(__octave_config_info__('octlibdir'));" - OCTLIBDIR=$(octavecommand "${cmd}" || die) - export LFLAGS="${LFLAGS} -L${OCTLIBDIR}" - export LDFLAGS="${LDFLAGS} -L${OCTLIBDIR}" - - if [[ -e src/Makefile ]]; then - emake -C src - fi - - if [[ -e src/Makefile ]]; then - mv src/Makefile src/Makefile.disable || die - fi - if [[ -e src/configure ]]; then - mv src/configure src/configure.disable || die - fi - - pushd .. || die - tar -czf "${OCT_PACKAGE}" "${PKGDIR}" || die -} - -# @FUNCTION: octaveforge_src_install -# @DESCRIPTION: -# function to install the octave package -octaveforge_src_install() { - DESTDIR="${D}" _octaveforge_pkg_install || die -} - -octaveforge_src_test() { - DESTDIR="${T}" _octaveforge_pkg_install || die - - # cargo culted from Fedora - cmd=" - pkg('load','${PN}'); - oruntests('${oct_pkgdir}'); - unlink(pkg('local_list')); - unlink(pkg('global_list')); - " - octavecommand "${cmd}" || die -} - -# @FUNCTION: octaveforge_pkg_postinst -# @DESCRIPTION: -# function that will rebuild the octave package database -octaveforge_pkg_postinst() { - einfo "Registering ${CATEGORY}/${PF} on the Octave package database." - if [[ ! -d "${OCT_PKGDIR}" ]] ; then - mkdir -p "${OCT_PKGDIR}" || die - fi - cmd="pkg('rebuild');" - octavecommand "${cmd}" || die -} - -# @FUNCTION: octaveforge_pkg_prerm -# @DESCRIPTION: -# function that will run on_uninstall routines to prepare the package to remove -octaveforge_pkg_prerm() { - einfo 'Running on_uninstall routines to prepare the package to remove.' - cmd=" - pkg('rebuild'); - l = pkg('list'); - disp(l{cellfun(@(x)strcmp(x.name,'${PN}'),l)}.dir); - " - oct_pkgdir=$(octavecommand "${cmd}" || die) - rm -f "${oct_pkgdir}/packinfo/on_uninstall.m" || die - if [[ -e "${oct_pkgdir}/packinfo/on_uninstall.m.orig" ]]; then - mv "$oct_pkgdir"/packinfo/on_uninstall.m{.orig,} || die - pushd "$oct_pkgdir/packinfo" || die - cmd=" - l = pkg('list'); - on_uninstall(l{cellfun(@(x)strcmp(x.name,'${PN}'), l)}); - " - octavecommand "${cmd}" || die - fi -} - -# @FUNCTION: octaveforge_pkg_postrm -# @DESCRIPTION: -# function that will rebuild the octave package database -octaveforge_pkg_postrm() { - einfo 'Rebuilding the Octave package database.' - if [[ ! -d "${OCT_PKGDIR}" ]] ; then - mkdir -p "${OCT_PKGDIR}" || die - fi - cmd="pkg('rebuild');" - edo "${OCT_BIN}" -H --silent --no-gui --eval "${cmd}" -} - -octavecommand() { - edo "${OCT_BIN}" -H -q --no-site-file --no-gui --eval "$1" -} - -_generate_configure() { - cat << EOF > configure || die -#! /bin/sh -f - -if [ -e src/configure ]; then - cd src - ./configure $* -fi -EOF - chmod 0755 "configure" || die -} - -_octaveforge_pkg_install() { - TMPDIR="${T}" - DISTPKG='Gentoo' - - pushd ../ || die - if [[ "X${DISTPKG}X" != "XX" ]]; then - stripcmd=" - unlink(pkg('local_list')); - unlink(pkg('global_list')); - " - fi - if [[ "X${DESTDIR}X" = "XX" ]]; then - cmd=" - warning('off','all'); - pkg('install','${OCT_PACKAGE}'); - l=pkg('list'); - disp(l{cellfun(@(x)strcmp(x.name,'${PN}'),l)}.dir); - ${stripcmd} - " - oct_pkgdir=$(octavecommand "${cmd}" || die) - else - cmd="disp(fullfile(__octave_config_info__('datadir'),'octave'));" - shareprefix=${DESTDIR}/$(octavecommand "${cmd}" || die) - cmd="disp(fullfile(__octave_config_info__('libdir'),'octave'));" - libprefix=${DESTDIR}/$(octavecommand "${cmd}" || die) - octprefix="${shareprefix}/packages" - archprefix="${libprefix}/packages" - if [[ ! -e "${octprefix}" ]]; then - mkdir -p "${octprefix}" || die - fi - if [[ ! -e "${archprefix}" ]]; then - mkdir -p "${archprefix}" || die - fi - cmd=" - warning('off','all'); - pkg('prefix','${octprefix}','${archprefix}'); - pkg('global_list',fullfile('${shareprefix}','octave_packages')); - pkg('local_list',fullfile('${shareprefix}','octave_packages')); - pkg('install','-nodeps','-verbose','${OCT_PACKAGE}'); - " - octavecommand "${cmd}" || die - cmd=" - warning('off','all'); - pkg('prefix','${octprefix}','${archprefix}'); - pkg('global_list',fullfile('${shareprefix}','octave_packages')); - pkg('local_list',fullfile('${shareprefix}','octave_packages')); - l=pkg('list'); - disp(l{cellfun(@(x)strcmp(x.name,'${PN}'),l)}.dir); - ${stripcmd} - " - oct_pkgdir=$(octavecommand "${cmd}" || die) - fi - export oct_pkgdir -}