From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/go-fuse/Manifest | 8 ++++ dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild | 58 ++++++++++++++++++++++++++ dev-libs/go-fuse/go-fuse-0_p20150422.ebuild | 55 ++++++++++++++++++++++++ dev-libs/go-fuse/go-fuse-9999.ebuild | 55 ++++++++++++++++++++++++ dev-libs/go-fuse/metadata.xml | 11 +++++ 5 files changed, 187 insertions(+) create mode 100644 dev-libs/go-fuse/Manifest create mode 100644 dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild create mode 100644 dev-libs/go-fuse/go-fuse-0_p20150422.ebuild create mode 100644 dev-libs/go-fuse/go-fuse-9999.ebuild create mode 100644 dev-libs/go-fuse/metadata.xml (limited to 'dev-libs/go-fuse') diff --git a/dev-libs/go-fuse/Manifest b/dev-libs/go-fuse/Manifest new file mode 100644 index 000000000000..ebbfd09b5fb2 --- /dev/null +++ b/dev-libs/go-fuse/Manifest @@ -0,0 +1,8 @@ +DIST go-fuse-0_p20140812.tar.gz 111389 SHA256 183f477e02822528693ea824680a79f44b14a4491b10d1738658d71a32e6faf3 SHA512 d951094e290bc914b418c165106368d6b73634ffb177b770ce53baaca4cd6026967f11d602b3e687e59a49323c7af1af74913ec1a911093e4e32503025842cb3 WHIRLPOOL 067eb869634d52ade241113c2c4827ad2266c7d192bc1d89a052e8bbcea699a51c4d0917cea4d93d12185fe55381341a4363a9cc689ed8df90abcd79679c632e +DIST go-fuse-0_p20150422.tar.gz 110741 SHA256 825edaff6e65a9bc0e1fb52fe1791826f4f17a37e4373bcbde99d15dfb63723d SHA512 a0c9fa666ab39632db258baa5bf6ba1546aa847beb0d4a4b812a96e66d8573e3c0a0600ad24e16e314fbd8082b36027a3e1bc2092667766f611b1321aaea70c5 WHIRLPOOL ec33dfb773f5cff79e8f6c3acded538a68853035d197c689971f9b857244245039ced14a1ef970c1b14b5b6d2419fae7b6193b038d7245da119aee068677c0f6 +EBUILD go-fuse-0_p20140812-r1.ebuild 1379 SHA256 61ad34dc81b1892019c91b1925bfc7ab4114e15042b5001459c6cb008faf1688 SHA512 5605e07f718424b11adbd14907cb371b6c203565542731aedcaa647cc82fb6b706aed51c09766ae98cbf9a289f074d10b63392efb76783a0accc295b48afb72c WHIRLPOOL 4a2b65a81f31bf33ba26a6d9f65b3df294b30fe72288cb570765d67edcd7188d15b27a909f070d99daa574fba3ed9e866965925f45d55efbb4a48587ac8784a5 +EBUILD go-fuse-0_p20150422.ebuild 1175 SHA256 ce8d7b9ad2bcb91734688300f5a8097080d3b1b515dfcbbf39c12a2199963b06 SHA512 501d9403f7505622b1c6671db51d7c7ad2e417d30d3de68adfe9c6c2d04ddb67b6f3457fab94f4180f6b8d1794fbbc5ddd0d1e2b535ba73272ba9e9e53510a90 WHIRLPOOL 0ed2fd86f6882801eaaa9175150978d167ae307fe4c088901a8c30ff585ca9ab1d37beeca4dc2fa2cfed6b54a8b1fc9f9ac4865031b287d4d8494043bea88b8b +EBUILD go-fuse-9999.ebuild 1266 SHA256 def0e6356d3cbb3d205fe625947c9a9dfbb8a44233197d7ca7b1d9faf906fa38 SHA512 34ad9860ee72c0a8555be7c232eb3526923326ac1328536cbe1040ac42825a107a82dad06b32eec93dcfda15cc4db1868f5dee8964eca10a3d00fae9d8c9734e WHIRLPOOL bdf8061b2c12a408adb25bedd41b94b76fab437b4d1144d05727c92dc5f890ce4f918a6fdd8e74c891e0cbaace453ab360dd21c469e9d64e1167affeab667adf +MISC ChangeLog 2626 SHA256 ee6c88b4441d9a3bf996f6013638db13b65b89fa8aad3b215f3b7ba49b9b5a94 SHA512 ee21fc04b3c31c590e4f38b6a570d8c58cdf6896457e1034656184e96f65db4fc81823bce80ddadf66de94fbddefb819339b0ebf1c3c3ada999ba38f9cdc868d WHIRLPOOL 68ab78d7377a940b04dd7ace47a6a80555062961503036135f43fbfb40d1262ace9a313ad3215035dfd6c5fa5d264b8414fb1c63f45bb224cc34726a818a0c61 +MISC ChangeLog-2015 2286 SHA256 78c72ea19a2f3a259b20d46c3016bfae7afd139d50c4729944889dd504a131ea SHA512 cbec2078893b3f335871cbf43d77c5e72408b4732aac9cb83df530dd79627ed4903a55b3c7e54cb49586f4ad41c5840c9a85997fa9bfb1ba590474c60ac1073c WHIRLPOOL 36993f563f326aa80828e4fdf7cbad4b6c50cce7dd2b84ac781c84bf620a592d6154bb4ab1321ef113b63c063d039659675e7a493314d9b49f9f5c550c8cce50 +MISC metadata.xml 336 SHA256 76f18f1269cb3f17a315f8ef696ccf53fbef8c1f26f3cb2079ce9ad8db755f2f SHA512 d8919ea0b18f378d1dfcae8879976485da1fe27d700fbad0006a9e835a4e87ddae1e91703be9d6ec6d8232737049805f57adf93d9cebbe64c7ad82bf1fed7373 WHIRLPOOL cee2c181c52dfea998ff7f2d73a82ae8ece8f8e1551209667769d6e9ef28c36ad396ac4e4d49357a054ca23db6574f8b77cadd34d9862cbe2c0947dcae675075 diff --git a/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild b/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild new file mode 100644 index 000000000000..b697e9c46d3b --- /dev/null +++ b/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +GO_PN=github.com/hanwen/${PN} +EGIT_COMMIT="8c85ded140ac1889372a0e22d8d21e3d10a303bd" + +HOMEPAGE="https://${GO_PN}" +DESCRIPTION="FUSE bindings for Go" +SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=">=dev-lang/go-1.3" +RDEPEND="" + +RESTRICT="strip" + +S=${WORKDIR} + +src_unpack() { + default_src_unpack + mkdir -p src/${GO_PN%/*} || die + mv ${PN}-${EGIT_COMMIT} src/${GO_PN} || die +} + +src_prepare() { + sed -e "s:\(go \${target}\)\(.*\)$:\\1 -x \\2:" \ + -e 's:^for target in "clean" "install" ; do$:for target in "install" ; do:' \ + -e '17,26d' \ + src/${GO_PN}/all.bash > src/${GO_PN}/all.bash.patched || die +} + +src_compile() { + # Create a filtered GOROOT tree out of symlinks, + # excluding go-fuse, for bug #503324. + cp -sR /usr/lib/go goroot || die + rm -rf goroot/src/${GO_PN} || die + rm -rf goroot/pkg/linux_${ARCH}/${GO_PN} || die + CGO_CFLAGS="${CFLAGS}" GOROOT="${WORKDIR}/goroot" GOPATH="${WORKDIR}" \ + bash src/${GO_PN}/all.bash.patched || die +} + +src_install() { + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go + doins -r pkg + insinto /usr/lib/go/src + rm src/${GO_PN}/all.bash.patched || die + egit_clean src/${GO_PN} + doins -r src/* +} diff --git a/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild b/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild new file mode 100644 index 000000000000..894c8c631d8b --- /dev/null +++ b/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +GO_PN=github.com/hanwen/${PN} +EGIT_COMMIT="ffed29ec8b88f61c1b8954134cc48ef03bb26ce1" + +HOMEPAGE="https://${GO_PN}" +DESCRIPTION="FUSE bindings for Go" +SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=">=dev-lang/go-1.3" +RDEPEND="" + +RESTRICT="strip" + +src_unpack() { + default_src_unpack + mkdir -p "${S}/src/${GO_PN%/*}" || die + mv ${PN}-${EGIT_COMMIT} "${S}/src/${GO_PN}" || die + egit_clean +} + +call_go() { + local d + for d in fuse fuse/pathfs zipfs unionfs; do + GOROOT="${GOROOT}" GOPATH="${S}" \ + go "${1}" -v -x -work ${GO_PN}/${d} || die + done +} + +src_compile() { + # Create a filtered GOROOT tree out of symlinks, + # excluding go-fuse, for bug #503324. + GOROOT="${WORKDIR}/goroot" + cp -sR /usr/lib/go "${GOROOT}" || die + rm -rf "${GOROOT}/src/${GO_PN}" || die + rm -rf "${GOROOT}/pkg/linux_${ARCH}/${GO_PN}" || die + call_go build +} + +src_install() { + call_go install + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go + doins -r pkg src +} diff --git a/dev-libs/go-fuse/go-fuse-9999.ebuild b/dev-libs/go-fuse/go-fuse-9999.ebuild new file mode 100644 index 000000000000..2627a21a5a42 --- /dev/null +++ b/dev-libs/go-fuse/go-fuse-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit git-r3 + +DESCRIPTION="native bindings for the FUSE kernel module" +HOMEPAGE="https://github.com/hanwen/go-fuse" +EGIT_REPO_URI="https://github.com/hanwen/go-fuse.git" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND=">=dev-lang/go-1.3" +RDEPEND="" + +RESTRICT="strip" + +GO_PN="github.com/hanwen/${PN}" +EGIT_CHECKOUT_DIR="${S}/src/${GO_PN}" + +export GOPATH="${S}" + +src_compile() { + local d +#no examples right now +# example/hello example/loopback example/zipfs \ +# example/multizip example/unionfs example/memfs \ +# example/autounionfs ; \ +#or tests +#fuse/test + for d in fuse fuse/pathfs zipfs unionfs; do + go build -v -x -work ${GO_PN}/${d} || die + done +} + +src_install() { + local d + for d in fuse fuse/pathfs zipfs unionfs; do + go install -v -x -work ${GO_PN}/${d} || die + done + + insinto /usr/lib/go/ + doins -r "${S}/pkg" + insinto "/usr/lib/go/src/${GO_PN}/" + #for this ebuild, to fix bug #503324 I have limited what is installed + #another possible solution would have been using adddeny to the + #hide installed filed during build + egit_clean "${S}/src/${GO_PN}" + doins -r "${S}/src/${GO_PN}/fuse" + doins -r "${S}/src/${GO_PN}/splice" +} diff --git a/dev-libs/go-fuse/metadata.xml b/dev-libs/go-fuse/metadata.xml new file mode 100644 index 000000000000..90487b3d8399 --- /dev/null +++ b/dev-libs/go-fuse/metadata.xml @@ -0,0 +1,11 @@ + + + + + zerochaos@gentoo.org + Rick Farina + + + hanwen/go-fuse + + -- cgit v1.2.3