/[gentoo-x86]/dev-go/go-spew/go-spew-0_pre20150619.ebuild
Gentoo

Contents of /dev-go/go-spew/go-spew-0_pre20150619.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jul 31 02:16:35 2015 UTC (5 years, 4 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -2 lines
Whitespace

(Portage version: 2.2.20/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-go/go-spew/go-spew-0_pre20150619.ebuild,v 1.1 2015/07/30 20:31:56 zmedico Exp $
4
5 EAPI=5
6
7 EGO_SRC=github.com/davecgh/${PN}
8 EGO_PN=${EGO_SRC}/...
9
10 if [[ ${PV} = *9999* ]]; then
11 inherit golang-vcs
12 else
13 KEYWORDS="~amd64"
14 EGIT_COMMIT="2df174808ee097f90d259e432cc04442cf60be21"
15 SRC_URI="https://${EGO_SRC}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
16 fi
17 inherit golang-build
18
19 DESCRIPTION="Implements a deep pretty printer for Go data structures to aid in debugging"
20 HOMEPAGE="https://${EGO_SRC}"
21 LICENSE="ISC"
22 SLOT="0/${PV}"
23 IUSE=""
24 DEPEND=""
25 RDEPEND=""
26
27 if [[ ${PV} != *9999* ]]; then
28 src_unpack() {
29 local f
30
31 for f in ${A}
32 do
33 case "${f}" in
34 *.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
35 local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
36
37 debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
38
39 # XXX: check whether the directory structure inside is
40 # fine? i.e. if the tarball has actually a parent dir.
41 mkdir -p "${destdir}" || die
42 tar -C "${destdir}" -x --strip-components 1 \
43 -f "${DISTDIR}/${f}" || die
44 ;;
45 *)
46 debug-print "${FUNCNAME}: falling back to unpack for ${f}"
47
48 # fall back to the default method
49 unpack "${f}"
50 ;;
51 esac
52 done
53 }
54 fi
55
56 src_install() {
57 rm -rf src/${EGO_SRC}/.git* || die
58 golang-build_src_install
59 }

  ViewVC Help
Powered by ViewVC 1.1.20