diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-07-16 11:47:32 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-07-16 11:47:32 +0000 |
commit | aca1822cf78a0c4602988eabb03646b416b7326f (patch) | |
tree | aceecdb104739995e2ccb4f4b377c9e31c22f105 /sci-visualization/grace | |
parent | Fix mozilla deps again, bug #230670 (diff) | |
download | historical-aca1822cf78a0c4602988eabb03646b416b7326f.tar.gz historical-aca1822cf78a0c4602988eabb03646b416b7326f.tar.bz2 historical-aca1822cf78a0c4602988eabb03646b416b7326f.zip |
Version bump with a few patches. Removed stdc99 patch, thanks for markusle for tracking that down, closing bug #231607
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'sci-visualization/grace')
-rw-r--r-- | sci-visualization/grace/ChangeLog | 11 | ||||
-rw-r--r-- | sci-visualization/grace/Manifest | 18 | ||||
-rw-r--r-- | sci-visualization/grace/files/grace-5.1.22-dlmodule.patch | 12 | ||||
-rw-r--r-- | sci-visualization/grace/files/grace-5.1.22-mkstemp.patch | 55 | ||||
-rw-r--r-- | sci-visualization/grace/files/grace-5.1.22-pdfdrv.patch | 11 | ||||
-rw-r--r-- | sci-visualization/grace/grace-5.1.21-r1.ebuild | 8 | ||||
-rw-r--r-- | sci-visualization/grace/grace-5.1.21.ebuild | 125 | ||||
-rw-r--r-- | sci-visualization/grace/grace-5.1.22.ebuild | 117 |
8 files changed, 221 insertions, 136 deletions
diff --git a/sci-visualization/grace/ChangeLog b/sci-visualization/grace/ChangeLog index 0a07e6a16645..60b06f22b171 100644 --- a/sci-visualization/grace/ChangeLog +++ b/sci-visualization/grace/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-visualization/grace # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/ChangeLog,v 1.33 2008/06/27 10:43:17 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/ChangeLog,v 1.34 2008/07/16 11:47:31 bicatali Exp $ + +*grace-5.1.22 (16 Jul 2008) + + 16 Jul 2008; SĂ©bastien Fabbro <bicatali@gentoo.org> + +files/grace-5.1.22-dlmodule.patch, +files/grace-5.1.22-mkstemp.patch, + +files/grace-5.1.22-pdfdrv.patch, -grace-5.1.21.ebuild, + grace-5.1.21-r1.ebuild, +grace-5.1.22.ebuild: + Version bump with a few patches. Removed stdc99 patch, thanks for markusle + for tracking that down, closing bug #231607 27 Jun 2008; Ulrich Mueller <ulm@gentoo.org> grace-5.1.20.ebuild, grace-5.1.21.ebuild, grace-5.1.21-r1.ebuild: diff --git a/sci-visualization/grace/Manifest b/sci-visualization/grace/Manifest index 892c41c9551f..055316c1dd65 100644 --- a/sci-visualization/grace/Manifest +++ b/sci-visualization/grace/Manifest @@ -4,22 +4,26 @@ Hash: SHA1 AUX grace-5.1.21-fortran.patch 650 RMD160 1eb2b9cb37cad4b103f5fe4749e65403a1dffab5 SHA1 50b5a5af6ab802936fcb227ebba46bb69e37bd7b SHA256 5001b3eb4ceb4b408b01a92651162bdf6f3ce1823199ae8f0a62c32a816a5c1e AUX grace-5.1.21-netcdf.patch 413 RMD160 dab48c7889042ebe741293da0184c36c00034e32 SHA1 750efdb37af1f1c1eab0f8c28f52df4621964c44 SHA256 57c36bfd320d2a3a61c2f7628ede67f96c4c165969f7162b4d3dbf07d23d5adb AUX grace-5.1.21-stdc99.patch 458 RMD160 79f98076d98c90bb9dde7edf76797790d53f4eba SHA1 1f5267b3fbc757704042b5d5a5c25465bb0bd8b9 SHA256 8fb25ffd450c65871d4c418a3c8a42e4e33545723c2ce6e854c534d60e035f3e +AUX grace-5.1.22-dlmodule.patch 356 RMD160 1900c1e7a2d964d299408af73f52b32b145d976f SHA1 a06088c543c1c6ae0280af1fdba7a80c55e97a62 SHA256 b8e0b2527a2083b0594756e927f45ad9051711ac370330deb11e299ca849e05a +AUX grace-5.1.22-mkstemp.patch 1575 RMD160 9f70350b0706891bc43ffaa326736fa01d950d05 SHA1 94916aaaabf68388341d83d7cccc4bee20ad6b2b SHA256 78b46a4cd367d2eec2b2796a580f6b4d70fff6efaa54f4969a34409e591972ca +AUX grace-5.1.22-pdfdrv.patch 353 RMD160 77dbd6af3bac15822f5e2e7e75b8172d8ca67798 SHA1 b7a1ddc3341c0208f538b660b6d8d3705c58caff SHA256 c347802157e90aa56a4fcddaea437ba016f5344354b64d50748171ba52fe27ff AUX grace-helpviewer-gentoo.diff 384 RMD160 c9c0ff6d9ff270cfb94ec2d91a19a1eee64e76be SHA1 949d2728e0857fb955538757b72852643a1e2b2c SHA256 d17e81fa31c1647c9b7a8dbff5a8aa75faf6d4d293ad2738de93acbdf754e206 AUX grace.desktop 262 RMD160 5a10a1cf6f5e79aff53eb62fffb24067afcab37e SHA1 11e2ecbf7862f3e810c32ca5398da11ea182ebd8 SHA256 25b51b4216d35b44ae0d6a5d930d82fab76b5cd799898dd0797d23eec8bfdc3e AUX grace.png 498 RMD160 01c0e1841ca819eafd6c49933e8bcf656ba664d6 SHA1 32d698b82f8b4a6640483a633a5a12808c6124ca SHA256 5853749dccb423411bd2c6b9098e7627c3ce6ea38682b1bab0e5555c095084d2 AUX xmgrace.sh 100 RMD160 ca883727fa2ea3555238dde62d97ea52d4c57633 SHA1 8c2deb5cce72d100fcd0b926ef8b1aa7a27f7800 SHA256 5349f556ce95b419d4678ac10b090c7fde91d78c345495aab7acf2aaaa4a1b05 DIST grace-5.1.20.tar.gz 2458543 RMD160 2c8ed6d71ccea028a8798b3c08feccbdac62348d SHA1 40679a554c94b44aa378d1af9b19fc8c4662b8e5 SHA256 8524d54505bf634b038c054850ff71eed119dc96f3d5e3706b4e4ff4b07d4b13 DIST grace-5.1.21.tar.gz 2474115 RMD160 d2818d1a50945ef84aa2ddd6046e5bfbf6c9459b SHA1 23edbb8f713fe3895a58c7ed9892875ee3d819fa SHA256 30e4b5d86f4b966428aac5d8c5d0468bcf28226eea9e00d9eb4886f4ab094b00 +DIST grace-5.1.22.tar.gz 2516576 RMD160 ca7b1abe240de7cd3dbdc52d5182020c410b9772 SHA1 3ce88c7c264d2de73b8935f835a1c1f8e368c78f SHA256 4ce8f058b6c1267a842419a3edbf471421dea9cf5744783745b6cb375cdf5f25 DIST grace_5.1.21-2.diff.gz 23517 RMD160 e027372cbe6bd51543ca00888da987055895eecc SHA1 5507eeb8100d750690b203db9e628d83d77d3830 SHA256 d04252fbfc1fde51e05df3f36d34dcfe88fb53a330f92e189eb6af6a459e1b23 EBUILD grace-5.1.20.ebuild 3350 RMD160 997907ddd2ef09658db6060f1bc4227ef85da46e SHA1 93a3139b8d515d98cc7683b196238979b81639f9 SHA256 d6a650a9391bc29599e3feecd05fc325881df05e2d022fac8d4a901ac18bcf8b -EBUILD grace-5.1.21-r1.ebuild 3065 RMD160 b3e8274428bd17c735bfc8089377ab492110278b SHA1 95dbd5995a240eed8bc0a388f395222a8e5b79aa SHA256 b4baef9a468ca0813672b7d007c4831928328fd0d9a3d62a89b00d01d6473428 -EBUILD grace-5.1.21.ebuild 3529 RMD160 0c562c848863f4e717247e11d4e50e13fdf5b1e4 SHA1 349758cb4d3bf52cf56d556e54e6eb00565542ab SHA256 b6faabf130dec36f5de66c137e22d41fdd91aa4928f383509ffe9b4b95d8c2bc -MISC ChangeLog 11614 RMD160 b4285d2bf6588fb43290e2b7c782a4597f197560 SHA1 4048431bb7344faa0e634f276fbb5d2d178ba9df SHA256 dae79432b867ba8ee1da80d977d4fdf5da11f17004a6cfa4ee314d72fd5f7f6d +EBUILD grace-5.1.21-r1.ebuild 3104 RMD160 8949f7ba78c14eef113d1c529765fa2d8b0d2629 SHA1 4835b5cd4eb52596d220121b23b9877c2a309faa SHA256 b2ea97171632f246d00e78fdda88477934cdb98e84f0f15f3480ecb0230cff8f +EBUILD grace-5.1.22.ebuild 3092 RMD160 b77416900e4611f2503e617c85732ab6fee54438 SHA1 6a899cbf486891b82c590962af7ba563c4ab5818 SHA256 4306b5bb4562e10211aa0905242d13251da2ee463fa347ff6c8dd75e731dc038 +MISC ChangeLog 12006 RMD160 74456e86303ec3261e3a58a036615f68ebb53dbf SHA1 c732059715e6f7afa97bbe2b65e0be89677d4a60 SHA256 b293c2e56003323efa368533df3ec075bfb348561602b624860c89da94fda647 MISC metadata.xml 645 RMD160 78fdc207c55c585d82c8282ddedf554da9ebbeaf SHA1 f905e31a079fe543bc3f81d0305c11ea3529c605 SHA256 97aa6dae00402081c1d846ef26f8a5283b5bbe62c414bb66febee13bf2d92bfe -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.9 (GNU/Linux) +Version: GnuPG v2.0.9 (GNU/Linux) -iEYEARECAAYFAkhkxHUACgkQOeoy/oIi7uwl8gCg4fqyZjQxMtwdU62/n8G1l0HP -VloAoIEYYZj9dqcIcUXrDfAmadlKVwNA -=ceSh +iEYEARECAAYFAkh9394ACgkQ1ycZbhPLE2DWvwCgiAQPi03FseCaJTVNDb0UxdP9 +lRAAoKRXX/3LtojnnHNARlYUOz8tfwqh +=7z95 -----END PGP SIGNATURE----- diff --git a/sci-visualization/grace/files/grace-5.1.22-dlmodule.patch b/sci-visualization/grace/files/grace-5.1.22-dlmodule.patch new file mode 100644 index 000000000000..9e36b34e06f4 --- /dev/null +++ b/sci-visualization/grace/files/grace-5.1.22-dlmodule.patch @@ -0,0 +1,12 @@ +--- src/dlmodule.c.orig 2005-11-13 07:45:16.000000000 +0900 ++++ src/dlmodule.c 2008-06-16 15:28:33.000000000 +0900 +@@ -89,6 +89,9 @@ + return RETURN_FAILURE; + } + ++ /* clear error indicator */ ++ dlerror(); ++ + newkey.data = dlsym(handle, dl_function); + if (!newkey.data && (error = dlerror()) != NULL) { + errmsg(error); diff --git a/sci-visualization/grace/files/grace-5.1.22-mkstemp.patch b/sci-visualization/grace/files/grace-5.1.22-mkstemp.patch new file mode 100644 index 000000000000..5cb0f35ef9eb --- /dev/null +++ b/sci-visualization/grace/files/grace-5.1.22-mkstemp.patch @@ -0,0 +1,55 @@ +--- src/plotone.c.orig 2008-07-16 11:36:43.000000000 +0100 ++++ src/plotone.c 2008-07-16 12:14:22.000000000 +0100 +@@ -119,21 +119,29 @@ + if (print_file[0] == '\0') { + Device_entry dev = get_device_props(hdevice); + sprintf(print_file, "%s.%s", get_docbname(), dev.fext); ++ prstream = grace_openw(fname); + } + strcpy(fname, print_file); + } else { ++ int hdfd; + s = get_print_cmd(); + if (s == NULL || s[0] == '\0') { + errmsg("No print command defined, output aborted"); + return; + } +- tmpnam(fname); +- /* VMS doesn't like extensionless files */ +- strcat(fname, ".prn"); ++ strcpy(fname, "grace-hardcopy-XXXXXX"); ++ hdfd=mkstemp(fname); ++ if (hdfd == -1) { ++ errmsg("Could not create a temporary file, output aborted."); ++ return; ++ } ++ prstream = fdopen(hdfd, "wb"); ++ if (prstream == NULL) { ++ errmsg("Could not create a temporary file, output aborted."); ++ return; ++ } + } + +- prstream = grace_openw(fname); +- + if (prstream == NULL) { + return; + } +--- src/editpwin.c.orig 2008-07-16 11:37:01.000000000 +0100 ++++ src/editpwin.c 2008-07-16 11:39:37.000000000 +0100 +@@ -776,12 +776,12 @@ + */ + void do_ext_editor(int gno, int setno) + { +- char *fname, ebuf[256]; ++ char fname[64], ebuf[256]; + FILE *cp; + int save_autos; + +- fname = tmpnam(NULL); +- cp = grace_openw(fname); ++ strcpy(fname, "grace-XXXXXX"); ++ cp = fdopen(mkstemp(fname), "wb"); + if (cp == NULL) { + return; + } diff --git a/sci-visualization/grace/files/grace-5.1.22-pdfdrv.patch b/sci-visualization/grace/files/grace-5.1.22-pdfdrv.patch new file mode 100644 index 000000000000..6d6200713bfe --- /dev/null +++ b/sci-visualization/grace/files/grace-5.1.22-pdfdrv.patch @@ -0,0 +1,11 @@ +--- src/pdfdrv.c.orig 2004-08-05 04:37:47.000000000 +0900 ++++ src/pdfdrv.c 2008-06-16 15:29:00.000000000 +0900 +@@ -57,6 +57,8 @@ + # include "motifinc.h" + #endif + ++#define PDF_set_fillrule(handle, rule) PDF_set_parameter(handle, "fillrule", rule) ++ + static void pdf_error_handler(PDF *p, int type, const char* msg); + + static unsigned long page_scale; diff --git a/sci-visualization/grace/grace-5.1.21-r1.ebuild b/sci-visualization/grace/grace-5.1.21-r1.ebuild index a0e0861cc989..9f281aa3a76d 100644 --- a/sci-visualization/grace/grace-5.1.21-r1.ebuild +++ b/sci-visualization/grace/grace-5.1.21-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/grace-5.1.21-r1.ebuild,v 1.6 2008/06/27 10:43:17 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/grace-5.1.21-r1.ebuild,v 1.7 2008/07/16 11:47:31 bicatali Exp $ EAPI="1" inherit eutils fortran @@ -49,8 +49,10 @@ src_unpack() { epatch "${FILESDIR}"/${P}-netcdf.patch # fix for missing defines when fortran is disabled epatch "${FILESDIR}"/${P}-fortran.patch - # fix for glibc-2.7 (bug #) - epatch "${FILESDIR}"/${P}-stdc99.patch + + # fix for glibc-2.7 (bug #217971) + # removed (bug #231607) + # epatch "${FILESDIR}"/${P}-stdc99.patch # don't strip if not asked for sed -i \ diff --git a/sci-visualization/grace/grace-5.1.21.ebuild b/sci-visualization/grace/grace-5.1.21.ebuild deleted file mode 100644 index dcd7d2db83eb..000000000000 --- a/sci-visualization/grace/grace-5.1.21.ebuild +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/grace-5.1.21.ebuild,v 1.3 2008/06/27 10:43:17 ulm Exp $ - -inherit eutils - -DESCRIPTION="WYSIWYG 2D plotting tool for the X Window System" -HOMEPAGE="http://plasma-gate.weizmann.ac.il/Grace/" -SRC_URI="ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/${P}.tar.gz" - -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -IUSE="debug fftw jpeg netcdf pdf png" - -LICENSE="GPL-2" -SLOT="0" - -RDEPEND="x11-libs/openmotif - >=sys-libs/zlib-1.0.3 - >=media-libs/t1lib-1.3.1 - >=media-libs/tiff-3.5 - fftw? ( =sci-libs/fftw-2* ) - netcdf? ( >=sci-libs/netcdf-3.0 ) - png? ( >=media-libs/libpng-0.9.6 ) - jpeg? ( media-libs/jpeg ) - pdf? ( >=media-libs/pdflib-4.0.3 )" - -DEPEND="${RDEPEND} - >=sys-apps/sed-4" - -src_compile() { - - local gracehelpviewer - local graceeditor - - if has_version 'www-client/dillo' ; then - gracehelpviewer="dillo" - elif has_version 'www-client/opera' ; then - gracehelpviewer="opera" - elif has_version 'www-client/mozilla-firefox' \ - || has_version 'www-client/mozilla-firefox-bin' \ - || has_version 'www-client/mozilla-firefox-cvs' ; then - gracehelpviewer="firefox" - elif has_version 'www-client/mozilla' ; then - gracehelpviewer="mozilla" - elif has_version 'kde-base/kdebase' \ - || has_version 'kde-base/konqueror' ; then - gracehelpviewer="konqueror" - elif has_version 'www-client/galeon' ; then - gracehelpviewer="galeon" - elif has_version 'www-client/epiphany' ; then - gracehelpviewer="epiphany" - else - gracehelpviewer="netscape" - fi - - graceeditor="xterm -e ${EDITOR}" - - sed -i -e "s%doc/%/usr/share/doc/${PF}/html/%g" src/* - sed -i -e "s%examples/%/usr/share/doc/${PF}/examples/%g" src/xmgrace.c - - econf \ - --enable-grace-home=/usr/share/grace \ - --with-helpviewer="${gracehelpviewer} %s" \ - --with-editor="${graceeditor}" \ - `use_with fftw` \ - `use_enable netcdf` \ - `use_enable debug` \ - `use_enable jpeg jpegdrv` \ - `use_enable png pngdrv` \ - `use_enable pdf pdfdrv` || die - - cp doc/Makefile doc/Makefile.orig - sed -e 's:$(GRACE_HOME)/doc:$(PREFIX)/share/doc/$(PF)/html:g' \ - doc/Makefile.orig >doc/Makefile || die - - cp auxiliary/Makefile auxiliary/Makefile.orig - sed -e 's:$(GRACE_HOME)/bin:$(PREFIX)/bin:g' \ - auxiliary/Makefile.orig >auxiliary/Makefile || die - - cp grconvert/Makefile grconvert/Makefile.orig - sed -e 's:$(GRACE_HOME)/bin:$(PREFIX)/bin:g' \ - grconvert/Makefile.orig >grconvert/Makefile || die - - cp src/Makefile src/Makefile.orig - sed -e 's:$(GRACE_HOME)/bin:$(PREFIX)/bin:g' \ - src/Makefile.orig >src/Makefile || die - - cp grace_np/Makefile grace_np/Makefile.orig - sed -e 's:$(GRACE_HOME)/lib:$(PREFIX)/lib:g' \ - -e 's:$(GRACE_HOME)/include:$(PREFIX)/include:g' \ - grace_np/Makefile.orig >grace_np/Makefile || die - - cp examples/Makefile examples/Makefile.orig - sed -e 's:/examples:/share/doc/$(PF)/examples:g' \ - -e 's:$(GRACE_HOME):$(PREFIX):g' \ - examples/Makefile.orig >examples/Makefile || die - - make || die -} - -src_install() { - - make \ - GRACE_HOME="${D}/usr/share/grace" \ - PREFIX="${D}/usr" \ - install || die - - dodoc CHANGES COPYRIGHT ChangeLog DEVELOPERS LICENSE README - - doman "${D}"/usr/share/doc/${PF}/html/*.1 - rm -f "${D}"/usr/share/doc/${PF}/html/*.1 - - dosym /usr/share/doc/${PF}/examples /usr/share/grace/examples - - insinto /usr/share/pixmaps/ - doins ${FILESDIR}/${PN}.png - - insinto /usr/share/applications/ - doins ${FILESDIR}/${PN}.desktop - - into /usr/ - dobin ${FILESDIR}/xm${PN}.sh - -} diff --git a/sci-visualization/grace/grace-5.1.22.ebuild b/sci-visualization/grace/grace-5.1.22.ebuild new file mode 100644 index 000000000000..44eae26b1c8b --- /dev/null +++ b/sci-visualization/grace/grace-5.1.22.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/grace/grace-5.1.22.ebuild,v 1.1 2008/07/16 11:47:31 bicatali Exp $ + +EAPI="1" +inherit eutils fortran + +DESCRIPTION="Motif based XY-plotting tool" +HOMEPAGE="http://plasma-gate.weizmann.ac.il/Grace/" +SRC_URI="ftp://plasma-gate.weizmann.ac.il/pub/${PN}/src/stable/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2 LGPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="fortran fftw jpeg netcdf pdf png" + +DEPEND="x11-libs/openmotif + sys-libs/zlib + media-libs/t1lib + media-libs/tiff + x11-libs/xbae + fftw? ( sci-libs/fftw:2.1 ) + netcdf? ( sci-libs/netcdf ) + png? ( media-libs/libpng ) + jpeg? ( media-libs/jpeg ) + pdf? ( media-libs/pdflib )" + +RDEPEND="${DEPEND} + x11-misc/xdg-utils" + +pkg_setup() { + if use fortran; then + FORTRAN="gfortran g77 ifc" + fortran_pkg_setup + fi +} + +src_unpack() { + unpack ${A} + + cd "${S}" + + # move tmpnam to mkstemp (adapted from debian) + epatch "${FILESDIR}"/${P}-mkstemp.patch + # fix configure instead of aclocal.m4 + epatch "${FILESDIR}"/${PN}-5.1.21-netcdf.patch + # fix for missing defines when fortran is disabled + epatch "${FILESDIR}"/${PN}-5.1.21-fortran.patch + # fix a leak and pdf driver (from freebsd) + epatch "${FILESDIR}"/${P}-dlmodule.patch + epatch "${FILESDIR}"/${P}-pdfdrv.patch + + # fix for glibc-2.7 (bug #217971) + # removed (bug #231607) + # epatch "${FILESDIR}"/${P}-stdc99.patch + + # don't strip if not asked for + sed -i \ + -e 's:$(INSTALL_PROGRAM) -s:$(INSTALL_PROGRAM):g' \ + {auxiliary,grconvert,src}/Makefile + + sed -i \ + -e 's:$(GRACE_HOME)/bin:$(PREFIX)/bin:g' \ + -e "s:\$(GRACE_HOME)/lib:\$(PREFIX)/$(get_libdir):g" \ + -e 's:$(GRACE_HOME)/include:$(PREFIX)/include:g' \ + -e 's:$(PREFIX)/man:$(PREFIX)/share/man:g' \ + Makefile */Makefile || die "sed failed" + + sed -i \ + -e 's:bin/grconvert:grconvert:' \ + -e 's:auxiliary/fdf2fit:fdf2fit:' \ + gracerc || die +} + +src_compile() { + local myconf + if use fortran; then + myconf="--with-f77=${FORTRANC}" + else + myconf="--without-f77" + fi + + # the configure script just produces a basic Make.conf + # and a config.h + econf \ + --disable-xmhtml \ + --without-bundled-xbae \ + --without-bundled-t1lib \ + --enable-grace-home=/usr/share/${PN} \ + --with-helpviewer="xdg-open %s" \ + --with-editor="xdg-open %s" \ + --with-printcmd="lpr" \ + $(use_with fftw) \ + $(use_enable fortran f77-wrapper) \ + $(use_enable netcdf) \ + $(use_enable jpeg jpegdrv) \ + $(use_enable png pngdrv) \ + $(use_enable pdf pdfdrv) \ + ${myconf} \ + || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES ChangeLog DEVELOPERS README COPYRIGHT \ + || die "dodoc failed" + + dosym ../../${PN}/examples /usr/share/doc/${PF}/examples + dosym ../../${PN}/doc /usr/share/doc/${PF}/html + + doman "${D}"/usr/share/doc/${PF}/html/*.1 + rm -f "${D}"/usr/share/doc/${PF}/html/*.1 + doicon "${FILESDIR}"/${PN}.png || die "failed installing icon" + make_desktop_entry xmgrace Grace grace +} |