source: trunk/dports/tex/tex-mh/Portfile @ 56184

Last change on this file since 56184 was 56184, checked in by ryandesign@…, 10 years ago

"use_configure no" instead of "configure {}"

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 56184 2009-08-25 06:11:10Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            tex-mh
6version         0
7categories      tex print
8maintainers     nomaintainer
9description     The mh bundle
10long_description \
11                mh is a TeX package collection by Morten Hoegholm. \
12                It contains Michael J. Downes' breqn, flexisym, mathstyle, \
13                and mhsetup, mathtools, empheq, empheq07.
14platforms       darwin
15homepage        http://www.ctan.org/get/macros/latex/contrib/mh
16master_sites    http://www.ctan.org/get/macros/latex/contrib
17distname        mh
18use_zip         yes
19checksums       md5 b04ca2eb6f4429467cadae4cd52144e6 \
20                sha1 ea55b996bbfd10d75b8d3e17484046a74344504d \
21                rmd160 1d6bb18d7a25c537c86ae94981b10449cc97c8bd
22
23depends_lib     bin:mktexlsr:texlive
24
25pre-configure {
26    if {[file exists ${prefix}/share/texmf-local/tex/latex/breqn/breqn.sty]} {
27        return -code error "Before installing ${name}, please uninstall (or deactivate) breqn."
28    }
29}
30
31use_configure   no
32
33build {
34    system "cd ${worksrcpath} && find . -name \"*.dtx\" | xargs -L1 tex"
35}
36
37destroot {
38    xinstall -m 755 -d ${destroot}${prefix}/share/texmf-local/tex/latex/mh
39    xinstall -m 755 -d ${destroot}${prefix}/share/texmf-local/doc/latex/mh
40    xinstall -m 755 -d ${destroot}${prefix}/share/texmf-local/source/latex/mh
41
42    foreach {f} {*.sty *.sym} {
43        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/texmf-local/tex/latex/mh
44    }
45    foreach {f} {*.pdf breqn-technotes.tex eqlayouts.tex README} {
46        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/texmf-local/doc/latex/mh
47    }
48    foreach {f} {*.dtx} {
49        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/texmf-local/source/latex/mh
50    }
51}
52
53post-activate {
54    system "mktexlsr"
55}
Note: See TracBrowser for help on using the repository browser.