Initial Version
authorDominik Stadler <centic@gentoo.org>
Sat, 17 Feb 2007 18:54:34 +0000 (18:54 +0000)
committerDominik Stadler <centic@gentoo.org>
Sat, 17 Feb 2007 18:54:34 +0000 (18:54 +0000)
Package-Manager: portage-2.1.2_rc4-r9

media-gfx/asymptote/ChangeLog [new file with mode: 0644]
media-gfx/asymptote/Manifest [new file with mode: 0644]
media-gfx/asymptote/asymptote-1.20.ebuild [new file with mode: 0644]
media-gfx/asymptote/files/asymptote-1.20-configure-ac.patch [new file with mode: 0644]
media-gfx/asymptote/files/asymptote-1.20-makefile.patch [new file with mode: 0644]
media-gfx/asymptote/files/digest-asymptote-1.20 [new file with mode: 0644]
media-gfx/asymptote/metadata.xml [new file with mode: 0644]

diff --git a/media-gfx/asymptote/ChangeLog b/media-gfx/asymptote/ChangeLog
new file mode 100644 (file)
index 0000000..be93ee4
--- /dev/null
@@ -0,0 +1,13 @@
+# 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.1 2007/02/17 18:54:34 centic Exp $
+
+*asymptote-1.20 (17 Feb 2007)
+
+  17 Feb 2007; Dominik Stadler <centic@gentoo.org>
+  +files/asymptote-1.20-configure-ac.patch,
+  +files/asymptote-1.20-makefile.patch, +metadata.xml,
+  +asymptote-1.20.ebuild:
+  Initial version, fixes Bug 82871, thanks to 
+  Emiliano Vavassori for the ebuild and patches.
+
diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest
new file mode 100644 (file)
index 0000000..179a9d7
--- /dev/null
@@ -0,0 +1,24 @@
+AUX asymptote-1.20-configure-ac.patch 1464 RMD160 d5911368b0aeab3095d67c8ef0e2163dda770380 SHA1 95de9f9d0547765384b4ab71a177010c80f8a257 SHA256 a066fba6e575dc017458e346da5dd455c333604e724669c2d6ac4fdb3f685581
+MD5 b1d338fe8044f892da1a806feeb1de66 files/asymptote-1.20-configure-ac.patch 1464
+RMD160 d5911368b0aeab3095d67c8ef0e2163dda770380 files/asymptote-1.20-configure-ac.patch 1464
+SHA256 a066fba6e575dc017458e346da5dd455c333604e724669c2d6ac4fdb3f685581 files/asymptote-1.20-configure-ac.patch 1464
+AUX asymptote-1.20-makefile.patch 1951 RMD160 998a1a7b2bacce3e828153663878621f04808ac5 SHA1 18b59161c4a2c41029622dc7ef99104823a392e9 SHA256 6bc3bdf255c04dbd326cc424727d3e726ac1fc19f993fde10eb551957a61ba8f
+MD5 c54984c03cd5f4d204d78179007b837b files/asymptote-1.20-makefile.patch 1951
+RMD160 998a1a7b2bacce3e828153663878621f04808ac5 files/asymptote-1.20-makefile.patch 1951
+SHA256 6bc3bdf255c04dbd326cc424727d3e726ac1fc19f993fde10eb551957a61ba8f files/asymptote-1.20-makefile.patch 1951
+DIST asymptote-1.20.tar.gz 937426 RMD160 9b51fbc66152e4ec89a53e8e3743cf68f3a2d868 SHA1 78608d9de339feeb7366b6258552155ecbbc73e5 SHA256 860e7b28c3bace3786e7dace9b458437eddb78382fc13e943bf6ff42c06ca2ca
+EBUILD asymptote-1.20.ebuild 2879 RMD160 fe8d47471b6e8d91e5797cfe63bb618664c1a365 SHA1 05bda5c1a4902c2d9919f036915d65d1c543b90a SHA256 1c8b8f2b8b70e52c89e0e81e32fde1dcc6673cb3949626a4e7ea065d93c98632
+MD5 382d5f1e4e8eaf8cd9a60d9738c948be asymptote-1.20.ebuild 2879
+RMD160 fe8d47471b6e8d91e5797cfe63bb618664c1a365 asymptote-1.20.ebuild 2879
+SHA256 1c8b8f2b8b70e52c89e0e81e32fde1dcc6673cb3949626a4e7ea065d93c98632 asymptote-1.20.ebuild 2879
+MISC ChangeLog 515 RMD160 aa27d327b89890314a87bb5c30603a32d5e51913 SHA1 1ea4c4fefd089af50145c04b54db1a76eaea7a3f SHA256 3c459614ca1318bc3f12bc916f2259ae9d8ac8241da327a17797012a74848cdd
+MD5 40ce012172f89d893f702839a4dfac73 ChangeLog 515
+RMD160 aa27d327b89890314a87bb5c30603a32d5e51913 ChangeLog 515
+SHA256 3c459614ca1318bc3f12bc916f2259ae9d8ac8241da327a17797012a74848cdd ChangeLog 515
+MISC metadata.xml 683 RMD160 5e6874dc58a60453426c9442cfa0a71950363247 SHA1 4efe58b121bd6003ea233cf585556f1c15d55b45 SHA256 1846addfcf39add4671318cc114b66017d8ea9d944f2ff0b0e590970c52e8394
+MD5 80c00e59c5b5ce93eddc10f4bb686ae4 metadata.xml 683
+RMD160 5e6874dc58a60453426c9442cfa0a71950363247 metadata.xml 683
+SHA256 1846addfcf39add4671318cc114b66017d8ea9d944f2ff0b0e590970c52e8394 metadata.xml 683
+MD5 7d44c1f5609bb06dc5c8d5c63a1b3f50 files/digest-asymptote-1.20 244
+RMD160 787778c63eeea0e367dcc6893c70c0e21973aeda files/digest-asymptote-1.20 244
+SHA256 5ef30e37cf5a49a9cad8db7793e3f6203ccc667cc93ba09a7d88d17307f3d005 files/digest-asymptote-1.20 244
diff --git a/media-gfx/asymptote/asymptote-1.20.ebuild b/media-gfx/asymptote/asymptote-1.20.ebuild
new file mode 100644 (file)
index 0000000..3d2ce68
--- /dev/null
@@ -0,0 +1,118 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.20.ebuild,v 1.1 2007/02/17 18:54:34 centic Exp $
+
+inherit eutils elisp-common
+
+DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
+HOMEPAGE="http://asymptote.sourceforge.net"
+SRC_URI="mirror://sourceforge/asymptote/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="boehm-gc doc fftw emacs gsl vim"
+
+RDEPEND=">=sys-libs/readline-4.3-r5
+       >=sys-libs/ncurses-5.4-r5
+       dev-libs/libsigsegv
+       boehm-gc? ( >=dev-libs/boehm-gc-6.7 )
+       virtual/tetex
+       fftw? ( >=sci-libs/fftw-3.0.1 )
+       emacs? ( virtual/emacs )
+       gsl? ( sci-libs/gsl )
+       vim? ( app-editors/vim )"
+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 )"
+
+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
+}
+
+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
+}
+
+src_compile() {
+       for dir in `find /var/cache/fonts -type d`; do addwrite ${dir}; done
+
+       myconf="--with-latex=/usr/share/texmf/tex/latex --disable-gc-debug"
+       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"
+}
+
+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
+
+       make DESTDIR=${D} ${target} || die "make install failed"
+
+       dodoc BUGS ChangeLog README ReleaseNotes TODO
+
+       if use emacs ; then
+               elisp-site-file-install base/asy-mode.el
+               elisp-site-file-install "${FILESDIR}"/64asy-gentoo.el
+       fi
+
+       if use vim ; then
+               insinto /usr/share/vim/vimfiles/syntax
+               doins base/asy.vim
+       fi
+}
+
+pkg_postinst() {
+       einfo 'Updating TeX tree...'
+       texhash &> /dev/null
+
+       einfo 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
+       einfo 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
+
+       use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+       einfo 'Updating TeX tree...'
+       texhash &> /dev/null
+
+       [ -f "${SITELISP}"/site-gentoo.el ] && elisp-site-regen
+}
diff --git a/media-gfx/asymptote/files/asymptote-1.20-configure-ac.patch b/media-gfx/asymptote/files/asymptote-1.20-configure-ac.patch
new file mode 100644 (file)
index 0000000..c6b495e
--- /dev/null
@@ -0,0 +1,37 @@
+--- configure.ac       2007-01-31 00:09:02.000000000 +0100
++++ configure.ac_new   2007-01-31 00:45:53.000000000 +0100
+@@ -66,10 +66,16 @@
+ AC_PROG_MAKE_SET
+ AC_PROG_YACC
++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=6.8
+@@ -152,11 +158,17 @@
+                  [Define if you have a working <rpc/rpc.h> header file])],
+    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,
+    [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
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_TYPE_PID_T
diff --git a/media-gfx/asymptote/files/asymptote-1.20-makefile.patch b/media-gfx/asymptote/files/asymptote-1.20-makefile.patch
new file mode 100644 (file)
index 0000000..4bb2db0
--- /dev/null
@@ -0,0 +1,61 @@
+--- Makefile.in        2006-12-29 06:16:42.000000000 +0100
++++ ../asymptote-1.20_new/Makefile.in  2007-02-02 22:21:54.000000000 +0100
+@@ -44,7 +44,7 @@
+ datadir = $(DESTDIR)@datadir@
+ asydir = $(datadir)/asymptote
+ docdir = $(DESTDIR)@docdir@
+-exampledir = $(docdir)/examples
++exampledir = $(asydir)/examples
+ animationsdir = $(exampledir)/animations
+ latexdir = $(DESTDIR)@latexdir@
+ INSTALL = @INSTALL@
+@@ -116,11 +116,8 @@
+               doc/*.asy doc/*.csv doc/*.dat doc/latexusage.tex $(exampledir)
+       ${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: doc
++install-doc:
+       cd doc; $(MAKE) install-all
+ install-man: man
+--- doc/Makefile       2007-02-02 20:17:18.000000000 +0100
++++ ../asymptote-1.20_new/doc/Makefile 2007-02-02 21:26:45.000000000 +0100
+@@ -4,9 +4,9 @@
+ ASY = ../asy -dir ../base
+ DOCFILES = asymptote.pdf CAD.pdf PDFAnim_temp_Guide.pdf
+-doc:  asymptote.dvi asymptote.info html man
++doc:  $(DOCFILES) asymptote.info html man
+-man:  asymptote.pdf CAD.pdf PDFAnim_temp_Guide.pdf asy.1
++man:  $(MANFILES)
+ faq:  
+       cd FAQ; $(MAKE) faq
+@@ -71,15 +71,15 @@
+       rm -f CAD.{aux,dvi,log,pdf,toc}
+       rm -rf asymptote
+-install: man faq
+-      cd FAQ; $(MAKE) install
+-      ${INSTALL} -d -m 755 $(docdir) $(mandir)/man1
+-      ${INSTALL} -p -m 644 $(DOCFILES) $(docdir)
++install: man
++      ${INSTALL} -d -m 755 $(mandir)/man1
+       ${INSTALL} -p -m 644 $(MANFILES) $(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)
+       -if test -z "$(DESTDIR)"; then \
+               install-info --infodir=$(infodir) asymptote.info; \
diff --git a/media-gfx/asymptote/files/digest-asymptote-1.20 b/media-gfx/asymptote/files/digest-asymptote-1.20
new file mode 100644 (file)
index 0000000..1586964
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 7e705a3418395d26318509aaa8191076 asymptote-1.20.tar.gz 937426
+RMD160 9b51fbc66152e4ec89a53e8e3743cf68f3a2d868 asymptote-1.20.tar.gz 937426
+SHA256 860e7b28c3bace3786e7dace9b458437eddb78382fc13e943bf6ff42c06ca2ca asymptote-1.20.tar.gz 937426
diff --git a/media-gfx/asymptote/metadata.xml b/media-gfx/asymptote/metadata.xml
new file mode 100644 (file)
index 0000000..b1cfa49
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>centic@gentoo.org</email>
+<name>Dominik Stadler</name>
+<!--description></description-->
+</maintainer>
+<longdescription lang="en">
+Asymptote is a powerful descriptive vector graphics language that provides a natural coordinate-based framework for technical drawing. Labels and equations are typeset with LaTeX, for high-quality PostScript output.
+
+A major advantage of Asymptote over other graphics packages is that it is a programming language, as opposed to just a graphics program.
+</longdescription>
+</pkgmetadata>