summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2007-05-29 08:08:17 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2007-05-29 08:08:17 +0000
commite58e11c7cec61d418f9b57d9878ad4b7b63cc635 (patch)
tree178a2281fc9f34cc97c1045f018e2a091f011f8a /sci-libs/clipper
parentremove bashisms from init file, fixes bug 179747 reported by Mike Arthur <mik... (diff)
downloadhistorical-e58e11c7cec61d418f9b57d9878ad4b7b63cc635.tar.gz
historical-e58e11c7cec61d418f9b57d9878ad4b7b63cc635.tar.bz2
historical-e58e11c7cec61d418f9b57d9878ad4b7b63cc635.zip
Add a slotted version of clipper. Version 1 is installed with ccp4-6, but we need version 2 for coots 0.2 and newer.
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'sci-libs/clipper')
-rw-r--r--sci-libs/clipper/ChangeLog11
-rw-r--r--sci-libs/clipper/Manifest20
-rw-r--r--sci-libs/clipper/clipper-20070528.ebuild68
-rw-r--r--sci-libs/clipper/files/20070528-as-needed.patch22
-rw-r--r--sci-libs/clipper/files/digest-clipper-200705283
-rw-r--r--sci-libs/clipper/metadata.xml5
6 files changed, 129 insertions, 0 deletions
diff --git a/sci-libs/clipper/ChangeLog b/sci-libs/clipper/ChangeLog
new file mode 100644
index 000000000000..42f29340cc6d
--- /dev/null
+++ b/sci-libs/clipper/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sci-libs/clipper
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/clipper/ChangeLog,v 1.1 2007/05/29 08:08:17 dberkholz Exp $
+
+*clipper-20070528 (29 May 2007)
+
+ 29 May 2007; Donnie Berkholz <dberkholz@gentoo.org>;
+ +files/20070528-as-needed.patch, +metadata.xml, +clipper-20070528.ebuild:
+ Add a slotted version of clipper. Version 1 is installed with ccp4-6, but we
+ need version 2 for coots 0.2 and newer.
+
diff --git a/sci-libs/clipper/Manifest b/sci-libs/clipper/Manifest
new file mode 100644
index 000000000000..689a6adcbc16
--- /dev/null
+++ b/sci-libs/clipper/Manifest
@@ -0,0 +1,20 @@
+AUX 20070528-as-needed.patch 884 RMD160 9bf79566b547f700b136c645c59b6aaf7126880f SHA1 6bbe32356d0cc6a1737dbfa8d0e68792f2b61ae7 SHA256 e6654df312419335c0e1886a23b685462f5ce08f5745e36f78f29a509fd6acbd
+MD5 02986c51c33f3b22465bb5a6e01e812a files/20070528-as-needed.patch 884
+RMD160 9bf79566b547f700b136c645c59b6aaf7126880f files/20070528-as-needed.patch 884
+SHA256 e6654df312419335c0e1886a23b685462f5ce08f5745e36f78f29a509fd6acbd files/20070528-as-needed.patch 884
+DIST clipper20ac.latest-20070528.tar.gz 1121873 RMD160 fe0db88ebdff7beebe947a29ec3f07732d19ebfc SHA1 ac4095e1968831b74cc45141144883b1fb27d948 SHA256 9da6189965b8742b35af8bece8575938c5257eb5bf81eae296726c31e0569691
+EBUILD clipper-20070528.ebuild 1915 RMD160 ed918570e9e67b5aa4b77ebf656905552447d35d SHA1 6bbb50bd6f93ace692bf0bebab1f3cb2d185488e SHA256 47e2ae809c186484b1e3c2612dd0fcfdddffd30802edaed57f2445d171dee18c
+MD5 ba753dd45b5261a2120b6447b1542975 clipper-20070528.ebuild 1915
+RMD160 ed918570e9e67b5aa4b77ebf656905552447d35d clipper-20070528.ebuild 1915
+SHA256 47e2ae809c186484b1e3c2612dd0fcfdddffd30802edaed57f2445d171dee18c clipper-20070528.ebuild 1915
+MISC ChangeLog 494 RMD160 ee51bc25b88cf296713163580b3538b4ddfc2c05 SHA1 e7fde65c4ffb56ada03e14ae17486b675d9628d0 SHA256 aa9de50c0630d2165427a36d0cd77ece91da6f7d113521e6287fad1aee1678cb
+MD5 2cb7dbead2f6937afc309a57be74a0a7 ChangeLog 494
+RMD160 ee51bc25b88cf296713163580b3538b4ddfc2c05 ChangeLog 494
+SHA256 aa9de50c0630d2165427a36d0cd77ece91da6f7d113521e6287fad1aee1678cb ChangeLog 494
+MISC metadata.xml 166 RMD160 4452298fd03e7c9395d1182bfe69d60a14144af6 SHA1 cb0b513473c0348f4f6f6cd9a132e4884155fddb SHA256 84c92b49702daf95eace8d2765215cbd8650da4ef776f9f700b5ce3785dec852
+MD5 43628e9f5743b5c3b018a82669a76bc7 metadata.xml 166
+RMD160 4452298fd03e7c9395d1182bfe69d60a14144af6 metadata.xml 166
+SHA256 84c92b49702daf95eace8d2765215cbd8650da4ef776f9f700b5ce3785dec852 metadata.xml 166
+MD5 2f7dee8b7b0f8a283ac3d13d89668dfb files/digest-clipper-20070528 286
+RMD160 d3b0b0d6403742cbc2f8dc4c01ef01e82225e61b files/digest-clipper-20070528 286
+SHA256 96147e14b267907488da11c4d86ed35814dded7ff172743ea34d5df3864029ea files/digest-clipper-20070528 286
diff --git a/sci-libs/clipper/clipper-20070528.ebuild b/sci-libs/clipper/clipper-20070528.ebuild
new file mode 100644
index 000000000000..f29dc48adca2
--- /dev/null
+++ b/sci-libs/clipper/clipper-20070528.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/clipper/clipper-20070528.ebuild,v 1.1 2007/05/29 08:08:17 dberkholz Exp $
+
+inherit autotools
+
+DESCRIPTION="Aset of object-oriented libraries for the organisation of crystallographic data and the performance of crystallographic computation"
+HOMEPAGE="http://www.ysbl.york.ac.uk/~cowtan/clipper/clipper.html"
+#SRC_URI="http://www.ysbl.york.ac.uk/~cowtan/clipper/clipper20ac.latest.tar.gz"
+SRC_URI="http://dev.gentoo.org/~dberkholz/distfiles/clipper20ac.latest-${PV}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RDEPEND="sci-chemistry/ccp4"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}"/${PV}-as-needed.patch
+
+ # Slot libraries with a '-2' suffix so we don't overlap with ccp4
+ ebegin "versioning libraries with -2 suffix"
+ find . -name Makefile.am \
+ | xargs sed -i \
+ -e "s~\(lib[[:alnum:]_]*\)_la~\1_2_la~g" \
+ -e "s~\(lib[[:alnum:]-]*\).la~\1-2.la~g" \
+ -e "s~\(-lclipper[[:alnum:]-]*\)~\1-2~g" \
+ || die "sed to version libs with -2 failed"
+ eend $?
+
+ # Use '-2' suffix in headers
+ ebegin "changing headers to use -2 suffix"
+ grep 'include.*clipper' -rl . \
+ | xargs sed -i \
+ -e "s~\(include.*clipper\)/~\1-2/~g" \
+ || die "sed to find -2 slotted headers failed"
+ eend $?
+
+ AT_M4DIR="config" eautoreconf
+}
+
+src_compile() {
+ # Slot programs with a '-2' suffix
+ econf \
+ --enable-contrib \
+ --enable-phs \
+ --enable-mmdb \
+ --enable-mmdbold \
+ --enable-minimol \
+ --enable-cif \
+ --enable-ccp4 \
+ --enable-cns \
+ --with-mmdb=/usr \
+ --program-suffix=-2 \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+src_install() {
+ # Slot includes with a '-2' suffix
+ emake \
+ DESTDIR="${D}" \
+ pkgincludedir=/usr/include/clipper-2 \
+ install \
+ || die "emake install failed"
+}
diff --git a/sci-libs/clipper/files/20070528-as-needed.patch b/sci-libs/clipper/files/20070528-as-needed.patch
new file mode 100644
index 000000000000..c8be326da998
--- /dev/null
+++ b/sci-libs/clipper/files/20070528-as-needed.patch
@@ -0,0 +1,22 @@
+diff -urN clipper.orig/clipper/ccp4/Makefile.am clipper/clipper/ccp4/Makefile.am
+--- clipper.orig/clipper/ccp4/Makefile.am 2007-05-28 16:38:56.000000000 -0700
++++ clipper/clipper/ccp4/Makefile.am 2007-05-28 16:41:35.000000000 -0700
+@@ -12,6 +12,6 @@
+
+ library_includedir = $(pkgincludedir)/ccp4
+
+-libclipper_ccp4_la_LDFLAGS = -version-info $(PACKAGE_VERSION)
++libclipper_ccp4_la_LDFLAGS = -version-info $(PACKAGE_VERSION) $(CCP4_LIBS)
+
+ ####
+diff -urN clipper.orig/clipper/core/Makefile.am clipper/clipper/core/Makefile.am
+--- clipper.orig/clipper/core/Makefile.am 2007-05-28 16:38:56.000000000 -0700
++++ clipper/clipper/core/Makefile.am 2007-05-28 16:40:33.000000000 -0700
+@@ -29,6 +29,6 @@
+
+ lib_LTLIBRARIES = libclipper-core.la
+
+-libclipper_core_la_LDFLAGS = -version-info $(PACKAGE_VERSION)
++libclipper_core_la_LDFLAGS = -version-info $(PACKAGE_VERSION) $(FFTW_LIBS)
+
+ ####
diff --git a/sci-libs/clipper/files/digest-clipper-20070528 b/sci-libs/clipper/files/digest-clipper-20070528
new file mode 100644
index 000000000000..e91d65f9dd7a
--- /dev/null
+++ b/sci-libs/clipper/files/digest-clipper-20070528
@@ -0,0 +1,3 @@
+MD5 ff5d26a2316d84d5794ba0f89bf6df61 clipper20ac.latest-20070528.tar.gz 1121873
+RMD160 fe0db88ebdff7beebe947a29ec3f07732d19ebfc clipper20ac.latest-20070528.tar.gz 1121873
+SHA256 9da6189965b8742b35af8bece8575938c5257eb5bf81eae296726c31e0569691 clipper20ac.latest-20070528.tar.gz 1121873
diff --git a/sci-libs/clipper/metadata.xml b/sci-libs/clipper/metadata.xml
new file mode 100644
index 000000000000..9ac9ffdb3a41
--- /dev/null
+++ b/sci-libs/clipper/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-chemistry</herd>
+</pkgmetadata>