[net-im/spectrum2] sync with tree
This commit is contained in:
parent
dbf179d455
commit
9de534a8e2
@ -3,9 +3,7 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
inherit cmake systemd
|
||||||
|
|
||||||
inherit cmake-utils python-any-r1 systemd
|
|
||||||
|
|
||||||
if [[ ${PV} = "9999" ]] ; then
|
if [[ ${PV} = "9999" ]] ; then
|
||||||
EGIT_REPO_URI="https://github.com/SpectrumIM/${PN}.git"
|
EGIT_REPO_URI="https://github.com/SpectrumIM/${PN}.git"
|
||||||
@ -24,6 +22,7 @@ LICENSE="GPL-2+"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="doc frotz irc mysql postgres purple sms +sqlite test twitter whatsapp xmpp"
|
IUSE="doc frotz irc mysql postgres purple sms +sqlite test twitter whatsapp xmpp"
|
||||||
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
acct-group/spectrum
|
acct-group/spectrum
|
||||||
@ -61,30 +60,14 @@ RDEPEND="
|
|||||||
DEPEND="
|
DEPEND="
|
||||||
${RDEPEND}
|
${RDEPEND}
|
||||||
doc? ( app-doc/doxygen )
|
doc? ( app-doc/doxygen )
|
||||||
test? (
|
test? ( dev-util/cppunit )
|
||||||
${PYTHON_DEPS}
|
|
||||||
$(python_gen_any_dep 'dev-python/sleekxmpp[${PYTHON_USEDEP}]')
|
|
||||||
dev-util/cppunit
|
|
||||||
net-irc/ngircd
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
|
|
||||||
# Tests are currently restricted, as they do completly fail
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
python_check_deps() {
|
|
||||||
has_version "dev-python/sleekxmpp[${PYTHON_USEDEP}]"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use test && python-any-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
# Respect users LDFLAGS
|
# Respect users LDFLAGS
|
||||||
sed -i -e "s/-Wl,-export-dynamic/& ${LDFLAGS}/" spectrum/src/CMakeLists.txt || die
|
sed -i -e "s/-Wl,-export-dynamic/& ${LDFLAGS}/" spectrum/src/CMakeLists.txt || die
|
||||||
|
|
||||||
cmake-utils_src_prepare
|
cmake_src_prepare
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
@ -104,15 +87,16 @@ src_configure() {
|
|||||||
-DLIB_INSTALL_DIR="$(get_libdir)"
|
-DLIB_INSTALL_DIR="$(get_libdir)"
|
||||||
)
|
)
|
||||||
|
|
||||||
cmake-utils_src_configure
|
cmake_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
src_test() {
|
src_test() {
|
||||||
cd tests/libtransport && "${EPYTHON}" ../start.py || die
|
cd "${BUILD_DIR}/tests/libtransport" || die
|
||||||
|
./libtransport_test || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
cmake-utils_src_install
|
cmake_src_install
|
||||||
|
|
||||||
diropts -o spectrum -g spectrum
|
diropts -o spectrum -g spectrum
|
||||||
keepdir /var/log/spectrum2 /var/lib/spectrum2
|
keepdir /var/log/spectrum2 /var/lib/spectrum2
|
||||||
|
Loading…
Reference in New Issue
Block a user