summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Stadler <centic@gentoo.org>2007-02-17 18:54:34 +0000
committerDominik Stadler <centic@gentoo.org>2007-02-17 18:54:34 +0000
commit2ccf6215f9aa250b74c25704e76b58abae139070 (patch)
treec820813558f8c80047b8db9bdcacc67d27537a10 /media-gfx/asymptote
parentMask ruby preview versions. (diff)
downloadgentoo-2-2ccf6215f9aa250b74c25704e76b58abae139070.tar.gz
gentoo-2-2ccf6215f9aa250b74c25704e76b58abae139070.tar.bz2
gentoo-2-2ccf6215f9aa250b74c25704e76b58abae139070.zip
Initial Version
(Portage version: 2.1.2_rc4-r9)
Diffstat (limited to 'media-gfx/asymptote')
-rw-r--r--media-gfx/asymptote/ChangeLog13
-rw-r--r--media-gfx/asymptote/Manifest24
-rw-r--r--media-gfx/asymptote/asymptote-1.20.ebuild118
-rw-r--r--media-gfx/asymptote/files/asymptote-1.20-configure-ac.patch37
-rw-r--r--media-gfx/asymptote/files/asymptote-1.20-makefile.patch61
-rw-r--r--media-gfx/asymptote/files/digest-asymptote-1.203
-rw-r--r--media-gfx/asymptote/metadata.xml15
7 files changed, 271 insertions, 0 deletions
diff --git a/media-gfx/asymptote/ChangeLog b/media-gfx/asymptote/ChangeLog
new file mode 100644
index 000000000000..be93ee47240e
--- /dev/null
+++ b/media-gfx/asymptote/ChangeLog
@@ -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
index 000000000000..71719b8f7a27
--- /dev/null
+++ b/media-gfx/asymptote/Manifest
@@ -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 2776 RMD160 da160cf71d281f6804b6a7f48a2ba10d722fc636 SHA1 f49ac196b3db2c5f6db4308ba899ca550e46baa8 SHA256 a9bfd8c4829b14571622b02036ed5c315ae5aef751e07d519aa0a3d74b8cbfe7
+MD5 9a04d9cc8d76225abddc03f7506fa4de asymptote-1.20.ebuild 2776
+RMD160 da160cf71d281f6804b6a7f48a2ba10d722fc636 asymptote-1.20.ebuild 2776
+SHA256 a9bfd8c4829b14571622b02036ed5c315ae5aef751e07d519aa0a3d74b8cbfe7 asymptote-1.20.ebuild 2776
+MISC ChangeLog 424 RMD160 95258726b6be5af3eae35741cffda5acedad35f6 SHA1 8e4259bf7ad40c14bf9f80d910b9946c17beeb1c SHA256 f4a4bc8e1fc02ce0799de245276b79ad05d96451e2aa4735ffb55e9655ac4bc4
+MD5 de5e18c5449c0d326b69489e96b7aab7 ChangeLog 424
+RMD160 95258726b6be5af3eae35741cffda5acedad35f6 ChangeLog 424
+SHA256 f4a4bc8e1fc02ce0799de245276b79ad05d96451e2aa4735ffb55e9655ac4bc4 ChangeLog 424
+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
index 000000000000..3d2ce68122e3
--- /dev/null
+++ b/media-gfx/asymptote/asymptote-1.20.ebuild
@@ -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
index 000000000000..c6b495e25e75
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-1.20-configure-ac.patch
@@ -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
index 000000000000..4bb2db0f55b2
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-1.20-makefile.patch
@@ -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
index 000000000000..1586964562f2
--- /dev/null
+++ b/media-gfx/asymptote/files/digest-asymptote-1.20
@@ -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
index 000000000000..b1cfa494bc60
--- /dev/null
+++ b/media-gfx/asymptote/metadata.xml
@@ -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>