summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Stadler <centic@gentoo.org>2008-02-10 20:41:34 +0000
committerDominik Stadler <centic@gentoo.org>2008-02-10 20:41:34 +0000
commitfcd705d50f3070276a5bfd9a23f825faabda5b50 (patch)
tree900fda8efb01e7c7a47f4f324117273996b7eba8 /media-gfx
parentinitial import (diff)
downloadhistorical-fcd705d50f3070276a5bfd9a23f825faabda5b50.tar.gz
historical-fcd705d50f3070276a5bfd9a23f825faabda5b50.tar.bz2
historical-fcd705d50f3070276a5bfd9a23f825faabda5b50.zip
Bump to release 1.41
Package-Manager: portage-2.1.4.2
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/asymptote/ChangeLog13
-rw-r--r--media-gfx/asymptote/Manifest17
-rw-r--r--media-gfx/asymptote/asymptote-1.41.ebuild136
-rw-r--r--media-gfx/asymptote/files/asymptote-1.41-configure-ac.patch43
-rw-r--r--media-gfx/asymptote/files/asymptote-1.41-makefile.patch58
-rw-r--r--media-gfx/asymptote/files/asymptote-1.41-xdg-utils.patch19
6 files changed, 283 insertions, 3 deletions
diff --git a/media-gfx/asymptote/ChangeLog b/media-gfx/asymptote/ChangeLog
index 5b60f2dc505d..978d12b19854 100644
--- a/media-gfx/asymptote/ChangeLog
+++ b/media-gfx/asymptote/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-gfx/asymptote
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.13 2007/10/27 20:15:58 centic Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.14 2008/02/10 20:41:34 centic Exp $
+
+*asymptote-1.41 (10 Feb 2008)
+
+ 10 Feb 2008; Dominik Stadler <centic@gentoo.org>
+ +files/asymptote-1.41-configure-ac.patch,
+ +files/asymptote-1.41-makefile.patch,
+ +files/asymptote-1.41-xdg-utils.patch, +asymptote-1.41.ebuild:
+ Bump to version 1.41, fixes Bug 208817, thanks to Andrey Grocin
+ for updating the patches.
*asymptote-1.36 (27 Oct 2007)
diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest
index b030e4618dfb..209411f23211 100644
--- a/media-gfx/asymptote/Manifest
+++ b/media-gfx/asymptote/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 64asy-gentoo.el 168 RMD160 ce644cf20e9d57918cb0f983a2e6fed729132664 SHA1 4f935343e996ce19696e979609e0873326aa5c0e SHA256 336e53de3b83eaad0c8c1c9151cb34c78a236e7aac55e1a85d72428d47970e58
AUX 64asymptote-gentoo.el 337 RMD160 423330249638e628cb0f7d0b8196042a34cffa03 SHA1 0ab1578ba7989941567f3f855481b8e9805420c2 SHA256 28dde57a1b6b39e583739c387eaef205dc16eea97c5980fddd2e3d0dd7023ed3
AUX asy-ftd.vim 60 RMD160 a08d3dbd7535d3de0897dd73b00f8866a72db731 SHA1 426086e8ed8d9f45518df1380ab62703cd5f1e0d SHA256 c766fccb0e3e43a6fb78eaa56cf6c45398d48b08566ea4794726f4a6ae3c9dc1
@@ -7,11 +10,23 @@ AUX asymptote-1.33-configure-ac.patch 1792 RMD160 5cc2aca83524e7a9129fb562635a41
AUX asymptote-1.33-makefile.patch 1976 RMD160 aa8e1b06ba180939526ff6a937a7cc7c64625775 SHA1 33a411b1701e9c2904a366a72e50e9a8ebc1ec60 SHA256 98cd1a3b4598672224f03865203f475988f1971347d47b5378864a40421b9ce0
AUX asymptote-1.36-configure-ac.patch 1792 RMD160 5cc2aca83524e7a9129fb562635a4110504d26e0 SHA1 6dff40e533dd7ca0547fc1c450806163bc1bbb6c SHA256 a1ae42911d321d7aa77e0e8e8a974f590a458f34a8313efef158ad2a8cdbea51
AUX asymptote-1.36-makefile.patch 1976 RMD160 aa8e1b06ba180939526ff6a937a7cc7c64625775 SHA1 33a411b1701e9c2904a366a72e50e9a8ebc1ec60 SHA256 98cd1a3b4598672224f03865203f475988f1971347d47b5378864a40421b9ce0
+AUX asymptote-1.41-configure-ac.patch 1710 RMD160 66d13274afd490b1b89608739572b25363db7a2d SHA1 dd8ff34a46f23c5592318c06a33f401f4f10d017 SHA256 0295c2da8bddc9ec42a41f879660be8854c2753d7609b2d1e52c6f44bdb49826
+AUX asymptote-1.41-makefile.patch 1863 RMD160 8fc8ce5426f972cfe556139e278f9b1493410bda SHA1 00204b46d5d55cefa3319f0d6a4bf6a4e61b758e SHA256 ccc4cc5fde6cca905cf1dad5ff229240c1c7cddf233802b6d2150ff14241d072
+AUX asymptote-1.41-xdg-utils.patch 670 RMD160 547cc51966119ced3f0455519285556332b7e2ab SHA1 7fb8d7df077ea7f832d1a24b86917cc430c5f266 SHA256 d7c98af5e06bb10ae1872d371c8508d24d30994d365b1cc0be06785cbabffb39
DIST asymptote-1.29.src.tgz 933266 RMD160 013a5f8f706159ea564811cd044a12fe4b6e58da SHA1 366a42e95796fe88863a2d82624e25630be8619e SHA256 2b4eea7b3a016295b4543e3d3c9fca80fa278fc2fb7824306130a2c37e602366
DIST asymptote-1.33.src.tgz 1015680 RMD160 2b54bbf4aa0c858e34fc34b041d95e6c62013553 SHA1 080b10e5da444eb01795260d87bd63a913ba55ad SHA256 df0cd4532f3e481f2cbb71020c90830b99cd5b7b276453e04edb651820415ba1
DIST asymptote-1.36.src.tgz 1015125 RMD160 fb6f68e5015d0a89b1b9f5057645656d85a19e78 SHA1 505cbdcd7c73429e3f6d57eb03f8d7925938333f SHA256 c4ab5dd212274d6b0666c96df80f11250c97158488ec1d8e65b70eb152d9eb27
+DIST asymptote-1.41.src.tgz 1052162 RMD160 802a0eeccab4fc172e606edc30ff0608ff9992bc SHA1 4519abce41ca350abc0c9c04d2d569700f823f02 SHA256 5d0db1c0f993670570cff6223f5f40e81ee49423986b3805f48c1c579273f267
EBUILD asymptote-1.29.ebuild 3487 RMD160 6b3be9ad553857ff582ee6d744a3d35dd72347dd SHA1 68e39bf79607dc84d1771ace2e2517a35e8ce0fd SHA256 5c81c778b02b48a305aa2b6337d4cc066ccc6c8135a5195917fe865f0576ef9a
EBUILD asymptote-1.33-r1.ebuild 3557 RMD160 a87748b62b62481398cc424c6709ef9d44ef52b4 SHA1 641c6ea8ef24d542f9ad51f8c8ca2bf11300cf3d SHA256 b7d6a39d82b1f951511d864347c52959c4f9948baddd688e28920ee0ee55ef5f
EBUILD asymptote-1.36.ebuild 3555 RMD160 c57ccda4a746c128158d4ed1bafe3293feec163d SHA1 5094eeac38348a482f5723ca196b70ef34898735 SHA256 62632d5c857ab08190032f2400c0aa2b1f68cc8ce49908bd915f4413566c5ee7
-MISC ChangeLog 3642 RMD160 1bdb28e0a5488817ef95ba9579fb29f370a2d933 SHA1 491e69dc8dfbb0a8c422f73a64fec48a0a734091 SHA256 48c73a3dcb06295c1f4ac272be32c95044c3959001f909a3303fd7e0e8cb0e28
+EBUILD asymptote-1.41.ebuild 3666 RMD160 384cc8abae2016dfee558b2353158d4fec768c66 SHA1 9a590918c4298a7b273e825fad842d7ffe0081b7 SHA256 cf6b01f5678c546d6812b84a88f53acb5579c62568be9100b6ec812c88a0e158
+MISC ChangeLog 3968 RMD160 327fb8789b64cb68f64d7b7bd7268e4481f9d3a5 SHA1 7f56fb9d7e2e1fe62819ab434b762374bfaea75d SHA256 829bf9498d2065c894a31ea03cc6d56bc77de51df3cf843e3a189aafcd09025b
MISC metadata.xml 683 RMD160 5e6874dc58a60453426c9442cfa0a71950363247 SHA1 4efe58b121bd6003ea233cf585556f1c15d55b45 SHA256 1846addfcf39add4671318cc114b66017d8ea9d944f2ff0b0e590970c52e8394
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.8 (GNU/Linux)
+
+iEYEARECAAYFAkevYY4ACgkQcCwrIuQnILebRQCfUUMGXjtDMhxKva9GUOJ1g2Mz
+04UAniCJWZy7j9VB1U9300JiVhc4BA6j
+=jxG4
+-----END PGP SIGNATURE-----
diff --git a/media-gfx/asymptote/asymptote-1.41.ebuild b/media-gfx/asymptote/asymptote-1.41.ebuild
new file mode 100644
index 000000000000..dd057b163ab0
--- /dev/null
+++ b/media-gfx/asymptote/asymptote-1.41.ebuild
@@ -0,0 +1,136 @@
+# 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.41.ebuild,v 1.1 2008/02/10 20:41:34 centic Exp $
+
+inherit eutils elisp-common latex-package
+
+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 fftw emacs gsl vim-syntax"
+
+RDEPEND=">=sys-libs/readline-4.3-r5
+ >=sys-libs/ncurses-5.4-r5
+ dev-libs/libsigsegv
+ x11-misc/xdg-utils
+ boehm-gc? ( >=dev-libs/boehm-gc-7.0 )
+ virtual/tetex
+ fftw? ( >=sci-libs/fftw-3.0.1 )
+ emacs? ( virtual/emacs )
+ gsl? ( sci-libs/gsl )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="${RDEPEND}
+ >=sys-devel/autoconf-2.5
+ >=sys-devel/bison-1.875
+ >=sys-devel/flex-2.5.4a-r5
+ doc? ( >=media-gfx/imagemagick-6.1.3.2
+ virtual/ghostscript
+ >=sys-apps/texinfo-4.7-r1 )"
+
+SITEFILE=64${PN}-gentoo.el
+
+pkg_setup() {
+ # checking if Boehm garbage collector was compiled with c++ support
+ if use boehm-gc ; then
+ if ! built_with_use dev-libs/boehm-gc nocxx ; then
+ einfo "dev-libs/boehm-gc has been compiled with nocxx use flag disabled"
+ else
+ echo
+ eerror "You have to rebuild dev-libs/boehm-gc enabling c++ support"
+ die
+ fi
+ fi
+
+ if ! built_with_use dev-lang/python tk; then
+ eerror "Please reemerge dev-lang/python with 'tk' support or xasy will"
+ eerror "not work. In order to fix this, execute the following:"
+ eerror "echo \"dev-lang/python tk\" >> /etc/portage/package.use"
+ eerror "and reemerge dev-lang/python before emerging asymptote."
+ die "requires dev-lang/python with use-flag 'tk'!!"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+
+ # Fixing fftw and gsl enabling
+ epatch "${FILESDIR}/${P}-configure-ac.patch"
+ einfo "Patching configure.ac"
+ sed -i \
+ -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
+ configure.ac || die "sed configure.ac failed"
+
+ einfo "Building configure"
+ WANT_AUTOCONF=2.5 autoconf
+
+ epatch "${FILESDIR}/${P}-makefile.patch"
+
+ # Changing pdf, ps, image viewers to xdg-open
+ epatch "${FILESDIR}/${P}-xdg-utils.patch"
+}
+
+src_compile() {
+ for dir in `find /var/cache/fonts -type d`; do addwrite ${dir}; done
+
+ # for the CPPFLAGS see http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
+ myconf="--with-latex=/usr/share/texmf/tex/latex --disable-gc-debug CPPFLAGS=-DHAVE_SYS_TYPES_H"
+ if use boehm-gc; then
+ myconf="${myconf} --enable-gc=system"
+ else
+ myconf="${myconf} --disable-gc"
+ fi
+
+ econf ${myconf} $(use_with fftw) $(use_with gsl) || die "econf failed"
+ emake || die "emake failed"
+
+ if use emacs ; then
+ elisp-compile base/*.el || die "elisp-compile failed"
+ fi
+}
+
+src_install() {
+ for dir in `find /var/cache/fonts -type d`; do addwrite ${dir}; done
+
+ if use doc; then
+ target="install-all"
+ else
+ target="install"
+ fi
+
+ emake DESTDIR="${D}" ${target} || die "emake install failed"
+
+ dodoc BUGS ChangeLog README ReleaseNotes TODO
+
+ if use emacs ; then
+ elisp-install ${PN} base/*.el base/*.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ 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
+}
+
+pkg_postinst() {
+ latex-package_rehash
+
+ elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
+ elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ latex-package_rehash
+ use emacs && elisp-site-regen
+}
diff --git a/media-gfx/asymptote/files/asymptote-1.41-configure-ac.patch b/media-gfx/asymptote/files/asymptote-1.41-configure-ac.patch
new file mode 100644
index 000000000000..71a7bc06d243
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-1.41-configure-ac.patch
@@ -0,0 +1,43 @@
+diff -U2 --recursive asymptote-1.41.orig/configure.ac asymptote-1.41/configure.ac
+--- asymptote-1.41.orig/configure.ac 2008-02-02 07:13:56.000000000 +0600
++++ asymptote-1.41/configure.ac 2008-02-04 06:21:51.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.0
+@@ -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 "
+@@ -197,4 +203,9 @@
+ AC_MSG_WARN([*** Broken rpc headers; XDR support disabled ***]))
+
++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,
+@@ -202,4 +213,5 @@
+ 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
+
+ # Checks for typedefs, structures, and compiler characteristics.
diff --git a/media-gfx/asymptote/files/asymptote-1.41-makefile.patch b/media-gfx/asymptote/files/asymptote-1.41-makefile.patch
new file mode 100644
index 000000000000..3202ded70b2b
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-1.41-makefile.patch
@@ -0,0 +1,58 @@
+diff -U2 --recursive asymptote-1.41.orig/Makefile.in asymptote-1.41/Makefile.in
+--- asymptote-1.41.orig/Makefile.in 2008-02-02 07:13:09.000000000 +0600
++++ asymptote-1.41/Makefile.in 2008-02-04 06:23:35.000000000 +0600
+@@ -51,5 +51,5 @@
+ GUIdir = $(asydir)/GUI
+ docdir = $(DESTDIR)@docdir@
+-exampledir = $(docdir)/examples
++exampledir = $(asydir)/examples
+ animationsdir = $(exampledir)/animations
+ latexdir = $(DESTDIR)@latexdir@
+@@ -136,9 +136,6 @@
+ ${INSTALL} -p -m 644 examples/animations/*.asy $(animationsdir)
+ -${INSTALL} -p -m 644 $(addprefix doc/,$(LATEXFILES)) $(latexdir)
+- -if test -z "$(DESTDIR)"; then \
+- texhash; \
+- fi
+
+-install-doc: html
++install-doc:
+ cd doc; $(MAKE) install-all
+
+diff -U2 --recursive asymptote-1.41.orig/doc/Makefile asymptote-1.41/doc/Makefile
+--- asymptote-1.41.orig/doc/Makefile 2008-02-02 07:14:11.000000000 +0600
++++ asymptote-1.41/doc/Makefile 2008-02-04 06:23:50.000000000 +0600
+@@ -17,10 +17,10 @@
+ html: asymptote/index.html
+
+-man: $(DOCFILES) asy.1
++man: $(MANFILES)
+
+ faq:
+ cd FAQ; $(MAKE) faq
+
+-doc: asymptote.dvi asymptote.info html man faq
++doc: $(DOCFILES) asymptote.info html man faq
+
+ %.png: %.asy
+@@ -85,13 +85,12 @@
+ rm -rf asymptote
+
+-install: man faq
+- cd FAQ; $(MAKE) install
+- ${INSTALL} -d -m 755 $(docdir) $(mandir)/man1
+- ${INSTALL} -p -m 644 $(DOCFILES) $(docdir)
+- ${INSTALL} -p -m 644 $(MANFILES) $(mandir)/man1
++install: man
++ ${INSTALL} -d -m 755 $(mandir)/man1
+
+-install-all: doc install
+- cd FAQ; $(MAKE) install-info
+- ${INSTALL} -d -m 755 $(infodir)
++install-all: doc faq install
++ cd FAQ; $(MAKE) install-all
++ ${INSTALL} -d -m 755 $(infodir) $(docdir)/html/asymptote
++ ${INSTALL} -p -m 644 $(DOCFILES) $(docdir)
++ ${INSTALL} -p -m 644 asymptote/* $(docdir)/html/asymptote
+ ${INSTALL} -p -m 644 asymptote.info $(infodir)
+ -${INSTALL} -p -m 644 asymptote.info-* $(infodir)
diff --git a/media-gfx/asymptote/files/asymptote-1.41-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-1.41-xdg-utils.patch
new file mode 100644
index 000000000000..bc2ac0a780ac
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-1.41-xdg-utils.patch
@@ -0,0 +1,19 @@
+diff -U2 --recursive asymptote-1.41.orig/settings.cc asymptote-1.41/settings.cc
+--- asymptote-1.41.orig/settings.cc 2008-02-02 07:13:09.000000000 +0600
++++ asymptote-1.41/settings.cc 2008-02-04 19:43:26.000000000 +0600
+@@ -74,12 +74,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;