dev-perl/Business-ISBN: Bump to version 2.90.200_rc
authorKent Fredric <kentfredric@gmail.com>
Tue, 10 May 2016 09:11:07 +0000 (21:11 +1200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 21 May 2016 00:11:45 +0000 (02:11 +0200)
- EAPI6
- Exposed USE="xisbn" and USE="barcode" features
- Ideally should have bumped to 2.100.0, but upstream broke versioning
  in ways we cant fix: https://github.com/briandfoy/business-isbn/issues/7

Upstream:
- xisbn query URL fixed.
- Mojo based xisbn parse/query added.
- Added "increment" and "decrement" functions for ISBN iteration.

Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="alpha amd64 amd64-fbsd arm arm64 hppa ia64 m68k mips nios2 ppc ppc64 riscv s390 sh sparc sparc-fbsd x86 x86-fbsd"

dev-perl/Business-ISBN/Business-ISBN-2.90.200_rc.ebuild [new file with mode: 0644]
dev-perl/Business-ISBN/Manifest
dev-perl/Business-ISBN/metadata.xml

diff --git a/dev-perl/Business-ISBN/Business-ISBN-2.90.200_rc.ebuild b/dev-perl/Business-ISBN/Business-ISBN-2.90.200_rc.ebuild
new file mode 100644 (file)
index 0000000..bccedd8
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DIST_AUTHOR=BDFOY
+DIST_VERSION=2.09_02
+inherit perl-module
+
+DESCRIPTION="Work with ISBN as objects"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test xisbn barcode"
+
+RDEPEND="
+       xisbn?   ( dev-perl/Mojolicious )
+       barcode? (
+           dev-perl/GD-Barcode
+           dev-perl/GD[png]
+       )
+       >=dev-perl/Business-ISBN-Data-20140910.2.0
+"
+DEPEND="${RDEPEND}
+       virtual/perl-ExtUtils-MakeMaker
+       test? (
+               >=virtual/perl-Test-Simple-0.950.0
+       )
+"
+
+# NOTE: This version is shipped because upstream has broken everything
+# by shipping an unmappable 2.010 which == 2.01 in both upstream versioning
+# and perl->gentoo mapping rules.
+#
+# Dependencies taken from 2.010 because 2.09_02 lacks all dependencies.
+
+src_prepare() {
+       perl-module_src_prepare
+       sed -i '/URI/d' Makefile.PL || die # unused dependency
+}
+
+src_test() {
+       local my_test_control="${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}"
+       local bad_tests=( t/pod{,_coverage}.t )
+       if ! has network ${my_test_control}; then
+               einfo "Disabling network tests without DIST_TEST_OVERRIDE =~ network"
+               bad_tests+=( t/xisbn10.t )
+       fi
+       perl_rm_files "${bad_tests[@]}"
+       perl-module_src_test
+}
index 69ed31fadf02346c1af3253c9668c286eb60cd9c..ec6544c61021db1791c66eb6baf56ac2eff48ffa 100644 (file)
@@ -1 +1,2 @@
 DIST Business-ISBN-2.05.tar.gz 355413 SHA256 d9816bfb7aa6d87843f8484c9aac23e4c5ec1173ebfec458843e89ea5cf375ee SHA512 b5179f891a401f11f1355137e90e14a9f3602c14b181b30da3237bd4ba49b40df41c9c1396242084211a09dfcde8927d1dfe0965602982cb0d50a3b0bbfad694 WHIRLPOOL 7b5b073010e739891b357fb568300452f49e87a3b33ebacdb0205d62ab079117252c6ed112bc3a4a8c1eabc531a9a50125deddd8732a2ce740304f7d576e1568
+DIST Business-ISBN-2.09_02.tar.gz 361751 SHA256 9a40e9d12d108b2def6bda4e4910a44aed5ba7c8ee062c464cd04a40d893b007 SHA512 4a74c708e14d178802adbea846127257fc790b6ddba41c5c468e7df9f8ca25e880d2487d12f0474fa69a5c312354e1856f729c4f598536c053d58c41220fef7d WHIRLPOOL 52864908e7c2d8cc236e29efa300389c8463ff6186d8bdf67677e018dd55e64d043dbf716d8787d6a885c0f2962a1d62e4941268d3b48777759f29a950ee3ef9
index 6a7a1aecf86dcc8e0b370389903583bcac0f86a8..910c5c3098b290016852cee52888d8b0cd4b6597 100644 (file)
@@ -11,4 +11,8 @@
                <remote-id type="cpan-module">Business::ISBN10</remote-id>
                <remote-id type="cpan-module">Business::ISBN13</remote-id>
        </upstream>
+       <use>
+               <flag name="xisbn">Install <pkg>dev-perl/Mojolicious</pkg> for querying xisbn.worldcat.org</flag>
+               <flag name="barcode">Install <pkg>dev-perl/GD-Barcode</pkg> for rendering ISBN numbers as barcodes</flag>
+       </use>
 </pkgmetadata>