diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-04-18 12:33:01 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-04-18 12:33:01 +0300 |
commit | b4eacb45cbff08221f85a3217f6318bb6f5ccf67 (patch) | |
tree | b2e954a862ac5da59ce03ae8b163c9e5f3495bc5 /net-im | |
parent | 728c0e3d6815da3278647cc3cc87dea364a43770 (diff) |
spectrum: build fix
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/spectrum/spectrum-scm.ebuild | 1 | ||||
-rw-r--r-- | net-im/swiften/swiften-9999.ebuild | 79 |
2 files changed, 79 insertions, 1 deletions
diff --git a/net-im/spectrum/spectrum-scm.ebuild b/net-im/spectrum/spectrum-scm.ebuild index 6c98ba0..390c871 100644 --- a/net-im/spectrum/spectrum-scm.ebuild +++ b/net-im/spectrum/spectrum-scm.ebuild @@ -52,7 +52,6 @@ pkg_setup() { } src_prepare() { -# epatch "${FILESDIR}"/spectrum2.patch use sqlite || { sed -i -e 's/find_package(sqlite3)/set(SQLITE3_FOUND FALSE)/' CMakeLists.txt || die; } use mysql || { sed -i -e 's/find_package(mysql)/set(MYSQL_FOUND FALSE)/' CMakeLists.txt || die; } use postgres || { sed -i -e 's/find_package(pqxx)/set(PQXX_FOUND FALSE)/' CMakeLists.txt || die; } diff --git a/net-im/swiften/swiften-9999.ebuild b/net-im/swiften/swiften-9999.ebuild new file mode 100644 index 0000000..6ab923f --- /dev/null +++ b/net-im/swiften/swiften-9999.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +SCONS_MIN_VERSION="1.2" +LANGS=" ca de es fr hu nl pl ru se sk" + +inherit eutils scons-utils toolchain-funcs git-2 + +DESCRIPTION="Just a perfect C++ XMPP library" +HOMEPAGE="http://swift.im/" +MY_P="swift-${PV}" +S="${WORKDIR}/${MY_P}" +EGIT_REPO_URI="git://swift.im/swift" +EGIT_BRANCH="swift-3.x" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="avahi debug doc test" +IUSE+="${LANGS// / linguas_}" + +RDEPEND=" + avahi? ( net-dns/avahi ) + >=dev-libs/boost-1.42 + >=dev-libs/openssl-0.9.8g + >=net-dns/libidn-1.10 + dev-libs/libxml2 + >=dev-libs/expat-2.0.1 + =net-libs/miniupnpc-1.8 + sys-libs/zlib +" +DEPEND="${RDEPEND} + doc? ( + >=app-text/docbook-xsl-stylesheets-1.75 + >=app-text/docbook-xml-dtd-4.5 + dev-libs/libxslt + ) +" + +src_prepare() { + pushd 3rdParty || die + # TODO CppUnit, Lua + rm -rf Boost CAres DocBook Expat LCov LibIDN OpenSSL SCons SQLite ZLib || die + popd || die + #rm -rf Swiften/Examples || die + epatch "${FILESDIR}"/*.patch + rm -rf Swiften/Examples #fucked shit +} + +src_compile() { + scons_vars=( + cc="$(tc-getCC)" + cxx="$(tc-getCXX)" + ccflags="${CFLAGS}" + linkflags="${LDFLAGS}" + allow_warnings=1 + $(use_scons debug) + openssl="${EPREFIX}/usr" + docbook_xsl="${EPREFIX}/usr/share/sgml/docbook/xsl-stylesheets" + docbook_xml="${EPREFIX}/usr/share/sgml/docbook/xml-dtd-4.5" + swiften_dll=1 + Swiften + ) + + escons "${scons_vars[@]}" +} + +src_test() { + escons "${scons_vars[@]}" test="unit" QA +} + +src_install() { + escons "${scons_vars[@]}" SWIFTEN_INSTALLDIR="${ED}/usr" \ + SWIFTEN_LIBDIR="${ED}/usr/$(get_libdir)" "${ED}/usr" + + use doc && dohtml "Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.html" +} |