diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2006-10-22 20:42:42 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2006-10-22 20:42:42 +0000 |
commit | ae3a52e7d5659de2ff58602a88b0d44bea1c9510 (patch) | |
tree | 645fb632ca07383cdc64e9a15403b2e6e73f7bf8 /dev-libs/log4cxx/log4cxx-0.9.7-r3.ebuild | |
parent | Bump to 0.13.7 (diff) | |
download | gentoo-2-ae3a52e7d5659de2ff58602a88b0d44bea1c9510.tar.gz gentoo-2-ae3a52e7d5659de2ff58602a88b0d44bea1c9510.tar.bz2 gentoo-2-ae3a52e7d5659de2ff58602a88b0d44bea1c9510.zip |
Added gcc-4* patch, thanks to Mike Auty, fixes bug #145244. Added 'iodbc' USE-flag. Misc dependency fixes, bug #142718.
(Portage version: 2.1.2_pre3-r3)
Diffstat (limited to 'dev-libs/log4cxx/log4cxx-0.9.7-r3.ebuild')
-rw-r--r-- | dev-libs/log4cxx/log4cxx-0.9.7-r3.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/dev-libs/log4cxx/log4cxx-0.9.7-r3.ebuild b/dev-libs/log4cxx/log4cxx-0.9.7-r3.ebuild new file mode 100644 index 000000000000..3917e7af7290 --- /dev/null +++ b/dev-libs/log4cxx/log4cxx-0.9.7-r3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4cxx/log4cxx-0.9.7-r3.ebuild,v 1.1 2006/10/22 20:42:42 dev-zero Exp $ + +inherit eutils flag-o-matic + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Library of C++ classes for flexible logging to files, syslog and other destinations" +HOMEPAGE="http://logging.apache.org/log4cxx/" +SRC_URI="http://www.apache.org/dist/logging/${PN}/${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="doc iodbc unicode odbc smtp threads" + +RDEPEND="dev-libs/boost + dev-libs/libxml2 + odbc? ( + iodbc? ( dev-db/libiodbc ) + !iodbc? ( dev-db/unixODBC ) ) + smtp? ( dev-libs/libsmtp )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen media-gfx/graphviz )" + +pkg_setup() { + if use iodbc && ! use odbc ; then + elog "Please enable the odbc USE-flag as well if you want odbc-support through iodbc." + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -e "s:\(htmldir = \).*\(/html\):\1\$(datadir)/doc/${PF}\2:" \ + docs/Makefile.am || die "sed failed" + + epatch "${FILESDIR}/${P}-gentoo.diff" + + if use unicode && use odbc ; then + epatch "${FILESDIR}/${P}-use-SQLWCHAR.diff" + fi + + epatch "${FILESDIR}/${P}-gcc41.patch" +} + +src_compile() { + "${S}/autogen.sh" || die "autogen.sh failed" + + # has cppunit support, but make check builds nothing... + local myconf="--disable-cppunit" + use doc && myconf="${myconf} --enable-doxygen --enable-dot + --enable-html-docs" || \ + myconf="${myconf} --disable-doxygen --disable-dot --disable-html-docs" + use smtp && myconf="${myconf} --with-SMTP=libsmtp" + if use odbc ; then + if use iodbc ; then + myconf="${myconf} --with-ODBC=iODBC" + else + myconf="${myconf} --with-ODBC=unixODBC" + fi + fi + # it's broken, so we must do this rather than use_enable + use unicode && myconf="${myconf} --enable-unicode" + use threads && myconf="${myconf} --with-thread=pthread" + + if use unicode && use odbc ; then + # fix some warnings as w/o it TCHAR gets typedef'd to signed short + # instead of wchar_t + append-flags -DSQL_WCHART_CONVERT + fi + + econf \ + --with-XML=libxml2 \ + ${myconf} || die "econf failed" + emake -j1 || die "emake failed" +} + +src_install () { + emake DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog README +} |