public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-science] sage-on-gentoo: how to do sage development process on Gentoo
  @ 2014-01-17 15:59 99% ` Christopher Schwan
  0 siblings, 0 replies; 1+ results
From: Christopher Schwan @ 2014-01-17 15:59 UTC (permalink / raw
  To: gentoo-science

[-- Attachment #1: Type: text/plain, Size: 1485 bytes --]

On Friday 17 January 2014 16:26:56 Erik Quaeghebeur wrote:
> Hi,
> 
> 
> For development on Sage (such as reviewing), is there a gentoo-specific
> setup/approach best to follow?
> 
> So, I'd like to know the Gentoo-specifics for
> <http://www.sagemath.org/doc/developer/walk_through.html>.
> Specifically, is it possible to set up a local/personal live ebuild that
> points to the current local/personal branch of the sage source, so that
> building allows me to test the changes?
> 
> 
> Thanks,
> 
> Erik

I think in that case you unmask and use the 9999 ebuilds that will fetch the 
latest sources via git. These ebuilds inherit the git-2 eclass[1] that let you 
override the repository, branch and commit via the

    packagename_LIVE_REPO
    packagename_LIVE_BRANCH
    packagename_LIVE_COMMIT

environment variables; packagename should just be the ebuild name with hyphens 
replaced by underscores: sage, sage_clib, sage_baselayout, sage_doc.

If you need to apply some additional patches, e.g. for gentoo specific 
changes, use the epatch_user[2] functionality and put the patches under

    /etc/portage/patches/sci-mathematics/<PF|P|PN>[:SLOT]/

e.g.

    /etc/portage/patches/sci-mathematics/sage-9999/fix-directory.patch

(patch must end with ".patch"). This way you should not need to setup a new 
overlay, maybe a little script that sets all environment variables will be 
useful.

Cheers,
Christopher

[1] emerge eclass-manpages ; man git-2.eclass
[2] man eutils.eclass

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-01-17 15:26     [gentoo-science] sage-on-gentoo: how to do sage development process on Gentoo Erik Quaeghebeur
2014-01-17 15:59 99% ` Christopher Schwan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox