diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-07-23 12:29:01 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-07-23 12:29:01 +0000 |
commit | 882266b4323aaa8145c7ebaea21f80bd5f2c92e5 (patch) | |
tree | 88606de844e7d5acbff9b798fbfa7a13eaed3968 | |
parent | ppc stable wrt #333087 (diff) | |
download | gentoo-2-882266b4323aaa8145c7ebaea21f80bd5f2c92e5.tar.gz gentoo-2-882266b4323aaa8145c7ebaea21f80bd5f2c92e5.tar.bz2 gentoo-2-882266b4323aaa8145c7ebaea21f80bd5f2c92e5.zip |
Fix for missing StripXml, #375903
(Portage version: 2.2.0_alpha46/cvs/Linux x86_64)
-rw-r--r-- | sci-chemistry/balbes/ChangeLog | 9 | ||||
-rw-r--r-- | sci-chemistry/balbes/balbes-1.0.0_p100317-r2.ebuild (renamed from sci-chemistry/balbes/balbes-1.0.0_p100317-r1.ebuild) | 28 | ||||
-rw-r--r-- | sci-chemistry/balbes/files/pyxml-0.8.4-python-2.6.patch | 28 | ||||
-rw-r--r-- | sci-chemistry/balbes/metadata.xml | 8 |
4 files changed, 65 insertions, 8 deletions
diff --git a/sci-chemistry/balbes/ChangeLog b/sci-chemistry/balbes/ChangeLog index 3c56c20d2353..eb69efa205ab 100644 --- a/sci-chemistry/balbes/ChangeLog +++ b/sci-chemistry/balbes/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-chemistry/balbes # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/balbes/ChangeLog,v 1.8 2011/06/21 16:05:18 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/balbes/ChangeLog,v 1.9 2011/07/23 12:29:01 jlec Exp $ + +*balbes-1.0.0_p100317-r2 (23 Jul 2011) + + 23 Jul 2011; Justin Lecher <jlec@gentoo.org> + +files/pyxml-0.8.4-python-2.6.patch, -balbes-1.0.0_p100317-r1.ebuild, + +balbes-1.0.0_p100317-r2.ebuild, metadata.xml: + Fix for missing StripXml, #375903 21 Jun 2011; Justin Lecher <jlec@gentoo.org> balbes-1.0.0_p100317-r1.ebuild: Add dependency on virtual/fortran diff --git a/sci-chemistry/balbes/balbes-1.0.0_p100317-r1.ebuild b/sci-chemistry/balbes/balbes-1.0.0_p100317-r2.ebuild index e30fc1e2c0f3..bd15687e2870 100644 --- a/sci-chemistry/balbes/balbes-1.0.0_p100317-r1.ebuild +++ b/sci-chemistry/balbes/balbes-1.0.0_p100317-r2.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/balbes/balbes-1.0.0_p100317-r1.ebuild,v 1.5 2011/06/21 16:05:18 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/balbes/balbes-1.0.0_p100317-r2.ebuild,v 1.1 2011/07/23 12:29:01 jlec Exp $ -EAPI="3" +EAPI=3 CCP4VER="6.1.3" PYTHON_DEPEND="2" @@ -20,6 +20,8 @@ KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" LICENSE="ccp4" IUSE="" +# bundled PyXML is modified and cannot be replaced + COMMON_DEPEND=" sci-libs/ccp4-libs virtual/fortran" @@ -39,23 +41,43 @@ pkg_setup() { src_unpack() { unpack ${P}.tar.gz - tar xvzf "${DISTDIR}"/ccp4-${CCP4VER}-core-src.tar.gz ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/bin_py/balbes + tar xvzf "${DISTDIR}"/ccp4-${CCP4VER}-core-src.tar.gz \ + ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/bin_py \ + ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/PyXML-0.8.4 python_convert_shebangs 2 "${WORKDIR}"/ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/bin_py/balbes } src_prepare() { mkdir "${WORKDIR}"/bin || die epatch "${FILESDIR}"/${PV}-makefile.patch + cd "${WORKDIR}"/ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/ + epatch "${FILESDIR}"/pyxml-0.8.4-python-2.6.patch } src_compile() { emake \ BLANC_FORT="$(tc-getFC) ${FFLAGS}" || die + cd "${WORKDIR}"/ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/PyXML-0.8.4 + find build -delete + $(PYTHON) setup.py build + find xml/xslt test -delete } src_install() { + insinto /usr/share/balbes/BALBES_0.0.1/ + doins -r \ + "${WORKDIR}"/ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/bin_py \ + "${WORKDIR}"/ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/PyXML-0.8.4 || die dobin \ "${WORKDIR}"/bin/* \ "${WORKDIR}"/ccp4-${CCP4VER}/share/balbes/BALBES_0.0.1/bin_py/balbes \ || die } + +pkg_postinst() { + python_mod_optimize /usr/share/balbes/BALBES_0.0.1/{bin_py,PyXML-0.8.4} +} + +pkg_postrm() { + python_mod_cleanup /usr/share/balbes/BALBES_0.0.1/{bin_py,PyXML-0.8.4} +} diff --git a/sci-chemistry/balbes/files/pyxml-0.8.4-python-2.6.patch b/sci-chemistry/balbes/files/pyxml-0.8.4-python-2.6.patch new file mode 100644 index 000000000000..d29b0b6a9eb2 --- /dev/null +++ b/sci-chemistry/balbes/files/pyxml-0.8.4-python-2.6.patch @@ -0,0 +1,28 @@ +diff -rupN PyXML-0.8.4-old/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py +--- PyXML-0.8.4-old/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2008-12-15 16:54:36.000000000 +0900 ++++ PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2008-12-15 16:57:02.000000000 +0900 +@@ -24,8 +24,8 @@ class ParsedAbbreviatedAbsoluteLocationP + self._rel = rel + nt = ParsedNodeTest.ParsedNodeTest('node', '') + ppl = ParsedPredicateList.ParsedPredicateList([]) +- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') +- self._step = ParsedStep.ParsedStep(as, nt, ppl) ++ as_ = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') ++ self._step = ParsedStep.ParsedStep(as_, nt, ppl) + return + + def evaluate(self, context): +diff -rupN PyXML-0.8.4-old/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py +--- PyXML-0.8.4-old/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2008-12-15 16:54:36.000000000 +0900 ++++ PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2008-12-15 16:58:58.000000000 +0900 +@@ -28,8 +28,8 @@ class ParsedAbbreviatedRelativeLocationP + self._right = right + nt = ParsedNodeTest.ParsedNodeTest('node','') + ppl = ParsedPredicateList.ParsedPredicateList([]) +- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') +- self._middle = ParsedStep.ParsedStep(as, nt, ppl) ++ as_ = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') ++ self._middle = ParsedStep.ParsedStep(as_, nt, ppl) + + def evaluate(self, context): + res = [] diff --git a/sci-chemistry/balbes/metadata.xml b/sci-chemistry/balbes/metadata.xml index deb657090e7d..4bb6be5e5d0c 100644 --- a/sci-chemistry/balbes/metadata.xml +++ b/sci-chemistry/balbes/metadata.xml @@ -2,10 +2,10 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>sci-chemistry</herd> -<maintainer> - <email>jlec@gentoo.org</email> -</maintainer> -<longdescription> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> + <longdescription> BALBES is a system for solving protein structures using x-ray crystalographic data. Molecular Replacement(MR) is its core scientific method. BALBES aims to integrate all components, |