Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77041 - New ebuild for octave-forge
Summary: New ebuild for octave-forge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 09:32 UTC by m0sia
Modified: 2005-08-20 19:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m0sia 2005-01-07 09:32:32 UTC
New ebuild for octave-forge because oldone don't emerge

Reproducible: Always
Steps to Reproduce:
emerge octave-forge


Expected Results:  
new octave-forge-2004.02.12.ebuild

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2004.02.12.ebuild,v
1.1 2004/12/28 14:54:43 ribosome Exp $

inherit eutils

DESCRIPTION="A collection of custom scripts, functions and extensions for GNU
Octave"
HOMEPAGE="http://octave.sourceforge.net/"
SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"

LICENSE="as-is"
KEYWORDS="x86 ~ppc ~sparc amd64"
SLOT="0"
IUSE="ginac qhull"

DEPEND=">=sci-mathematics/octave-2.1.40
                >=sys-apps/sed-4
                sys-libs/libtermcap-compat
                !amd64? ( ginac? ( sci-mathematics/ginac ) )
                qhull? ( >=media-libs/qhull-3.1-r1 )"

src_unpack() {
        unpack ${A}
        cd ${S}
        sed -e 's:a"key":a["key"]:' -i configure || die "sed failed on configure"
        sed -e 's:\(^man1dir = \):\1$(DESTDIR)/:;
s:$(bindir):$(DESTDIR)/$(bindir):' -i extra/mex/Makefile \
                || die "sed failed on mex/Makefile"
}

src_compile() {
        econf || die "econf failed"

        # The *XPATH variables need to be changed, or they will
        # cause Portage access violations. They cannot be easily set just using
        # arguments passed to ./configure (at least, they can not easily be set
        # correctly)
        echo -en "Modifying paths..."
        for path in M O X ALTM ALTO; do
                sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
                        die "failed to modify ${path}PATH"
        done
        echo -e "done.\n"

        emake || die "emake failed"
}

src_install() {
        make DESTDIR="${D}" install || die "install failed"

        # strip the fudged install paths
        sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"

        dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
}

pkg_postinst() {
        einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
        einfo "compile itself with support for the geometry and symbolic math"
        einfo "extensions. If you would like these features, please emerge ginac"
        einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
        einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
        einfo "the ebuild will automatically install the additional packages."
}
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2005-01-18 22:48:27 UTC
Could you please state what's wrong with the old ebuild and, if you think you can provide an improved one, attach it or even better: attach a patch?

Thank you.

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3#doc_chap2
Comment 2 Colin Macdonald 2005-07-16 00:42:22 UTC
This is the only significant difference between the attached ebuild and the
current one in the tree:

-       sed -e 's:a"key":a["key"]:' -i configure || die "sed failed on configure"
-       sed -e 's:\(^man1dir = \):\1$(DESTDIR)/:;
-s:$(bindir):$(DESTDIR)/$(bindir):' -i extra/mex/Makefile \
-                || die "sed failed on mex/Makefile"
+       epatch ${FILESDIR}/${PV}.patch
+
+       # make it compile when X isn't installed. The source file there really
+       # doesn't need X at all.
+       # 02 Feb 2005, Robin H. Johnson <robbat2@gentoo.org>
+       sed -e '/#include <X11/d' -i ${S}/main/audio/aurecord.cc

The X stuff was added later and IIRC the patch was put there to solve the same
problem as the sed mex stuff.  Again, IIRC the sed key stuff is no longer
necessary in the current octave-forge versions in the tree.

Close this as invalid.
Comment 3 Olivier Fisette (RETIRED) gentoo-dev 2005-08-20 19:23:39 UTC
It does not apply to the newer versions already in the tree,.