Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443512 - [science overlay] sci-physics/fullprof-bin (New package)
Summary: [science overlay] sci-physics/fullprof-bin (New package)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.ill.eu/sites/fullprof/inde...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2012-11-16 12:46 UTC by Jan Marten Simons
Modified: 2013-09-14 22:39 UTC (History)
2 users (show)

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


Attachments
fullprof-bin-2012.5.ebuild (fullprof-bin-2012.5.ebuild,1.15 KB, text/plain)
2012-11-16 12:47 UTC, Jan Marten Simons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Marten Simons 2012-11-16 12:46:08 UTC
I've written an ebuild for the fullprof neutron/xrd powder suite: http://www.ill.eu/sites/fullprof/index.html as there is still no sci-crystallography category it might be best to put this into sci-geosciences.

Reproducible: Always

Steps to Reproduce:
1. copy ebuild into overlay
2. ebuild ... digest
3. emerge fullprof-bin
Comment 1 Jan Marten Simons 2012-11-16 12:47:32 UTC
Created attachment 329660 [details]
fullprof-bin-2012.5.ebuild

added the ebuild.

Some things might be done more elegantly.
Comment 2 Jeroen Roovers gentoo-dev 2012-11-16 16:09:50 UTC
DESCRIPTION="Fullprof is a programm suite mainly developed for Rietveld analysis
(structure profile refinement) of neutron (constant wavelength, time of flight,
nuclear and magnetic scattering) or X-ray powder diffraction data collected at
constant or variable step in scattering angle 2theta."

That's way too long.
Comment 3 Christoph Junghans gentoo-dev 2012-11-16 18:00:36 UTC
Comment on attachment 329660 [details]
fullprof-bin-2012.5.ebuild

># Copyright 1999-2010 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>EAPI="4"
>
>inherit eutils
Where do you need eutils?
>
>MY_PV=""
unused, remove.
>
>DESCRIPTION="Fullprof is a programm suite mainly developed for Rietveld analysis
>(structure profile refinement) of neutron (constant wavelength, time of flight,
>nuclear and magnetic scattering) or X-ray powder diffraction data collected at
>constant or variable step in scattering angle 2theta."
Too long.
>
>HOMEPAGE="http://www.ill.eu/sites/fullprof/index.html"
>SRC_URI="http://www.ill.eu/sites/fullprof/downloads/FullProf_Suite_May2012_Lin.tgz"
>LICENSE="freedist"
>SLOT="0"
>KEYWORDS="~x86 ~amd64"
>IUSE="+X"
>
>DEPEND=""
Remove
>RDEPEND="${DEPEND}
Remove ${DEPEND} as it is empty
>	X? ( >=x11-libs/motif-2.3 )"
>#	~virtual/libstdc++-3.3"
why?
>
>BASEDIR="/opt/fullprof"
>
>src_unpack() {
>	mkdir "${S}"
>	cd "${S}"
>	unpack "FullProf_Suite_May2012_Lin.tgz"
Should be done automatically by EAPI=4, remove

>        echo "FULLPROF=\"${BASEDIR}\"" > 99fullprof
Move this line to src_install
>        echo "PATH=\"${BASEDIR}\"" >> 99fullprof
Better link binary (/opt/bin is in the PATH already)
dosym "${BASEDUR}"/XXX /opt/bin/XXX
>}
>
>src_install() {
>	#mkdir -p ext_func/libs
>	#mv bin/*.so ext_func/libs
Why?
>
>        doenvd "${S}"/99fullprof
>	mkdir -p "${D}/${BASEDIR}"
mkdir ... || die
>	mv "${S}"/* "${D}/${BASEDIR}"
mv ... || die
>
>}
>
>pkg_postinst() {
>	env-update
Remove, is done automatically
>}
>
>pkg_postrm() {
>	env-update
Remove, is done automatically
>}

After improving the ebuild:
- fork https://github.com/gentoo-science/sci
- add your ebuild
- make a pull request
Comment 4 Jan Marten Simons 2012-11-19 15:34:40 UTC
pull request sent:
https://github.com/gentoo-science/sci/pull/28