[89266] trunk/dports/tex/dot2texi/Portfile

snc at macports.org snc at macports.org
Sun Jan 22 13:01:48 PST 2012


Revision: 89266
          http://trac.macports.org/changeset/89266
Author:   snc at macports.org
Date:     2012-01-22 13:01:44 -0800 (Sun, 22 Jan 2012)
Log Message:
-----------
dot2texi: use texlive portgroup, use full path to dot2tex

Modified Paths:
--------------
    trunk/dports/tex/dot2texi/Portfile

Modified: trunk/dports/tex/dot2texi/Portfile
===================================================================
--- trunk/dports/tex/dot2texi/Portfile	2012-01-22 20:06:11 UTC (rev 89265)
+++ trunk/dports/tex/dot2texi/Portfile	2012-01-22 21:01:44 UTC (rev 89266)
@@ -2,9 +2,11 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           texlive 1.0
 
 name                dot2texi
 version             3-0-0
+revision            1
 categories          tex
 platforms           darwin
 maintainers         snc openmaintainer
@@ -34,18 +36,22 @@
 depends_run         bin:dot2tex:dot2tex port:texlive port:pgf
 depends_lib         bin:texhash:texlive
 
+patchfiles          patch-dot2texi-dot2texi.sty.diff
+post-patch {
+    reinplace s|@@PREFIX@@|${prefix}| ${worksrcpath}/dot2texi/dot2texi.sty
+}
+
 use_configure   no
 build { }
 
 destroot {
-    set texmf ${destroot}${prefix}/share/texmf-local/
     set r ${worksrcpath}/dot2texi
-    file mkdir ${texmf}/tex/latex
-    file mkdir ${texmf}/doc/latex/dot2texi
-    file copy ${r}/dot2texi.sty ${texmf}/tex/latex/
+    file mkdir ${destroot}${texlive_texmfports}/tex/latex
+    file mkdir ${destroot}${texlive_texmfports}/doc/latex/dot2texi
+    file copy ${r}/dot2texi.sty ${destroot}${texlive_texmfports}/tex/latex/
     file copy ${r}/dot2texi.tex ${r}/dot2texi.pdf ${r}/gpl.txt ${r}/README \
         ${r}/examples \
-        ${texmf}/doc/latex/dot2texi
+        ${destroot}${texlive_texmfports}/doc/latex/dot2texi
 }
 
 post-activate {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120122/6d5738eb/attachment.html>


More information about the macports-changes mailing list