diff options
author | rafan <rafan@FreeBSD.org> | 2007-02-18 22:03:32 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-02-18 22:03:32 +0800 |
commit | 4855a58e07d5a8bb0d3bab3de77ddd0a67343526 (patch) | |
tree | 1167e1449bd70179c36d1c0508d1348b6e5c8f42 /textproc/eqe | |
parent | 72b4bbeea4eb0c717f035093834af8d48393521b (diff) | |
download | freebsd-ports-gnome-4855a58e07d5a8bb0d3bab3de77ddd0a67343526.tar.gz freebsd-ports-gnome-4855a58e07d5a8bb0d3bab3de77ddd0a67343526.tar.zst freebsd-ports-gnome-4855a58e07d5a8bb0d3bab3de77ddd0a67343526.zip |
Add eqe 1.3.0, LaTeX equation editor.
PR: ports/109216
Submitted by: chinsan
Diffstat (limited to 'textproc/eqe')
-rw-r--r-- | textproc/eqe/Makefile | 49 | ||||
-rw-r--r-- | textproc/eqe/distinfo | 3 | ||||
-rw-r--r-- | textproc/eqe/files/patch-src-eqedit | 25 | ||||
-rw-r--r-- | textproc/eqe/pkg-descr | 12 | ||||
-rw-r--r-- | textproc/eqe/pkg-plist | 6 |
5 files changed, 95 insertions, 0 deletions
diff --git a/textproc/eqe/Makefile b/textproc/eqe/Makefile new file mode 100644 index 000000000000..8a226962c267 --- /dev/null +++ b/textproc/eqe/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: eqe +# Date created: 2007/02/13 +# Whom: chinsan +# +# $FreeBSD$ + +PORTNAME= eqe +PORTVERSION= 1.3.0 +CATEGORIES= textproc +MASTER_SITES= http://rlehy.free.fr/ + +MAINTAINER= chinsan@FreeBSD.org +COMMENT= LaTeX equation editor + +BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \ + p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp \ + p5-Template-Toolkit>=0:${PORTSDIR}/www/p5-Template-Toolkit \ + Magick++-config:${PORTSDIR}/graphics/ImageMagick \ + tex:${PORTSDIR}/print/teTeX-base +RUN_DEPENDS= tex:${PORTSDIR}/print/teTeX-base + +USE_BZIP2= yes +USE_PERL5= yes + +MAKE_ARGS= PREFIX=${PREFIX} + +MAN1= eqe.1 eqedit.1 + +.if !defined(NOPORTDOCS) +PORTDOCS= TODO changelog README FAQ copyright +.endif + +post-patch: + @${REINPLACE_CMD} -e 's,^\(install:\) install-doc,\1,' \ + ${WRKSRC}/Makefile + +post-install: + @pod2man ${WRKSRC}/doc/eqe.pod ${WRKSRC}/doc/eqe.1 + @pod2man ${WRKSRC}/doc/eqedit.pod ${WRKSRC}/doc/eqedit.1 + ${INSTALL_MAN} ${WRKSRC}/doc/eqe.1 ${MAN1PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/doc/eqedit.1 ${MAN1PREFIX}/man/man1 +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/textproc/eqe/distinfo b/textproc/eqe/distinfo new file mode 100644 index 000000000000..3babb50aafdd --- /dev/null +++ b/textproc/eqe/distinfo @@ -0,0 +1,3 @@ +MD5 (eqe-1.3.0.tar.bz2) = 74b27a201302ea33033d9ccb496e1e34 +SHA256 (eqe-1.3.0.tar.bz2) = 8dd320985ebb7763295bf04b3664e0fb8094e3c398e468fddf225b13ee77f4e5 +SIZE (eqe-1.3.0.tar.bz2) = 98707 diff --git a/textproc/eqe/files/patch-src-eqedit b/textproc/eqe/files/patch-src-eqedit new file mode 100644 index 000000000000..2d1b2b782924 --- /dev/null +++ b/textproc/eqe/files/patch-src-eqedit @@ -0,0 +1,25 @@ +--- src/eqedit.orig Fri Feb 16 21:52:49 2007 ++++ src/eqedit Fri Feb 16 23:54:34 2007 +@@ -364,10 +364,10 @@ + + sub command + { +- my @com = @_; #(@_, " >> $options->{log} 2>\&1"); ++ my @com = (@_, " >> $options->{log} 2>\&1"); + my $com = join ' ', @com; +- $options->verbose and mywarn "executing $com\n"; +- redirect_to_log($options->{log}, sub {system @com}) and mydie "command '$com' failed with error code $?"; ++ $options->verbose and print "executing $com\n"; ++ system $com and mydie "command '$com' failed with error code $?"; + } + + sub find_template +@@ -506,7 +506,7 @@ + + if (@transparent or @res or not same_ext($in, $out)) + { +- command 'convert', '-comment', $comment, @res, @transparent, $in, $out; ++ command 'convert', @res, @transparent, $in, $out; + } + elsif ($in ne $out) + { diff --git a/textproc/eqe/pkg-descr b/textproc/eqe/pkg-descr new file mode 100644 index 000000000000..a7d0ca649d7c --- /dev/null +++ b/textproc/eqe/pkg-descr @@ -0,0 +1,12 @@ +Eqe is a simple clone of the excellent LaTeX equation editor you can find on +MacOS X. There's a zone to type LaTeX input, and it generates an image to +represent it (color, font, and size are customisable). You can drag the +image to other applications (like OpenOffice.org Impress, Mozilla, the +Gimp). It also exports to almost any image format, including PNG, JPEG, +PDF...). It is free software, released under the GPL. + +It is composed of two parts: eqedit, which is a command line tool that +generates images from LaTeX input, and eqe which wraps eqedit into a +graphical user interface. + +WWW: http://rlehy.free.fr/ diff --git a/textproc/eqe/pkg-plist b/textproc/eqe/pkg-plist new file mode 100644 index 000000000000..568bc092870a --- /dev/null +++ b/textproc/eqe/pkg-plist @@ -0,0 +1,6 @@ +bin/eqedit +bin/eqe +%%DATADIR%%/template.tt.tex +%%DATADIR%%/error.png +%%DATADIR%%/initial_image.png +@dirrmtry %%DATADIR%% |