Gentoo Archives: gentoo-commits

From: "Harald van Dijk (truedfx)" <truedfx@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/icon: ChangeLog icon-9.4.3-r5.ebuild icon-9.4.3-r4.ebuild
Date: Sun, 03 Jan 2010 06:56:08
Message-Id: E1NRKNi-0007AS-6X@stork.gentoo.org
1 truedfx 10/01/03 06:56:06
2
3 Modified: ChangeLog
4 Added: icon-9.4.3-r5.ebuild
5 Removed: icon-9.4.3-r4.ebuild
6 Log:
7 Add -fno-strict-aliasing to CFLAGS, bug #299333
8 (Portage version: 2.2_rc61/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.38 dev-lang/icon/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icon/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icon/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icon/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/icon/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 6 Oct 2008 20:24:45 -0000 1.37
24 +++ ChangeLog 3 Jan 2010 06:56:05 -0000 1.38
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/icon
27 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/icon/ChangeLog,v 1.37 2008/10/06 20:24:45 truedfx Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/icon/ChangeLog,v 1.38 2010/01/03 06:56:05 truedfx Exp $
31 +
32 +*icon-9.4.3-r5 (03 Jan 2010)
33 +
34 + 03 Jan 2010; Harald van Dijk <truedfx@g.o> -icon-9.4.3-r4.ebuild,
35 + +icon-9.4.3-r5.ebuild:
36 + Add -fno-strict-aliasing to CFLAGS, bug #299333
37
38 *icon-9.4.3-r4 (06 Oct 2008)
39
40
41
42
43 1.1 dev-lang/icon/icon-9.4.3-r5.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icon/icon-9.4.3-r5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icon/icon-9.4.3-r5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: icon-9.4.3-r5.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-lang/icon/icon-9.4.3-r5.ebuild,v 1.1 2010/01/03 06:56:05 truedfx Exp $
53
54 inherit eutils flag-o-matic multilib toolchain-funcs
55
56 MY_PV=${PV//./}
57 SRC_URI="http://www.cs.arizona.edu/icon/ftp/packages/unix/icon.v${MY_PV}src.tgz"
58 HOMEPAGE="http://www.cs.arizona.edu/icon/"
59 DESCRIPTION="very high level language"
60
61 LICENSE="as-is"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
64 IUSE="X iplsrc"
65
66 S="${WORKDIR}/icon.v${MY_PV}src"
67
68 DEPEND="X? ( x11-proto/xextproto
69 x11-proto/xproto
70 x11-libs/libX11
71 x11-libs/libXpm
72 x11-libs/libXt )
73 sys-devel/gcc"
74
75 src_unpack() {
76 unpack ${A}
77
78 epatch "${FILESDIR}"/${P}-flags.patch
79
80 # Patch the tests so that they do not fail
81 # The following files in tests/standard are patched..
82 # io.icn - change /etc/motd to /etc/gentoo-release
83 # io.std - change /etc/motd to /etc/gentoo-release
84 # kwds.std - add two lines for the two new added keywords
85 # nargs.std - a couple of functions picked up additional parameters
86 epatch "${FILESDIR}/tests-${MY_PV}.patch"
87
88 # do not prestrip files
89 find "${S}"/src -name 'Makefile' | xargs sed -i -e "/strip/d" || die
90 }
91
92 src_compile() {
93 # select the right compile target. Note there are many platforms
94 # available
95 local mytarget;
96 if [[ ${CHOST} == *-darwin* ]]; then
97 mytarget="macintosh"
98 else
99 mytarget="linux"
100 fi
101
102 if use X; then
103 emake X-Configure name=${mytarget} -j1 || die
104 else
105 emake Configure name=${mytarget} -j1 || die
106 fi
107
108 echo "#define MultiThread 1" >> src/h/define.h
109 echo "#define EventMon 1" >> src/h/define.h
110 echo "#define Eve 1" >> src/h/define.h
111
112 append-flags $(test-flags -fno-strict-aliasing -fwrapv)
113
114 emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "Make Failed"
115 }
116
117 src_test() {
118 make Samples || die "Samples failed"
119 make Test || die "Test failed"
120 }
121
122 src_install() {
123 dodir /usr
124 dodir /usr/bin
125 dodir /usr/$(get_libdir)
126
127 make Install dest="${D}/usr/$(get_libdir)/icon" || die "Make install failed"
128 dosym /usr/$(get_libdir)/icon/bin/icont /usr/bin/icont
129 dosym /usr/$(get_libdir)/icon/bin/iconx /usr/bin/iconx
130 dosym /usr/$(get_libdir)/icon/bin/icon /usr/bin/icon
131 dosym /usr/$(get_libdir)/icon/bin/vib /usr/bin/vib
132
133 cd "${S}/man/man1"
134 doman icont.1
135 doman icon.1
136 rm -rf "${D}"/usr/$(get_libdir)/icon/man
137
138 cd "${S}/doc"
139 dodoc *.txt *.sed ../README
140 # dohtml ignores all anything except .html files, no use here
141 mkdir -p "${D}"/usr/share/doc/${PF}/html
142 cp -dpR *.htm *.gif *.jpg *.css "${D}"/usr/share/doc/${PF}/html
143 rm -rf "${D}"/usr/$(get_libdir)/icon/{doc,README}
144
145 # optional Icon Programming Library
146 if use iplsrc; then
147 cd "${S}"
148 dodir /usr/$(get_libdir)/icon/ipl
149 rm ipl/BuildBin
150 rm ipl/BuildExe
151 rm ipl/CheckAll
152 rm ipl/Makefile
153 insinto /usr/$(get_libdir)/icon
154 doins -r ipl
155 fi
156 }