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
commit2cece84d74ef5c1e08ae771c3fc3e368b698d973 (patch)
tree96d88c1788d130c63bb16d7aa7a8ada07a9ba2e5 /sci-libs/clipper
parentremove bashisms from init file, fixes bug 179747 reported by Mike Arthur <mik... (diff)
downloadgentoo-2-2cece84d74ef5c1e08ae771c3fc3e368b698d973.tar.gz
gentoo-2-2cece84d74ef5c1e08ae771c3fc3e368b698d973.tar.bz2
gentoo-2-2cece84d74ef5c1e08ae771c3fc3e368b698d973.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.
(Portage version: 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..59822c7035cf
--- /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 1810 RMD160 2ca9dbc92a881bb590d73ff09a0b0b45d68c108d SHA1 2f506c99a7001009ba8f6edab21d0f4d2b586995 SHA256 e0866fe5e029f2d786128edfc55ee1febf822e676960573183cc711bd06bd930
+MD5 7eaf072a2af20178d5b84002af86dcae clipper-20070528.ebuild 1810
+RMD160 2ca9dbc92a881bb590d73ff09a0b0b45d68c108d clipper-20070528.ebuild 1810
+SHA256 e0866fe5e029f2d786128edfc55ee1febf822e676960573183cc711bd06bd930 clipper-20070528.ebuild 1810
+MISC ChangeLog 403 RMD160 bbdd6925f4c3668eef22561c522485c8b6ca2aab SHA1 8fc068e9805378748404dbcfef73e590cedb3785 SHA256 1bc592b3147c6f9ed6bdfe8e8f89d9b0489782730ff5c8d727080a37a0364e94
+MD5 3958012943978200bdd308cdcd0532e6 ChangeLog 403
+RMD160 bbdd6925f4c3668eef22561c522485c8b6ca2aab ChangeLog 403
+SHA256 1bc592b3147c6f9ed6bdfe8e8f89d9b0489782730ff5c8d727080a37a0364e94 ChangeLog 403
+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>