diff options
author | 2022-05-07 09:22:50 +0200 | |
---|---|---|
committer | 2022-05-07 09:22:50 +0200 | |
commit | 1ff3993d8f1a6f32f498c9077232f0da87b0a7ae (patch) | |
tree | 62ac26ed1aee2d13312343d5f466cfcb27f6319b /eclass/octaveforge.eclass | |
parent | games-misc/Fallout3Terminal: update upstream metadata (diff) | |
download | guru-1ff3993d8f1a6f32f498c9077232f0da87b0a7ae.tar.gz guru-1ff3993d8f1a6f32f498c9077232f0da87b0a7ae.tar.bz2 guru-1ff3993d8f1a6f32f498c9077232f0da87b0a7ae.zip |
octaveforge.eclass: inline configure, eautoreconf
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'eclass/octaveforge.eclass')
-rw-r--r-- | eclass/octaveforge.eclass | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/eclass/octaveforge.eclass b/eclass/octaveforge.eclass index d02072fd5..67eb8aece 100644 --- a/eclass/octaveforge.eclass +++ b/eclass/octaveforge.eclass @@ -41,10 +41,7 @@ OCT_PKGDIR="${OCT_ROOT}/packages" # full path to octave binary OCT_BIN="$(type -p octave)" -SRC_URI=" - mirror://sourceforge/octave/${P}.tar.gz - ${REPO_URI}/packages/package_configure.in -> octaveforge_configure -" +SRC_URI="mirror://sourceforge/octave/${P}.tar.gz" SLOT="0" # @FUNCTION: octaveforge_src_unpack @@ -60,16 +57,17 @@ octaveforge_src_unpack() { # @FUNCTION: octaveforge_src_prepare # @DESCRIPTION: -# function to add octaveforge specific makefile and configure and run autogen.sh if available +# function to add octaveforge specific makefile and configure and reconfigure if possible octaveforge_src_prepare() { - cp "${DISTDIR}/octaveforge_configure" "${S}/configure" || die + _generate_configure - chmod 0755 "${S}/configure" || die - if [[ -e "${S}/src/autogen.sh" ]]; then - pushd "${S}/src" || die + pushd "${S}/src" || die + if [[ -e "${S}/src/configure.ac" ]]; then + eautoreconf + elif [[ -e "${S}/src/autogen.sh" ]]; then ./autogen.sh || die 'failed to run autogen.sh' - popd || die fi + popd || die if [[ -e "${S}/src/Makefile" ]]; then sed -i 's/ -s / /g' "${S}/src/Makefile" || die 'sed failed.' fi @@ -215,3 +213,15 @@ octaveforge_pkg_postrm() { octavecommand() { "${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 +} |