Summary: | [science overlay] sci-physics/fullprof-bin (New package) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jan Marten Simons <marten> |
Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | jstein, sci-physics |
Priority: | Normal | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.ill.eu/sites/fullprof/index.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | fullprof-bin-2012.5.ebuild |
Description
Jan Marten Simons
2012-11-16 12:46:08 UTC
Created attachment 329660 [details]
fullprof-bin-2012.5.ebuild
added the ebuild.
Some things might be done more elegantly.
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 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 pull request sent: https://github.com/gentoo-science/sci/pull/28 |