Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
where do package assets go?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 530

PostPosted: Sat Nov 18, 2017 8:59 am    Post subject: where do package assets go? Reply with quote

I'm trying to write a dgraph.io ebuild

Code:

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6
SLOT="0"
KEYWORDS="~amd64"
SRC_URI="https://github.com/dgraph-io/dgraph/releases/download/v${PV}/dgraph-linux-amd64-v${PV}.tar.gz"

S="${WORKDIR}"

src_install(){
        exeinto /usr/bin
        doexe ./*
}


but this package also has a separate assets package
https://github.com/dgraph-io/dgraph/releases
https://github.com/dgraph-io/dgraph/releases/download/v0.9.1/assets.tar.gz
which apparently should be extracted to the binary dir
The binary currently doesn't seem to have an option to specify the assets root dir (will open an issue)

Code:

switch assets_dir_option_present {
case true:
  where would I put those assets in Gentoo?
case false:
  where would I put the binary and assets combo?
  and how would I require 2 packages in an ebuild and have them extracted into the same directory?
}


Or should I maybe have the assets as a separate package and let a new `dgraph-ui-bin` package on `dgraph-bin`?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum