diff options
author | 2012-10-26 07:34:34 -0400 | |
---|---|---|
committer | 2012-10-26 07:34:34 -0400 | |
commit | d66492d8ca7c7dad0d59dc65804e7839b70db530 (patch) | |
tree | 2d2cda2dfd213094801a649eea517fa0e518a0eb /dev-go | |
parent | Proof-of-Concept on packaging go packages (diff) | |
download | neurogeek-d66492d8ca7c7dad0d59dc65804e7839b70db530.tar.gz neurogeek-d66492d8ca7c7dad0d59dc65804e7839b70db530.tar.bz2 neurogeek-d66492d8ca7c7dad0d59dc65804e7839b70db530.zip |
Tweaks. Testing possible global variables for GO pkgs
Diffstat (limited to 'dev-go')
-rw-r--r-- | dev-go/godis/godis-0.1.ebuild | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/dev-go/godis/godis-0.1.ebuild b/dev-go/godis/godis-0.1.ebuild index d26020f..8236da3 100644 --- a/dev-go/godis/godis-0.1.ebuild +++ b/dev-go/godis/godis-0.1.ebuild @@ -21,17 +21,16 @@ RDEPEND="${DEPEND}" S="${WORKDIR}/simonz05-${PN}-${REV}" +GOROOT="${ED}usr/$(get_libdir)/go" +GOPKG="${PN}" + src_prepare() { if use examples; then - pushd "${S}/redis/examples" 2> /dev/null - for src in $(find . -name \*.go) do sed -r "s/github.com\/simonz05\///" -i ${src} done - - popd 2> /dev/null fi } @@ -43,8 +42,8 @@ src_compile() { local build_dir gopath - build_dir="${D}/build" - gopath="${build_dir}/src/${PN}" + build_dir="${S}/build" + gopath="${build_dir}/src/${GOPKG}" mkdir -p $gopath ln -s ${S}/$1 $gopath @@ -65,13 +64,13 @@ src_compile() { src_install() { if use examples; then - insinto "/usr/share/docs/${PF}/examples" + insinto "/usr/share/docs/${PF}/example" doins redis/example/* rm -rf redis/example fi - insinto "/usr/$(get_libdir)/go/src/pkg/${PN}" + insinto "/usr/$(get_libdir)/go/src/pkg/${GOPKG}" doins -r redis } |