Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452054 - sci-astronomy/pyraf-2.0 - PyRAF is a command language for running IRAF tasks that is based on the Python scripting language.
Summary: sci-astronomy/pyraf-2.0 - PyRAF is a command language for running IRAF tasks ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-14 15:39 UTC by Anurag Garg
Modified: 2013-01-30 18:00 UTC (History)
2 users (show)

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


Attachments
pyraf ebuild (pyraf-2.0.ebuild,1.06 KB, text/plain)
2013-01-14 15:39 UTC, Anurag Garg
Details
Stsci-tools ebuild. it is dependency for pyraf (stsci-tools-2.0.ebuild,951 bytes, application/octet-stream)
2013-01-14 15:44 UTC, Anurag Garg
Details
pyraf ebuild (with suggested changes) (pyraf-2.0.ebuild,1.06 KB, text/plain)
2013-01-16 14:19 UTC, Anurag Garg
Details
Stsci-tools ebuild. it is dependency for pyraf (with suggested changes) (stsci-tools-2.0.ebuild,899 bytes, text/plain)
2013-01-16 14:21 UTC, Anurag Garg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anurag Garg 2013-01-14 15:39:09 UTC
Created attachment 335626 [details]
pyraf ebuild

Hi!

I am Anurg Garg, from India. I am Physics teacher and amatuer astronomer. I am also Free Software hobbist and contributor (Hindi Transtor in Gnome and Hindi Translation coordinator for Xfce). For me IRAF and its python module pyraf is one of the most import programs available in image processing.

I first started with the ebuild for IRAF, but my lack of experience in ebuild programing and IRAF's non-conventional way of installation (using csh bsed script as installation medium and non-availability of makefiles) made it hell difficult for me to got it done. So, I installled IRAF by hand and moved to ebuild for Pyraf.

Please find attached pyraf-2.0.ebuild so that it will compile against python-2.7
Its essential dependency stsci-tools will be submitted as a saparate bug.

PyRAF is a command language for running IRAF tasks that is based on the Python scripting language. It gives users the ability to run IRAF tasks in an environment that has all the power and flexibility of Python. PyRAF can be installed along with an existing IRAF installation; users can then choose to run either PyRAF or the IRAF CL.

PyRAF is part of the stsci_python package of astronomical data analysis tools, and is a product of the Science Software Branch at the Space Telescope Science Institute.

The current release of PyRAF is v2.0 and can be downloaded from the stand-alone PyRAF download page - http://www.stsci.edu/institute/software_hardware/pyraf.

I suggest sci-astronomy/pyraf.
Comment 1 Anurag Garg 2013-01-14 15:44:54 UTC
Created attachment 335628 [details]
Stsci-tools ebuild. it is dependency for pyraf

Please find attached stsci-tools-2.0.ebuild so that pyraf compile against python-2.7

It is a essential dependency for pyraf installation and it is provided with the source code of pyraf, and do not have saparate independent installation source code. 

In the ebuild name of the stsci-tools I've used a version number 2.0, just to be consistent with the naming convention and there is no version satisfied for this program. It is provided along with pyraf-2.0 and has to be installed prior to pyraf. Also, I could not handle installation of both the programs from one ebuild (which would be more suitable way of installing, as both comes from same source code), hence formed to different ebuilds for both and added stsci-tools as dependency in pyraf ebuild. Any help suggestion in this regard is most welcome.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-14 23:05:05 UTC
> # Copyright 1999-2012 Gentoo Foundation

You can use 2013 now, the header for new ebuilds should be the same as the skel.ebuild file in Portage.

> EAPI=4

EAPI=5 has recently became stable.

> LICENSE="BSD Similar"

There is no "Similar" license in the licenses directory of Portage.

> KEYWORDS="amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"

Packages need to be unstable for some time before you can consider them stable, otherwise you have the risk of breaking the system of a large amount of users if something goes wrong...

>src_compile() {
>    cd "${S}"
>    distutils_src_compile
>}

You can leave out this function since distutils' src_compile will do this by default as you inherit it.
Comment 3 Anurag Garg 2013-01-16 14:19:51 UTC
Created attachment 335822 [details]
pyraf ebuild (with suggested changes)
Comment 4 Anurag Garg 2013-01-16 14:21:27 UTC
Created attachment 335824 [details]
Stsci-tools ebuild. it is dependency for pyraf (with suggested changes)

I am attaching stsci-tools ebuild with suggested changes.

Kindly find it with in the atachment
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2013-01-30 18:00:13 UTC
it could be very useful, unfortunately i think it should depend on iraf, which is not in the tree, and is quite a beast to do an ebuild.