/[gentoo-x86]/net-misc/mico/mico-2.3.13-r2.ebuild
Gentoo

Contents of /net-misc/mico/mico-2.3.13-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Feb 24 10:05:29 2010 UTC (9 years, 9 months ago) by haubi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
update postgres dependency to use virtual/postgresql-base (#306255)
(Portage version: 2.1.7.16/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/mico/mico-2.3.13-r2.ebuild,v 1.2 2010/02/24 08:53:26 haubi Exp $
4
5 EAPI="2"
6
7 inherit eutils flag-o-matic toolchain-funcs
8
9 DESCRIPTION="A freely available and fully compliant implementation of the CORBA standard"
10 HOMEPAGE="http://www.mico.org/"
11 SRC_URI="http://www.mico.org/${P}.tar.gz"
12
13 LICENSE="GPL-2 LGPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~ppc-aix ~ia64-hpux ~amd64-linux ~x86-linux ~sparc-solaris ~x86-winnt"
16 IUSE="gtk postgres qt4 ssl tcl threads X"
17 RESTRICT="test" #298101
18
19 # doesn't compile:
20 # bluetooth? ( net-wireless/bluez-libs )
21
22 RDEPEND="
23 gtk? ( x11-libs/gtk+:2 )
24 postgres? ( dev-db/postgresql )
25 qt4? ( x11-libs/qt-gui:4[qt3support] )
26 ssl? ( dev-libs/openssl )
27 tcl? ( dev-lang/tcl )
28 X? ( x11-libs/libXt )
29 "
30 DEPEND="${RDEPEND}
31 >=sys-devel/flex-2.5.2
32 >=sys-devel/bison-1.22
33 "
34
35 S=${WORKDIR}/${PN}
36
37 src_prepare() {
38 epatch "${FILESDIR}"/${P}-nolibcheck.patch
39 epatch "${FILESDIR}"/${P}-gcc43.patch
40 epatch "${FILESDIR}"/${P}-pthread.patch
41 epatch "${FILESDIR}"/${P}-aix.patch
42 epatch "${FILESDIR}"/${P}-hpux.patch
43 epatch "${FILESDIR}"/${P}-as-needed.patch #280678
44 epatch "${FILESDIR}"/${P}-qt4-nothread.patch
45
46 [[ ${CHOST} == *-winnt* ]] && epatch "${FILESDIR}"/${P}-winnt.patch.bz2
47
48 # cannot use big TOC (AIX only), gdb doesn't like it.
49 # This assumes that the compiler (or -wrapper) uses
50 # gcc flag '-mminimal-toc' for compilation.
51 sed -i -e 's/,-bbigtoc//' "${S}"/configure
52
53 if use qt4; then
54 sed -i -e "s, -lqt\", $(pkg-config --libs Qt3Support)\"," configure ||
55 die "cannot update to use Qt3Support of qt4"
56 fi
57 }
58
59 src_configure() {
60 tc-export CC CXX
61
62 if use gtk; then
63 # set up gtk-1 wrapper for gtk-2
64 mkdir "${T}"/path || die "failed to create temporary path"
65 cp "${FILESDIR}"/gtk-config "${T}"/path || die "failed to dupe gtk-config"
66 chmod +x "${T}"/path/gtk-config || die "failed to arm gtk-config"
67 export PATH="${T}"/path:${PATH}
68 fi
69
70 # Don't know which version of JavaCUP would suffice, but there is no
71 # configure argument to disable checking for JavaCUP.
72 # So we override the configure check to not find 'javac'.
73 export ac_cv_path_JAVAC=no
74
75 # '--without-ssl' just does not add another search path - the only way
76 # to disable openssl utilization seems to override the configure check.
77 use ssl || export ac_cv_lib_ssl_open=no
78
79 # CFLAGS aren't used when checking for <qapplication.h>, but CPPFLAGS are.
80 use qt4 && append-cppflags $(pkg-config --cflags Qt3Support)
81
82 local winopts=
83 if [[ ${CHOST} == *-winnt* ]]; then
84 # disabling static libs, since ar on interix takes nearly
85 # one hour per library, thanks to mico's monster objects.
86 winopts="${winopts} --disable-threads --disable-static --enable-final"
87 append-flags -D__STDC__
88 fi
89
90 # http://www.mico.org/pipermail/mico-devel/2009-April/010285.html
91 [[ ${CHOST} == *-hpux* ]] && append-cppflags -D_XOPEN_SOURCE_EXTENDED
92
93 # '--without-*' or '--with-*=no' does not disable some features, the value
94 # needs to be empty instead. This applies to: bluetooth, gtk, pgsql, qt, tcl.
95 # But --without-x works.
96
97 # bluetooth and wireless both don't compile cleanly
98 econf \
99 --disable-mini-stl \
100 $(use_enable threads) \
101 --with-gtk=$(use gtk && echo "${EPREFIX}"/usr) \
102 --with-pgsql=$(use postgres && echo "${EPREFIX}"/usr) \
103 --with-qt=$(use qt4 && echo "${EPREFIX}"/usr) \
104 --with-tcl=$(use tcl && echo "${EPREFIX}"/usr) \
105 $(use_with X x "${EPREFIX}"/usr) \
106 --with-bluetooth='' \
107 --disable-wireless \
108 ${winopts}
109 }
110
111 src_install() {
112 emake INSTDIR="${D}${EPREFIX}"/usr SHARED_INSTDIR="${D}${EPREFIX}"/usr install LDCONFIG=: || die "install failed"
113
114 dodir /usr/share || die
115 mv "${D}${EPREFIX}"/usr/man "${D}${EPREFIX}"/usr/share || die
116 dodir /usr/share/doc/${PF} || die
117 mv "${D}${EPREFIX}"/usr/doc "${D}${EPREFIX}"/usr/share/doc/${PF} || die
118
119 dodoc BUGS CHANGES* CONVERT FAQ README* ROADMAP TODO VERSION WTODO || die
120 }

  ViewVC Help
Powered by ViewVC 1.1.20