Commits

Mitsuhiro Nakamura committed 442dbfc

fix tex/{jtbnew,natbib}

Comments (0)

Files changed (2)

tex/jtbnew/Portfile

 PortSystem     1.0
 name           jtbnew
 version        1
-revision       0
+revision       1
 categories     tex
 platforms      darwin
 maintainers    nomaintainer
 build     { }
 
 destroot {
-  set bibtexdest ${destroot}${prefix}/share/texmf-local/bibtex/bst/${name}
-  set bibtexfile ${name}.bst
-  file mkdir ${bibtexdest}
-  file copy $distpath/$bibtexfile $bibtexdest
+  set bibdest ${destroot}${prefix}/share/texmf-local/bibtex/bst/${name}
+  set bibfile ${name}.bst
+  xinstall -d -m 755 ${bibdest}
+  xinstall -m 644 $distpath/$bibfile $bibdest
 }
 
 post-activate {

tex/natbib/Portfile

 
 name         natbib
 version      8.31b
-revision     1
+revision     2
 categories   tex print
 platforms    darwin
 maintainers  nomaintainer
 
 checksums md5 c4981bb5d341c4931c0fae3aef565c8f
 
-depends_build bin:latex:texlive
 depends_run   bin:texhash:texlive
 
 configure {}
 build     {}
 
-set texmf_local ${prefix}/share/texmf-local
-set dest_dir    ${texmf_local}/tex/latex
-
 destroot {
-  file mkdir ${destroot}${dest_dir}
-  file copy  ${workpath}/${distname} ${destroot}${dest_dir}
+  set texdest ${destroot}${prefix}/share/texmf-local/tex/latex/${name}
+  set bibdest ${destroot}${prefix}/share/texmf-local/bibtex/bst/${name}
+  set texfiles {
+    README README.1st README.v831b \
+    bibentry.dtx bibentry.ins natbib.dtx natbib.ins \
+    natbib.pdf natnotes.pdf \
+  }
+  xinstall -d -m 755 ${texdest}
+  foreach file $texfiles {
+    xinstall -m 644 $worksrcpath/$file $texdest
+  }
+  set bibfiles {
+    abbrvnat.bst plainnat.bst unsrtnat.bst \
+  }
+  xinstall -d -m 755 ${bibdest}
+  foreach file $bibfiles {
+    xinstall -m 644 $worksrcpath/$file $bibdest
+  }
 }
 
-post-build { system "cd ${workpath}/${distname} && latex ${name}.ins" }
 post-activate { system "texhash" }