diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-tex/feynmf | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-tex/feynmf')
-rw-r--r-- | dev-tex/feynmf/Manifest | 6 | ||||
-rw-r--r-- | dev-tex/feynmf/feynmf-1.08-r6.ebuild | 61 | ||||
-rw-r--r-- | dev-tex/feynmf/files/feynmf-1.08-tempfile.patch | 33 | ||||
-rw-r--r-- | dev-tex/feynmf/files/feynmf-1.08.patch | 12 | ||||
-rw-r--r-- | dev-tex/feynmf/metadata.xml | 17 |
5 files changed, 129 insertions, 0 deletions
diff --git a/dev-tex/feynmf/Manifest b/dev-tex/feynmf/Manifest new file mode 100644 index 000000000000..91ab97b4a321 --- /dev/null +++ b/dev-tex/feynmf/Manifest @@ -0,0 +1,6 @@ +AUX feynmf-1.08-tempfile.patch 1138 BLAKE2B e74751683497aad6d485d0df43c570006961ea1568508fadaf1555e0d54a79c18a102f2ab18e83d3c4716181531f4a5fdb7270df32835a3f0e1cd682467f4116 SHA512 dd7b47967a678268c918020f2af73877e3191436131abe4d3241aa315a047cdf7b619b1588d16ad9685410e3ee04ffc7832dda1bed1fa2d2fec551ac282858ca +AUX feynmf-1.08.patch 305 BLAKE2B e4de6f6ec120f57232eed6b8034436e15198893645c03235d3e13d0d4fe995cf50d5a8e9038841e87b186e1d0d8e41103bef1776b1440f6a817d95e458645fd7 SHA512 3a85fb8a132be9d7c465953345d4d4374192f2341a90dd9f89ab65a3999c7de76fe92019af533edacc4353b85805a0af2749687d304c06080a1a5ff7ce5613a3 +DIST feynmf-1.08.tar.gz 286208 BLAKE2B a6de553a9624d3e4a1c5aa3f0759bdfbbf449d45477929fee4cbca6ad43dae0d3e835368dac9d9aab80145fedaa78fa9cedabcb5258c956af8daa31f05fe78c3 SHA512 968853ef09ab140fa0844068e564995b44bd79bbe5376a7b866d6db80278b2099aab47920213c7f744d5558e10e69a6de8e056f4d35c8d0fe51055a17981cad2 +DIST feynmf-cnl.tar.gz 49920 BLAKE2B 61624bbfb51edbd28fce3fdadaa56023d540804e3cd314f7aad857803399013921e0c766f7976e79c9989200cc30449197254d180b4e34e5d6ad37822c53c616 SHA512 ba84d284a6157bd1fce6fd1752a006472631bd8628d9c7b0cd9f429e7d3f5c79a7489c43d9db76232987cbe8de01a794d060095dbcbffbd003189ff002493201 +EBUILD feynmf-1.08-r6.ebuild 1772 BLAKE2B cfa96bd3c39911069ee12e671b1a7a46f73841b2c00a0a83541ed494db33e01262d275685938479057477d2199e4886da1d6548753cf57415c9770adfe0b505b SHA512 e0e0b9e47db9746909188be3e7bdf7abd0d4eef558080a281bb79fdcaf1e71a4deda267d88d9ea4caa693c5a2720c5a28d859dfe6b7c515f9928f847a2452e02 +MISC metadata.xml 663 BLAKE2B 57db427b339c6c905c8b0df11126f49a3f791c299d37bc8c45526d7f79aa072cdfdaa97cee40f95fa636d37817081854f400c4d797fcbee3feee3eab64804ed1 SHA512 f9e4fd6f162e659326146eb4768a97940b0fd444de2883efa9f00d28f14ba88023f7e3bca7b42c98b6442fa6622a6a8fec6112215253e3f6ab982041603c9cba diff --git a/dev-tex/feynmf/feynmf-1.08-r6.ebuild b/dev-tex/feynmf/feynmf-1.08-r6.ebuild new file mode 100644 index 000000000000..a88c7c445f47 --- /dev/null +++ b/dev-tex/feynmf/feynmf-1.08-r6.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit latex-package + +DESCRIPTION="Combined LaTeX/Metafont package for drawing of Feynman diagrams" +HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/feynmf/" +# Taken from: ftp.tug.ctan.org/tex-archive/macros/latex/contrib/${PN}.tar.gz +SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.gz + doc? ( https://dev.gentoo.org/~ulm/distfiles/${PN}-cnl.tar.gz )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="doc" + +RDEPEND="dev-texlive/texlive-metapost" +DEPEND="${RDEPEND} + dev-lang/perl + doc? ( dev-texlive/texlive-bibtexextra )" + +S="${WORKDIR}/${PN}" +PATCHES=( + "${FILESDIR}"/${P}.patch + "${FILESDIR}"/${P}-tempfile.patch +) + +src_prepare() { + rm -f phaip.bst # use style from bibtexextra + default +} + +src_compile() { + export VARTEXFONTS="${T}"/fonts + emake MP=mpost all manual.ps + use doc && emake -f Makefile.cnl ps +} + +src_install() { + newbin feynmf.pl feynmf + doman feynmf.1 + insinto ${TEXMF}/tex/latex/${PN}; doins feynmf.sty feynmp.sty + insinto ${TEXMF}/metafont/${PN}; doins feynmf.mf + insinto ${TEXMF}/metapost/${PN}; doins feynmp.mp + dodoc README manual.ps template.tex + docompress -x /usr/share/doc/${PF}/manual.ps + # TEXMF is /usr/share/ plus one further path component + dosym ../../../../doc/${PF}/manual.ps \ + ${TEXMF}/doc/latex/${PN}/${PN}-manual.ps + + if use doc; then + local f + for f in fmfcnl*.ps; do + dodoc ${f} + docompress -x /usr/share/doc/${PF}/${f} + dosym ../../../../doc/${PF}/${f} ${TEXMF}/doc/latex/${PN}/${f} + done + fi +} diff --git a/dev-tex/feynmf/files/feynmf-1.08-tempfile.patch b/dev-tex/feynmf/files/feynmf-1.08-tempfile.patch new file mode 100644 index 000000000000..5e3ec840dcc2 --- /dev/null +++ b/dev-tex/feynmf/files/feynmf-1.08-tempfile.patch @@ -0,0 +1,33 @@ +--- feynmf-orig/feynmf.pl 2007-11-06 08:32:37.000000000 +0100 ++++ feynmf/feynmf.pl 2007-11-06 09:33:04.000000000 +0100 +@@ -119,6 +119,7 @@ + require 5.000; + # use strict; + use File::Find; ++use File::Temp qw(tempfile); + use Getopt::Long; + + ######################################################################## +@@ -270,18 +271,18 @@ + my @tfm = @_; + # Prepare a fake temporary PL file + # (/dev/null won't do, because the font must not be empty): +- my ($pl) = "/tmp/feynmf$$.pl"; + my ($tfm); + $pltotf_prog + or die "feynmf: fatal: pltopf programm required unless -notfm\n"; +- open (PL, ">$pl") or die "feynmf: can't open temporary file $pl: $!\n"; ++ my ($PL, $pl) = tempfile("/tmp/feynmfXXXXXX", SUFFIX => ".pl"); ++ $PL or die "feynmf: can't open temporary file: $!\n"; + push @temporay_files, $pl; +- print PL <<__END_PL__; ++ print $PL <<__END_PL__; + (FAMILY FEYNMF) + (DESIGNSIZE R 10.0) + (CHARACTER D 1 (CHARWD R 10.0) (CHARHT R 10.0)) + __END_PL__ +- close (PL); ++ close ($PL); + foreach $tfm (@tfm) { + maybe_run "$pltotf_prog $pl $tfm.tfm" unless -r "$tfm.tfm"; + } diff --git a/dev-tex/feynmf/files/feynmf-1.08.patch b/dev-tex/feynmf/files/feynmf-1.08.patch new file mode 100644 index 000000000000..9695d26c26a1 --- /dev/null +++ b/dev-tex/feynmf/files/feynmf-1.08.patch @@ -0,0 +1,12 @@ +diff -Nur feynmf-orig/feynmf.pl feynmf/feynmf.pl +--- feynmf-orig/feynmf.pl 1996-12-02 01:00:00.000000000 +0100 ++++ feynmf/feynmf.pl 2004-09-02 23:25:40.603910119 +0200 +@@ -373,7 +373,7 @@ + maybe_run "$gftopk_prog $gf" if $gftopk_prog; + } + } +- close (<LOG>); ++ close (LOG); + } + } + } diff --git a/dev-tex/feynmf/metadata.xml b/dev-tex/feynmf/metadata.xml new file mode 100644 index 000000000000..4edf4bbf9d83 --- /dev/null +++ b/dev-tex/feynmf/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>ulm@gentoo.org</email> +</maintainer> +<maintainer type="project"> + <email>tex@gentoo.org</email> + <name>Gentoo TeX Project</name> +</maintainer> +<longdescription> + FeynMF is a combined LaTeX/Metafont package for easy drawing of professional + quality Feynman diagrams. FeynMF lays out most diagrams satisfactorily from + the structure of the graph without any need for manual intervention. + Nevertheless all the power of Metafont is available for more obscure cases. +</longdescription> +</pkgmetadata> |