Files
@ dc53e5004f02
Branch filter:
Location: portage-overlay.git/net-im/spectrum/spectrum-2.0.0_beta2.ebuild - annotation
dc53e5004f02
2.9 KiB
application/vnd.gentoo.ebuild
update net-misc/pyload to 0.4.9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | 794dc86717e2 3d8228355825 794dc86717e2 794dc86717e2 794dc86717e2 3d8228355825 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 3d8228355825 794dc86717e2 3d8228355825 3d8228355825 794dc86717e2 3d8228355825 3d8228355825 3d8228355825 8bd4d3db85a2 3d8228355825 794dc86717e2 794dc86717e2 3d8228355825 794dc86717e2 26d135ffcf5b 3d8228355825 53a7614b853c 794dc86717e2 794dc86717e2 3d8228355825 794dc86717e2 794dc86717e2 3d8228355825 53a7614b853c 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 794dc86717e2 794dc86717e2 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 794dc86717e2 794dc86717e2 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 794dc86717e2 794dc86717e2 3d8228355825 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 794dc86717e2 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 3d8228355825 794dc86717e2 |
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
inherit cmake-utils versionator ${VCS_ECLASS}
DESCRIPTION="Spectrum is a XMPP transport/gateway"
HOMEPAGE="http://spectrum.im"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="git://github.com/hanzz/libtransport.git"
else
MY_PN="spectrum"
MY_PV=$(replace_version_separator '_' '-')
MY_P="${MY_PN}-${MY_PV}"
SRC_URI="https://github.com/downloads/hanzz/libtransport/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
fi
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~amd64 ~x86"
IUSE_PLUGINS="frotz irc jabber purple skype sms twitter yahoo"
IUSE="debug doc libev mysql postgres sqlite test ${IUSE_PLUGINS}"
# Richard H. <chain@rpgfiction.net> (2012-10-17): 2.0_beta2 does only build with swift-2.0_beta1
[[ ${PV} = *9999* ]] && RDEPEND="net-im/swift[ssl]" || RDEPEND="=net-im/swift-2.0_beta1[ssl]"
RDEPEND="${RDEPEND}
dev-libs/libev
dev-libs/log4cxx
dev-libs/openssl
dev-libs/popt
dev-libs/protobuf
mysql? ( virtual/mysql )
postgres? ( dev-libs/libpqxx )
sqlite? ( dev-db/sqlite:3 )
irc? ( net-im/communi )
purple? ( >=net-im/pidgin-2.6.0 )
skype? ( dev-libs/dbus-glib x11-base/xorg-server[xvfb] net-im/skype )
libev? ( dev-libs/libev )
"
DEPEND="${RDEPEND}
dev-util/cmake
sys-devel/gettext
doc? ( app-doc/doxygen )
test? ( dev-util/cppunit )
"
REQUIRED_USE="|| ( sqlite mysql postgres )"
pkg_setup() {
CMAKE_IN_SOURCE_BUILD=1
use debug && CMAKE_BUILD_TYPE=Debug
MYCMAKEARGS="-DLIB_INSTALL_DIR=$(get_libdir)"
}
src_prepare() {
# no patches as of now
#epatch "${FILESDIR}"/spectrum2-.patch
base_src_prepare
}
src_configure() {
mycmakeargs=(
$(cmake-utils_use_enable mysql MYSQL)
$(cmake-utils_use_enable postgres PQXX)
$(cmake-utils_use_enable sqlite SQLITE3)
$(cmake-utils_use_enable doc DOCS)
$(cmake-utils_use_enable frotz FROTZ)
$(cmake-utils_use_enable irc IRC)
$(cmake-utils_use_enable jabber SWIFTEN)
$(cmake-utils_use_enable purple PURPLE)
$(cmake-utils_use_enable skype SKYPE)
$(cmake-utils_use_enable sms SMSTOOLS3)
$(cmake-utils_use_enable twitter TWITTER)
$(cmake-utils_use_enable yahoo YAHOO2)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
newinitd "${FILESDIR}"/spectrum2.initd spectrum2
keepdir "${EPREFIX}"/var/lib/spectrum2
keepdir "${EPREFIX}"/var/log/spectrum2
keepdir "${EPREFIX}"/var/run/spectrum2
}
pkg_postinst() {
# Create jabber-user
enewgroup jabber
enewuser jabber -1 -1 -1 jabber
# Set correct rights
chown jabber:jabber -R "/etc/spectrum2" || die
chown jabber:jabber -R "${EPREFIX}/var/log/spectrum2" || die
chown jabber:jabber -R "${EPREFIX}/var/run/spectrum2" || die
chmod 750 "/etc/spectrum2" || die
chmod 750 "${EPREFIX}/var/log/spectrum2" || die
chmod 750 "${EPREFIX}/var/run/spectrum2" || die
}
|