summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-02-06 23:22:51 +0000
committerJustin Lecher <jlec@gentoo.org>2010-02-06 23:22:51 +0000
commitd1945217c1520e7e98b16765343e0a351d90e1af (patch)
treee67ab730c9862c6851754941bf252b894c147fdd /sci-chemistry/imosflm
parentInitial commit (diff)
downloadhistorical-d1945217c1520e7e98b16765343e0a351d90e1af.tar.gz
historical-d1945217c1520e7e98b16765343e0a351d90e1af.tar.bz2
historical-d1945217c1520e7e98b16765343e0a351d90e1af.zip
Splitted imosflm from ccp4
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry/imosflm')
-rw-r--r--sci-chemistry/imosflm/ChangeLog10
-rw-r--r--sci-chemistry/imosflm/Manifest15
-rw-r--r--sci-chemistry/imosflm/files/1.0.4-tk.patch50
-rw-r--r--sci-chemistry/imosflm/imosflm-1.0.4.ebuild73
-rw-r--r--sci-chemistry/imosflm/metadata.xml8
5 files changed, 156 insertions, 0 deletions
diff --git a/sci-chemistry/imosflm/ChangeLog b/sci-chemistry/imosflm/ChangeLog
new file mode 100644
index 000000000000..b16e2bae5038
--- /dev/null
+++ b/sci-chemistry/imosflm/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-chemistry/imosflm
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/imosflm/ChangeLog,v 1.1 2010/02/06 23:22:49 jlec Exp $
+
+*imosflm-1.0.4 (06 Feb 2010)
+
+ 06 Feb 2010; Justin Lecher (jlec) <jlec@gentoo.org> +files/1.0.4-tk.patch,
+ +imosflm-1.0.4.ebuild, +metadata.xml:
+ Splitted imosflm from ccp4
+
diff --git a/sci-chemistry/imosflm/Manifest b/sci-chemistry/imosflm/Manifest
new file mode 100644
index 000000000000..ed04e7a6045a
--- /dev/null
+++ b/sci-chemistry/imosflm/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 1.0.4-tk.patch 1797 RMD160 232a7191c914754a4f863af90f5d557f305245b8 SHA1 e6765b7366d88e1eab03514355ec83aff5e35e1c SHA256 01127c8dcfcb52561afa3160a4a4deca26bd8ccd0c88fd706722947cfdb6ec58
+DIST imosflm-1.0.4.zip 985118 RMD160 5b3c791c9cf39e56380c50d1f546920da6061089 SHA1 4294b4572455b685a79ffa73d982c6879b27a7f9 SHA256 93d99229158615ddb2c97b59bb3514d6ffe13dd8327cc412cd65139bda687517
+EBUILD imosflm-1.0.4.ebuild 1741 RMD160 9e101e8847423a2d570b2021555ed694f1d0cd64 SHA1 3c8fd3961c7c984b73b8cf1e0a634583315dce4a SHA256 3925f974a833a466de0667bad63657a7ccacd960bd4868d5f7efaefe21284ade
+MISC ChangeLog 390 RMD160 8696e3722772c9eda69d5c16508b2d75829fe2b4 SHA1 ff33c2a58e340760c0f05687c42f521360adf69d SHA256 d5a759665fb19cbb44d0f27cc2db15f88d1d25022136001e42498f7b04a3c28d
+MISC metadata.xml 215 RMD160 bc9c07aa91f2f175542244e4e4522a73558210a1 SHA1 facb283386de1c0b6b938cdcd4dde04d1694298b SHA256 13f32353652adbd3d934d41381cfc2cacc9e1127c508cebc73806cc1026ee80c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAktt+c8ACgkQgAnW8HDreRYcYgCfWf14i7FyCf9FVSPGSJv4wWVi
+WB8AniQP4IxgVJtGD2OIIcdxC6B1Vie/
+=VhGU
+-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/imosflm/files/1.0.4-tk.patch b/sci-chemistry/imosflm/files/1.0.4-tk.patch
new file mode 100644
index 000000000000..a90175194eb4
--- /dev/null
+++ b/sci-chemistry/imosflm/files/1.0.4-tk.patch
@@ -0,0 +1,50 @@
+--- c/tkImageLoad.c 2009-08-14 21:10:19.000000000 +0200
++++ c/tkImageLoad.c.new 2009-08-14 21:10:55.000000000 +0200
+@@ -19,6 +19,7 @@
+ //#define BLOCKED 1
+ //#define UNBLOCKED 1
+ #define IN_BLOCK_FLIP 1
++#define USE_COMPOSITELESS_PHOTO_PUT_BLOCK
+
+ /* *********************************************************************/
+
+--- c/tkImageLoad.c 2009-08-14 21:13:29.000000000 +0200
++++ c/tkImageLoad.c.new 2009-08-14 21:14:59.000000000 +0200
+@@ -272,9 +272,11 @@
+ }
+ /* put the photo block into the image */
+ #ifdef __alpha
+- Tk_PhotoPutBlock(dp, &db, 0, 0, width, height);
++ Tk_PhotoPutBlock(dp, &db, 0, 0, width, height,
++ TK_PHOTO_COMPOSITE_OVERLAY);
+ #else
+- Tk_PhotoPutBlock(dp, &db, 0, 0, width, height, TK_PHOTO_COMPOSITE_SET);
++ Tk_PhotoPutBlock(dp, &db, 0, 0, width, height, TK_PHOTO_COMPOSITE_SET,
++ TK_PHOTO_COMPOSITE_OVERLAY);
+ #endif
+
+ /* Free the photo block's memory now it is finished with */
+@@ -417,9 +419,11 @@
+
+ /* put the photo block back into the image */
+ #ifdef __alpha
+- Tk_PhotoPutBlock(photo, &block, 0, 0, block.width, block.height);
++ Tk_PhotoPutBlock(photo, &block, 0, 0, block.width, block.height,
++ TK_PHOTO_COMPOSITE_OVERLAY);
+ #else
+- Tk_PhotoPutBlock(photo, &block, 0, 0, block.width, block.height,TK_PHOTO_COMPOSITE_SET);
++ Tk_PhotoPutBlock(photo, &block, 0, 0, block.width, block.height,TK_PHOTO_COMPOSITE_SET,
++ TK_PHOTO_COMPOSITE_OVERLAY);
+ #endif
+ /* Free the photo block's memory now it is finished with */
+ if (block.pixelPtr) {
+--- c/tkImageLoad.c 2009-08-14 21:15:06.000000000 +0200
++++ c/tkImageLoad.c.new 2009-08-14 21:16:53.000000000 +0200
+@@ -9,6 +9,7 @@
+ \************************************************************************/
+
+ #include <stdio.h>
++#include <string.h>
+ #include <tcl.h>
+ #include <tk.h>
+ #include <assert.h>
diff --git a/sci-chemistry/imosflm/imosflm-1.0.4.ebuild b/sci-chemistry/imosflm/imosflm-1.0.4.ebuild
new file mode 100644
index 000000000000..e08eccfa9c1b
--- /dev/null
+++ b/sci-chemistry/imosflm/imosflm-1.0.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/imosflm/imosflm-1.0.4.ebuild,v 1.1 2010/02/06 23:22:49 jlec Exp $
+
+EAPI="3"
+
+inherit eutils toolchain-funcs versionator
+
+MY_PV="$(delete_all_version_separators ${PV})"
+
+DESCRIPTION="A new GUI for the Mosflm crystallographic data processing tool"
+HOMEPAGE="http://www.mrc-lmb.cam.ac.uk/harry/imosflm"
+SRC_URI="${HOMEPAGE}/ver${MY_PV}/downloads/${P}.zip"
+
+LICENSE="ccp4"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-lang/tcl
+ >=dev-tcltk/itcl-3.3
+ >=dev-tcltk/itk-3.3
+ >=dev-tcltk/iwidgets-4
+ >=dev-tcltk/tdom-0.8
+ >=dev-tcltk/tkimg-1.3
+ >=dev-tcltk/tktreectrl-2.1
+ dev-tcltk/anigif
+ dev-tcltk/combobox
+ dev-tcltk/tablelist
+ >=sci-chemistry/mosflm-7.0.4"
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}"/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-tk.patch
+}
+
+src_compile() {
+ cd c
+
+ objs="tkImageLoadDLL.o tkImageLoad.o"
+ libs="-ltclstub -ltkstub"
+ config="-fPIC -DUSE_TCL_STUBS -DTK_USE_STUBS"
+ ldextra="-shared"
+
+ for file in ${objs}; do
+ einfo "$(tc-getCC) -c ${CFLAGS} ${config} ${file/.o/.c} -o ${file}"
+ $(tc-getCC) -c ${CFLAGS} ${config} ${file/.o/.c} -o ${file}
+ done
+
+ einfo "$(tc-getCC) ${LDFLAGS} ${ldextra} ${objs} -o tkImageLoad.so ${libs}"
+ $(tc-getCC) ${LDFLAGS} ${ldextra} ${objs} -o tkImageLoad.so ${libs}
+}
+
+src_install(){
+ rm -rf lib/{*.so,anigif,combobox}
+
+ insinto /usr/$(get_libdir)/${PN}
+ doins -r "${S}"/{src,bitmaps,lib}
+ fperms 775 /usr/$(get_libdir)/${PN}/src/imosflm
+
+ dolib.so c/tkImageLoad.so
+
+ cat >> "${T}"/23imosflm <<- EOF
+ IMOSFLM_VERSION="${PV}"
+ EOF
+
+ doenvd "${T}"/23imosflm
+
+ make_wrapper imosflm /usr/$(get_libdir)/${PN}/src/imosflm
+}
diff --git a/sci-chemistry/imosflm/metadata.xml b/sci-chemistry/imosflm/metadata.xml
new file mode 100644
index 000000000000..efb490d78817
--- /dev/null
+++ b/sci-chemistry/imosflm/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+ <email>sci@gentoo.org</email>
+</maintainer>
+</pkgmetadata>