# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # eqe # eqe/pkg-descr # eqe/Makefile # eqe/distinfo # eqe/pkg-plist # eqe/files # eqe/files/patch-src-eqedit # echo c - eqe mkdir -p eqe > /dev/null 2>&1 echo x - eqe/pkg-descr sed 's/^X//' >eqe/pkg-descr << 'END-of-eqe/pkg-descr' XEqe is a simple clone of the excellent LaTeX equation editor you can find on XMacOS X. There's a zone to type LaTeX input, and it generates an image to Xrepresent it (color, font, and size are customisable). You can drag the Ximage to other applications (like OpenOffice.org Impress, Mozilla, the XGimp). It also exports to almost any image format, including PNG, JPEG, XPDF...). It is free software, released under the GPL. X XIt is composed of two parts: eqedit, which is a command line tool that Xgenerates images from LaTeX input, and eqe which wraps eqedit into a Xgraphical user interface. X XWWW: http://rlehy.free.fr/ END-of-eqe/pkg-descr echo x - eqe/Makefile sed 's/^X//' >eqe/Makefile << 'END-of-eqe/Makefile' X# New ports collection makefile for: eqe X# Date created: 2007/02/13 X# Whom: chinsan X# X# $FreeBSD$ X XPORTNAME= eqe XPORTVERSION= 1.3.0 XCATEGORIES= textproc XMASTER_SITES= http://rlehy.free.fr/ X XMAINTAINER= chinsan@FreeBSD.org XCOMMENT= LaTeX equation editor X XBUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \ X p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp \ X p5-Template-Toolkit>=0:${PORTSDIR}/www/p5-Template-Toolkit \ X Magick++-config:${PORTSDIR}/graphics/ImageMagick \ X tex:${PORTSDIR}/print/teTeX-base XRUN_DEPENDS= tex:${PORTSDIR}/print/teTeX-base X XUSE_BZIP2= yes XUSE_PERL5= yes XMAKE_ARGS+= PREFIX=${PREFIX} X XMAN1= eqe.1 eqedit.1 X.if !defined(NOPORTDOCS) XDOCSDIR= ${PREFIX}/share/doc/eqe XPORTDOCS= TODO changelog README FAQ copyright X.endif X Xpost-patch: X @${REINPLACE_CMD} -e 's,^\(install:\) install-doc,\1,' \ X ${WRKSRC}/Makefile X Xpost-install: X @pod2man ${WRKSRC}/doc/eqe.pod ${WRKSRC}/doc/eqe.1 X @pod2man ${WRKSRC}/doc/eqedit.pod ${WRKSRC}/doc/eqedit.1 X ${INSTALL_MAN} ${WRKSRC}/doc/eqe.1 ${MAN1PREFIX}/man/man1 X ${INSTALL_MAN} ${WRKSRC}/doc/eqedit.1 ${MAN1PREFIX}/man/man1 X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X.for DOC in ${PORTDOCS} X ${CP} ${WRKSRC}/${DOC} ${DOCSDIR} X.endfor X.endif X X.include END-of-eqe/Makefile echo x - eqe/distinfo sed 's/^X//' >eqe/distinfo << 'END-of-eqe/distinfo' XMD5 (eqe-1.3.0.tar.bz2) = 74b27a201302ea33033d9ccb496e1e34 XSHA256 (eqe-1.3.0.tar.bz2) = 8dd320985ebb7763295bf04b3664e0fb8094e3c398e468fddf225b13ee77f4e5 XSIZE (eqe-1.3.0.tar.bz2) = 98707 END-of-eqe/distinfo echo x - eqe/pkg-plist sed 's/^X//' >eqe/pkg-plist << 'END-of-eqe/pkg-plist' Xbin/eqedit Xbin/eqe X%%DATADIR%%/template.tt.tex X%%DATADIR%%/error.png X%%DATADIR%%/initial_image.png X@dirrmtry %%DATADIR%% END-of-eqe/pkg-plist echo c - eqe/files mkdir -p eqe/files > /dev/null 2>&1 echo x - eqe/files/patch-src-eqedit sed 's/^X//' >eqe/files/patch-src-eqedit << 'END-of-eqe/files/patch-src-eqedit' X--- src/eqedit.orig Sat Feb 4 22:54:54 2006 X+++ src/eqedit Sun Feb 18 16:50:03 2007 X@@ -364,10 +364,10 @@ X X sub command X { X- my @com = @_; #(@_, " >> $options->{log} 2>\&1"); X+ my @com = (@_, " >> $options->{log} 2>\&1"); X my $com = join ' ', @com; X- $options->verbose and mywarn "executing $com\n"; X- redirect_to_log($options->{log}, sub {system @com}) and mydie "command '$com' failed with error code $?"; X+ $options->verbose and print "executing $com\n"; X+ system $com and mydie "command '$com' failed with error code $?"; X } X X sub find_template X@@ -506,7 +506,7 @@ X X if (@transparent or @res or not same_ext($in, $out)) X { X- command 'convert', '-comment', $comment, @res, @transparent, $in, $out; X+ command 'convert', @res, @transparent, $in, $out; X } X elsif ($in ne $out) X { END-of-eqe/files/patch-src-eqedit exit