diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2011-06-09 21:58:24 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2011-06-09 21:58:24 +0000 |
commit | 910d781256d7b7a99bc6f430c5f9e6fc9c594162 (patch) | |
tree | 2784523ba1847b400f4eeef0b0753e5b9bf3a803 /sci-mathematics/octave | |
parent | Explicitly inherit the eutils eclass. (diff) | |
download | historical-910d781256d7b7a99bc6f430c5f9e6fc9c594162.tar.gz historical-910d781256d7b7a99bc6f430c5f9e6fc9c594162.tar.bz2 historical-910d781256d7b7a99bc6f430c5f9e6fc9c594162.zip |
Added some patches for compiling on gcc-4.6, fixing fltk, and building packages directory from fedora. Added a parallel compilation patch.
Package-Manager: portage-2.1.10/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics/octave')
-rw-r--r-- | sci-mathematics/octave/ChangeLog | 11 | ||||
-rw-r--r-- | sci-mathematics/octave/Manifest | 15 | ||||
-rw-r--r-- | sci-mathematics/octave/files/octave-3.4.0-fltk.patch | 24 | ||||
-rw-r--r-- | sci-mathematics/octave/files/octave-3.4.0-gcc46.patch | 24 | ||||
-rw-r--r-- | sci-mathematics/octave/files/octave-3.4.0-help.patch | 13 | ||||
-rw-r--r-- | sci-mathematics/octave/files/octave-3.4.0-pkgbuilddir.patch | 41 | ||||
-rw-r--r-- | sci-mathematics/octave/octave-3.2.4-r2.ebuild | 112 | ||||
-rw-r--r-- | sci-mathematics/octave/octave-3.4.0-r1.ebuild (renamed from sci-mathematics/octave/octave-3.4.0.ebuild) | 15 |
8 files changed, 130 insertions, 125 deletions
diff --git a/sci-mathematics/octave/ChangeLog b/sci-mathematics/octave/ChangeLog index 715243636f56..41b59d19768d 100644 --- a/sci-mathematics/octave/ChangeLog +++ b/sci-mathematics/octave/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-mathematics/octave # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.102 2011/03/20 20:01:35 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.103 2011/06/09 21:58:24 bicatali Exp $ + +*octave-3.4.0-r1 (09 Jun 2011) + + 09 Jun 2011; SĂ©bastien Fabbro <bicatali@gentoo.org> -octave-3.2.4-r2.ebuild, + -octave-3.4.0.ebuild, +octave-3.4.0-r1.ebuild, + +files/octave-3.4.0-fltk.patch, +files/octave-3.4.0-gcc46.patch, + +files/octave-3.4.0-help.patch, +files/octave-3.4.0-pkgbuilddir.patch: + Added some patches for compiling on gcc-4.6, fixing fltk, and building + packages directory from fedora. Added a parallel compilation patch. 20 Mar 2011; Justin Lecher <jlec@gentoo.org> octave-3.2.4-r1.ebuild, octave-3.2.4-r2.ebuild, octave-3.2.4-r3.ebuild, octave-3.4.0.ebuild: diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest index 796f750a250f..471c1dbebbd4 100644 --- a/sci-mathematics/octave/Manifest +++ b/sci-mathematics/octave/Manifest @@ -14,18 +14,21 @@ AUX octave-3.2.4-interp2.patch 5747 RMD160 8583bfd070cf1ef746bc954dadf54e1b48401 AUX octave-3.2.4-ldflags.patch 365 RMD160 65e753b086871b91e43995ce56491a2e057a020d SHA1 c70ae715234f737d6218b955748ecf65c56cf0be SHA256 55a3bd8cba99c9bc70cd2d7f40544beda9752df18ed681cf7fd44c4e4d937b80 AUX octave-3.2.4-no-helvetica.patch 636 RMD160 fa10278332658633e89b0b44e75a82687a28194f SHA1 b0ef546e8505f13e97e57df918ecb5ec11a6ce13 SHA256 c448c5ac2af1dbd4dc93b08ac76276bbf530d83cc6b918cfdd7cc8b25b53d6df AUX octave-3.2.4-normal-marker-size.patch 776 RMD160 f9c88f1e4eaa57dc4e344cfaa39b0db089c6d0bc SHA1 a4199e042a35609d7bf885f175da1ab6f4b8162f SHA256 4cec4c75303657b53caecba8a6f3ec8d9a806f6b21647c6c69dff81f6cd2c31b +AUX octave-3.4.0-fltk.patch 1181 RMD160 47d6fe5ba0e69887a7a76107dcfc7de67e701c74 SHA1 753cb977b0203aad64516e52c831232bbcf85ffb SHA256 7a36f8fcde9fa293f59649fc2affbfcb79306f019db2fc1a7d8507c27e32e018 +AUX octave-3.4.0-gcc46.patch 849 RMD160 c0a17a61646b77aea98f29fb41db0bad9e525c9b SHA1 791c905a80510783e5f9c556c12f02400887fbec SHA256 9ef417691a5f48a179ecd6d260873a150a4cba85cd1b2e18d667bbc85eeffe1d +AUX octave-3.4.0-help.patch 605 RMD160 fa6a63ebb50a452386dc0c10f6b54afe806bd2cc SHA1 f9b12485ac538ac1c145eba4c9228a4c70425b5b SHA256 27107c33b25059da295bcf8061c3321dce17234a61b89b5dd71a5569936b46ae +AUX octave-3.4.0-pkgbuilddir.patch 1429 RMD160 00765a8faf96f19e3a725da030986867995f6e8e SHA1 ce76db87fb480a3492ed89a906774b49273297e7 SHA256 b6a73e80041ae0847c0eb89e8cdc9f2135622567d18378c429f9ed3e498aed65 DIST octave-3.2.4.tar.bz2 12080959 RMD160 6dcdea7ef2431b8427da5e6b9d2113e0e5736f43 SHA1 7de078564027108f3436f3ba7bf5993a6b411a67 SHA256 48471d05c7ed9c0a5a4d5fa4ae8a857447ac3da1197f86cfe79b9d8f4fdfd147 DIST octave-3.4.0.tar.bz2 14619487 RMD160 8448fc8277e19dab8dbc5c0121e673e9198c74ec SHA1 936a8fc962abd96e7568fb5909ec2a4d7997a1a8 SHA256 0fb4f78f43320eec82477c1bbde42877e0e490a9f4903966b1682a9600ffcc2b EBUILD octave-3.2.4-r1.ebuild 2910 RMD160 2f7dd59cee88eeb8256da03a2df0c9e29e7b2ee1 SHA1 4263df9bacc15a66ae21a7d4e9616869d0f17676 SHA256 10de640975d178838ec17c38b83ba238bab5380c8e119f3c9c529d3b339d928f -EBUILD octave-3.2.4-r2.ebuild 2972 RMD160 1f2a87eae9e79f09acc5bf93a7fc44e529dc8be3 SHA1 45fcdf7c2b54d99627a0e510cdb774d234d9b3a2 SHA256 2209d08367a227545c3d202ecbae4ac8c034de8a602ca926743aab562fc479bd EBUILD octave-3.2.4-r3.ebuild 3322 RMD160 68d2d9b43d71051f45de0b848179547889c23dcf SHA1 be87f0f9d4c20929500b28c1234ce91047b09091 SHA256 b6ee1a5a9e2a3314e0dfc950a7c3f8fe53a1fb6454e178e2f5fa44a563e3bd14 -EBUILD octave-3.4.0.ebuild 2105 RMD160 914a787b421b3d416673907b116eed458120fe1d SHA1 33ba2e501cb290eaa9d103585facbdacafcfca39 SHA256 cb49275488c716a06553f867ce052ae5f299870959b6ab4e80551c9a2ce2c68e -MISC ChangeLog 25460 RMD160 b7c442791d63b82bf97c6d2f0048e7690af4f414 SHA1 bc7d4bd0ae9c64330294aed55f58d3a03b56d01e SHA256 34122e774e9a54cdb96978d615dc9fd98bc0c08f1ff2dbf01963ea3d22bb28fc +EBUILD octave-3.4.0-r1.ebuild 2155 RMD160 33172244705c84e05eba9f1d2c4be70a85e67b8f SHA1 4e09d7b4f522fcc9e46de03e48e61299556f7210 SHA256 276e6f3ba3dbb18136f920552a3579bd6499e22ef48cf1dc7445b5af4396664a +MISC ChangeLog 25909 RMD160 272ec6c1c6c63ae7a9697f3ed5a9de2d7c0d5693 SHA1 01009fffe3e5a1fcaa774ee8ec1adb8944106754 SHA256 7526db14f7377a576558016bda28280455a51c3d3cfe412feee06dbd6963cfdc MISC metadata.xml 260 RMD160 27a4292b758e1199d0092b731cba79033f1b4167 SHA1 9997a99a4d6115f3b901208ba711d735ce9be36e SHA256 5fda55fd44bfec5755e1c3ac828887c37f0eebed6b3b972454e123ac2472d3ff -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk2GXSUACgkQgAnW8HDreRZzrACgjSq2w7bJpG/CQanVRgOnlzbC -YcAAn2kKcuDb6tWfMVGFFWt33qyqcOJI -=BRHE +iEYEARECAAYFAk3xQgkACgkQ1ycZbhPLE2AGUgCfZcTg5+Rbf4q5etehOw5Ms6iw +X5IAn0aPAWKNZDY7Zr/3Uvn8XI12DqLm +=fZPv -----END PGP SIGNATURE----- diff --git a/sci-mathematics/octave/files/octave-3.4.0-fltk.patch b/sci-mathematics/octave/files/octave-3.4.0-fltk.patch new file mode 100644 index 000000000000..eff3642542c6 --- /dev/null +++ b/sci-mathematics/octave/files/octave-3.4.0-fltk.patch @@ -0,0 +1,24 @@ +diff -up octave-3.4.0/src/DLD-FUNCTIONS/__fltk_uigetfile__.cc.fltk octave-3.4.0/src/DLD-FUNCTIONS/__fltk_uigetfile__.cc +--- octave-3.4.0/src/DLD-FUNCTIONS/__fltk_uigetfile__.cc.fltk 2011-02-08 03:00:52.000000000 -0700 ++++ octave-3.4.0/src/DLD-FUNCTIONS/__fltk_uigetfile__.cc 2011-05-26 14:09:51.277484258 -0600 +@@ -27,7 +27,7 @@ along with Octave; see the file COPYING. + #if defined (HAVE_FLTK) + + #include <FL/Fl.H> +-#include <Fl/Fl_File_Chooser.H> ++#include <FL/Fl_File_Chooser.H> + + // FLTK headers may include X11/X.h which defines Complex, and that + // conflicts with Octave's Complex typedef. We don't need the X11 +diff -up octave-3.4.0/src/DLD-FUNCTIONS/__init_fltk__.cc.fltk octave-3.4.0/src/DLD-FUNCTIONS/__init_fltk__.cc +--- octave-3.4.0/src/DLD-FUNCTIONS/__init_fltk__.cc.fltk 2011-05-26 14:10:40.447667595 -0600 ++++ octave-3.4.0/src/DLD-FUNCTIONS/__init_fltk__.cc 2011-05-26 14:10:14.456627808 -0600 +@@ -44,7 +44,7 @@ To initialize: + #include <FL/Fl_Box.H> + #include <FL/Fl_Button.H> + #include <FL/Fl_Choice.H> +-#include <Fl/Fl_File_Chooser.H> ++#include <FL/Fl_File_Chooser.H> + #include <FL/Fl_Gl_Window.H> + #include <FL/Fl_Menu_Bar.H> + #include <FL/Fl_Menu_Button.H> diff --git a/sci-mathematics/octave/files/octave-3.4.0-gcc46.patch b/sci-mathematics/octave/files/octave-3.4.0-gcc46.patch new file mode 100644 index 000000000000..c174204acedb --- /dev/null +++ b/sci-mathematics/octave/files/octave-3.4.0-gcc46.patch @@ -0,0 +1,24 @@ +diff -up octave-3.4.0/liboctave/oct-alloc.h.gcc46 octave-3.4.0/liboctave/oct-alloc.h +--- octave-3.4.0/liboctave/oct-alloc.h.gcc46 2011-02-08 03:00:51.000000000 -0700 ++++ octave-3.4.0/liboctave/oct-alloc.h 2011-02-08 09:41:23.984081687 -0700 +@@ -23,6 +23,8 @@ along with Octave; see the file COPYING. + #if !defined (octave_oct_alloc_h) + #define octave_oct_alloc_h 1 + ++#include <cstddef> ++ + class + OCTAVE_API + octave_allocator +diff -up octave-3.4.0/src/pr-output.cc.gcc46 octave-3.4.0/src/pr-output.cc +--- octave-3.4.0/src/pr-output.cc.gcc46 2011-02-08 03:00:52.000000000 -0700 ++++ octave-3.4.0/src/pr-output.cc 2011-02-08 09:55:16.149662744 -0700 +@@ -3024,7 +3024,7 @@ abs (T x) + } + + #define INSTANTIATE_ABS(T) \ +- template /* static */ inline T abs (T) ++ template /* static */ T abs (T) + + INSTANTIATE_ABS(signed char); + INSTANTIATE_ABS(short); diff --git a/sci-mathematics/octave/files/octave-3.4.0-help.patch b/sci-mathematics/octave/files/octave-3.4.0-help.patch new file mode 100644 index 000000000000..de98300b6c40 --- /dev/null +++ b/sci-mathematics/octave/files/octave-3.4.0-help.patch @@ -0,0 +1,13 @@ +Help parallel compilation +patch by Sebastien Fabbro +--- octave-3.4.0/scripts/Makefile.am.orig 2011-06-09 22:27:22.688268651 +0100 ++++ octave-3.4.0/scripts/Makefile.am 2011-02-08 10:00:51.000000000 +0000 +@@ -316,7 +316,7 @@ + + gethelp_SOURCES = gethelp.cc + +-.DOCSTRINGS: $(FCN_FILES) $(GEN_FCN_FILES) mkdoc $(gethelp_SOURCES) Makefile ++.DOCSTRINGS: $(FCN_FILES) $(GEN_FCN_FILES) mkdoc $(gethelp_SOURCES) Makefile gethelp + @$(MAKE) $(AM_MAKEFLAGS) gethelp$(BUILD_EXEEXT) + if [ "x$(srcdir)" != "x." ] && [ -f $(srcdir)/DOCSTRINGS ] && [ ! -f DOCSTRINGS ]; then \ + cp $(srcdir)/DOCSTRINGS DOCSTRINGS; \ diff --git a/sci-mathematics/octave/files/octave-3.4.0-pkgbuilddir.patch b/sci-mathematics/octave/files/octave-3.4.0-pkgbuilddir.patch new file mode 100644 index 000000000000..c6811dce284b --- /dev/null +++ b/sci-mathematics/octave/files/octave-3.4.0-pkgbuilddir.patch @@ -0,0 +1,41 @@ +--- octave-3.4.0/scripts/pkg/pkg.m.pkgbuilddir 2011-02-08 03:00:51.000000000 -0700 ++++ octave-3.4.0/scripts/pkg/pkg.m 2011-03-18 09:31:24.670165643 -0600 +@@ -644,7 +644,14 @@ + for i = 1:length (files) + tgz = files{i}; + +- if (exist (tgz, "file")) ++ ## The filename pointed to an uncompressed package to begin with. ++ if (exist (tgz, "dir")) ++ if (tgz(1) == '/') ++ packdir = tgz; ++ else ++ packdir = fullfile (pwd(), tgz); ++ endif ++ elseif (exist (tgz, "file")) + ## Create a temporary directory. + tmpdir = tmpnam (); + tmpdirs{end+1} = tmpdir; +@@ -671,20 +678,12 @@ + if (length (dirlist) > 3) + error ("bundles of packages are not allowed"); + endif +- endif + +- ## The filename pointed to an uncompressed package to begin with. +- if (exist (tgz, "dir")) +- dirlist = {".", "..", tgz}; ++ ## The two first entries of dirlist are "." and "..". ++ packdir = fullfile (tmpdir, dirlist{3}); + endif + + if (exist (tgz, "file") || exist (tgz, "dir")) +- ## The two first entries of dirlist are "." and "..". +- if (exist (tgz, "file")) +- packdir = fullfile (tmpdir, dirlist{3}); +- else +- packdir = fullfile (pwd(), dirlist{3}); +- endif + packdirs{end+1} = packdir; + + ## Make sure the package contains necessary files. diff --git a/sci-mathematics/octave/octave-3.2.4-r2.ebuild b/sci-mathematics/octave/octave-3.2.4-r2.ebuild deleted file mode 100644 index ae37eda57f14..000000000000 --- a/sci-mathematics/octave/octave-3.2.4-r2.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.2.4-r2.ebuild,v 1.2 2011/03/20 20:01:35 jlec Exp $ - -EAPI="2" -inherit flag-o-matic xemacs-elisp-common autotools - -DESCRIPTION="High-level interactive language for numerical computations" -LICENSE="GPL-3" -HOMEPAGE="http://www.octave.org/" -SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2" - -SLOT="0" -IUSE="curl doc emacs fltk fftw opengl readline sparse test xemacs zlib" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" - -RDEPEND="dev-libs/libpcre - media-gfx/graphicsmagick[cxx] - media-libs/qhull - sci-libs/qrupdate - sci-mathematics/glpk - sci-visualization/gnuplot - sys-libs/ncurses - virtual/lapack - x11-libs/libX11 - curl? ( net-misc/curl ) - fltk? ( x11-libs/fltk:1[opengl?] ) - fftw? ( sci-libs/fftw:3.0 ) - opengl? ( virtual/opengl media-libs/ftgl ) - sparse? ( sci-libs/arpack - sci-libs/camd - sci-libs/ccolamd - sci-libs/cholmod - sci-libs/colamd - sci-libs/cxsparse - sci-libs/umfpack ) - xemacs? ( app-editors/xemacs ) - zlib? ( sys-libs/zlib ) - !sci-mathematics/octave-forge" - -DEPEND="${RDEPEND} - virtual/latex-base - sys-apps/texinfo - || ( dev-texlive/texlive-genericrecommended - app-text/ptex ) - dev-util/gperf - dev-util/pkgconfig" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-3.2.0_parallel_make.patch - epatch "${FILESDIR}"/${PN}-3.2.0_as_needed.patch - epatch "${FILESDIR}"/${PN}-3.2.4-imread.patch - epatch "${FILESDIR}"/${PN}-3.2.4-ldflags.patch - epatch "${FILESDIR}"/${PN}-3.2.4-fltk-magic.patch - epatch "${FILESDIR}"/${PN}-3.2.4-dlmread-speedup.patch - eautoreconf -} - -src_configure() { - # hdf5 disabled because not really useful (bug #299876) - econf \ - --localstatedir=/var/state/octave \ - --enable-shared \ - --without-hdf5 \ - --with-qrupdate \ - --with-blas="$(pkg-config --libs blas)" \ - --with-lapack="$(pkg-config --libs lapack)" \ - $(use_enable readline) \ - $(use_with curl) \ - $(use_with fftw) \ - $(use_with fltk) \ - $(use_with opengl framework-opengl) \ - $(use_with sparse arpack) \ - $(use_with sparse umfpack) \ - $(use_with sparse colamd) \ - $(use_with sparse ccolamd) \ - $(use_with sparse cholmod) \ - $(use_with sparse cxsparse) \ - $(use_with zlib) -} - -src_compile() { - emake || die "emake failed" - if use xemacs; then - cd "${S}/emacs" - xemacs-elisp-comp *.el - fi -} - -src_install() { - emake install DESTDIR="${D}" || die "emake install failed" - - if use doc; then - einfo "Installing documentation..." - insinto /usr/share/doc/${PF} - doins $(find doc -name \*.pdf) - fi - - if use emacs || use xemacs; then - cd emacs - exeinto /usr/bin - doexe octave-tags || die "Failed to install octave-tags" - doman octave-tags.1 || die "Failed to install octave-tags.1" - if use xemacs; then - xemacs-elisp-install ${PN} *.el *.elc - fi - cd .. - fi - use test && dodoc test/fntests.log - echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave - doenvd 99octave || die -} diff --git a/sci-mathematics/octave/octave-3.4.0.ebuild b/sci-mathematics/octave/octave-3.4.0-r1.ebuild index 6914bf1fc734..c82baae44155 100644 --- a/sci-mathematics/octave/octave-3.4.0.ebuild +++ b/sci-mathematics/octave/octave-3.4.0-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.4.0.ebuild,v 1.3 2011/03/20 20:01:35 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.4.0-r1.ebuild,v 1.1 2011/06/09 21:58:24 bicatali Exp $ -EAPI="2" -inherit multilib +EAPI=4 +inherit eutils base DESCRIPTION="High-level interactive language for numerical computations" LICENSE="GPL-3" @@ -46,6 +46,11 @@ DEPEND="${RDEPEND} dev-util/gperf dev-util/pkgconfig" +src_prepare() { + epatch "${FILESDIR}"/${P}-{gcc46,pkgbuilddir,fltk,help}.patch + eautoreconf +} + src_configure() { # hdf5 disabled because not really useful (bug #299876) econf \ @@ -70,14 +75,12 @@ src_configure() { } src_install() { - emake install DESTDIR="${D}" || die "emake install failed" - + default if use doc; then einfo "Installing documentation..." insinto /usr/share/doc/${PF} doins $(find doc -name \*.pdf) fi - use test && dodoc test/fntests.log echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave doenvd 99octave || die |