1 |
commit: 62d00614d5e2db29124d91b30c4545e906d807f7 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 31 10:10:29 2012 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 31 10:10:29 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=62d00614 |
7 |
|
8 |
x11-libs/xview: Use everything from debian; build only 32bit libs everywhere; be carefully this is very hacky approach |
9 |
|
10 |
(Portage version: 2.2.0_alpha120/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
x11-libs/xview/ChangeLog | 9 ++- |
14 |
x11-libs/xview/files/xview-3.2-impl-dec.patch | 30 +++++++ |
15 |
x11-libs/xview/metadata.xml | 10 +- |
16 |
x11-libs/xview/xview-3.2-r7.ebuild | 108 +++++++++++++++++++++++++ |
17 |
4 files changed, 151 insertions(+), 6 deletions(-) |
18 |
|
19 |
diff --git a/x11-libs/xview/ChangeLog b/x11-libs/xview/ChangeLog |
20 |
index c281a43..59416a1 100644 |
21 |
--- a/x11-libs/xview/ChangeLog |
22 |
+++ b/x11-libs/xview/ChangeLog |
23 |
@@ -1,7 +1,14 @@ |
24 |
# ChangeLog for x11-libs/xview |
25 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
27 |
# $Header: $ |
28 |
|
29 |
+*xview-3.2-r7 (31 Jul 2012) |
30 |
+ |
31 |
+ 31 Jul 2012; Justin Lecher <jlec@g.o> +xview-3.2-r7.ebuild, |
32 |
+ +files/xview-3.2-impl-dec.patch, metadata.xml: |
33 |
+ Use everything from debian; build only 32bit libs everywhere; be carefully |
34 |
+ this is very hacky approach |
35 |
+ |
36 |
25 Jun 2011; Justin Lecher <jlec@g.o> metadata.xml: |
37 |
Fixed herd entry in metadata.xml |
38 |
|
39 |
|
40 |
diff --git a/x11-libs/xview/files/xview-3.2-impl-dec.patch b/x11-libs/xview/files/xview-3.2-impl-dec.patch |
41 |
new file mode 100644 |
42 |
index 0000000..0296a9a |
43 |
--- /dev/null |
44 |
+++ b/x11-libs/xview/files/xview-3.2-impl-dec.patch |
45 |
@@ -0,0 +1,30 @@ |
46 |
+ lib/libxview/misc/hashfn.c | 1 + |
47 |
+ lib/libxview/win/win_env.c | 3 +++ |
48 |
+ 2 files changed, 4 insertions(+), 0 deletions(-) |
49 |
+ |
50 |
+diff --git a/lib/libxview/misc/hashfn.c b/lib/libxview/misc/hashfn.c |
51 |
+index f127e2b..a7b27b9 100644 |
52 |
+--- a/lib/libxview/misc/hashfn.c |
53 |
++++ b/lib/libxview/misc/hashfn.c |
54 |
+@@ -17,6 +17,7 @@ static char sccsid[] = "@(#)hashfn.c 20.12 93/06/28"; |
55 |
+ #define hashfn_c |
56 |
+ |
57 |
+ #include <xview_private/hashfn.h> |
58 |
++#include <stdlib.h> |
59 |
+ |
60 |
+ /* |
61 |
+ * hashfn_new_table(size, hash_fn, cmp_fn) -- create a new hash table object |
62 |
+diff --git a/lib/libxview/win/win_env.c b/lib/libxview/win/win_env.c |
63 |
+index d8e7fcc..72f1def 100644 |
64 |
+--- a/lib/libxview/win/win_env.c |
65 |
++++ b/lib/libxview/win/win_env.c |
66 |
+@@ -18,6 +18,9 @@ static char sccsid[] = "@(#)win_env.c 20.16 93/06/28"; |
67 |
+ #include <xview/rect.h> |
68 |
+ #include <xview/win_env.h> |
69 |
+ #include <xview/win_struct.h> |
70 |
++#include <stdlib.h> |
71 |
++#include <string.h> |
72 |
++#include <stdio.h> |
73 |
+ |
74 |
+ /* |
75 |
+ * Public routines |
76 |
|
77 |
diff --git a/x11-libs/xview/metadata.xml b/x11-libs/xview/metadata.xml |
78 |
index 59d99c3..04b998a 100644 |
79 |
--- a/x11-libs/xview/metadata.xml |
80 |
+++ b/x11-libs/xview/metadata.xml |
81 |
@@ -1,9 +1,9 @@ |
82 |
<?xml version="1.0" encoding="UTF-8"?> |
83 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
84 |
<pkgmetadata> |
85 |
- <herd>sci</herd> |
86 |
- <maintainer> |
87 |
- <email>jlec@g.o</email> |
88 |
- <name>Justin Lecher</name> |
89 |
- </maintainer> |
90 |
+ <herd>sci</herd> |
91 |
+ <maintainer> |
92 |
+ <email>jlec@g.o</email> |
93 |
+ <name>Justin Lecher</name> |
94 |
+ </maintainer> |
95 |
</pkgmetadata> |
96 |
|
97 |
diff --git a/x11-libs/xview/xview-3.2-r7.ebuild b/x11-libs/xview/xview-3.2-r7.ebuild |
98 |
new file mode 100644 |
99 |
index 0000000..6ca59a3 |
100 |
--- /dev/null |
101 |
+++ b/x11-libs/xview/xview-3.2-r7.ebuild |
102 |
@@ -0,0 +1,108 @@ |
103 |
+## Copyright 1999-2009 Gentoo Foundation |
104 |
+# Distributed under the terms of the GNU General Public License v2 |
105 |
+# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/x11-libs/xview/Attic/xview-3.2-r6.ebuild,v 1.6 2008/12/21 09:03:33 ssuominen dead $ |
106 |
+ |
107 |
+EAPI=4 |
108 |
+ |
109 |
+inherit eutils toolchain-funcs flag-o-matic |
110 |
+ |
111 |
+MY_PN="${P}p1.4" |
112 |
+ |
113 |
+DESCRIPTION="The X Window-System-based Visual/Integrated Environment for Workstations" |
114 |
+HOMEPAGE="http://physionet.caregroup.harvard.edu/physiotools/xview/" |
115 |
+# We usr the debian tarball so that the debian patches apply |
116 |
+SRC_URI=" |
117 |
+ mirror://debian/pool/main/x/xview/xview_3.2p1.4.orig.tar.gz |
118 |
+ mirror://debian/pool/main/x/xview/xview_3.2p1.4-28.debian.tar.gz" |
119 |
+ |
120 |
+LICENSE="XVIEW" |
121 |
+SLOT="0" |
122 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux -*" |
123 |
+IUSE="static-libs" |
124 |
+ |
125 |
+RDEPEND=" |
126 |
+ media-fonts/font-bh-75dpi |
127 |
+ media-fonts/font-sun-misc |
128 |
+ x11-libs/libXpm |
129 |
+ x11-misc/xbitmaps |
130 |
+ x11-proto/xextproto" |
131 |
+ |
132 |
+DEPEND="${RDEPEND} |
133 |
+ app-text/rman |
134 |
+ x11-misc/gccmakedep |
135 |
+ x11-misc/imake" |
136 |
+ |
137 |
+S=${WORKDIR}/${MY_PN} |
138 |
+ |
139 |
+src_prepare() { |
140 |
+ append-flags -m32 |
141 |
+ append-ldflags -m32 |
142 |
+ |
143 |
+ EPATCH_OPTS="-p1" |
144 |
+ |
145 |
+ epatch \ |
146 |
+ "${FILESDIR}"/${P}-impl-dec.patch \ |
147 |
+ "${WORKDIR}"/debian/patches/{debian-changes-3.2p1.4-26,display_setting} |
148 |
+ |
149 |
+ # Do not build xgettext and msgfmt since they are provided by the gettext |
150 |
+ # package. Using the programs provided by xview breaks many packages |
151 |
+ # including vim, grep and binutils. |
152 |
+ sed \ |
153 |
+ -e 's/MSG_UTIL = xgettext msgfmt/#MSG_UTIL = xgettext msgfmt/' \ |
154 |
+ -i util/Imakefile || die "gettext sed failed" |
155 |
+ |
156 |
+ # (#120910) Look for imake in the right place |
157 |
+ sed -i -e 's:\/X11::' imake || die "imake sed failed" |
158 |
+ |
159 |
+ sed -i -e 's:/usr/X11R6:/usr:' config/XView.cf Build-LinuxXView.bash || die |
160 |
+ |
161 |
+ # Nasty hacks to force CC and CFLAGS |
162 |
+ sed \ |
163 |
+ -e "s:^\(IMAKEINCLUDE=.*\)\"$:\1 -DCcCmd=$(tc-getCC)\":" \ |
164 |
+ -e "s:usr/lib/X11/config:usr/$(get_libdir)/X11/config:" -i Build-LinuxXView.bash || die |
165 |
+ sed -e "s:\(.*STD_DEFINES =.*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i config/XView.obj || die |
166 |
+ sed -e "s:\(.*define LibXViewDefines .*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i config/XView.cf || die |
167 |
+ sed -e "s:^\(MORECCFLAGS.*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i clients/olvwm-4.1/Imakefile |
168 |
+ sed -e "s:\(-Wl,-soname\):${LDFLAGS} \1:g" -i config/XView.rules || die |
169 |
+} |
170 |
+ |
171 |
+src_compile() { |
172 |
+ export OPENWINHOME="/usr" |
173 |
+ export X11DIR="/usr" |
174 |
+ export MANDIR="/usr/share/man" |
175 |
+ |
176 |
+ # This is crazy and I know it, but wait till you read the code in |
177 |
+ # Build-LinuxXView.bash. |
178 |
+ bash Build-LinuxXView.bash libs \ |
179 |
+ || die "building libs failed" |
180 |
+# bash Build-LinuxXView.bash clients \ |
181 |
+# || die "building clients failed" |
182 |
+# bash Build-LinuxXView.bash contrib \ |
183 |
+# || die "building contrib failed" |
184 |
+# bash Build-LinuxXView.bash olvwm \ |
185 |
+# || die "building olvwm failed" |
186 |
+} |
187 |
+ |
188 |
+src_install() { |
189 |
+ export OPENWINHOME="/usr" |
190 |
+ export X11DIR="/usr" |
191 |
+ export MANDIR="/usr/share/man" |
192 |
+ export DESTDIR="${ED}" |
193 |
+ |
194 |
+ bash Build-LinuxXView.bash instlibs \ |
195 |
+ || die "installing libs failed" |
196 |
+# bash Build-LinuxXView.bash instclients \ |
197 |
+# || die "installing clients failed" |
198 |
+# bash Build-LinuxXView.bash instcontrib \ |
199 |
+# || die "installing contrib failed" |
200 |
+# bash Build-LinuxXView.bash instolvwm \ |
201 |
+# || die "installing olvwm failed" |
202 |
+# cd "${ED}"/usr |
203 |
+ |
204 |
+ use static-libs || \ |
205 |
+ find "${ED}" -type f -name "*.a" -delete |
206 |
+ |
207 |
+ cd "${S}"/doc |
208 |
+ dodoc README xview-info olgx_api.txt olgx_api.ps sel_api.txt dnd_api.txt whats_new.ps |
209 |
+ rm -rf "${ED}"/usr/X11R6/share/doc/xview "${ED}"/usr/X11R6/share/doc "${ED}"/usr/bin || die |
210 |
+} |