summaryrefslogtreecommitdiff
path: root/net-im/prosody/prosody-0.7.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/prosody/prosody-0.7.0.ebuild')
-rw-r--r--net-im/prosody/prosody-0.7.0.ebuild66
1 files changed, 0 insertions, 66 deletions
diff --git a/net-im/prosody/prosody-0.7.0.ebuild b/net-im/prosody/prosody-0.7.0.ebuild
deleted file mode 100644
index e300a67..0000000
--- a/net-im/prosody/prosody-0.7.0.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# 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.7.0.ebuild,v 1.2 2011/03/22 20:59:44 ulm 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 ssl +zlib"
-
-DEPEND="net-im/jabber-base
- >=dev-lang/lua-5.1
- dev-lua/luasocket
- ssl? ( dev-lua/luasec )
- dev-lua/luaexpat
- dev-lua/luafilesystem
- libevent? ( dev-lua/luaevent )
- >=net-dns/libidn-1.1
- >=dev-libs/openssl-0.9.8"
-RDEPEND="${DEPEND}
- zlib? ( dev-lua/lua-zlib )"
-
-S="${WORKDIR}/${PN}-${MY_PV}"
-
-JABBER_ETC="/etc/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-cfg.lua.patch"
- useq libevent && sed -i "s!--use_libevent.*!use_libevent = true!" prosody.cfg.lua.dist
- 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
-}