Fix warning on unassigned variable, #384769; thanks Micheal for the patch
authorJustin Lecher <jlec@gentoo.org>
Fri, 7 Oct 2011 15:13:41 +0000 (15:13 +0000)
committerJustin Lecher <jlec@gentoo.org>
Fri, 7 Oct 2011 15:13:41 +0000 (15:13 +0000)
Package-Manager: portage-2.2.0_alpha62/cvs/Linux x86_64

app-text/pastebin/ChangeLog
app-text/pastebin/Manifest
app-text/pastebin/files/0.6.2-lnot-specified.patch [new file with mode: 0644]
app-text/pastebin/metadata.xml
app-text/pastebin/pastebin-0.6.2-r1.ebuild [new file with mode: 0644]

index 73badbcc1399cda682b7875f11fe045e307bb25f..3b3c342fe0991057d23f93b964f67b66e2458364 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-text/pastebin
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/pastebin/ChangeLog,v 1.11 2011/01/12 07:29:23 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/pastebin/ChangeLog,v 1.12 2011/10/07 15:13:41 jlec Exp $
+
+*pastebin-0.6.2-r1 (07 Oct 2011)
+
+  07 Oct 2011; Justin Lecher <jlec@gentoo.org>
+  +files/0.6.2-lnot-specified.patch, +pastebin-0.6.2-r1.ebuild, metadata.xml:
+  Fix warning on unassigned variable, #384769; thanks Micheal for the patch
 
   12 Jan 2011; Justin Lecher <jlec@gentoo.org> -pastebin-0.6.1.ebuild:
   Removed old
index 4d742470ed615a84217d49c9908b6309e927ecd8..6973eabbfe82ec00917310064929376e78c98b3e 100644 (file)
@@ -1,14 +1,16 @@
 -----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA512
 
+AUX 0.6.2-lnot-specified.patch 444 RMD160 cca0c30b3de02e1b78a209bcb08955cea4baf24a SHA1 3baec4678904bc9c29ad6a73d6c8fc7eef6e2f0e SHA256 f34b3c50969eaebaea131fd8794e662c649f20ca79b272e9aff2639a99419d4d
 DIST pastebin-0.6.2.tar.bz2 3496 RMD160 b719a69f36715053389cbb1c86655cd58862a3c0 SHA1 85356eb5ae93f5e7218ffa8bf97751e185f04f2e SHA256 132cc08329dc1cd0b2cb341042fe942c3dbe4740e1582d33090b90dbb4b3a1e6
+EBUILD pastebin-0.6.2-r1.ebuild 624 RMD160 127c036e1ddbc88d5a37803228d334f678b5dee0 SHA1 d3a054ddb7f913aca5c10c2758260f96e3889c16 SHA256 9525d9db8fd8223ea99eab6a61b9b405dc5548aca21794fdc9053d2383a8330d
 EBUILD pastebin-0.6.2.ebuild 510 RMD160 0fbb155e2e0272e2c066774d55ddc9e30204bda3 SHA1 2a6679b02077c5f52a4630ffc7b88ee2f13928ba SHA256 10582eb815ecc3bc489cc79adf421cedf2b3f129504d8f0c5f6a955df1889c74
-MISC ChangeLog 1518 RMD160 8e41805d788f0e64dd0d46720da5fc89dc8e8742 SHA1 24d05a82627b7600d578226b12721b05caa941bb SHA256 8d2d5fc2c115a9e6653b79922e3ed64abd8984cf039d239add490bcda5a6a76d
-MISC metadata.xml 164 RMD160 cc7a7798af2b0129d7ce728b3d38d8b4625de71c SHA1 a9a44b989a1eee88c892fb0f500b19a80c4d4d0e SHA256 03080f40dc43565fd4bb7569351e0f607a4946a6108c15765ac42901ab16caf3
+MISC ChangeLog 1754 RMD160 7bca8e9ab00bbd8a9ebdea9492006d6eed67b196 SHA1 c0fc094b82e16da943ea1264e64d7e440767c9fc SHA256 75597c457bbb3d8966bb7091b04b21f45c60a6ad66a89e500ceb66b9ca6d8cac
+MISC metadata.xml 165 RMD160 c4557a3518a065b077539be5a0f20e4735fc2141 SHA1 1831705b1eb97b63968fc9eef31aa904a69a854a SHA256 75ca85c472d4181ae0de529c83826baaebe75d9e750ee6621758b5096bceffcd
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
+Version: GnuPG v2.0.18 (GNU/Linux)
 
-iEYEARECAAYFAk0tWCwACgkQgAnW8HDreRbU6wCgg1JEMLuGbEsA24OJ/1omqmzU
-tjgAni9/dJOT97zVBUBGjghONJS7fUUy
-=JP0m
+iEYEAREKAAYFAk6PFysACgkQgAnW8HDreRab4ACfYYd3yklS72TDjBW2+K4OA5l6
+MtQAn1E0tHiY91kJIsw3hA4AZuhUkeRx
+=ibZ+
 -----END PGP SIGNATURE-----
diff --git a/app-text/pastebin/files/0.6.2-lnot-specified.patch b/app-text/pastebin/files/0.6.2-lnot-specified.patch
new file mode 100644 (file)
index 0000000..047068d
--- /dev/null
@@ -0,0 +1,16 @@
+ pastebin |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/pastebin b/pastebin
+index 1e4c65c..c2aaa2d 100755
+--- a/pastebin
++++ b/pastebin
+@@ -224,7 +224,7 @@ sub name {
+ }
+ sub language {
+-    my $lang = lc $options->{l} || return 'text';
++    my $lang = defined $options->{l} ? lc $options->{l} : return 'text';
+     for my $language (keys %languages) {
+         my $check = Other::escape($languages{$language});
index 80ac69d9c2f2293d9ef5ba60cd463cf04109505d..40149c995561da9589875eafe054f2f8110e2f06 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<herd>shell-tools</herd>
+       <herd>shell-tools</herd>
 </pkgmetadata>
diff --git a/app-text/pastebin/pastebin-0.6.2-r1.ebuild b/app-text/pastebin/pastebin-0.6.2-r1.ebuild
new file mode 100644 (file)
index 0000000..c2a941b
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/pastebin/pastebin-0.6.2-r1.ebuild,v 1.1 2011/10/07 15:13:41 jlec Exp $
+
+EAPI=4
+
+inherit eutils perl-app
+
+DESCRIPTION="CLI to pastebin.com"
+HOMEPAGE="http://code.google.com/p/pastebin-cli/"
+SRC_URI="http://pastebin-cli.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-perl/libwww-perl"
+
+S="${WORKDIR}"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PV}-lnot-specified.patch
+}
+
+src_install() {
+       dobin ${PN}
+}