public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
From: Christopher Schwan <cschwan@students.uni-mainz.de>
To: <gentoo-science@lists.gentoo.org>
Subject: Re: [gentoo-science] sage-on-gentoo: how to do sage development process on Gentoo
Date: Fri, 17 Jan 2014 16:59:23 +0100	[thread overview]
Message-ID: <2738416.bvEQ4p0WqA@cschwan-laptop> (raw)
In-Reply-To: <52D94BC0.5030407@equaeghe.nospammail.net>

[-- 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 --]

      reply	other threads:[~2014-01-17 15:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Christopher Schwan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2738416.bvEQ4p0WqA@cschwan-laptop \
    --to=cschwan@students.uni-mainz.de \
    --cc=gentoo-science@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox