From b62d2873ef01e465f425beb5e172df2e97c972a4 Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Mon, 7 Sep 2009 11:02:35 +0000 Subject: Version bump Package-Manager: portage-2.2_rc40/cvs/Linux i686 --- media-gfx/asymptote/ChangeLog | 11 +- media-gfx/asymptote/Manifest | 10 +- media-gfx/asymptote/asymptote-1.83.ebuild | 196 --------------------- media-gfx/asymptote/asymptote-1.86.ebuild | 195 ++++++++++++++++++++ .../files/asymptote-1.83-configure-ac.patch | 32 ---- .../asymptote/files/asymptote-1.83-xdg-utils.patch | 22 --- .../files/asymptote-1.86-configure-ac.patch | 32 ++++ .../asymptote/files/asymptote-1.86-xdg-utils.patch | 22 +++ 8 files changed, 264 insertions(+), 256 deletions(-) delete mode 100644 media-gfx/asymptote/asymptote-1.83.ebuild create mode 100644 media-gfx/asymptote/asymptote-1.86.ebuild delete mode 100644 media-gfx/asymptote/files/asymptote-1.83-configure-ac.patch delete mode 100644 media-gfx/asymptote/files/asymptote-1.83-xdg-utils.patch create mode 100644 media-gfx/asymptote/files/asymptote-1.86-configure-ac.patch create mode 100644 media-gfx/asymptote/files/asymptote-1.86-xdg-utils.patch (limited to 'media-gfx/asymptote') diff --git a/media-gfx/asymptote/ChangeLog b/media-gfx/asymptote/ChangeLog index 1bec46e746dc..9e7b66bdb7b2 100644 --- a/media-gfx/asymptote/ChangeLog +++ b/media-gfx/asymptote/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for media-gfx/asymptote # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.56 2009/08/22 13:50:59 grozin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.57 2009/09/07 11:02:35 grozin Exp $ + +*asymptote-1.86 (07 Sep 2009) + + 07 Sep 2009; Andrey Grozin -asymptote-1.83.ebuild, + -files/asymptote-1.83-configure-ac.patch, + -files/asymptote-1.83-xdg-utils.patch, +asymptote-1.86.ebuild, + +files/asymptote-1.86-configure-ac.patch, + +files/asymptote-1.86-xdg-utils.patch: + Version bump *asymptote-1.85 (22 Aug 2009) diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest index 3ee188833893..41221112b095 100644 --- a/media-gfx/asymptote/Manifest +++ b/media-gfx/asymptote/Manifest @@ -3,15 +3,15 @@ AUX 64asymptote-gentoo.el 337 RMD160 423330249638e628cb0f7d0b8196042a34cffa03 SH AUX asy-ftd.vim 60 RMD160 a08d3dbd7535d3de0897dd73b00f8866a72db731 SHA1 426086e8ed8d9f45518df1380ab62703cd5f1e0d SHA256 c766fccb0e3e43a6fb78eaa56cf6c45398d48b08566ea4794726f4a6ae3c9dc1 AUX asymptote-1.29-configure-ac.patch 1443 RMD160 497a336b5b4155f7fb4f36f71f96c8a5a0ef3681 SHA1 d108963f7b75a9d8a185ff54e6eb40cf7d3d58ef SHA256 49109223e505d778a58824a30c3d58775b0ab47f653821e7ca262b22b566df4d AUX asymptote-1.29-makefile.patch 1932 RMD160 8461c1f74ced939209803b0e88aaad6022942cc1 SHA1 6d3c4d4618293776722dd351d3cbf3a644dddff4 SHA256 206b2c548627ba5bd40c9ab9278851834dbac99d10844bc7444bb7ad21ddf816 -AUX asymptote-1.83-configure-ac.patch 1141 RMD160 740a6fd7016bbf5609fc223e7dfb807e07667a9f SHA1 efcde1da1777be52dce762e91d4b2c09df6b7a63 SHA256 a273d0beb30d8676c9f8bb00267b5938ebe8d4d37eaa61080e88dee0e663672e -AUX asymptote-1.83-xdg-utils.patch 688 RMD160 29a42c033163b39b30e3debb0a6a8d86c0c45901 SHA1 72e82ef1f019204318450a3c3d97812f5b756ba8 SHA256 77d5984f21873817e39dac0a385caf5cf802fc386a01e78f728c24c97f305b68 AUX asymptote-1.85-configure-ac.patch 1141 RMD160 5f87924ed184900b4d3d49c176ff03ea7c215592 SHA1 8b0fd325abe6bd6337bf7e3e5365e4e18ed4f463 SHA256 42f699ed30f2b70cbaff01006d48f3bdacbb18d2885c4dbf0eead4d365bafbd4 AUX asymptote-1.85-xdg-utils.patch 688 RMD160 e2fd26e5c507d29ac964ac05e0d1c6bbb835263f SHA1 7521e72ef65d1d09279ca2cf09187eaee7507c24 SHA256 e3843e12840723c0035a2cf6ea1420aaa0c4fdca6682b1d67cc62c4f0c23274b +AUX asymptote-1.86-configure-ac.patch 1141 RMD160 423165b11a7020f23af9c10743d7681669858840 SHA1 39c1b7276454f58bb7ee110853e2cea9f3b710e7 SHA256 996485ff6d0f6315ceac59dda6352098ec585efc4de9f6451282d4e877deaaab +AUX asymptote-1.86-xdg-utils.patch 688 RMD160 dac5aabf6f88ed30e79ca9a258b6422e4558c1bd SHA1 26380cbce501404484993a4b7623b93e85bd7b47 SHA256 469b5d377a11ecb51e21a9ed47d28974968969e8a13c60d0126a79289702714e DIST asymptote-1.29.src.tgz 933266 RMD160 013a5f8f706159ea564811cd044a12fe4b6e58da SHA1 366a42e95796fe88863a2d82624e25630be8619e SHA256 2b4eea7b3a016295b4543e3d3c9fca80fa278fc2fb7824306130a2c37e602366 -DIST asymptote-1.83.src.tgz 1502594 RMD160 03900b75b56beecaf5d4284565c54f86d5437767 SHA1 18c1d93f0a8eb4acc26c6516257dfbfd42d4268c SHA256 446553fb205d5f1b74609f647edb9a51230a22234721d4a4201ed10818df922e DIST asymptote-1.85.src.tgz 1521242 RMD160 4e801ca4d90a2d132a8553cfe3a5ddfef160d754 SHA1 7330403ad72de92e3791a977c50838675be1c061 SHA256 d95e50973faba4a47537689f190b8511b6ebe7694f0f5cf06474981dec2bd8c6 +DIST asymptote-1.86.src.tgz 1523200 RMD160 6e8d054253cae75e77c79ead65433f8d64b161e6 SHA1 20158c38a079d20c30fbe8e6e5e39420df3da338 SHA256 fc138a73669e1d43e2edf9e3853257a4831c4bc5fcce61be4d7da5658f2c05e1 EBUILD asymptote-1.29.ebuild 3491 RMD160 b14992d5aeeedd20f699c1c0c3aaa419bc2c3930 SHA1 bd68cb47a22ac889c9c25527dcff8a9ed8d615c4 SHA256 fd4f867553841368d2e2b19e623e796f89574ab2473efd0f23bfb5386db671cc -EBUILD asymptote-1.83.ebuild 4577 RMD160 f07797de5a4b570492b4ae81cc81ac3774e2ac43 SHA1 eee3e704c10375c4b9c37e09a9af0842b8dfcfd8 SHA256 02ea7cf4dc831d8a7e89a5d8efcbdecfbad7b99811f227efb1d1dee14283d343 EBUILD asymptote-1.85.ebuild 4577 RMD160 cf839e5c33722091f506c242d3b9188b83b6cbbd SHA1 689b5dfa3d644457ebc6b8be194472b85640c282 SHA256 36f6632b0ec682a1bcce1a8491cbf36538ba256b264d815664c151f22a19d352 -MISC ChangeLog 16648 RMD160 888323e88c1e26a26a11e0c744e9ed27ac038f52 SHA1 d54007318e1f17042e5489640fb73b88fe7e55cc SHA256 77e7acd520e58ae69007879168778b4db5210ba7df19db2ff66f9d2cda287883 +EBUILD asymptote-1.86.ebuild 4548 RMD160 9afbc5b0f361f03a55dfa4d78c3e55bbca6c8484 SHA1 23bf5ca0cdf6822f68a2a265f4d3ce0d292b72f8 SHA256 0d065a5daef6cada659e6eca04654458ba5bab9a661d7283fa7dfc4976ed5efa +MISC ChangeLog 16962 RMD160 bd479a549536b50a662f97e452019144147a2838 SHA1 bc9ff0927bbbeaecdeebb2ecd7df1de727729476 SHA256 5592d7ab7893b57c8e254ebb68503fca3ff85f1f720dd0a5a36c7c85144efc27 MISC metadata.xml 869 RMD160 4719ac66d805256a91cf9c311ea75e6d53db256e SHA1 f00600bb09e08fd31ba4fa15414bd3d578a4f136 SHA256 41c4190d40edabcbed20b712c8dca48783e336c7cd14bff51015966b263865b5 diff --git a/media-gfx/asymptote/asymptote-1.83.ebuild b/media-gfx/asymptote/asymptote-1.83.ebuild deleted file mode 100644 index ea3aeb1d5378..000000000000 --- a/media-gfx/asymptote/asymptote-1.83.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.83.ebuild,v 1.1 2009/08/17 17:27:57 grozin Exp $ -EAPI=2 -inherit eutils autotools elisp-common latex-package multilib python - -DESCRIPTION="A vector graphics language that provides a framework for technical drawing" -HOMEPAGE="http://asymptote.sourceforge.net/" -SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz" -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex python sigsegv vim-syntax X" - -RDEPEND=">=sys-libs/readline-4.3-r5 - >=sys-libs/ncurses-5.4-r5 - imagemagick? ( media-gfx/imagemagick[png] ) - sigsegv? ( dev-libs/libsigsegv ) - boehm-gc? ( >=dev-libs/boehm-gc-7.0[-nocxx,threads] ) - fftw? ( >=sci-libs/fftw-3.0.1 ) - gsl? ( sci-libs/gsl ) - X? ( x11-misc/xdg-utils dev-lang/python dev-python/imaging[tk] ) - python? ( dev-lang/python ) - latex? ( virtual/latex-base ) - emacs? ( virtual/emacs ) - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" -DEPEND="${RDEPEND} - doc? ( dev-lang/perl virtual/texi2dvi virtual/latex-base media-gfx/imagemagick[png] )" - -TEXMF=/usr/share/texmf-site - -src_prepare() { - # Fixing fftwl, gsl, sigsegv enabling - epatch "${FILESDIR}/${P}-configure-ac.patch" - einfo "Patching configure.ac" - sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \ - -i configure.ac \ - || die "sed configure.ac failed" - - # Changing pdf, ps, image viewers to xdg-open - epatch "${FILESDIR}/${P}-xdg-utils.patch" - - eautoreconf -} - -src_configure() { - # for the CPPFLAGS see - # http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349 - econf CPPFLAGS=-DHAVE_SYS_TYPES_H \ - --disable-gc-debug \ - $(use_enable boehm-gc gc system) \ - $(use_enable fftw) \ - $(use_enable gsl) \ - $(use_with sigsegv) -} - -src_compile() { - emake || die "emake failed" - - cd doc - emake asy.1 || die "emake asy.1 failed" - if use doc; then - # info - einfo "Making info" - emake ${PN}.info || die "emake ${PN}.info failed" - # html - einfo "Making html docs" - emake ${PN}/index.html - einfo "Making FAQ" - cd FAQ - emake - cd .. - # pdf - einfo "Making pdf docs" - export VARTEXFONTS="${T}"/fonts - # see bug #260606 - emake -j1 asymptote.pdf - emake CAD.pdf - fi - cd .. - - if use emacs; then - einfo "Compiling emacs lisp files" - elisp-compile base/*.el || die "elisp-compile failed" - fi -} - -src_install() { - # the program - exeinto /usr/bin - doexe asy - - # .asy files - insinto /usr/share/${PN} - doins base/*.asy - - # documentation - dodoc BUGS ChangeLog README ReleaseNotes TODO - doman doc/asy.1 - - # X GUI - if use X; then - exeinto /usr/share/${PN}/GUI - doexe GUI/xasy.py - rm GUI/xasy.py - insinto /usr/share/${PN}/GUI - doins GUI/*.py - dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy - doman doc/xasy.1x - fi - - # examples - if use examples; then - insinto /usr/share/${PN}/examples - doins examples/*.asy \ - examples/*.eps \ - doc/*.asy \ - doc/*.csv \ - doc/*.dat \ - doc/extra/*.asy - if use X; then - doins GUI/*.asy - fi - insinto /usr/share/${PN}/examples/animations - doins examples/animations/*.asy - fi - - # LaTeX style - if use latex; then - cd doc - insinto ${TEXMF}/tex/latex/${PN} - doins ${PN}.sty asycolors.sty - if use examples; then - insinto /usr/share/${PN}/examples - doins latexusage.tex - fi - cd .. - fi - - # asymptote.py - if use python; then - python_version - insinto /usr/$(get_libdir)/python${PYVER}/site-packages - doins base/${PN}.py - fi - - # emacs mode - if use emacs; then - elisp-install ${PN} base/*.el base/*.elc - elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el - fi - - # vim syntax - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins base/asy.vim - insinto /usr/share/vim/vimfiles/ftdetect - doins "${FILESDIR}"/asy-ftd.vim - fi - - # extra documentation - if use doc; then - cd doc - doinfo ${PN}.info* - dohtml ${PN}/* - cd FAQ - dodoc asy-faq.ascii - doinfo asy-faq.info - insinto /usr/share/doc/${PF}/html/FAQ - doins asy-faq.html/* - cd .. - insinto /usr/share/doc/${PF} - doins ${PN}.pdf CAD.pdf - fi -} - -pkg_postinst() { - if use python; then - python_version - python_mod_compile \ - /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}.py - fi - - use latex && latex-package_rehash - - use emacs && elisp-site-regen - - elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer' - elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer' -} - -pkg_postrm() { - use latex && latex-package_rehash - use emacs && elisp-site-regen - use python && python_mod_cleanup -} diff --git a/media-gfx/asymptote/asymptote-1.86.ebuild b/media-gfx/asymptote/asymptote-1.86.ebuild new file mode 100644 index 000000000000..f2a3ff01868a --- /dev/null +++ b/media-gfx/asymptote/asymptote-1.86.ebuild @@ -0,0 +1,195 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.86.ebuild,v 1.1 2009/09/07 11:02:35 grozin Exp $ +EAPI=2 +inherit eutils autotools elisp-common latex-package multilib python + +DESCRIPTION="A vector graphics language that provides a framework for technical drawing" +HOMEPAGE="http://asymptote.sourceforge.net/" +SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex python sigsegv vim-syntax X" + +RDEPEND=">=sys-libs/readline-4.3-r5 + >=sys-libs/ncurses-5.4-r5 + imagemagick? ( media-gfx/imagemagick[png] ) + sigsegv? ( dev-libs/libsigsegv ) + boehm-gc? ( >=dev-libs/boehm-gc-7.0[-nocxx,threads] ) + fftw? ( >=sci-libs/fftw-3.0.1 ) + gsl? ( sci-libs/gsl ) + X? ( x11-misc/xdg-utils dev-lang/python dev-python/imaging[tk] ) + python? ( dev-lang/python ) + latex? ( virtual/latex-base ) + emacs? ( virtual/emacs ) + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" +DEPEND="${RDEPEND} + doc? ( dev-lang/perl virtual/texi2dvi virtual/latex-base media-gfx/imagemagick[png] )" + +TEXMF=/usr/share/texmf-site + +src_prepare() { + # Fixing sigsegv enabling + epatch "${FILESDIR}/${P}-configure-ac.patch" + einfo "Patching configure.ac" + sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \ + -i configure.ac \ + || die "sed configure.ac failed" + + # Changing pdf, ps, image viewers to xdg-open + epatch "${FILESDIR}/${P}-xdg-utils.patch" + + eautoreconf +} + +src_configure() { + # for the CPPFLAGS see + # http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349 + econf CPPFLAGS=-DHAVE_SYS_TYPES_H \ + --disable-gc-debug \ + $(use_enable boehm-gc gc system) \ + $(use_enable fftw) \ + $(use_enable gsl) \ + $(use_with sigsegv) +} + +src_compile() { + emake || die "emake failed" + + cd doc + emake asy.1 || die "emake asy.1 failed" + if use doc; then + # info + einfo "Making info" + emake ${PN}.info || die "emake ${PN}.info failed" + # html + einfo "Making html docs" + emake ${PN}/index.html + einfo "Making FAQ" + cd FAQ + emake + cd .. + # pdf + einfo "Making pdf docs" + export VARTEXFONTS="${T}"/fonts + # see bug #260606 + emake -j1 asymptote.pdf + emake CAD.pdf + fi + cd .. + + if use emacs; then + einfo "Compiling emacs lisp files" + elisp-compile base/*.el || die "elisp-compile failed" + fi +} + +src_install() { + # the program + exeinto /usr/bin + doexe asy + + # .asy files + insinto /usr/share/${PN} + doins base/*.asy + + # documentation + dodoc BUGS ChangeLog README ReleaseNotes TODO + doman doc/asy.1 + + # X GUI + if use X; then + exeinto /usr/share/${PN}/GUI + doexe GUI/xasy.py + rm GUI/xasy.py + insinto /usr/share/${PN}/GUI + doins GUI/*.py + dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy + doman doc/xasy.1x + fi + + # examples + if use examples; then + insinto /usr/share/${PN}/examples + doins examples/*.asy \ + examples/*.eps \ + doc/*.asy \ + doc/*.csv \ + doc/*.dat \ + doc/extra/*.asy + if use X; then + doins GUI/*.asy + fi + insinto /usr/share/${PN}/examples/animations + doins examples/animations/*.asy + fi + + # LaTeX style + if use latex; then + cd doc + insinto ${TEXMF}/tex/latex/${PN} + doins ${PN}.sty asycolors.sty + if use examples; then + insinto /usr/share/${PN}/examples + doins latexusage.tex + fi + cd .. + fi + + # asymptote.py + if use python; then + python_version + insinto /usr/$(get_libdir)/python${PYVER}/site-packages + doins base/${PN}.py + fi + + # emacs mode + if use emacs; then + elisp-install ${PN} base/*.el base/*.elc + elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el + fi + + # vim syntax + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins base/asy.vim + insinto /usr/share/vim/vimfiles/ftdetect + doins "${FILESDIR}"/asy-ftd.vim + fi + + # extra documentation + if use doc; then + cd doc + doinfo ${PN}.info* + cd FAQ + dodoc asy-faq.ascii + doinfo asy-faq.info + insinto /usr/share/doc/${PF}/html/FAQ + doins asy-faq.html/* + cd .. + insinto /usr/share/doc/${PF} + doins ${PN}.pdf CAD.pdf + fi +} + +pkg_postinst() { + if use python; then + python_version + python_mod_compile \ + /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}.py + fi + + use latex && latex-package_rehash + + use emacs && elisp-site-regen + + elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer' + elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer' +} + +pkg_postrm() { + use latex && latex-package_rehash + use emacs && elisp-site-regen + use python && python_mod_cleanup +} diff --git a/media-gfx/asymptote/files/asymptote-1.83-configure-ac.patch b/media-gfx/asymptote/files/asymptote-1.83-configure-ac.patch deleted file mode 100644 index 03d510187ca2..000000000000 --- a/media-gfx/asymptote/files/asymptote-1.83-configure-ac.patch +++ /dev/null @@ -1,32 +0,0 @@ -Index: asymptote-1.83/configure.ac -=================================================================== ---- asymptote-1.83.orig/configure.ac -+++ asymptote-1.83/configure.ac -@@ -150,7 +150,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then - fi - CPPFLAGS_SAVE=$CPPFLAGS - CPPFLAGS=$CPPFLAGS" $INCL" -- AC_CHECK_HEADER(gc.h, -+ AC_CHECK_HEADER([gc/gc.h], - AC_CHECK_LIB([gc],[GC_malloc],[ - LIBS=$LIBS"-lgc " - AC_MSG_NOTICE([enabling system $GCNAME])],[ -@@ -217,7 +217,17 @@ AC_MSG_ERROR([*** Please install libm on - AC_CHECK_LIB([z], [deflate],, - AC_MSG_ERROR([*** Please install libz on your system ***])) - AC_CHECK_LIB([pthread], [pthread_create]) --AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]) -+ -+AC_ARG_WITH(sigsegv, -+ [ --with-sigsegv use libsigsegv], -+ [with_sigsegv=$withval], -+ [with_sigsegv="no"]) -+if test "$with_sigsegv" = "yes"; then -+AC_CHECK_HEADER([sigsegv.h], -+ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]), -+ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***])) -+fi -+ - AC_CHECK_LIB([rt], [sched_yield]) - - AC_ARG_ENABLE(readline, diff --git a/media-gfx/asymptote/files/asymptote-1.83-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-1.83-xdg-utils.patch deleted file mode 100644 index 71b8ebb5d2d7..000000000000 --- a/media-gfx/asymptote/files/asymptote-1.83-xdg-utils.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: asymptote-1.83/settings.cc -=================================================================== ---- asymptote-1.83.orig/settings.cc -+++ asymptote-1.83/settings.cc -@@ -82,14 +82,14 @@ mode_t mask; - bool msdos=false; - string HOME="HOME"; - const char pathSeparator=':'; --string defaultPSViewer="gv"; -+string defaultPSViewer="xdg-open"; - #ifdef __APPLE__ - string defaultPDFViewer="open"; - #else --string defaultPDFViewer="acroread"; -+string defaultPDFViewer="xdg-open"; - #endif - string defaultGhostscript="gs"; --string defaultDisplay="display"; -+string defaultDisplay="xdg-open"; - string defaultAnimate="animate"; - string systemDir=ASYMPTOTE_SYSDIR; - string docdir=ASYMPTOTE_DOCDIR; diff --git a/media-gfx/asymptote/files/asymptote-1.86-configure-ac.patch b/media-gfx/asymptote/files/asymptote-1.86-configure-ac.patch new file mode 100644 index 000000000000..67c53b82c8bc --- /dev/null +++ b/media-gfx/asymptote/files/asymptote-1.86-configure-ac.patch @@ -0,0 +1,32 @@ +Index: asymptote-1.86/configure.ac +=================================================================== +--- asymptote-1.86.orig/configure.ac ++++ asymptote-1.86/configure.ac +@@ -150,7 +150,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then + fi + CPPFLAGS_SAVE=$CPPFLAGS + CPPFLAGS=$CPPFLAGS" $INCL" +- AC_CHECK_HEADER(gc.h, ++ AC_CHECK_HEADER([gc/gc.h], + AC_CHECK_LIB([gc],[GC_malloc],[ + LIBS=$LIBS"-lgc " + AC_MSG_NOTICE([enabling system $GCNAME])],[ +@@ -217,7 +217,17 @@ AC_MSG_ERROR([*** Please install libm on + AC_CHECK_LIB([z], [deflate],, + AC_MSG_ERROR([*** Please install libz on your system ***])) + AC_CHECK_LIB([pthread], [pthread_create]) +-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]) ++ ++AC_ARG_WITH(sigsegv, ++ [ --with-sigsegv use libsigsegv], ++ [with_sigsegv=$withval], ++ [with_sigsegv="no"]) ++if test "$with_sigsegv" = "yes"; then ++AC_CHECK_HEADER([sigsegv.h], ++ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]), ++ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***])) ++fi ++ + AC_CHECK_LIB([rt], [sched_yield]) + + AC_ARG_ENABLE(readline, diff --git a/media-gfx/asymptote/files/asymptote-1.86-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-1.86-xdg-utils.patch new file mode 100644 index 000000000000..98db63a1e4d9 --- /dev/null +++ b/media-gfx/asymptote/files/asymptote-1.86-xdg-utils.patch @@ -0,0 +1,22 @@ +Index: asymptote-1.86/settings.cc +=================================================================== +--- asymptote-1.86.orig/settings.cc ++++ asymptote-1.86/settings.cc +@@ -82,14 +82,14 @@ mode_t mask; + bool msdos=false; + string HOME="HOME"; + const char pathSeparator=':'; +-string defaultPSViewer="gv"; ++string defaultPSViewer="xdg-open"; + #ifdef __APPLE__ + string defaultPDFViewer="open"; + #else +-string defaultPDFViewer="acroread"; ++string defaultPDFViewer="xdg-open"; + #endif + string defaultGhostscript="gs"; +-string defaultDisplay="display"; ++string defaultDisplay="xdg-open"; + string defaultAnimate="animate"; + string systemDir=ASYMPTOTE_SYSDIR; + string docdir=ASYMPTOTE_DOCDIR; -- cgit v1.2.3-65-gdbad