Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309015 - sci-biology/biopython-9999: new ebuild to build from git master
Summary: sci-biology/biopython-9999: new ebuild to build from git master
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2010-03-11 18:01 UTC by Martin Mokrejš
Modified: 2011-11-18 15:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
biopython-9999.ebuild (biopython-9999.ebuild,1.66 KB, text/plain)
2010-03-11 18:01 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2010-03-11 18:01:09 UTC
Biopython is actively and quickly being developed and I sometimes need the trunk. I hacked an ebuild which works for me. However, somehow the distutils portage stuff adds "-2.6" to the "${S}" string because I have python 2.6. If somebody could fix the ugly hack it would be great and could be committed into the tree. Thanks! ;-)
Comment 1 Martin Mokrejš 2010-03-11 18:01:56 UTC
Created attachment 223177 [details]
biopython-9999.ebuild

This is based on biopython-1.53.ebuild
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-12 16:12:06 UTC
You don't need explicit src_unpack().
Inheriting of git eclass as the last eclass causes that git_src_prepare() overrides distutils_src_prepare() as implementation of src_prepare(), so you should define explicit src_prepare():
src_prepare() {
	git_src_prepare
	distutils_src_prepare
}
Comment 3 Martin Mokrejš 2010-03-12 16:49:24 UTC
Thanks, that works:

>>> Emerging (1 of 1) sci-biology/biopython-9999
 * checking ebuild checksums ;-) ...                                                                                                                                                                                           [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                          [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                         [ ok ]
 * CPV:  sci-biology/biopython-9999
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux mysql userland_GNU x86
>>> Unpacking source...
 * GIT update -->
 *    repository:               git://github.com/biopython/biopython.git
 *    at the commit:            a3c6b432e7ea2379febd5c0e5750222107f0d908
 *    branch:                   master
 *    storage directory:        "/usr/portage/distfiles/git-src/biopython"
Initialized empty Git repository in /var/tmp/portage/sci-biology/biopython-9999/work/biopython-9999/.git/
>>> Unpacked to /var/tmp/portage/sci-biology/biopython-9999/work/biopython-9999
>>> Source unpacked in /var/tmp/portage/sci-biology/biopython-9999/work
>>> Preparing source in /var/tmp/portage/sci-biology/biopython-9999/work/biopython-9999 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-biology/biopython-9999/work/biopython-9999 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-biology/biopython-9999/work/biopython-9999 ...
 * Building of sci-biology/biopython-9999 with CPython 2.6...
python2.6 setup.py build -b build 


Anyway, in case one would want to apply a patch in src_unpack(), what to do with the CPything thing? ;-)
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2010-03-21 19:18:32 UTC
Perhaps something for the overlay
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2010-06-25 09:25:51 UTC
Martin, perhaps you should get access to the overlay, so that you can place your contributions there.