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