pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/texlive2pkg texlive2pkg: update to 1.9
details: https://anonhg.NetBSD.org/pkgsrc/rev/6c46e56a94ce
branches: trunk
changeset: 447333:6c46e56a94ce
user: markd <markd%pkgsrc.org@localhost>
date: Sat Feb 20 05:08:37 2021 +0000
description:
texlive2pkg: update to 1.9
change default version to 2020
restructure license handling
diffstat:
pkgtools/texlive2pkg/Makefile | 5 +-
pkgtools/texlive2pkg/files/texlive.pkg | 59 +++++++++++++++------------------
2 files changed, 29 insertions(+), 35 deletions(-)
diffs (96 lines):
diff -r 31249bd4e73f -r 6c46e56a94ce pkgtools/texlive2pkg/Makefile
--- a/pkgtools/texlive2pkg/Makefile Sat Feb 20 01:03:47 2021 +0000
+++ b/pkgtools/texlive2pkg/Makefile Sat Feb 20 05:08:37 2021 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2020/08/31 18:10:59 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2021/02/20 05:08:37 markd Exp $
#
-PKGNAME= texlive2pkg-1.8
-PKGREVISION= 1
+PKGNAME= texlive2pkg-1.9
CATEGORIES= pkgtools
MAINTAINER= markd%NetBSD.org@localhost
diff -r 31249bd4e73f -r 6c46e56a94ce pkgtools/texlive2pkg/files/texlive.pkg
--- a/pkgtools/texlive2pkg/files/texlive.pkg Sat Feb 20 01:03:47 2021 +0000
+++ b/pkgtools/texlive2pkg/files/texlive.pkg Sat Feb 20 05:08:37 2021 +0000
@@ -1,7 +1,7 @@
#!/usr/pkg/bin/perl
-# $NetBSD: texlive.pkg,v 1.7 2019/08/12 08:35:14 markd Exp $
+# $NetBSD: texlive.pkg,v 1.8 2021/02/20 05:08:37 markd Exp $
-$version = "2019";
+$version = "2020";
$pkgname = $shortdesc = $revision = $license = $longdesc = $depend = $homepage = "";
$plist = $other = $maps = "";
@@ -9,7 +9,7 @@
$pkgname = $1,next if (/^name (\S+)/);
$shortdesc = $1,next if (/^shortdesc +(.+)/);
$revision = $1,next if (/^revision (\S+)/);
- $license = $1,next if (/^catalogue-license (\S+)/);
+ $license = " $1 ",next if (/^catalogue-license +(.+)/);
$version = $1,next if (/^catalogue-version +(.+)/);
$homepage = $1,next if (/^catalogue +(.+)/);
next if (/^category /);
@@ -34,35 +34,30 @@
$version =~ s:/::g;
$version =~ s: :_:g; # 5th edition
$version =~ s:-::g; # 2013-05-12
-$license = "apache-2.0" if ($license eq "apache2");
-$license = "cc-by-v4.0" if ($license eq "cc-by-4");
-$license = "gnu-fdl-v1.3" if ($license eq "fdl");
-$license = "gnu-lgpl-v2" if ($license eq "lgpl");
-$license = "gnu-gpl-v2" if ($license eq "gpl");
-$license = "gnu-gpl-v2" if ($license eq "gpl2");
-$license = "gnu-gpl-v3" if ($license eq "gpl3");
-$license = "lppl-1.0" if ($license eq "lppl1");
-$license = "lppl-1.2" if ($license eq "lppl1.2");
-$license = "lppl-1.3c" if ($license eq "lppl");
-$license = "lppl-1.3c" if ($license eq "lppl1.3");
-$license = "lppl-1.3c" if ($license eq "lppl1.3c");
-$license = "ofl-v1.1 AND lppl-1.3c" if ($license eq "ofllppl1.3");
-$license = "ofl-v1.1 AND lppl-1.3c" if ($license eq "ofllppl1.3c");
-$license = "ofl-v1.1 AND lppl-1.3c" if ($license eq "ofllppl");
-$license = "gnu-gpl-v2 AND ofl-v1.1 AND lppl-1.3c" if ($license eq "gplofllppl");
-$license = "gnu-gpl-v2 AND lppl-1.3c" if ($license eq "lpplgpl");
-$license = "gnu-gpl-v2 AND lppl-1.3c" if ($license eq "gpl2lppl");
-$license = "apache-2.0 AND lppl-1.3c" if ($license eq "apache2lppl");
-$license = "apache-2.0 AND lppl-1.3c" if ($license eq "apache2lppl1.3c");
-$license = "apache-2.0 AND lppl-1.3c" if ($license eq "lppl1.3capache2");
-$license = "mit AND lppl-1.3c" if ($license eq "mitlppl");
-$license = "gnu-gpl-v2 AND cc-by-sa-v4.0" if ($license eq "gpl3+cc-by-sa-4");
-$license = "modified-bsd" if ($license eq "bsd");
-$license = "modified-bsd" if ($license eq "bsd3");
-$license = "2-clause-bsd" if ($license eq "bsd2");
-$license = "ofl-v1.1" if ($license eq "ofl");
-$license = "gfsl" if ($license eq "gfl");
-$license = "public-domain" if ($license eq "pd");
+$license =~ s: apache2 : apache-2.0 :;
+$license =~ s: cc-by-4 : cc-by-v4.0 :;
+$license =~ s: cc-by-sa-4 : cc-by-sa-v4.0 :;
+$license =~ s: fdl : gnu-fdl-v1.3 :;
+$license =~ s: lgpl : gnu-lgpl-v2 :;
+$license =~ s: gpl : gnu-gpl-v2 :;
+$license =~ s: gpl2 : gnu-gpl-v2 :;
+$license =~ s: gpl2+ : gnu-gpl-v2 :;
+$license =~ s: gpl3 : gnu-gpl-v3 :;
+$license =~ s: gpl3+ : gnu-gpl-v3 :;
+$license =~ s: lppl1 : lppl-1.0 :;
+$license =~ s: lppl1.2 : lppl-1.2 :;
+$license =~ s: lppl : lppl-1.3c :;
+$license =~ s: lppl1.3 : lppl-1.3c :;
+$license =~ s: lppl1.3c : lppl-1.3c :;
+$license =~ s: bsd : modified-bsd :;
+$license =~ s: bsd3 : modified-bsd :;
+$license =~ s: bsd2 : 2-clause-bsd :;
+$license =~ s: ofl : ofl-v1.1 :;
+$license =~ s: gfl : gfsl :;
+$license =~ s: pd : public-domain :;
+
+$license =~ s: (.*) :$1:;
+$license =~ s: +: AND :g;
$extras = "";
$extras .= "\n$depend" if ($depend);
Home |
Main Index |
Thread Index |
Old Index