[gentoo-commits] repo/gentoo:master commit in: dev-perl/Font-AFM/

2021-06-02 Thread Andreas K. Hüttel
commit: a19cce830d179ea97ac53aeadf5272a35e54a217
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Wed Jun  2 18:36:17 2021 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Wed Jun  2 18:46:35 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a19cce83

dev-perl/Font-AFM: Stable for all 1.20-r3

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild 
b/dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild
index b279f82659d..a050244f367 100644
--- a/dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild
+++ b/dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -10,17 +10,20 @@ inherit perl-module
 DESCRIPTION="Parse Adobe Font Metric files"
 
 SLOT="0"
-KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+KEYWORDS="amd64 ~ia64 ppc sparc x86"
 IUSE="test"
 RESTRICT="!test? ( test )"
+
 BDEPEND="
test? (
media-fonts/urw-fonts
)
 "
+
 PATCHES=(
"${FILESDIR}/${PN}-1.20-custom-test-font.patch"
 )
+
 src_test() {
# nimbus sans l medium r normal iso8859-1
TEST_FONT="n019003l" \



[gentoo-commits] repo/gentoo:master commit in: dev-perl/Font-AFM/

2021-06-02 Thread Andreas K. Hüttel
commit: 0ae5563575bdbfafdb43889d36e826ca2ada42a1
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Wed Jun  2 18:36:39 2021 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Wed Jun  2 18:46:38 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ae55635

dev-perl/Font-AFM: Remove old 1.20-r1

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 dev-perl/Font-AFM/Font-AFM-1.200.0-r1.ebuild | 16 
 1 file changed, 16 deletions(-)

diff --git a/dev-perl/Font-AFM/Font-AFM-1.200.0-r1.ebuild 
b/dev-perl/Font-AFM/Font-AFM-1.200.0-r1.ebuild
deleted file mode 100644
index 956e81864cf..000
--- a/dev-perl/Font-AFM/Font-AFM-1.200.0-r1.ebuild
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-MODULE_AUTHOR=GAAS
-MODULE_VERSION=1.20
-inherit perl-module
-
-DESCRIPTION="Parse Adobe Font Metric files"
-
-SLOT="0"
-KEYWORDS="amd64 ~ia64 ppc sparc x86"
-IUSE=""
-
-SRC_TEST="do"



[gentoo-commits] repo/gentoo:master commit in: dev-perl/Font-AFM/

2020-10-18 Thread Kent Fredric
commit: 9396d39299e0c7550bb01e651f869a6eda3e4dca
Author: Kent Fredric  gentoo  org>
AuthorDate: Mon Oct 19 05:18:12 2020 +
Commit: Kent Fredric  gentoo  org>
CommitDate: Mon Oct 19 05:18:12 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9396d392

dev-perl/Font-AFM: Cleanup old 1.200.0-r2

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Kent Fredric  gentoo.org>

 dev-perl/Font-AFM/Font-AFM-1.200.0-r2.ebuild | 24 
 1 file changed, 24 deletions(-)

diff --git a/dev-perl/Font-AFM/Font-AFM-1.200.0-r2.ebuild 
b/dev-perl/Font-AFM/Font-AFM-1.200.0-r2.ebuild
deleted file mode 100644
index 05a0c85a67c..000
--- a/dev-perl/Font-AFM/Font-AFM-1.200.0-r2.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DIST_AUTHOR=GAAS
-DIST_VERSION=1.20
-inherit perl-module
-
-DESCRIPTION="Parse Adobe Font Metric files"
-
-SLOT="0"
-KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
-   test? (
-   app-text/htmldoc
-   )
-"
-src_test() {
-   METRICS="${EPREFIX}/usr/share/htmldoc/fonts" perl-module_src_test
-}



[gentoo-commits] repo/gentoo:master commit in: dev-perl/Font-AFM/files/, dev-perl/Font-AFM/

2020-09-16 Thread Kent Fredric
commit: 1d4c1e9575c0d95a488795974150ffa550d97716
Author: Kent Fredric  gentoo  org>
AuthorDate: Thu Sep 17 01:47:06 2020 +
Commit: Kent Fredric  gentoo  org>
CommitDate: Thu Sep 17 01:47:38 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d4c1e95

dev-perl/Font-AFM: -r bump to use urw-fonts instead for tests

- Add patch allowing use of arbitrary font names and arbitrary metrics
- Augment tests and deps to use a font from the urw-fonts pack

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Kent Fredric  gentoo.org>

 dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild   | 30 ++
 .../files/Font-AFM-1.20-custom-test-font.patch | 46 ++
 2 files changed, 76 insertions(+)

diff --git a/dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild 
b/dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild
new file mode 100644
index 000..b279f82659d
--- /dev/null
+++ b/dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=GAAS
+DIST_VERSION=1.20
+inherit perl-module
+
+DESCRIPTION="Parse Adobe Font Metric files"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+BDEPEND="
+   test? (
+   media-fonts/urw-fonts
+   )
+"
+PATCHES=(
+   "${FILESDIR}/${PN}-1.20-custom-test-font.patch"
+)
+src_test() {
+   # nimbus sans l medium r normal iso8859-1
+   TEST_FONT="n019003l" \
+   TEST_FONT_WIDTH="4279" \
+   METRICS="${EPREFIX}/usr/share/fonts/urw-fonts" \
+   perl-module_src_test
+}

diff --git a/dev-perl/Font-AFM/files/Font-AFM-1.20-custom-test-font.patch 
b/dev-perl/Font-AFM/files/Font-AFM-1.20-custom-test-font.patch
new file mode 100644
index 000..3e674599c33
--- /dev/null
+++ b/dev-perl/Font-AFM/files/Font-AFM-1.20-custom-test-font.patch
@@ -0,0 +1,46 @@
+From 6291356c29004b58b7d0f18ce39738ebc2412ff9 Mon Sep 17 00:00:00 2001
+From: Kent Fredric 
+Date: Thu, 17 Sep 2020 13:28:34 +1200
+Subject: Allow overriding test font name
+
+This allows us to use helvetica-compatible fonts without needing an
+actual font called "Helvetica"
+---
+ t/afm.t | 14 ++
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/t/afm.t b/t/afm.t
+index 40addff..60ddcb8 100644
+--- a/t/afm.t
 b/t/afm.t
+@@ -1,7 +1,13 @@
+ require Font::AFM;
+ 
++my $test_font  = $ENV{TEST_FONT};
++my $test_width = $ENV{TEST_FONT_WIDTH};
++
++$test_font  = "Helvetica" unless defined $test_font  and length $test_font;
++$test_width = 4279unless defined $test_width and length $test_width;
++
+ eval {
+-   $font = Font::AFM->new("Helvetica");
++   $font = Font::AFM->new($test_font);
+ };
+ if ($@) {
+if ($@ =~ /Can't find the AFM file for/) {
+@@ -18,9 +24,9 @@ print "1..1\n";
+ 
+ $sw = $font->stringwidth("Gisle Aas");
+ 
+-if ($sw == 4279) {
+-print "ok 1 Stringwith for Helvetica seems to work\n";
++if ($sw == $test_width) {
++print "ok 1 Stringwith for \"$test_font\"(font) seems to work\n";
+ } else {
+-print "not ok 1 The stringwidth of 'Gisle Aas' should be 4279 (it was 
$sw)\n";
++print "not ok 1 The stringwidth of 'Gisle Aas' should be $test_width (it 
was $sw)\n";
+ }
+ 
+-- 
+2.28.0
+



[gentoo-commits] repo/gentoo:master commit in: dev-perl/Font-AFM/

2020-09-16 Thread Kent Fredric
commit: 0e9bbd93b1e69ffb79c076f94b2206fe86210f55
Author: Kent Fredric  gentoo  org>
AuthorDate: Wed Sep 16 10:11:02 2020 +
Commit: Kent Fredric  gentoo  org>
CommitDate: Wed Sep 16 10:11:38 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e9bbd93

dev-perl/Font-AFM: -r bump for EAPI7 + fixes

- EAPI7
- Parallel tests
- Pull htmldoc for tests as its the easiest source of Helvetica.afm
  consumed by the test suite. As it stands, no single package seems to
  be an authoritative way to get this file, and lots of different
  packages ship their own copy.

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Kent Fredric  gentoo.org>

 dev-perl/Font-AFM/Font-AFM-1.200.0-r2.ebuild | 24 
 1 file changed, 24 insertions(+)

diff --git a/dev-perl/Font-AFM/Font-AFM-1.200.0-r2.ebuild 
b/dev-perl/Font-AFM/Font-AFM-1.200.0-r2.ebuild
new file mode 100644
index 000..05a0c85a67c
--- /dev/null
+++ b/dev-perl/Font-AFM/Font-AFM-1.200.0-r2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=GAAS
+DIST_VERSION=1.20
+inherit perl-module
+
+DESCRIPTION="Parse Adobe Font Metric files"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+   test? (
+   app-text/htmldoc
+   )
+"
+src_test() {
+   METRICS="${EPREFIX}/usr/share/htmldoc/fonts" perl-module_src_test
+}