From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-chemistry/imosflm: metadata.xml ChangeLog imosflm-1.0.4.ebuild |
Date: | Sat, 06 Feb 2010 23:22:53 |
Message-Id: | E1NdtzG-0006R3-O6@stork.gentoo.org |
1 | jlec 10/02/06 23:22:50 |
2 | |
3 | Added: metadata.xml ChangeLog imosflm-1.0.4.ebuild |
4 | Log: |
5 | Splitted imosflm from ccp4 |
6 | (Portage version: 2.2_rc62/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sci-chemistry/imosflm/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/imosflm/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/imosflm/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>sci</herd> |
20 | <maintainer> |
21 | <email>sci@g.o</email> |
22 | </maintainer> |
23 | </pkgmetadata> |
24 | |
25 | |
26 | |
27 | 1.1 sci-chemistry/imosflm/ChangeLog |
28 | |
29 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/imosflm/ChangeLog?rev=1.1&view=markup |
30 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/imosflm/ChangeLog?rev=1.1&content-type=text/plain |
31 | |
32 | Index: ChangeLog |
33 | =================================================================== |
34 | # ChangeLog for sci-chemistry/imosflm |
35 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
36 | # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/imosflm/ChangeLog,v 1.1 2010/02/06 23:22:49 jlec Exp $ |
37 | |
38 | *imosflm-1.0.4 (06 Feb 2010) |
39 | |
40 | 06 Feb 2010; Justin Lecher (jlec) <jlec@g.o> +files/1.0.4-tk.patch, |
41 | +imosflm-1.0.4.ebuild, +metadata.xml: |
42 | Splitted imosflm from ccp4 |
43 | |
44 | |
45 | |
46 | |
47 | 1.1 sci-chemistry/imosflm/imosflm-1.0.4.ebuild |
48 | |
49 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/imosflm/imosflm-1.0.4.ebuild?rev=1.1&view=markup |
50 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/imosflm/imosflm-1.0.4.ebuild?rev=1.1&content-type=text/plain |
51 | |
52 | Index: imosflm-1.0.4.ebuild |
53 | =================================================================== |
54 | # Copyright 1999-2010 Gentoo Foundation |
55 | # Distributed under the terms of the GNU General Public License v2 |
56 | # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/imosflm/imosflm-1.0.4.ebuild,v 1.1 2010/02/06 23:22:49 jlec Exp $ |
57 | |
58 | EAPI="3" |
59 | |
60 | inherit eutils toolchain-funcs versionator |
61 | |
62 | MY_PV="$(delete_all_version_separators ${PV})" |
63 | |
64 | DESCRIPTION="A new GUI for the Mosflm crystallographic data processing tool" |
65 | HOMEPAGE="http://www.mrc-lmb.cam.ac.uk/harry/imosflm" |
66 | SRC_URI="${HOMEPAGE}/ver${MY_PV}/downloads/${P}.zip" |
67 | |
68 | LICENSE="ccp4" |
69 | SLOT="0" |
70 | KEYWORDS="~amd64 ~x86" |
71 | IUSE="" |
72 | |
73 | RDEPEND=" |
74 | dev-lang/tcl |
75 | >=dev-tcltk/itcl-3.3 |
76 | >=dev-tcltk/itk-3.3 |
77 | >=dev-tcltk/iwidgets-4 |
78 | >=dev-tcltk/tdom-0.8 |
79 | >=dev-tcltk/tkimg-1.3 |
80 | >=dev-tcltk/tktreectrl-2.1 |
81 | dev-tcltk/anigif |
82 | dev-tcltk/combobox |
83 | dev-tcltk/tablelist |
84 | >=sci-chemistry/mosflm-7.0.4" |
85 | DEPEND="app-arch/unzip" |
86 | |
87 | S="${WORKDIR}"/${PN} |
88 | |
89 | src_prepare() { |
90 | epatch "${FILESDIR}"/${PV}-tk.patch |
91 | } |
92 | |
93 | src_compile() { |
94 | cd c |
95 | |
96 | objs="tkImageLoadDLL.o tkImageLoad.o" |
97 | libs="-ltclstub -ltkstub" |
98 | config="-fPIC -DUSE_TCL_STUBS -DTK_USE_STUBS" |
99 | ldextra="-shared" |
100 | |
101 | for file in ${objs}; do |
102 | einfo "$(tc-getCC) -c ${CFLAGS} ${config} ${file/.o/.c} -o ${file}" |
103 | $(tc-getCC) -c ${CFLAGS} ${config} ${file/.o/.c} -o ${file} |
104 | done |
105 | |
106 | einfo "$(tc-getCC) ${LDFLAGS} ${ldextra} ${objs} -o tkImageLoad.so ${libs}" |
107 | $(tc-getCC) ${LDFLAGS} ${ldextra} ${objs} -o tkImageLoad.so ${libs} |
108 | } |
109 | |
110 | src_install(){ |
111 | rm -rf lib/{*.so,anigif,combobox} |
112 | |
113 | insinto /usr/$(get_libdir)/${PN} |
114 | doins -r "${S}"/{src,bitmaps,lib} |
115 | fperms 775 /usr/$(get_libdir)/${PN}/src/imosflm |
116 | |
117 | dolib.so c/tkImageLoad.so |
118 | |
119 | cat >> "${T}"/23imosflm <<- EOF |
120 | IMOSFLM_VERSION="${PV}" |
121 | EOF |
122 | |
123 | doenvd "${T}"/23imosflm |
124 | |
125 | make_wrapper imosflm /usr/$(get_libdir)/${PN}/src/imosflm |
126 | } |