jlec        15/03/11 14:54:19

  Modified:             ChangeLog
  Added:                eden-5.3-r2.ebuild
  Removed:              eden-5.3.ebuild
  Log:
  Fix for format-security, bug #542276; move to new python eclasses and EAPI=5
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
B9D4F231BD1558AB!)

Revision  Changes    Path
1.20                 sci-chemistry/eden/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/eden/ChangeLog?rev=1.20&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/eden/ChangeLog?rev=1.20&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/eden/ChangeLog?r1=1.19&r2=1.20

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/eden/ChangeLog,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ChangeLog   19 Feb 2013 15:43:19 -0000      1.19
+++ ChangeLog   11 Mar 2015 14:54:19 -0000      1.20
@@ -1,6 +1,12 @@
 # ChangeLog for sci-chemistry/eden
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/eden/ChangeLog,v 1.19 
2013/02/19 15:43:19 jlec Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/eden/ChangeLog,v 1.20 
2015/03/11 14:54:19 jlec Exp $
+
+*eden-5.3-r2 (11 Mar 2015)
+
+  11 Mar 2015; Justin Lecher <[email protected]> +eden-5.3-r2.ebuild,
+  +files/eden-5.3-format-security.patch, -eden-5.3.ebuild:
+  Fix for format-security, bug #542276; move to new python eclasses and EAPI=5
 
   19 Feb 2013; Justin Lecher <[email protected]> eden-5.3-r1.ebuild,
   metadata.xml:
@@ -70,4 +76,3 @@
   +files/makefile-fixes.patch, +metadata.xml, +eden-5.3.ebuild:
   A crystallographic real-space electron-density refinement and optimization
   program.
-



1.1                  sci-chemistry/eden/eden-5.3-r2.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/eden/eden-5.3-r2.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/eden/eden-5.3-r2.ebuild?rev=1.1&content-type=text/plain

Index: eden-5.3-r2.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/eden/eden-5.3-r2.ebuild,v 1.1 
2015/03/11 14:54:19 jlec Exp $

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit eutils multilib python-r1 toolchain-funcs

MY_P="${PN}_V${PV}"

DESCRIPTION="A crystallographic real-space electron-density refinement and 
optimization program"
HOMEPAGE="http://www.gromacs.org/pipermail/eden-users/";
SRC_URI="mirror://gentoo/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="double-precision"

RDEPEND="
        sci-libs/fftw:2.1
        sci-libs/gsl"
DEPEND="${RDEPEND}
        virtual/pkgconfig"

S="${WORKDIR}/${PN}"

SRC="${S}/source"

pkg_setup() {
        export EDENHOME="${EPREFIX}/usr/$(get_libdir)/${PN}"
}

src_prepare() {
        epatch \
                "${FILESDIR}"/${PV}-makefile-fixes.patch \
                "${FILESDIR}"/${P}-impl-dec.patch \
                "${FILESDIR}"/${P}-format-security.patch

        sed -i \
                -e "s:^\(FFTW.*=\).*:\1 ${EPREFIX}/usr:g" \
                -e "s:^\(LIB.*=.*\$(FFTW)/\).*:\1$(get_libdir):g" \
                -e "s:^\(BIN.*=\).*:\1 ${D}usr/bin:g" \
                -e "s:^\(CFLAGS.*=\).*:\1 ${CFLAGS}:g" \
                -e "s:-lgsl -lgslcblas:$($(tc-getPKG_CONFIG) --libs gsl):g" \
                ${SRC}/Makefile || die

        if ! use double-precision; then
                sed -i -e "s:^\(DOUBLESWITCH.*=\).*:\1 OFF:g" ${SRC}/Makefile 
|| die
                EDEN_EXE="s${PN}"
        else
                EDEN_EXE="d${PN}"
        fi
}

src_compile() {
        emake CC=$(tc-getCC) -C ${SRC}
}

src_install() {
        emake -C ${SRC} install

        python_foreach_impl python_newscript python/${PN}.py i${PN}
        python_foreach_impl python_domodule python/FileListDialog.py

        rm python/*py || die
        insinto ${EDENHOME}/python
        doins python/*

        insinto ${EDENHOME}/help
        doins help/*

        insinto ${EDENHOME}/tools
        doins tools/*

        dodoc manual/UserManual.pdf

        cat >> "${T}"/60${PN} <<- EOF
        EDENHOME="${EDENHOME}"
        EOF

        doenvd "${T}"/60${PN}

        dosym ${EDEN_EXE} /usr/bin/${PN}
}




Reply via email to