Gentoo Archives: gentoo-commits

From: "Michael Haubenwallner (haubi)" <haubi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/mico: ChangeLog mico-2.3.13-r4.ebuild
Date: Wed, 01 Dec 2010 09:57:55
Message-Id: 20101201095746.8786A20054@flycatcher.gentoo.org
1 haubi 10/12/01 09:57:46
2
3 Modified: ChangeLog
4 Added: mico-2.3.13-r4.ebuild
5 Log:
6 EAPI 3 bump. Listen to CFLAGS/CXXFLAGS. Better grouping of econf options.
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.30 net-misc/mico/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mico/ChangeLog?rev=1.30&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mico/ChangeLog?rev=1.30&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mico/ChangeLog?r1=1.29&r2=1.30
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/mico/ChangeLog,v
19 retrieving revision 1.29
20 retrieving revision 1.30
21 diff -u -r1.29 -r1.30
22 --- ChangeLog 16 Aug 2010 15:15:40 -0000 1.29
23 +++ ChangeLog 1 Dec 2010 09:57:46 -0000 1.30
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-misc/mico
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/mico/ChangeLog,v 1.29 2010/08/16 15:15:40 haubi Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/mico/ChangeLog,v 1.30 2010/12/01 09:57:46 haubi Exp $
29 +
30 +*mico-2.3.13-r4 (29 Nov 2010)
31 +
32 + 29 Nov 2010; Michael Haubenwallner <haubi@g.o>
33 + +mico-2.3.13-r4.ebuild:
34 + EAPI 3 bump. Listen to CFLAGS/CXXFLAGS. Better grouping of econf options.
35
36 16 Aug 2010; Michael Haubenwallner <haubi@g.o>
37 mico-2.3.13-r3.ebuild, -files/mico-2.3.13-aix.patch,
38
39
40
41 1.1 net-misc/mico/mico-2.3.13-r4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mico/mico-2.3.13-r4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mico/mico-2.3.13-r4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mico-2.3.13-r4.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-misc/mico/mico-2.3.13-r4.ebuild,v 1.1 2010/12/01 09:57:46 haubi Exp $
51
52 EAPI="3"
53
54 inherit eutils flag-o-matic toolchain-funcs
55
56 DESCRIPTION="A freely available and fully compliant implementation of the CORBA standard"
57 HOMEPAGE="http://www.mico.org/"
58 SRC_URI="http://www.mico.org/${P}.tar.gz"
59
60 PATCH_VER=0.1
61
62 LICENSE="GPL-2 LGPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~ppc-aix ~ia64-hpux ~amd64-linux ~x86-linux ~sparc-solaris ~x86-winnt"
65 IUSE="gtk postgres qt4 ssl tcl threads X"
66 RESTRICT="test" #298101
67
68 [[ -z ${PATCH_VER} ]] || \
69 SRC_URI="${SRC_URI} mirror://gentoo/${P}-gentoo-patches-${PATCH_VER}.tar.bz2"
70
71 # doesn't compile:
72 # bluetooth? ( net-wireless/bluez )
73
74 RDEPEND="
75 gtk? ( x11-libs/gtk+:2 )
76 postgres? ( dev-db/postgresql-base )
77 qt4? ( x11-libs/qt-gui:4[qt3support] )
78 ssl? ( dev-libs/openssl )
79 tcl? ( dev-lang/tcl )
80 X? ( x11-libs/libXt )
81 "
82 DEPEND="${RDEPEND}
83 >=sys-devel/flex-2.5.2
84 >=sys-devel/bison-1.22
85 "
86
87 S=${WORKDIR}/${PN}
88
89 src_prepare() {
90 EPATCH_SUFFIX=patch epatch "${WORKDIR}"/patches
91
92 # cannot use big TOC (AIX only), gdb doesn't like it.
93 # This assumes that the compiler (or -wrapper) uses
94 # gcc flag '-mminimal-toc' for compilation.
95 sed -i -e 's/,-bbigtoc//' "${S}"/configure
96
97 # stop struggling with '-g' and '-O*' in CFLAGS/CXXFLAGS
98 sed -i -e '/^CFLAGS=.*sed/d;/^CXXFLAGS=.*sed/d;/use_opt=/s/yes/no/' configure ||
99 die "cannot stop struggling with CFLAGS/CXXFLAGS"
100
101 if use qt4; then
102 sed -i -e "s, -lqt\", $(pkg-config --libs Qt3Support)\"," configure ||
103 die "cannot update to use Qt3Support of qt4"
104 fi
105 }
106
107 src_configure() {
108 tc-export CC CXX
109
110 if use gtk; then
111 # need gtk-1 wrapper for gtk-2
112 export PATH="${WORKDIR}"/helpers:${PATH}
113 fi
114
115 # Don't know which version of JavaCUP would suffice, but there is no
116 # configure argument to disable checking for JavaCUP.
117 # So we override the configure check to not find 'javac'.
118 export ac_cv_path_JAVAC=no
119
120 # '--without-ssl' just does not add another search path - the only way
121 # to disable openssl utilization seems to override the configure check.
122 use ssl || export ac_cv_lib_ssl_open=no
123
124 # CFLAGS aren't used when checking for <qapplication.h>, but CPPFLAGS are.
125 use qt4 && append-cppflags $(pkg-config --cflags Qt3Support)
126
127 local myconf=
128 myconf() {
129 myconf="${myconf} $*"
130 }
131
132 myconf --disable-mini-stl
133 myconf $(use_enable threads)
134
135 # '--without-*' or '--with-*=no' does not disable some features,
136 # the value needs to be empty instead.
137 # This applies to: gtk, pgsql, qt, tcl, bluetooth.
138 myconf --with-gtk=$( use gtk && echo "${EPREFIX}"/usr)
139 myconf --with-pgsql=$(use postgres && echo "${EPREFIX}"/usr)
140 myconf --with-qt=$( use qt4 && echo "${EPREFIX}"/usr)
141 myconf --with-tcl=$( use tcl && echo "${EPREFIX}"/usr)
142 # bluetooth and wireless both don't compile cleanly
143 myconf --with-bluetooth=''
144 myconf --disable-wireless
145 # But --without-x works.
146 myconf $(use_with X x "${EPREFIX}"/usr)
147
148 # http://www.mico.org/pipermail/mico-devel/2009-April/010285.html
149 [[ ${CHOST} == *-hpux* ]] && append-cppflags -D_XOPEN_SOURCE_EXTENDED
150
151 if [[ ${CHOST} == *-winnt* ]]; then
152 # disabling static libs, since ar on interix takes nearly
153 # one hour per library, thanks to mico's monster objects.
154 use threads &&
155 ewarn "disabling USE='threads', does not work on ${CHOST}"
156 myconf --disable-threads --disable-static --enable-final
157 append-flags -D__STDC__
158 fi
159
160 econf ${myconf}
161 }
162
163 src_install() {
164 emake INSTDIR="${ED}"usr SHARED_INSTDIR="${ED}"usr install LDCONFIG=: || die "install failed"
165
166 dodir /usr/share || die
167 mv "${ED}"usr/man "${ED}"usr/share || die
168 dodir /usr/share/doc/${PF} || die
169 mv "${ED}"usr/doc "${ED}"usr/share/doc/${PF} || die
170
171 dodoc BUGS CHANGES* CONVERT FAQ README* ROADMAP TODO VERSION WTODO || die
172 }