[net-im/swiften] rename, don't care about pkgmove tho

This commit is contained in:
Robert Förster 2018-09-20 12:15:56 +02:00
parent fb36446be8
commit 7a89bd46c8
1 changed files with 0 additions and 105 deletions

View File

@ -1,105 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit scons-utils toolchain-funcs
DESCRIPTION="A C++ library for implementing XMPP applications"
HOMEPAGE="https://www.swift.im/"
if [[ ${PV} = "9999" ]] ; then
EGIT_REPO_URI="https://github.com/swift/swift.git"
EGIT_BRANCH="swift-4.x"
inherit git-r3
KEYWORDS=""
else
RESTRICT="mirror"
SRC_URI="https://swift.im/downloads/releases/swift-${PV}/swift-${PV}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/swift-${PV}"
fi
LICENSE="BSD BSD-1 CC-BY-3.0 GPL-3 OFL-1.1"
SLOT="0/4"
IUSE="debug expat icu idn sqlite upnp zeroconf"
DEPEND="dev-libs/boost:=
dev-libs/openssl:0=
sys-libs/zlib:=
expat? ( dev-libs/expat )
!expat? ( dev-libs/libxml2:2 )
icu? ( dev-libs/icu:= )
idn? ( net-dns/libidn )
sqlite? ( dev-db/sqlite:3 )
upnp? ( net-libs/libnatpmp
net-libs/miniupnpc:= )
zeroconf? ( net-dns/avahi )"
RDEPEND="${DEPEND}"
DOCS=( "DEVELOPMENT.md" "README.md" "Swiften/ChangeLog.md" )
src_prepare() {
default
# Remove '3rdParty', as the system libs should be used
# Remove 'Limber', 'Slimber' and 'Sluift', as we compile only libSwiften
rm -fr 3rdParty Limber Slimber Sluift || die
}
src_configure() {
MYSCONS=(
ar="$(tc-getAR)"
allow_warnings="yes"
assertions="$(usex debug)"
build_examples="yes"
boost_bundled_enable="false"
boost_force_bundled="false"
cc="$(tc-getCC)"
ccache="no"
ccflags="${CFLAGS}"
coverage="$(usex debug)"
cxx="$(tc-getCXX)"
cxxflags="${CXXFLAGS}"
debug="$(usex debug)"
distcc="no"
experimental="$(usex sqlite)"
experimental_ft="$(usex upnp)"
hunspell_enable="false"
icu="$(usex icu)"
install_git_hooks="no"
libidn_bundled_enable="false"
libminiupnpc_force_bundled="false"
libnatpmp_force_bundled="false"
link="$(tc-getCXX)"
linkflags="${LDFLAGS}"
lua_force_bundled="false"
max_jobs="no"
optimize="no"
qt5="false"
swiften_dll="true"
swift_mobile="no"
target="native"
test="none"
try_avahi="$(usex zeroconf)"
try_expat="$(usex expat)"
try_gconf="false"
try_libidn="$(usex idn)"
try_libxml="$(usex expat no yes)"
tls_backend="openssl"
unbound="no"
valgrind="no"
zlib_bundled_enable="false"
Swiften
)
}
src_compile() {
escons V=1 "${MYSCONS[@]}" PROJECTS="Swiften" Swiften
}
src_install() {
escons "${MYSCONS[@]}" SWIFTEN_INSTALLDIR="${ED%/}/usr" SWIFTEN_LIBDIR="${ED%/}/usr/$(get_libdir)" "${ED%/}/usr" Swiften
einstalldocs
}