Re: SVN texlive (new) commit: r2229 - in texlive-new/trunk: all/debian texlive-base/debian
Norbert Preining <preining@logic.at> wrote:
> On Mon, 08 Jan 2007, Frank Küster wrote:
>> Apropos play, can you tell me why it didn't work as I wanted?
>
> I will check ...
>
> Creating new packages is not trivial till now, there is still some magic
> in the tpm2deb-source.pl script. Currently only for texlive and
> texlive-full packages. I will check.
Something along this line?
Index: tpm2debcommon.pm
===================================================================
--- tpm2debcommon.pm (revision 2228)
+++ tpm2debcommon.pm (working copy)
@@ -24,7 +24,7 @@
%BuildDep %BuildDepIndep %Maintainer %Priority %Uploaders
%Section %Standards $AllMaintainer $AllPriority $AllUploaders
$AllSection $AllStandards $texlivecommonversion %LatestVersion
- $TpmGlobalPath $DataGlobalPath $Master
+ $TpmGlobalPath $DataGlobalPath $Master @AddPackages
%SourcePackages %TeXLive
@@ -107,6 +107,9 @@
our $arch;
+our @AddPackages;
+
# pre set $opt_master to ./LocalTPM which contains also the Tools dir
# this is set in the main script, and changed with commandline option.
# should it maybe be deleted here?
@@ -273,8 +276,15 @@
push @allpkgs, "$p (>= $LatestVersion{$s})";
}
}
+ # Additional (meta)packages
+ foreach my $mp (@AddPackages) {
+ $TeXLive{$mp}{'type'} = "TLCore" ;
+ $TeXLive{$mp}{'depends'} = [ @{$Depends{$mp}} ];
+ $opt_debug && print STDERR "metapackage: $mp, Depends: $TeXLive{$mp}{'depends'}\n";
+ }
$TeXLive{"texlive-common"}{'type'} = "TLCore" ;
$TeXLive{"texlive-common"}{'depends'} = [ @{$Depends{"texlive-common"}} ];
+# print STDERR qq(common depends: $TeXLive{"texlive-common"}{'depends'}\n);
$TeXLive{"texlive-common"}{'suggests'} = [ @{$Suggests{"texlive-common"}} ];
$TeXLive{"texlive-common"}{'recommends'} = [ @{$Recommends{"texlive-common"}} ];
$TeXLive{"texlive-common"}{'replaces'} = [ @{$Replaces{"texlive-common"}} ];
@@ -718,6 +728,14 @@
}
next;
}
+ if ($type eq "addpackages") {
+ @AddPackages = split(/,/,$a);
+ foreach (@AddPackages) {
+ s/(.*)/"$1"/;
+ }
+ $opt_debug && print STDERR "\nAdditional packages: @AddPackages\n";
+ next;
+ }
print "tpm2deb.cfg: Unknown directive: $type. Exiting!\n";
exit 1;
}
Index: tpm2deb.cfg
===================================================================
--- tpm2deb.cfg (revision 2229)
+++ tpm2deb.cfg (working copy)
@@ -166,6 +166,8 @@
name;collection-latexrecommended;texlive-latex-recommended;texlive-base
name;collection-fontsrecommended;texlive-fonts-recommended;texlive-base
name;collection-pictures;texlive-pictures;texlive-base
+# Additional packages, no tpms/collections exist
+addpackages;texlive,texlive-full,texlive-common,tetex-bin,tetex-extra
# dummy name for meta package texlive
name;collection-foobar;texlive;texlive-base
name;collection-foobar;texlive-full;texlive-base
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: