diff options
author | Andrey Grozin <grozin@gentoo.org> | 2008-11-15 13:20:30 +0000 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2008-11-15 13:20:30 +0000 |
commit | 524d542e1c93f01da3670969450511027b7a89dc (patch) | |
tree | 6e9e74282c50374314d2985a8f72a5a201dd1501 /media-gfx/asymptote | |
parent | Dropped mips since we don't have stable branch any more. (diff) | |
download | historical-524d542e1c93f01da3670969450511027b7a89dc.tar.gz historical-524d542e1c93f01da3670969450511027b7a89dc.tar.bz2 historical-524d542e1c93f01da3670969450511027b7a89dc.zip |
Version bump
Package-Manager: portage-2.2_rc14/cvs/Linux 2.6.26-tuxonice i686
Diffstat (limited to 'media-gfx/asymptote')
-rw-r--r-- | media-gfx/asymptote/ChangeLog | 9 | ||||
-rw-r--r-- | media-gfx/asymptote/Manifest | 6 | ||||
-rw-r--r-- | media-gfx/asymptote/asymptote-1.51.ebuild | 234 | ||||
-rw-r--r-- | media-gfx/asymptote/files/asymptote-1.51-configure-ac.patch | 60 | ||||
-rw-r--r-- | media-gfx/asymptote/files/asymptote-1.51-xdg-utils.patch | 19 |
5 files changed, 326 insertions, 2 deletions
diff --git a/media-gfx/asymptote/ChangeLog b/media-gfx/asymptote/ChangeLog index 1e3928796c95..06c7644e71fa 100644 --- a/media-gfx/asymptote/ChangeLog +++ b/media-gfx/asymptote/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-gfx/asymptote # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.25 2008/11/04 08:36:15 grozin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.26 2008/11/15 13:20:30 grozin Exp $ + +*asymptote-1.51 (15 Nov 2008) + + 15 Nov 2008; Andrey Grozin <grozin@gentoo.org> + +files/asymptote-1.51-configure-ac.patch, + +files/asymptote-1.51-xdg-utils.patch, +asymptote-1.51.ebuild: + Version bump *asymptote-1.49 (04 Nov 2008) diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest index 8401bef53639..812edac066f7 100644 --- a/media-gfx/asymptote/Manifest +++ b/media-gfx/asymptote/Manifest @@ -5,9 +5,13 @@ AUX asymptote-1.29-configure-ac.patch 1443 RMD160 497a336b5b4155f7fb4f36f71f96c8 AUX asymptote-1.29-makefile.patch 1932 RMD160 8461c1f74ced939209803b0e88aaad6022942cc1 SHA1 6d3c4d4618293776722dd351d3cbf3a644dddff4 SHA256 206b2c548627ba5bd40c9ab9278851834dbac99d10844bc7444bb7ad21ddf816 AUX asymptote-1.49-configure-ac.patch 2298 RMD160 b84f75d6ad74bc03d4ef88065a14db954597b24a SHA1 a6a83a95484e459cc3643687cac13b2657b3005d SHA256 4437697578a1132b534411c6eff03161efc33fafce65d98d596700fddeb9c792 AUX asymptote-1.49-xdg-utils.patch 661 RMD160 57a7aa8c2a6c514e540f5999994d5c0a5712b6ea SHA1 d3b3eeccc4d246d47f38ff0f061abc45c249aa90 SHA256 236ce9b548a76e3d52a270e44b4ef3cae33559010a6472eac06935d85bef0c24 +AUX asymptote-1.51-configure-ac.patch 2296 RMD160 599fa46401d4928ff4a5ce12227b7413989488a3 SHA1 36f05b870be6fd40916a8d66fdf374557e792f98 SHA256 ccb9b576d13aab05c98de6c6982835cb834ca3f630cf0b4619bbd5d56989f025 +AUX asymptote-1.51-xdg-utils.patch 661 RMD160 0b57db031b221966e30a46060d57913b5b5f3bd9 SHA1 cc0d29290da4a25822b2ef09a7289a1826c68989 SHA256 b0a5745ecb99e897ce54c367039a2126d6a8fa48dbaf97d5990662f5026f24ca DIST asymptote-1.29.src.tgz 933266 RMD160 013a5f8f706159ea564811cd044a12fe4b6e58da SHA1 366a42e95796fe88863a2d82624e25630be8619e SHA256 2b4eea7b3a016295b4543e3d3c9fca80fa278fc2fb7824306130a2c37e602366 DIST asymptote-1.49.src.tgz 1261917 RMD160 b0f8e30767719a1f98a26784cc34310639c3d058 SHA1 fd18299ae32d45ba81d45a539d79873940ec31a8 SHA256 cd1db811e44a665ea5a219f86153f6d8ee37363e6d924ee844bd6759216c1d20 +DIST asymptote-1.51.src.tgz 1268915 RMD160 41bf2108aa40c0fe74b4c76bbfc674ff0b1c1018 SHA1 5f8757c766a200a51fb364bc4aa373323de214b4 SHA256 42614ad9170a70adabeb2bc83473df6dc1bf9735cfffda4e2f67d27a279d5436 EBUILD asymptote-1.29.ebuild 3491 RMD160 b14992d5aeeedd20f699c1c0c3aaa419bc2c3930 SHA1 bd68cb47a22ac889c9c25527dcff8a9ed8d615c4 SHA256 fd4f867553841368d2e2b19e623e796f89574ab2473efd0f23bfb5386db671cc EBUILD asymptote-1.49.ebuild 5944 RMD160 b9972ff922294354a884ffce14f86cf6142d0167 SHA1 947be3861228da863e6739f243c48b6189f9030c SHA256 b8ea571ee622bed709fd239fe28163dec908955813a6b124ab7964e31fe75ea9 -MISC ChangeLog 7063 RMD160 2c85eaaf1d26c9c1735c026b5bda66f7efd65d6a SHA1 a5a3592e6ffd16dc2ab45995219887dc5aed4bea SHA256 6598e8621b3b3291af0c4d5987bcb56f867a330e373ef24a380f194e70f517f2 +EBUILD asymptote-1.51.ebuild 5944 RMD160 d9013102406e991f2c9e8b4200bafd1637a572d7 SHA1 643cd12268587236cb9683ffff8c00e7ae0c75eb SHA256 e7ab8726b36c675012a29a1dc2efe0a28b0527da50da1cb84846b2bbbe45b815 +MISC ChangeLog 7268 RMD160 07b16557847bf4c2eab57e0fb1d7cf407e4ef2a1 SHA1 a24ba28885b2d466b82b960e7ac462cdeb1b185b SHA256 d4cc18494b5a84a3423bd62d1053a331514ec19740bde5d311c792a771dcf966 MISC metadata.xml 869 RMD160 4719ac66d805256a91cf9c311ea75e6d53db256e SHA1 f00600bb09e08fd31ba4fa15414bd3d578a4f136 SHA256 41c4190d40edabcbed20b712c8dca48783e336c7cd14bff51015966b263865b5 diff --git a/media-gfx/asymptote/asymptote-1.51.ebuild b/media-gfx/asymptote/asymptote-1.51.ebuild new file mode 100644 index 000000000000..421bb1211aac --- /dev/null +++ b/media-gfx/asymptote/asymptote-1.51.ebuild @@ -0,0 +1,234 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.51.ebuild,v 1.1 2008/11/15 13:20:30 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-2" + +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] ) + 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] )" + +pkg_setup() { + if use latex; then + # Calculating ASY_TEXMFDIR + local TEXMFPATH="$(kpsewhich -var-value=TEXMFSITE)" + local TEXMFCONFIGFILE="$(kpsewhich texmf.cnf)" + + if [ -z "${TEXMFPATH}" ]; then + eerror "You haven't defined the TEXMFSITE variable in your TeX config." + eerror "Please do so in the file ${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf}" + die "Define TEXMFSITE in TeX configuration!" + else + # go through the colon separated list of directories + # (maybe only one) provided in the variable + # TEXMFPATH (generated from TEXMFSITE from TeX's config) + # and choose only the first entry. + # All entries are separated by colons, even when defined + # with semi-colons, kpsewhich changes + # the output to a generic format, so IFS has to be redefined. + local IFS="${IFS}:" + + for strippedpath in ${TEXMFPATH}; do + if [ -d ${strippedpath} ]; then + ASY_TEXMFDIR="${strippedpath}" + break + fi + done + + # verify if an existing path was chosen to prevent from + # installing into the wrong directory + if [ -z ${ASY_TEXMFDIR} ]; then + eerror "TEXMFSITE does not contain any existing directory." + eerror "Please define an existing directory in your TeX config file" + eerror "${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf} or create at least one of the there specified directories" + die "TEXMFSITE variable did not contain an existing directory" + fi + fi + fi +} + +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_with fftw) \ + $(use_with 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 + emake 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 "${ASY_TEXMFDIR}"/tex/latex + 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/files/asymptote-1.51-configure-ac.patch b/media-gfx/asymptote/files/asymptote-1.51-configure-ac.patch new file mode 100644 index 000000000000..703fb7e619e2 --- /dev/null +++ b/media-gfx/asymptote/files/asymptote-1.51-configure-ac.patch @@ -0,0 +1,60 @@ +diff -r -U2 asymptote-1.51.orig/configure.ac asymptote-1.51/configure.ac +--- asymptote-1.51.orig/configure.ac 2008-11-11 15:34:58.000000000 +0600 ++++ asymptote-1.51/configure.ac 2008-11-15 18:20:10.000000000 +0600 +@@ -77,8 +77,14 @@ + fi + +-AC_CHECK_HEADER(fftw3.h, +- AC_CHECK_LIB([fftw3], fftw_execute,, ++AC_ARG_WITH([fftw], ++ [ --with-fftw use fftw3], ++ [with_fftw=$withval], ++ [with_fftw="no"]) ++if test "$with_fftw" = "yes"; then ++AC_CHECK_HEADER([fftw3.h], ++ AC_CHECK_LIB([fftw3], [fftw_execute],, + AC_MSG_NOTICE([*** Could not find libfftw3: will compile without optional fast Fourier transforms. ***])), + AC_MSG_NOTICE([*** Header file fftw3.h not found: will compile without optional fast Fourier transforms. ***])) ++fi + + GCVERSION=gc-7.1 +@@ -117,5 +123,5 @@ + 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 " +@@ -183,5 +189,14 @@ + AC_CHECK_LIB([m], [sqrt]) + AC_CHECK_LIB([z], [deflate]) +-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([readline], [rl_completion_matches],, +@@ -200,9 +215,15 @@ + AC_MSG_WARN([*** Broken rpc headers; XDR support disabled ***])) + +-AC_CHECK_HEADER(gsl/gsl_sf.h, ++AC_ARG_WITH(gsl, ++ [ --with-gsl use gsl libraries], ++ [with_gsl=$withval], ++ [with_gsl="no"]) ++if test "$with_gsl" = "yes"; then ++AC_CHECK_HEADER([gsl/gsl_sf.h], + AC_CHECK_LIB([gsl], gsl_sf_Si, [AC_DEFINE(HAVE_LIBGSL, 1, + [Define to 1 if you have the 'gsl' library (-lgsl). ]) LIBS=$LIBS"-lgsl -lgslcblas "], + AC_MSG_NOTICE([*** Could not find libgsl: will compile without optional special functions. ***]),[-lgslcblas]), + AC_MSG_NOTICE([*** Header file gsl_sf.h not found: will compile without optional special functions. ***])) ++fi + + case "$OSTYPE" in diff --git a/media-gfx/asymptote/files/asymptote-1.51-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-1.51-xdg-utils.patch new file mode 100644 index 000000000000..e0288f81b260 --- /dev/null +++ b/media-gfx/asymptote/files/asymptote-1.51-xdg-utils.patch @@ -0,0 +1,19 @@ +diff -r -U2 asymptote-1.51.orig/settings.cc asymptote-1.51/settings.cc +--- asymptote-1.51.orig/settings.cc 2008-11-11 15:34:40.000000000 +0600 ++++ asymptote-1.51/settings.cc 2008-11-15 18:14:37.000000000 +0600 +@@ -81,12 +81,12 @@ + const char *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 defaultPython; + const string docdir=ASYMPTOTE_DOCDIR; |