From: "Vadim A. Misbakh-Soloviov" <mva@mva.name>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/lua:master commit in: net-im/prosody/
Date: Wed, 22 May 2013 21:56:21 +0000 (UTC) [thread overview]
Message-ID: <1369259760.4d9f60d2fb26eb73eb2fdf22b4350cab78bed121.mva@gentoo> (raw)
commit: 4d9f60d2fb26eb73eb2fdf22b4350cab78bed121
Author: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
AuthorDate: Wed May 22 21:56:00 2013 +0000
Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Wed May 22 21:56:00 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/lua.git;a=commit;h=4d9f60d2
[net-im/prosody] prosody ebuild fixes
Signed-off-by: Vadim A. Misbakh-Soloviov <mva <AT> mva.name>
---
net-im/prosody/prosody-9999.ebuild | 68 +++++++++++++++++++++--------------
1 files changed, 41 insertions(+), 27 deletions(-)
diff --git a/net-im/prosody/prosody-9999.ebuild b/net-im/prosody/prosody-9999.ebuild
index 9e6181c..db7b560 100644
--- a/net-im/prosody/prosody-9999.ebuild
+++ b/net-im/prosody/prosody-9999.ebuild
@@ -6,7 +6,6 @@ EAPI="5"
inherit eutils multilib toolchain-funcs versionator mercurial
-MY_PV=$(replace_version_separator 3 '')
DESCRIPTION="Prosody is a flexible communications server for Jabber/XMPP written in Lua."
HOMEPAGE="http://prosody.im/"
EHG_REPO_URI="http://hg.prosody.im/trunk"
@@ -14,30 +13,38 @@ EHG_REPO_URI="http://hg.prosody.im/trunk"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE="+libevent mysql postgres sqlite +ssl +zlib +luajit ipv6 migration"
-
-DEPEND=" virtual/lua
- net-im/jabber-base
- luajit? ( dev-lang/luajit:2 )
- >=net-dns/libidn-1.1
- >=dev-libs/openssl-0.9.8"
-RDEPEND="${DEPEND}
- dev-lua/luasocket
- ipv6? ( =dev-lua/luasocket-9999 )
- 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}"
+IUSE="doc +libevent mysql postgres sqlite +ssl +zlib luajit ipv6 migration"
+
+DEPEND="
+ || ( dev-lang/luajit:2 =dev-lang/lua-5.1* )
+ net-im/jabber-base
+ luajit? ( dev-lang/luajit:2 )
+ >=net-dns/libidn-1.1
+ >=dev-libs/openssl-0.9.8
+"
+
+RDEPEND="
+ ${DEPEND}
+ dev-lua/luasocket
+ ipv6? ( =dev-lua/luasocket-9999 )
+ ssl? ( =dev-lua/luasec-9999 )
+ 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}/${P}"
JABBER_ETC="/etc/jabber"
JABBER_SPOOL="/var/spool/jabber"
+
+DOCS=( -r doc/ HACKERS AUTHORS )
+
src_prepare() {
epatch "${FILESDIR}/${PN}-0.8.0-cfg.lua.patch"
sed -e "s!MODULES = \$(DESTDIR)\$(PREFIX)/lib/!MODULES = \$(DESTDIR)\$(PREFIX)/$(get_libdir)/!" -i Makefile
@@ -46,13 +53,16 @@ src_prepare() {
sed -e "s!INSTALLEDMODULES = \$(PREFIX)/lib/!INSTALLEDMODULES = \$(PREFIX)/$(get_libdir)/!" -i Makefile
sed -e 's!\(os.execute(\)\(CFG_SOURCEDIR.."/../../bin/prosody"\)\();\)!\1"/usr/bin/prosody"\3!' -i util/prosodyctl.lua
sed -e 's!\(desired_user = .* or "\)\(prosody\)\(";\)!\1jabber\3!' -i prosodyctl
- use luajit && sed -e "s!\(/usr/bin/env\) lua!\1 luajit!" -i prosody -i prosodyctl
}
src_configure() {
- use luajit && \
- myconf="--with-lua-include=$($(tc-getPKG_CONFIG) --variable includedir luajit)" || \
- myconf="--with-lua-include=$($(tc-getPKG_CONFIG) --variable includedir lua)"
+ local lua=lua;
+
+ use luajit && {
+ myconf="--lua-suffix=jit"
+ lua=luajit;
+ }
+
# the configure script is handcrafted (and yells at unknown options)
# hence do not use 'econf'
./configure --prefix="/usr" \
@@ -61,8 +71,10 @@ src_configure() {
--datadir="${JABBER_SPOOL}" \
--with-lua-lib=/usr/$(get_libdir) \
--c-compiler="$(tc-getCC)" --linker="$(tc-getCC)" \
- --cflags="${CFLAGS} -Wall -fPIC" \
+ --cflags="${CFLAGS} -Wall -fPIC -D_GNU_SOURCE" \
--ldflags="${LDFLAGS} -shared" \
+ --runwith="${lua}" \
+ --with-lua-include="$($(tc-getPKG_CONFIG) --variable includedir ${lua})" \
--require-config "${myconf}" || die "configure failed"
}
@@ -75,10 +87,12 @@ src_compile() {
}
src_install() {
- DESTDIR="${D}" emake install || die "make failed"
+ default
+# DESTDIR="${D}" emake install || die "make failed"
newinitd "${FILESDIR}/${PN}".initd "${PN}"
insinto /etc/logrotate.d
newins "${FILESDIR}/${PN}".logrotate "${PN}"
+
use migration && (
cd "${S}/tools/migration"
DESTDIR="${D}" emake install || die "migrator install failed"
next reply other threads:[~2013-05-22 21:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 21:56 Vadim A. Misbakh-Soloviov [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-08-08 16:19 [gentoo-commits] proj/lua:master commit in: net-im/prosody/ Vadim A. Misbakh-Soloviov
2017-11-09 4:09 Vadim A. Misbakh-Soloviov
2016-01-05 22:37 Vadim A. Misbakh-Soloviov
2015-02-26 10:42 Vadim A. Misbakh-Soloviov
2013-09-13 12:49 Vadim A. Misbakh-Soloviov
2013-09-13 5:11 Vadim A. Misbakh-Soloviov
2013-06-15 9:10 Vadim A. Misbakh-Soloviov
2012-08-05 2:33 Misbakh-Soloviev Vadim A.
2012-08-04 16:55 Misbakh-Soloviev Vadim A.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1369259760.4d9f60d2fb26eb73eb2fdf22b4350cab78bed121.mva@gentoo \
--to=mva@mva.name \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox