# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" inherit eutils MY_PV="" 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." 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="" RDEPEND="${DEPEND} X? ( >=x11-libs/motif-2.3 )" # ~virtual/libstdc++-3.3" BASEDIR="/opt/fullprof" src_unpack() { mkdir "${S}" cd "${S}" unpack "FullProf_Suite_May2012_Lin.tgz" echo "FULLPROF=\"${BASEDIR}\"" > 99fullprof echo "PATH=\"${BASEDIR}\"" >> 99fullprof } src_install() { #mkdir -p ext_func/libs #mv bin/*.so ext_func/libs doenvd "${S}"/99fullprof mkdir -p "${D}/${BASEDIR}" mv "${S}"/* "${D}/${BASEDIR}" } pkg_postinst() { env-update } pkg_postrm() { env-update }