aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher (jlec) <jlec@j-schmitz.net>2009-05-29 19:56:20 +0200
committerJustin Lecher (jlec) <jlec@j-schmitz.net>2009-05-29 19:56:20 +0200
commit72b8665a418fd697fb8ff76b9fd9bc42a4452452 (patch)
treebd7baf38499ef4ba35a28842a5e8dcc1ac578819 /sci-libs
parentrefmac bump to refmac-5.5.0095 (diff)
downloadsci-72b8665a418fd697fb8ff76b9fd9bc42a4452452.tar.gz
sci-72b8665a418fd697fb8ff76b9fd9bc42a4452452.tar.bz2
sci-72b8665a418fd697fb8ff76b9fd9bc42a4452452.zip
old cctbx version removed
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cctbx/ChangeLog4
-rw-r--r--sci-libs/cctbx/Manifest3
-rw-r--r--sci-libs/cctbx/cctbx-2009.02.15.2320.ebuild193
3 files changed, 5 insertions, 195 deletions
diff --git a/sci-libs/cctbx/ChangeLog b/sci-libs/cctbx/ChangeLog
index 1e68e073a..c67f6f68a 100644
--- a/sci-libs/cctbx/ChangeLog
+++ b/sci-libs/cctbx/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 29 May 2009; Justin Lecher (jlec) <jlec@j-schmitz.net>
+ -cctbx-2009.02.15.2320.ebuild:
+ old version removed
+
*cctbx-2009.02.15.2320-r2 (09 Mar 2009)
09 Mar 2009; Justin Lecher (jlec) <jlec@j-schmitz.net> cctbx-2009.02.15.2320-r2.ebuild
diff --git a/sci-libs/cctbx/Manifest b/sci-libs/cctbx/Manifest
index 25a62a7d1..7f4b35eaa 100644
--- a/sci-libs/cctbx/Manifest
+++ b/sci-libs/cctbx/Manifest
@@ -2,6 +2,5 @@ AUX 2009.02.15.2320-sandbox-violations-chmod.patch 467 RMD160 11a55d71c9a238cf8c
DIST cctbx-2009.02.15.2320.tar.gz 12800622 RMD160 8d95db0054e8ba9378e46e9d5d2d7b333418eeb4 SHA1 1d3e5aad9d1c4fd6617295fc3346c079e7c758d9 SHA256 336946867246ed3cf7f697dc9bf0cc21443b7fb9600b24696b4d8d3cb5773200
EBUILD cctbx-2009.02.15.2320-r1.ebuild 5491 RMD160 0349912d11ea1d1f7f28024992b7b670780ed504 SHA1 3127c6c9c48af032c7b8e47e9bafe291aaad3581 SHA256 cec0f51a91fe6425673f73f74da9cc995736bb7bff09b0f48b165e820a43e1bc
EBUILD cctbx-2009.02.15.2320-r2.ebuild 4639 RMD160 69285fb2b9ef6207a8338e0ed6b335432b23c825 SHA1 fd65e7d76f45a4152fbfaaf286e14ee315edfc83 SHA256 21db2dcc51a47440950b854aa54e5f7612128bb0446e69a1877330af003668b7
-EBUILD cctbx-2009.02.15.2320.ebuild 5303 RMD160 6a61980f11d31b12d4969ff3c6cffbd8ad948e83 SHA1 5c51989b8eb061b6a8d98dc38479151c47c8dbf9 SHA256 e4d7836c7589176d88a62d165898f0b44e9f2596d914430324146ef80ed119d0
-MISC ChangeLog 1044 RMD160 c28d2931ca703aca834538b51ee62f0fb6c49d86 SHA1 8323a170646a9b0628fe7a76097dfc73590801fd SHA256 bd09f47657b5d8d24ea6d4be2e9a8b206754ad89e81f2986265febdd83fe2d40
+MISC ChangeLog 1157 RMD160 3053814c9ecea8856efee05eb0bfd11ccd47c083 SHA1 1b8e2c9dec4d965d2b372f6e64731a43b0be0961 SHA256 4a85a429eb8894f1a157bb341fb7781f5193512d323ef151aea35d7137521a03
MISC metadata.xml 438 RMD160 79ad38c94abc71ba32abccdcd670f2f6802c2df3 SHA1 1ebbff28f7e4d135b26b951b6111f6803f78413c SHA256 94d589a2836bffe732cdf993e9b38afc1cde4683a5e5669c44daf6b69595e8da
diff --git a/sci-libs/cctbx/cctbx-2009.02.15.2320.ebuild b/sci-libs/cctbx/cctbx-2009.02.15.2320.ebuild
deleted file mode 100644
index 33db62fd7..000000000
--- a/sci-libs/cctbx/cctbx-2009.02.15.2320.ebuild
+++ /dev/null
@@ -1,193 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-inherit toolchain-funcs python eutils
-
-MY_PV="${PV//./_}"
-
-DESCRIPTION="Computational Crystallography Toolbox"
-HOMEPAGE="http://cctbx.sourceforge.net/"
-SRC_URI="http://cci.lbl.gov/cctbx_build/results/${MY_PV}/${PN}_bundle.tar.gz -> ${P}.tar.gz"
-LICENSE="cctbx-2.0"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="minimal openmp threads"
-
-RDEPEND="!minimal? ( ( sci-chemistry/cns )
- x86? ( sci-chemistry/shelx )
- )"
-DEPEND="${RDEPEND}
- >=dev-util/scons-1.2"
-
-S="${WORKDIR}"
-MY_S="${WORKDIR}"/cctbx_sources
-MY_B="${WORKDIR}"/cctbx_build
-
-pkg_setup() {
- if use openmp &&
- [[ $(tc-getCC)$ == *gcc* ]] &&
- ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] ||
- ! built_with_use sys-devel/gcc openmp )
- then
- ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
- ewarn "If you want to build fftw with OpenMP, abort now,"
- ewarn "and switch CC to an OpenMP capable compiler"
- fi
-}
-
-src_prepare() {
- # Wants to chmod /usr/bin/python
- epatch "${FILESDIR}"/${PV}-sandbox-violations-chmod.patch
-
- rm -rf "${MY_S}/clipper" "${MY_S}/scons" # "${MY_S}/boost"
-
- mkdir -p "${MY_S}"/scons/src/ "${MY_S}/boost"
-
- ln -sf /usr/$(get_libdir)/scons-1.2.0 "${MY_S}"/scons/src/engine || die
-# ln -sf /usr/include/boost "${MY_S}/boost/"
-}
-
-src_compile() {
- python_version
-
- local MYCONF
- local MAKEOPTS_EXP
- local OPTS
- local OPTSLD
-
- MYCONF="${MY_S}/libtbx/configure.py"
-
- MAKEOPTS_EXP=${MAKEOPTS/j/j }
- MAKEOPTS_EXP=${MAKEOPTS_EXP%-l[0-9]*}
-
- # Get CXXFLAGS in format suitable for substitition into SConscript
- for i in ${CXXFLAGS}; do
- OPTS="${OPTS} \"${i}\","
- done
-
- # Strip off the last comma
- OPTS=${OPTS%,}
-
- # Fix CXXFLAGS
- sed -i \
- -e "s:\"-O3\", \"-ffast-math\":${OPTS}:g" \
- ${MY_S}/libtbx/SConscript
-
- # Get LDFLAGS in format suitable for substitition into SConscript
- for i in ${LDFLAGS}; do
- OPTSLD="${OPTSLD} \"${i}\","
- done
-
- # Fix LDFLAGS which should be as-needed ready
- sed -i \
- -e "s:\"-shared\":${OPTSLD} \"-shared\":g" \
- ${MY_S}/libtbx/SConscript
-
- # Get compiler in the right way
- COMPILER=$(expr match "$(tc-getCC)" '.*\([a-z]cc\)')
- MYCONF="${MYCONF} --compiler=${COMPILER}"
-
- # Precompiling python scripts. It is done in upstreams install script. Perhaps use python_mod_compile,
- # but as this script works we should stick to it.
- ${python} "${MY_S}/libtbx/command_line/py_compile_all.py"
-
- # Additional USE flag usage
- check_use openmp
- MYCONF="${MYCONF} --enable-openmp-if-possible=${USE_openmp}"
- use threads && USEthreads="--enable-boost-threads" && \
- ewarn "If using boost threads openmp support is disabled"
-
- MYCONF="${MYCONF} ${USE_threads} --scan-boost"
-
- mkdir "${MY_B}" && MYCONF="${MYCONF} --current_working_directory=${MY_B}"
- cd "${MY_B}"
-
- MYCONF="${MYCONF} --build=release fftw3tbx rstbx smtbx mmtbx"
- einfo "configuring with ${python} ${MYCONF}"
-
- ${python} ${MYCONF} \
- || die "configure failed"
-
- source setpaths_all.sh
-
- einfo "compiling with libtbx.scons ${MAKEOPTS_EXP}"
- libtbx.scons ${MAKEOPTS_EXP} .|| die "make failed"
-}
-
-src_test(){
- source "${MY_B}"/setpaths_all.sh
- libtbx.python $(libtbx.show_dist_paths boost_adaptbx)/tst_rational.py && \
- libtbx.python ${SCITBX_DIST}/run_tests.py ${MAKEOPTS_EXP} && \
- libtbx.python ${CCTBX_DIST}/run_tests.py ${MAKEOPTS_EXP} \
- || die "test failed"
-}
-
-src_install(){
-
- # This is what Bill Scott does in the fink package. Do we need this as well?
-# -e "s:prepend:append:g" \
-
- find cctbx_build/ -type f -exec \
- sed -e "s:${MY_S}:/usr/$(get_libdir)/cctbx/cctbx_sources:g" \
- -e "s:${MY_B}:/usr/$(get_libdir)/cctbx/cctbx_build:g" \
- -i '{}' \; || die "Fail to correct path"
-
-
- insinto /usr/$(get_libdir)/${PN}
- doins -r cctbx_sources cctbx_build || die
-
- ebegin "removing unnessary files"
- rm -r "${D}"/usr/$(get_libdir)/${PN}/cctbx_sources/scons || die "failed to remove uneeded scons"
- find "${D}" -type f -name "*.o" -exec rm -f '{}' \; || die "failed to remove uneeded *.o"
- find "${D}" -type f -name "*.pyc" -exec rm -f '{}' \; || die "failed to remove uneeded *.pyc"
- eend
-
-# fperms cannot handle wildcards
- chmod 775 "${D}"/usr/$(get_libdir)/${PN}/cctbx_build/*sh && \
- chmod 775 "${D}"/usr/$(get_libdir)/${PN}/cctbx_build/scitbx/array_family/* && \
- chmod 775 "${D}"/usr/$(get_libdir)/${PN}/cctbx_build/scitbx/serialization/* && \
- chmod 775 "${D}"/usr/$(get_libdir)/${PN}/cctbx_build/scitbx/error/* && \
- chmod 775 "${D}"/usr/$(get_libdir)/${PN}/cctbx_build/scitbx/fftpack/timing/* && \
- chmod 775 "${D}"/usr/$(get_libdir)/${PN}/cctbx_build/scitbx/lbfgs/* && \
- chmod 775 "${D}"/usr/$(get_libdir)/${PN}/cctbx_build/chiltbx/handle_test && \
- chmod 775 "${D}"/usr/$(get_libdir)/${PN}/cctbx_build/bin/* || \
- die
-
-
- insinto /etc/profile.d/
- newins "${MY_B}"/setpaths.sh 30cctbx.sh && \
- newins "${MY_B}"/setpaths.csh 30cctbx.csh || \
- die
-
- cat >> "${T}"/30cctbx <<- EOF
- LDPATH="/usr/$(get_libdir)/${PN}/cctbx_build/lib"
- EOF
-
- doenvd "${T}"/30cctbx || die
-}
-
-pkg_postinst () {
- python_mod_optimize /usr/$(get_libdir)/${PN}/cctbx_sources
-}
-
-pkg_postrm () {
- python_mod_cleanup /usr/$(get_libdir)/${PN}/cctbx_sources
-}
-
-
-check_use() {
-
- for var in $@; do
- if use ${var}; then
- printf -v "USE_$var" True
- else
- printf -v "USE_$var" False
-
- fi
- shift
- done
-}
-