From 507da2fef84bf190c811ab6cf7723aec0255b0d9 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sun, 9 Aug 2020 11:25:44 +0300 Subject: gnu: Factorize go-github-com-emirpasic-gods. * gnu/packages/golang.scm (go-github-com-emirpasic-gods-trees-binaryheap, go-github-com-emirpasic-gods-containers, go-github-com-emirpasic-gods-lists-arraylist, go-github-com-emirpasic-gods-utils): Delete variables. (go-github-com-emirpasic-gods): New variable. --- gnu/packages/golang.scm | 36 ++++++++---------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0a7cf32e05..ab1bcace9e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5044,9 +5044,9 @@ (define-public go-github-com-coreos-go-semver It lets you parse and compare two semantic version strings.") (license license:asl2.0))) -(define-public go-github-com-emirpasic-gods-trees-binaryheap +(define-public go-github-com-emirpasic-gods (package - (name "go-github-com-emirpasic-gods-trees-binaryheap") + (name "go-github-com-emirpasic-gods") (version "1.12.0") (source (origin (method git-fetch) @@ -5059,38 +5059,18 @@ (define-public go-github-com-emirpasic-gods-trees-binaryheap "0i5qqq7ajvw3mikr95zl9rsnfsjanzwpqqs6kzzplsfgsifybar1")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/emirpasic/gods/trees/binaryheap" - #:unpack-path "github.com/emirpasic/gods")) + `(#:import-path "github.com/emirpasic/gods" + ; Source-only package + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'build)))) (home-page "https://github.com/emirpasic/gods/") (synopsis "Implementation of various data structures and algorithms in Go") (description "This package provides implementation of various data structures and algorithms in Go.") (license license:bsd-2))) -(define-public go-github-com-emirpasic-gods-containers - (package - (inherit go-github-com-emirpasic-gods-trees-binaryheap) - (name "go-github-com-emirpasic-gods-containers") - (arguments - `(#:import-path "github.com/emirpasic/gods/containers" - #:unpack-path "github.com/emirpasic/gods")))) - -(define-public go-github-com-emirpasic-gods-lists-arraylist - (package - (inherit go-github-com-emirpasic-gods-trees-binaryheap) - (name "go-github-com-emirpasic-gods-lists-arraylist") - (arguments - `(#:import-path "github.com/emirpasic/gods/lists/arraylist" - #:unpack-path "github.com/emirpasic/gods")))) - -(define-public go-github-com-emirpasic-gods-utils - (package - (inherit go-github-com-emirpasic-gods-trees-binaryheap) - (name "go-github-com-emirpasic-gods-utils") - (arguments - `(#:import-path "github.com/emirpasic/gods/utils" - #:unpack-path "github.com/emirpasic/gods")))) - (define-public go-gopkg-in-warnings (package (name "go-gopkg-in-warnings") -- cgit v1.2.3