Files
@ 20cbe1b99111
Branch filter:
Location: portage-overlay.git/net-im/spectrum/spectrum-2.0.3.ebuild - annotation
20cbe1b99111
2.5 KiB
application/vnd.gentoo.ebuild
games-rpg/pcgen: Update description
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 | e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 e9e2157d3f49 | # Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
[[ ${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
SRC_URI="https://github.com/hanzz/spectrum2/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}2-${PV}"
fi
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~amd64 ~x86"
IUSE_PLUGINS="frotz irc jabber purple sms twitter whatsapp"
IUSE="debug doc libev mysql postgres sqlite test ${IUSE_PLUGINS}"
RDEPEND="${RDEPEND}
dev-libs/libev
dev-libs/log4cxx
dev-libs/openssl
dev-libs/popt
dev-libs/protobuf
>=net-im/swift-3.0[idn,ssl]
mysql? ( virtual/mysql )
postgres? ( dev-libs/libpqxx )
sqlite? ( dev-db/sqlite:3 )
irc? ( net-im/communi )
purple? ( >=net-im/pidgin-2.11.0
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 sms SMSTOOLS3)
$(cmake-utils_use_enable twitter TWITTER)
$(cmake-utils_use_enable whatsapp WHATSAPP)
)
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
}
|