summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2011-07-04 08:32:05 +0000
committerDirkjan Ochtman <djc@gentoo.org>2011-07-04 08:32:05 +0000
commit8e3184942aef702dd8070c743f7b554050bba3be (patch)
tree8418436ecc1bec4075e61ccc81a27850677b36b1 /net-im/prosody
parentVersion bump. Add static-libs USE flag. (diff)
downloadgentoo-2-8e3184942aef702dd8070c743f7b554050bba3be.tar.gz
gentoo-2-8e3184942aef702dd8070c743f7b554050bba3be.tar.bz2
gentoo-2-8e3184942aef702dd8070c743f7b554050bba3be.zip
Version bump prosody to 0.8.2 (bug 373869).
(Portage version: 2.1.10.4/cvs/Linux x86_64)
Diffstat (limited to 'net-im/prosody')
-rw-r--r--net-im/prosody/ChangeLog7
-rw-r--r--net-im/prosody/prosody-0.8.2.ebuild72
2 files changed, 78 insertions, 1 deletions
diff --git a/net-im/prosody/ChangeLog b/net-im/prosody/ChangeLog
index df64dc2b008d..cad765bbf908 100644
--- a/net-im/prosody/ChangeLog
+++ b/net-im/prosody/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-im/prosody
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/prosody/ChangeLog,v 1.14 2011/06/06 11:44:26 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/prosody/ChangeLog,v 1.15 2011/07/04 08:32:03 djc Exp $
+
+*prosody-0.8.2 (04 Jul 2011)
+
+ 04 Jul 2011; Dirkjan Ochtman <djc@gentoo.org> +prosody-0.8.2.ebuild:
+ Version bump to 0.8.2 (bug 373869).
06 Jun 2011; Dirkjan Ochtman <djc@gentoo.org> -prosody-0.7.0.ebuild,
-files/prosody-0.7.0-cfg.lua.patch, -prosody-0.8.0.ebuild:
diff --git a/net-im/prosody/prosody-0.8.2.ebuild b/net-im/prosody/prosody-0.8.2.ebuild
new file mode 100644
index 000000000000..741380a5e31a
--- /dev/null
+++ b/net-im/prosody/prosody-0.8.2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/prosody/prosody-0.8.2.ebuild,v 1.1 2011/07/04 08:32:05 djc Exp $
+
+EAPI="2"
+
+inherit eutils multilib toolchain-funcs versionator
+
+MY_PV=$(replace_version_separator 3 '')
+DESCRIPTION="Prosody is a flexible communications server for Jabber/XMPP written in Lua."
+HOMEPAGE="http://prosody.im/"
+SRC_URI="http://prosody.im/downloads/source/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="libevent mysql postgres sqlite ssl zlib"
+
+DEPEND="net-im/jabber-base
+ >=dev-lang/lua-5.1
+ >=net-dns/libidn-1.1
+ >=dev-libs/openssl-0.9.8"
+RDEPEND="${DEPEND}
+ dev-lua/luasocket
+ ssl? ( dev-lua/luasec )
+ dev-lua/luaexpat
+ dev-lua/luafilesystem
+ mysql? ( >=dev-lua/luadbi-0.5[mysql] )
+ postgres? ( >=dev-lua/luadbi-0.5[postgres] )
+ sqlite? ( >=dev-lua/luadbi-0.5[sqlite] )
+ libevent? ( dev-lua/luaevent )
+ zlib? ( dev-lua/lua-zlib )"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+JABBER_ETC="/etc/jabber"
+JABBER_SPOOL="/var/spool/jabber"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-0.8.0-cfg.lua.patch"
+ sed -i "s!MODULES = \$(DESTDIR)\$(PREFIX)/lib/!MODULES = \$(DESTDIR)\$(PREFIX)/$(get_libdir)/!" Makefile
+ sed -i "s!SOURCE = \$(DESTDIR)\$(PREFIX)/lib/!SOURCE = \$(DESTDIR)\$(PREFIX)/$(get_libdir)/!" Makefile
+ sed -i "s!INSTALLEDSOURCE = \$(PREFIX)/lib/!INSTALLEDSOURCE = \$(PREFIX)/$(get_libdir)/!" Makefile
+ sed -i "s!INSTALLEDMODULES = \$(PREFIX)/lib/!INSTALLEDMODULES = \$(PREFIX)/$(get_libdir)/!" Makefile
+}
+
+src_configure() {
+ # the configure script is handcrafted (and yells at unknown options)
+ # hence do not use 'econf'
+ ./configure --prefix="/usr" \
+ --sysconfdir="${JABBER_ETC}" \
+ --datadir="${JABBER_SPOOL}" \
+ --with-lua-lib=/usr/$(get_libdir)/lua \
+ --c-compiler="$(tc-getCC)" --linker="$(tc-getCC)" \
+ --cflags="${CFLAGS} -Wall -fPIC" \
+ --ldflags="${LDFLAGS} -shared" \
+ --require-config || die "configure failed"
+}
+
+src_install() {
+ DESTDIR="${D}" emake install || die "make failed"
+ newinitd "${FILESDIR}/${PN}".initd ${PN}
+}
+
+src_test() {
+ cd tests
+ ./run_tests.sh
+}
+
+pkg_postinst() {
+ elog "Please note that the module 'console' has been renamed to 'admin_telnet'."
+}