[Midnightbsd-cvs] mports [24614] trunk/print/texlive-tlmgr: fix build
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Oct 31 21:04:14 EDT 2018
Revision: 24614
http://svnweb.midnightbsd.org/mports/?rev=24614
Author: laffer1
Date: 2018-10-31 21:04:12 -0400 (Wed, 31 Oct 2018)
Log Message:
-----------
fix build
Modified Paths:
--------------
trunk/print/texlive-tlmgr/Makefile
trunk/print/texlive-tlmgr/distinfo
trunk/print/texlive-tlmgr/pkg-plist
Added Paths:
-----------
trunk/print/texlive-tlmgr/files/
trunk/print/texlive-tlmgr/files/patch-texlive-20150521-source-texk-texlive-linked_scripts-texlive-tlmgr.pl
trunk/print/texlive-tlmgr/files/patch-texlive-20150523-extra-tlpkg-TeXLive-TLUtils.pm
Modified: trunk/print/texlive-tlmgr/Makefile
===================================================================
--- trunk/print/texlive-tlmgr/Makefile 2018-11-01 00:49:19 UTC (rev 24613)
+++ trunk/print/texlive-tlmgr/Makefile 2018-11-01 01:04:12 UTC (rev 24614)
@@ -3,29 +3,62 @@
PORTNAME= texlive
PORTVERSION= 20150523
+PORTREVISION= 2
CATEGORIES= print perl5
-MASTER_SITES= ftp://tug.org/historic/systems/texlive/2015/
+MASTER_SITES= ftp://tug.org/historic/systems/texlive/2015/:tlmgr \
+ LOCAL/hrs:tlpkg
PKGNAMESUFFIX= -tlmgr
-DISTNAME= ${PORTNAME}-${PORTVERSION}-extra
+DISTFILES= ${PORTNAME}-${PORTVERSION}-extra${EXTRACT_SUFX}:tlmgr \
+ ${PORTNAME}-20150521-source${EXTRACT_SUFX}:tlmgr \
+ ${TLPKG_FILE}.xz:tlpkg
DIST_SUBDIR= TeX
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-extra${EXTRACT_SUFX}
MAINTAINER= ports at MidnightBSD.org
COMMENT= TeXLive manager modules
-LICENSE= unknown
+LICENSE= publicdom
-CONFLICTS= texlive-infra-[0-9]*
+RUN_DEPENDS= tex-kpathsea>=6.2.1_1:devel/tex-kpathsea
+CONFLICTS= texlive-infra-[0-9]* texlive-base-20150521_[12345]
+
USES= perl5 tar:xz
USE_PERL5= run
-USE_TEX= yes
+USE_TEX= kpathsea
+PATCH_WRKSRC= ${WRKDIR}
NO_BUILD= yes
+TLPKG_FILE= ${PORTNAME}-20150924.tlpdb
+EXTRACT_AFTER_ARGS_SOURCE= \
+ | ${TAR} -xf - -C ${WRKDIR} \
+ --no-same-permission --no-same-owner \
+ ${PORTNAME}-20150521-source/texk/texlive/linked_scripts/texlive
+
+post-extract:
+ ${CAT} ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-20150521-source${EXTRACT_SUFX} \
+ ${EXTRACT_AFTER_ARGS_SOURCE}
+
do-install:
- @${MKDIR} ${PREFIX}/${SITE_PERL_REL}/TeXLive
- ${INSTALL_DATA} ${WRKSRC}/tlpkg/TeXLive/*.pm \
- ${PREFIX}/${SITE_PERL_REL}/TeXLive
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/scripts/texlive
+ ${INSTALL_SCRIPT} \
+ ${WRKDIR}/${PORTNAME}-20150521-source/texk/texlive/linked_scripts/texlive/tlmgr.pl \
+ ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/scripts/texlive
+ cd ${STAGEDIR}${PREFIX}/bin && \
+ ${LN} -s ../${TEXMFDISTDIR}/scripts/texlive/tlmgr.pl tlmgr
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/TeXLive
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}-extra/tlpkg/TeXLive/*.pm \
+ ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/TeXLive
@${MKDIR} ${PREFIX}/${TEXMFDISTDIR}
${TOUCH} ${PREFIX}/${TEXMFDISTDIR}/.texlive-tlmgr
+ ${MKDIR} ${FAKE_DESTDIR}/var/db/tlpkg
+ ${TOUCH} ${FAKE_DESTDIR}/var/db/tlpkg/tlmgr.log
+ xzcat ${DISTDIR}/${DIST_SUBDIR}/${TLPKG_FILE}.xz \
+ > ${FAKE_DESTDIR}/var/db/tlpkg/texlive.tlpdb
+ ${INSTALL_DATA} ${LOCALBASE}/share/texmf-dist/web2c/texmf.cnf \
+ ${FAKE_DESTDIR}/var/db/tlpkg
+ ${MKDIR} ${FAKE_DESTDIR}/var/db/tlpkg/backups
+ ${MKDIR} ${FAKE_DESTDIR}/var/db/tlpkg/tlpobj
+ ${LN} -s /var/db/tlpkg ${STAGEDIR}${PREFIX}/share/tlpkg
.include <bsd.port.mk>
Modified: trunk/print/texlive-tlmgr/distinfo
===================================================================
--- trunk/print/texlive-tlmgr/distinfo 2018-11-01 00:49:19 UTC (rev 24613)
+++ trunk/print/texlive-tlmgr/distinfo 2018-11-01 01:04:12 UTC (rev 24614)
@@ -1,2 +1,6 @@
SHA256 (TeX/texlive-20150523-extra.tar.xz) = d1282d91943ead1f7c50345c475115aab5459f003cec9eaad80122f5988270b6
SIZE (TeX/texlive-20150523-extra.tar.xz) = 369436
+SHA256 (TeX/texlive-20150521-source.tar.xz) = ed9bcd7bdce899c3c27c16a8c5c3017c4f09e1d7fd097038351b72497e9d4669
+SIZE (TeX/texlive-20150521-source.tar.xz) = 45459552
+SHA256 (TeX/texlive-20150924.tlpdb.xz) = 827e4a9446c5657d6714ef5b9be81fad5731b47d9b1b58df7eacc922aca9fb30
+SIZE (TeX/texlive-20150924.tlpdb.xz) = 1112660
Added: trunk/print/texlive-tlmgr/files/patch-texlive-20150521-source-texk-texlive-linked_scripts-texlive-tlmgr.pl
===================================================================
--- trunk/print/texlive-tlmgr/files/patch-texlive-20150521-source-texk-texlive-linked_scripts-texlive-tlmgr.pl (rev 0)
+++ trunk/print/texlive-tlmgr/files/patch-texlive-20150521-source-texk-texlive-linked_scripts-texlive-tlmgr.pl 2018-11-01 01:04:12 UTC (rev 24614)
@@ -0,0 +1,86 @@
+--- texlive-20150521-source/texk/texlive/linked_scripts/texlive/tlmgr.pl.orig 2015-05-11 21:37:36 UTC
++++ texlive-20150521-source/texk/texlive/linked_scripts/texlive/tlmgr.pl
+@@ -72,7 +72,7 @@ BEGIN {
+ }
+ if (-r "$bindir/$kpsewhichname") {
+ # if not in bootstrapping mode => kpsewhich exists, so use it to get $Master
+- chomp($Master = `kpsewhich -var-value=SELFAUTOPARENT`);
++ chomp($Master = `kpsewhich -var-value=TEXMFROOT`);
+ }
+ $::installerdir = $Master;
+
+@@ -581,13 +581,16 @@ for the full story.\n";
+ # besides doing normal logging if -logfile is specified, we try to log
+ # package related actions (install, remove, update) to
+ # the package-log file TEXMFSYSVAR/web2c/tlmgr.log
++ #
++ # *** FreeBSD specific: FreeBSD port uses /var/db/tlpkg/tlmgr.log.
++ #
+ $packagelogged = 0; # how many msgs we logged
+ chomp (my $texmfsysvar = `kpsewhich -var-value=TEXMFSYSVAR`);
+ $packagelogfile = $opts{"package-logfile"};
+ if ($opts{"usermode"}) {
+ $packagelogfile ||= "$::maintree/web2c/tlmgr.log";
+ } else {
+- $packagelogfile ||= "$texmfsysvar/web2c/tlmgr.log";
++ $packagelogfile ||= "/var/db/tlpkg/tlmgr.log";
+ }
+ #
+ # Try to open the packagelog file, but do NOT die when that does not work
+@@ -650,8 +653,8 @@ sub give_version {
+ if (!defined($::version_string)) {
+ $::version_string = "";
+ $::version_string .= "tlmgr revision $tlmgrrevision\n";
+- $::version_string .= "tlmgr using installation: $Master\n";
+- if (open (REL_TL, "$Master/release-texlive.txt")) {
++ $::version_string .= "tlmgr using installation: $Master/tlpkg\n";
++ if (open (REL_TL, "$Master/tlpkg/release-texlive.txt")) {
+ # print first and last lines, which have the TL version info.
+ my @rel_tl = <REL_TL>;
+ $::version_string .= $rel_tl[0];
+@@ -2085,7 +2088,7 @@ sub write_w32_updater {
+ my $opt_src = $localtlpdb->option("install_srcfiles");
+ my $opt_doc = $localtlpdb->option("install_docfiles");
+ my $root = $localtlpdb->root;
+- my $temp = "$root/temp";
++ my $temp = "$root/tlpkg/temp";
+ TeXLive::TLUtils::mkdirhier($temp);
+ tlwarn("Backup option not implemented for infrastructure update.\n") if ($opts{"backup"});
+ if ($media eq 'local_uncompressed') {
+@@ -4663,19 +4666,19 @@ sub action_uninstall {
+ system("rm", "-rf", "$Master/texmf-var");
+ system("rm", "-rf", "$Master/tlpkg");
+ system("rm", "-rf", "$Master/bin");
+- system("rm", "-rf", "$Master/readme-html.dir");
+- system("rm", "-rf", "$Master/readme-txt.dir");
++ system("rm", "-rf", "$Master/tlpkg/readme-html.dir");
++ system("rm", "-rf", "$Master/tlpkg/readme-txt.dir");
+ for my $f (qw/doc.html index.html LICENSE.CTAN LICENSE.TL README
+ README.usergroups release-texlive.txt texmf.cnf/) {
+- system("rm", "-f", "$Master/$f");
++ system("rm", "-f", "$Master/tlpkg/$f");
+ }
+- if (-d "$Master/temp") {
+- system("rmdir", "--ignore-fail-on-non-empty", "$Master/temp");
++ if (-d "$Master/tlpkg/temp") {
++ system("rmdir", "--ignore-fail-on-non-empty", "$Master/tlpkg/temp");
+ }
+- unlink("$Master/install-tl.log");
++ unlink("$Master/tlpkg/install-tl.log");
+ # should we do that????
+- system("rm", "-rf", "$Master/texmf-config");
+- system("rmdir", "--ignore-fail-on-non-empty", "$Master");
++ # system("rm", "-rf", "$Master/texmf-config");
++ # system("rmdir", "--ignore-fail-on-non-empty", "$Master");
+ }
+
+
+@@ -5466,7 +5469,7 @@ sub action_conf {
+ $fn || ( $fn = "$TEXMFCONFIG/tlmgr/config" ) ;
+ $cf = TeXLive::TLConfFile->new($fn, "#", "=");
+ } elsif ($arg eq "texmf") {
+- $fn || ( $fn = "$Master/texmf.cnf" ) ;
++ $fn || ( $fn = "$Master/tlpkg/texmf.cnf" ) ;
+ $cf = TeXLive::TLConfFile->new($fn, "[%#]", "=");
+ } elsif ($arg eq "updmap") {
+ $fn || ( chomp ($fn = `kpsewhich updmap.cfg`) ) ;
Property changes on: trunk/print/texlive-tlmgr/files/patch-texlive-20150521-source-texk-texlive-linked_scripts-texlive-tlmgr.pl
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/texlive-tlmgr/files/patch-texlive-20150523-extra-tlpkg-TeXLive-TLUtils.pm
===================================================================
--- trunk/print/texlive-tlmgr/files/patch-texlive-20150523-extra-tlpkg-TeXLive-TLUtils.pm (rev 0)
+++ trunk/print/texlive-tlmgr/files/patch-texlive-20150523-extra-tlpkg-TeXLive-TLUtils.pm 2018-11-01 01:04:12 UTC (rev 24614)
@@ -0,0 +1,32 @@
+--- texlive-20150523-extra/tlpkg/TeXLive/TLUtils.pm.orig 2015-05-06 20:30:33 UTC
++++ texlive-20150523-extra/tlpkg/TeXLive/TLUtils.pm
+@@ -228,22 +228,14 @@ subsequent calls just return that value.
+
+ sub platform {
+ unless (defined $::_platform_) {
+- if ($^O =~ /^MSWin/i) {
+- $::_platform_ = "win32";
+- } else {
+- my $config_guess = "$::installerdir/tlpkg/installer/config.guess";
+-
+- # We cannot rely on #! in config.guess but have to call /bin/sh
+- # explicitly because sometimes the 'noexec' flag is set in
+- # /etc/fstab for ISO9660 file systems.
+- chomp (my $guessed_platform = `/bin/sh '$config_guess'`);
+-
+- # For example, if the disc or reader has hardware problems.
+- die "$0: could not run $config_guess, cannot proceed, sorry"
+- if ! $guessed_platform;
+-
++ chomp(my $uname_m = `uname -m`);
++ chomp(my $uname_r = `uname -r`);
++ chomp(my $uname_s = `uname -s`);
++ $uname_r =~ s/-.*$//;
++ $uname_s = lc($uname_s);
++ $guessed_platform = sprintf("%s-unknown-%s%s", $uname_m,
++ $uname_s, $uname_r);
+ $::_platform_ = platform_name($guessed_platform);
+- }
+ }
+ return $::_platform_;
+ }
Property changes on: trunk/print/texlive-tlmgr/files/patch-texlive-20150523-extra-tlpkg-TeXLive-TLUtils.pm
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/print/texlive-tlmgr/pkg-plist
===================================================================
--- trunk/print/texlive-tlmgr/pkg-plist 2018-11-01 00:49:19 UTC (rev 24613)
+++ trunk/print/texlive-tlmgr/pkg-plist 2018-11-01 01:04:12 UTC (rev 24614)
@@ -1,3 +1,5 @@
+bin/tlmgr
+share/tlpkg
%%SITE_PERL%%/TeXLive/TLConfFile.pm
%%SITE_PERL%%/TeXLive/TLConfig.pm
%%SITE_PERL%%/TeXLive/TLDownload.pm
@@ -10,3 +12,11 @@
%%SITE_PERL%%/TeXLive/TLWinGoo.pm
%%SITE_PERL%%/TeXLive/TeXCatalogue.pm
%%TEXMFDISTDIR%%/.texlive-tlmgr
+%%TEXMFDISTDIR%%/scripts/texlive/tlmgr.pl
+ at cwd /
+var/db/tlpkg/texlive.tlpdb
+var/db/tlpkg/texmf.cnf
+var/db/tlpkg/tlmgr.log
+ at dir /var/db/tlpkg/backups
+ at dir /var/db/tlpkg/tlpobj
+ at dir /var/db/tlpkg
More information about the Midnightbsd-cvs
mailing list