[94549] users/dports/ports/tex/texlive-bin
dports at macports.org
dports at macports.org
Thu Jun 21 21:58:04 PDT 2012
Revision: 94549
https://trac.macports.org/changeset/94549
Author: dports at macports.org
Date: 2012-06-21 21:58:02 -0700 (Thu, 21 Jun 2012)
Log Message:
-----------
texlive-bin: install the TeXLive perl package to support updmap
(instead of patching it, as we did before)
Modified Paths:
--------------
users/dports/ports/tex/texlive-bin/Portfile
Removed Paths:
-------------
users/dports/ports/tex/texlive-bin/files/patch-texk_tetex_updmap.pl.diff
Modified: users/dports/ports/tex/texlive-bin/Portfile
===================================================================
--- users/dports/ports/tex/texlive-bin/Portfile 2012-06-22 04:43:45 UTC (rev 94548)
+++ users/dports/ports/tex/texlive-bin/Portfile 2012-06-22 04:58:02 UTC (rev 94549)
@@ -31,13 +31,20 @@
# texlive distfile.
master_sites http://flute.csail.mit.edu/texlive/test
set distversion 20120530.26733
+use_xz yes
distname texlive-${distversion}-source
worksrcdir ${distname}
-use_xz yes
-checksums rmd160 f5c73c3db1ac433f809c9747843fed68ee95b3ca \
- sha256 b6d23d62bf21e8a5236bbbd31138826d0371926b29b24a77f54aaf71dcc1f7f8
+set tlpkgdistname tlpkg-TeXLive-${distversion}
+distfiles-append ${tlpkgdistname}${extract.suffix}
+checksums texlive-20120530.26733-source.tar.xz \
+ rmd160 f5c73c3db1ac433f809c9747843fed68ee95b3ca \
+ sha256 b6d23d62bf21e8a5236bbbd31138826d0371926b29b24a77f54aaf71dcc1f7f8 \
+ tlpkg-TeXLive-20120530.26733.tar.xz \
+ rmd160 e0d917c6e9891046a85cf03fcb223b639bbb2a13 \
+ sha256 487549a4230f72d80a4e45c3c4f275f7bd6e081360e4e7a38252bdbe54fab6a8
+
depends_lib port:fontconfig \
port:freetype \
port:libpng \
@@ -53,9 +60,6 @@
depends_build path:bin/perl:perl5 \
path:bin/pkg-config:pkgconfig
-# # eliminate updmap.pl's dependency on TLUtils.pm
-# patchfiles-append patch-texk_tetex_updmap.pl.diff
-
# # fix xdvipdfmx/freetype dfont issue (#30745)
# patchfiles-append patch-texk_xdvipdfmx_src_cidtype2.c.diff
@@ -205,6 +209,9 @@
# Do not install the pre-generated fmtutil.cnf; we generate our own
delete ${destroot}${texlive_texmfmain}/web2c/fmtutil.cnf
+ # install the tlpkg/TeXLive perl module
+ copy ${workpath}/${tlpkgdistname} ${destroot}${prefix}/share/tlpkg
+
# gzip manpages that are installed into texlive_bindir
foreach manpage [glob -directory ${destroot}${texlive_bindir} man*/*] {
# need to make sure it isn't a symlink
Deleted: users/dports/ports/tex/texlive-bin/files/patch-texk_tetex_updmap.pl.diff
===================================================================
--- users/dports/ports/tex/texlive-bin/files/patch-texk_tetex_updmap.pl.diff 2012-06-22 04:43:45 UTC (rev 94548)
+++ users/dports/ports/tex/texlive-bin/files/patch-texk_tetex_updmap.pl.diff 2012-06-22 04:58:02 UTC (rev 94549)
@@ -1,120 +0,0 @@
---- texk/tetex/updmap.pl 2011-06-20 16:47:32.000000000 -0400
-+++ texk/tetex/updmap.pl 2011-07-14 17:44:02.000000000 -0400
-@@ -6,16 +6,10 @@
- # Anyone may freely use, modify, and/or distribute this file, without
- # limitation.
-
--BEGIN {
-- $^W=1;
-- chomp($TEXMFROOT = `kpsewhich -var-value=TEXMFROOT`);
-- unshift (@INC, "$TEXMFROOT/tlpkg");
--}
-
- my $version = '$Id: updmap.pl 23034 2011-06-17 23:44:39Z karl $';
-
- use strict;
--use TeXLive::TLUtils qw(mkdirhier mktexupd win32);
- use Getopt::Long;
- $Getopt::Long::autoabbrev=0;
- Getopt::Long::Configure (qw(ignore_case_always));
-@@ -65,6 +59,100 @@
- my $cache = 0; # don't change!
- my $pdftexStripEnc = 0;
-
-+# MacPorts: the following are from TLUtils.pm, part of the TeXLive
-+# perl package (which we don't install)
-+sub mktexupd {
-+ my %files;
-+ my $mustexist=0;
-+
-+ my $hash={
-+ "add" => sub {
-+ foreach my $file (@_) {
-+ $file =~ s|\\|/|g;
-+ $files{$file}=1;
-+ }
-+ },
-+ # "reset" => sub {
-+ # %files=();
-+ # },
-+ "mustexist" => sub {
-+ $mustexist=shift;
-+ },
-+ "exec" => sub {
-+ # check whether files exist
-+ if ($mustexist) {
-+ foreach my $file (keys %files) {
-+ die "File \"$file\" doesn't exist.\n" if (! -f $file);
-+ }
-+ }
-+ my $delim= (&win32)? ';' : ':';
-+ my $TEXMFDBS;
-+ chomp($TEXMFDBS=`kpsewhich --show-path="ls-R"`);
-+
-+ my @texmfdbs=split ($delim, "$TEXMFDBS");
-+ my %dbs;
-+
-+ foreach my $path (keys %files) {
-+ foreach my $db (@texmfdbs) {
-+ $db=substr($db, -1) if ($db=~m|/$|); # strip leading /
-+ if (substr($path, 0, length("$db/")) eq "$db/") {
-+ # we appended a / because otherwise "texmf" is recognized as a
-+ # substring of "texmf-dist".
-+ my $path='./' . substr($path, length("$db/"));
-+ my ($dir, $file);
-+ $_=$path;
-+ ($dir, $file) = m|(.*)/(.*)|;
-+ $dbs{$db}{$dir}{$file}=1;
-+ }
-+ }
-+ }
-+ foreach my $db (keys %dbs) {
-+ if (! -f "$db" || ! -w "$db/ls-R") {
-+ &mkdirhier ($db);
-+ }
-+ open LSR, ">>$db/ls-R";
-+ foreach my $dir (keys %{$dbs{$db}}) {
-+ print LSR "\n$dir:\n";
-+ foreach my $file (keys %{$dbs{$db}{$dir}}) {
-+ print LSR "$file\n";
-+ }
-+ }
-+ close LSR;
-+ }
-+ }
-+ };
-+ return $hash;
-+}
-+
-+sub mkdirhier {
-+ my ($tree,$mode) = @_;
-+
-+ return if (-d "$tree");
-+ my $subdir = "";
-+ # win32 is special as usual: we need to separate //servername/ part
-+ # from the UNC path, since (! -d //servername/) tests true
-+ $subdir = $& if ( win32() && ($tree =~ s!^//[^/]+/!!) );
-+
-+ my @dirs = split (/\//, $tree);
-+ for my $dir (@dirs) {
-+ $subdir .= "$dir/";
-+ if (! -d $subdir) {
-+ if (defined $mode) {
-+ mkdir ($subdir, $mode)
-+ || die "$0: mkdir($subdir,$mode) failed, goodbye: $!\n";
-+ } else {
-+ mkdir ($subdir) || die "$0: mkdir($subdir) failed, goodbye: $!\n";
-+ }
-+ }
-+ }
-+}
-+
-+sub win32
-+{
-+ return 0;
-+}
-+
-+
- # initialize mktexupd
- my $updLSR=&mktexupd();
- $updLSR->{mustexist}(0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120621/85a206f4/attachment.html>
More information about the macports-changes
mailing list