sci-mathematics/sha1-polyml: Make var declaration globally
authorJustin Lecher <jlec@gentoo.org>
Fri, 13 Nov 2015 09:37:01 +0000 (10:37 +0100)
committerJustin Lecher <jlec@gentoo.org>
Fri, 13 Nov 2015 09:37:01 +0000 (10:37 +0100)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=565650

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
sci-mathematics/sha1-polyml/metadata.xml
sci-mathematics/sha1-polyml/sha1-polyml-5.5.0.ebuild

index c3a2e907f34c2306fa49b99ca83f6f623fd2c74a..50a414f56b23a6bf645ac71fd35584836250bcbd 100644 (file)
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer>
-  <email>gienah@gentoo.org</email>
-  <name>Mark Wright</name>
-</maintainer>
-<herd>sci-mathematics</herd>
-<longdescription lang='en'>
+  <maintainer>
+    <email>gienah@gentoo.org</email>
+    <name>Mark Wright</name>
+  </maintainer>
+  <herd>sci-mathematics</herd>
+  <longdescription lang="en">
 sci-mathematics/sha1-polyml is the implementation of SHA1 taken from
 the GNU coreutils package as described in the sci-mathematics/sha1-polyml
 README.  It is required by sci-mathematics/isabelle.
index a5d68567de68e9902db142d5775bf724317f60fa..1aaf42841abbb22c3745bb8c279ebb51bf35cb59 100644 (file)
@@ -60,11 +60,11 @@ src_prepare() {
 }
 
 src_compile() {
-       local arch=$(uname -m)
-       local uos=$(uname)
+       arch=$(uname -m)
+       uos=$(uname)
        # Switch to ,, when we switch to EAPI=6.
        #local los=${uos,,}
-       local los=$(tr '[:upper:]' '[:lower:]' <<<"${uos}")
+       los=$(tr '[:upper:]' '[:lower:]' <<<"${uos}")
        ./build "${arch}-${los}" || die "build failed"
 }