summaryrefslogtreecommitdiff
path: root/dev-libs/log4cplus
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/log4cplus
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/log4cplus')
-rw-r--r--dev-libs/log4cplus/Manifest8
-rw-r--r--dev-libs/log4cplus/files/log4cplus-1.2.0-fix-c++14.patch31
-rw-r--r--dev-libs/log4cplus/log4cplus-1.1.3_rc7.ebuild77
-rw-r--r--dev-libs/log4cplus/log4cplus-1.2.0.ebuild62
-rw-r--r--dev-libs/log4cplus/metadata.xml13
5 files changed, 191 insertions, 0 deletions
diff --git a/dev-libs/log4cplus/Manifest b/dev-libs/log4cplus/Manifest
new file mode 100644
index 000000000000..9702538abe84
--- /dev/null
+++ b/dev-libs/log4cplus/Manifest
@@ -0,0 +1,8 @@
+AUX log4cplus-1.2.0-fix-c++14.patch 897 SHA256 32bab5d65cbdf8b9130cc73856f0cb9c5e2b2156a7a0bb957aef2e7a79cb8115 SHA512 9771a43add0af52417d67f54c991d637928d5f8340e90a786f2e9714cbc206e4ce6e7cc55face0f2ed0ed2c34e0a52bd922fa11978b85ffa48f02235df7c2de9 WHIRLPOOL ed44e7ef0fe288e59f2ad50b5300b0345b2419bc4c21d567e3f0884058d454d41a6873addc8602f771b16f2f3e7d18a80927855af7a252ed8d92a4ffd30d67d9
+DIST log4cplus-1.1.3-rc7.tar.bz2 562969 SHA256 614bfd8a2e88510f7fa497b4aa12e763aa05cf0771d06284db385e5fd9fda5bb SHA512 6854a966dfd5a2b807778e34957ea33c43a340b8be71a1a989941ec6c6fdc22d181dc2f0bb0e87910c77417a9f5c4f07d4fbd8f13eadffe82adef10a1e00ef02 WHIRLPOOL 457cbd540508094450f363656964c80fc66a2cc9be887605c73001431bbff04ac4cdee5d0fc22ece86b5b7760e120eecffd9a129e95ad0c174ca6ace7c944e01
+DIST log4cplus-1.2.0.tar.bz2 629119 SHA256 680cc7a8652384e3cb387feac1794d83c8cda6a038ca4e761dfa6a11687a63b9 SHA512 2c3f16645051a230f9ec9a6ac689421efc4b51d5f40cb772e552bd199d2ad13c39d7e577cc63d51617555941412da166a6cda8861ee219154a953d9926aae626 WHIRLPOOL 3a4d1cbacd4b033b6d6ec6cd9ff8439e5c214e444588b62b77eafd4c5d542f787eb216601f7f66b73fd90bec15ce1784e6819d828207e8693d881f8b12c212f1
+EBUILD log4cplus-1.1.3_rc7.ebuild 1693 SHA256 54c1ca80818c1e3384c6478b0c892f51dc868fb9e48bf1b90542a31f74061ba5 SHA512 39023966bd1b696e5c8d7a7739f7323b78eb60018869bfb59698cf51abe5ebe3577fcc65c5dc0e0b3ac53666839360db60d9ccb8ab63a996bd7f7700c366e66d WHIRLPOOL b5edb7806dab49909d1af601f920d941cef40aa964db47f9c68994774086583cc06d7aa87adb0d66122ba8f3d7a3228f676620493a45365cfcfa76ff3f67a52c
+EBUILD log4cplus-1.2.0.ebuild 1553 SHA256 a98331e51c080f28507e5fe31b60f1625ae900365a15d0105e3e9c88d2511269 SHA512 cf300f50eb336f3c430d148f52b7ba838c13790b6a1c669afafc43bc218900fc730ed86693034827052e9f497edf17d52c09c92b1f5fc1a16caad3d4e94ca3b6 WHIRLPOOL 6a1276fac50bac21c7229a3152bcb1dad3e3a0d7e79ea3a13eb4d1086d582a872bba7f5b9c2df9da1a3eb21b1bf7c54929b9b1a7f08508b027e38f53869a9b3f
+MISC ChangeLog 3224 SHA256 31088423ba4e3fc90d91ce068f6f05584ef8ff0457cccd49d0249f0e18ecd98a SHA512 e48b9e4b669536d717e0b4869420d92126cf04134a9351ddc73395c4bafb59144bfb3240c7ff870541caaeeefb868a4cfed0924aa5b441a05735060aafe5c5bb WHIRLPOOL cad07ad78ee79613a19c25615f6014bc2f6d4c8c8dd3feb4468bf5515ed4761a87bc9744fae2f7562de859603e9ccea976c766120e45c89ce3bc1e0428f439b9
+MISC ChangeLog-2015 964 SHA256 df3d087e2fe58cc945e0010661adc2a26bb185fcc66eda8d01a03907de4e2da7 SHA512 48387eddddd557d10f61f4ea5a313624f00518ddd3fe47585ad4c15c44c29458b340cb41f704a57ec91107f073aba427ac6ac265342df0f70e5e26860985548e WHIRLPOOL 86cbd3b658eb0403a4c6dea3dc02d521eb6f56ef8028aa9b273eaca7c2acf1595f43e464cbf917a9d0007efdcee45b44d4cad07e92f25a48a04bac6119f71c42
+MISC metadata.xml 690 SHA256 6e61f23540271ea29d3d88e444d930e3f44faa623b223e6f742e21a6bc746376 SHA512 21d2eabfdb5675aad9e9be7aa237b570ef78abe4e4f7142d1e8d638b2854e07e1e51724316abb7f796419da6f5a2e03dd09f26d1d2fe17b17c961c8c8e2551da WHIRLPOOL 2a28c63b0039cd276c99187b48884ecdf98b84933c05fa19fc60c42f4337381a7f8bdca4498712260c48c3cc656ce66f3340f2806ea66972dba38e6c37bebfad
diff --git a/dev-libs/log4cplus/files/log4cplus-1.2.0-fix-c++14.patch b/dev-libs/log4cplus/files/log4cplus-1.2.0-fix-c++14.patch
new file mode 100644
index 000000000000..ccd6e1aadd2e
--- /dev/null
+++ b/dev-libs/log4cplus/files/log4cplus-1.2.0-fix-c++14.patch
@@ -0,0 +1,31 @@
+Make dtors noexcept(false) when compiling in C++11 and above. This avoids
+silent breakage due to the semantic changes between C++98 and C++11.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=595424
+
+--- a/include/log4cplus/hierarchylocker.h
++++ b/include/log4cplus/hierarchylocker.h
+@@ -48,7 +48,11 @@
+ public:
+ // ctor & dtor
+ HierarchyLocker(Hierarchy& h);
+- ~HierarchyLocker();
++ ~HierarchyLocker()
++#if __cplusplus >= 201103L
++ noexcept(false)
++#endif
++ ;
+
+ /**
+ * Calls the <code>resetConfiguration()</code> method on the locked Hierarchy.
+--- a/src/hierarchylocker.cxx
++++ b/src/hierarchylocker.cxx
+@@ -62,6 +62,9 @@
+
+
+ HierarchyLocker::~HierarchyLocker()
++#if __cplusplus >= 201103L
++ noexcept(false)
++#endif
+ {
+ try {
+ for(LoggerList::iterator it=loggerList.begin(); it!=loggerList.end(); ++it) {
diff --git a/dev-libs/log4cplus/log4cplus-1.1.3_rc7.ebuild b/dev-libs/log4cplus/log4cplus-1.1.3_rc7.ebuild
new file mode 100644
index 000000000000..3f533325b5ea
--- /dev/null
+++ b/dev-libs/log4cplus/log4cplus-1.1.3_rc7.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="C++ port of the Log for Java (log4j) logging library"
+HOMEPAGE="http://log4cplus.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}-stable/${PV%_*}/${MY_P}.tar.bz2"
+
+LICENSE="|| ( Apache-2.0 BSD-2 )"
+SLOT="0/1.1-9"
+KEYWORDS="~amd64 ~x86"
+IUSE="iconv test threads working-locale working-c-locale qt4"
+REQUIRED_USE="?? ( iconv working-locale working-c-locale )"
+
+RDEPEND="iconv? ( virtual/libiconv )
+ qt4? ( dev-qt/qtcore:4 )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ if ! use test; then
+ sed -i -e 's:tests::' Makefile.in || die
+ fi
+}
+
+src_configure() {
+ econf \
+ --disable-static \
+ $(use_enable threads) \
+ $(use_with iconv) \
+ $(use_with working-locale) \
+ $(use_with working-c-locale) \
+ $(use_with qt4 qt)
+}
+
+src_compile() {
+ default
+ use test && emake -C tests
+}
+
+src_test() {
+ cd tests/ || die
+
+ local t
+ for t in appender customloglevel fileappender filter \
+ hierarchy loglog ndc ostream patternlayout performance priority \
+ propertyconfig timeformat; do
+ einfo "Running test \"${t}_test\""
+ pushd "${t}_test/" >/dev/null || die
+ ./${t}_test || die "Running ${t}_test failed!"
+ popd >/dev/null || die
+ done
+
+ if use threads; then
+ for t in configandwatch thread; do
+ einfo "Running test \"${t}_test\""
+ pushd "${t}_test/" >/dev/null || die
+ ./${t}_test || die "Running ${t}_test failed!"
+ popd >/dev/null || die
+ done
+ fi
+}
+
+src_install() {
+ default
+ dodoc docs/unicode.txt
+
+ # package provides .pc files
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/dev-libs/log4cplus/log4cplus-1.2.0.ebuild b/dev-libs/log4cplus/log4cplus-1.2.0.ebuild
new file mode 100644
index 000000000000..20d7a8533148
--- /dev/null
+++ b/dev-libs/log4cplus/log4cplus-1.2.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="C++ port of the Log for Java (log4j) logging library"
+HOMEPAGE="http://log4cplus.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}-stable/${PV}/${P}.tar.bz2"
+
+LICENSE="|| ( Apache-2.0 BSD-2 )"
+SLOT="0/1.2-5"
+KEYWORDS="~amd64 ~x86"
+IUSE="iconv qt4 threads working-locale working-c-locale"
+REQUIRED_USE="?? ( iconv working-locale working-c-locale )"
+
+RDEPEND="iconv? ( virtual/libiconv )
+ qt4? ( dev-qt/qtcore:4 )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-1.2.0-fix-c++14.patch" )
+
+src_configure() {
+ econf \
+ --disable-static \
+ $(use_enable threads) \
+ $(use_with iconv) \
+ $(use_with working-locale) \
+ $(use_with working-c-locale) \
+ $(use_with qt4 qt)
+}
+
+src_test() {
+ cd tests/ || die
+
+ local t
+ for t in appender customloglevel fileappender filter \
+ hierarchy loglog ndc ostream patternlayout performance priority \
+ propertyconfig timeformat; do
+ einfo "Running test \"${t}_test\""
+ pushd "${t}_test/" >/dev/null || die
+ "${S}"/${t}_test || die "Running ${t}_test failed!"
+ popd >/dev/null || die
+ done
+
+ if use threads; then
+ for t in configandwatch thread; do
+ einfo "Running test \"${t}_test\""
+ pushd "${t}_test/" >/dev/null || die
+ "${S}"/${t}_test || die "Running ${t}_test failed!"
+ popd >/dev/null || die
+ done
+ fi
+}
+
+src_install() {
+ default
+ dodoc docs/unicode.txt
+
+ # package provides .pc files
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/dev-libs/log4cplus/metadata.xml b/dev-libs/log4cplus/metadata.xml
new file mode 100644
index 000000000000..99ab0fff8a6c
--- /dev/null
+++ b/dev-libs/log4cplus/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="working-locale">Use C++'s std::locale for wchar_t &lt;-&gt; char conversions. See also log4cplus's unicode.txt documentation</flag>
+ <flag name="working-c-locale">Use the C99 locale facilities for wchar_t &lt;-&gt; char conversions. See also log4cplus's unicode.txt documentation </flag>
+ <flag name="iconv">Use inconv for wchar_t &lt;-&gt; char conversions. See also log4cplus's unicode.txt documentation</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">log4cplus</remote-id>
+ </upstream>
+</pkgmetadata>