public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tiziano Müller" <dev-zero@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/dev-zero:master commit in: www-servers/uwsgi/
Date: Fri,  2 Dec 2011 07:22:13 +0000 (UTC)	[thread overview]
Message-ID: <63a1481c964d7559e76ab58e3de878b38770fbbe.dev-zero@gentoo> (raw)

commit:     63a1481c964d7559e76ab58e3de878b38770fbbe
Author:     Tiziano Müller <tm <AT> dev-zero <DOT> ch>
AuthorDate: Fri Dec  2 07:22:08 2011 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Fri Dec  2 07:22:08 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=63a1481c

make ruby dep optional

---
 www-servers/uwsgi/Manifest             |    4 +-
 www-servers/uwsgi/uwsgi-1.0_rc7.ebuild |    3 +-
 www-servers/uwsgi/uwsgi-9999.ebuild    |   35 +++++++++++++++++++++++++------
 3 files changed, 32 insertions(+), 10 deletions(-)

diff --git a/www-servers/uwsgi/Manifest b/www-servers/uwsgi/Manifest
index c00b589..76d1387 100644
--- a/www-servers/uwsgi/Manifest
+++ b/www-servers/uwsgi/Manifest
@@ -4,7 +4,7 @@ AUX uwsgi.initd 2386 RMD160 a799175f2b94eb96dc19ff9b8b4d5c18a52cbd38 SHA1 ffa187
 DIST uwsgi-0.9.8.6.tar.gz 359620 RMD160 78b92fe3a9b272ca5a2704b0db7d1956b9149a0b SHA1 bb835c3c14310640b24ebdbcf0aa91e8ce8bd5a6 SHA256 14379c0055063dbfbc4ce9ba10dfd6eec827286a462300d98947174d9694d981
 DIST uwsgi-1.0-rc7.tar.gz 447066 RMD160 4e2ff2bbfbafd3e0402c3a551c43af88d7d370dc SHA1 9ab26a73ba6204ae509adc129ed2acc22413ab05 SHA256 7439578f62a3bf1adcfeb58b192405a77032b6b792bef3cd54dd3ae7ec4b1df2
 EBUILD uwsgi-0.9.8.6.ebuild 4304 RMD160 ce533908cedae761db93ae26b811ae09e12847fc SHA1 29710c3c36fe5cffb34c180f9c6a48d7ace001e5 SHA256 5bf9203180bfa41622cad1f8c414b0a00af7b901e70017784f7648be43316b28
-EBUILD uwsgi-1.0_rc7.ebuild 5266 RMD160 dd1dd5587cf7073ef117eafc6d55dbbb96666196 SHA1 af20ef6642e1eac12671a2b1082b8a69c158d05f SHA256 05c9b91e01014eb999eda4b8a962f15c359dffce5a7170fabe4015930930c341
-EBUILD uwsgi-9999.ebuild 4443 RMD160 114d797de425d0d5b3bfe23cfbc426aa9567fc99 SHA1 e26121b379a91b18edb6fcd2d94a5ef6377f0282 SHA256 37dc74d9d4d4224d419bca0f3805e7a936a303867cc94f6d26c8103a7dc3d45c
+EBUILD uwsgi-1.0_rc7.ebuild 5303 RMD160 657947aa39bb28ce8f2e4d8229617474c8431f50 SHA1 3a54351ee06a32fbc3b79f272a9b24bfea2313d4 SHA256 6968941db8836ddfb4bbcb1ba54c4f0f580bcc9f8ba0f52e149133c802465b5f
+EBUILD uwsgi-9999.ebuild 5255 RMD160 61721207ea4564268c1f2ca7239c4142e27b570c SHA1 f2c2b029e306026558b5109f92a6d2209361db27 SHA256 bb20de3da3ad5e54ae5089cb3a87e7b19c086326af8367e86b68f7acf6feae8c
 MISC ChangeLog 533 RMD160 cef38aefe63bc7d5ad4a767bc34b7f57a1be9b5a SHA1 80e5cd4bd06fa22b86e439e7260064260df14d37 SHA256 418abb3d30490aae32336efcb4c27ee96af8a09f1f9bbfc629384efe8c2363a9
 MISC metadata.xml 255 RMD160 07d553bdf9282f61c4e99ad3f7697a310946cf9d SHA1 533ddafc8a18d2110ccdbec4c99c48abbcd6e633 SHA256 e3eef1b3ebe3eea3ba74657f3a332c7427c1bd24a5609d2ff887f63901d9cd35

diff --git a/www-servers/uwsgi/uwsgi-1.0_rc7.ebuild b/www-servers/uwsgi/uwsgi-1.0_rc7.ebuild
index bc63942..ad2a719 100644
--- a/www-servers/uwsgi/uwsgi-1.0_rc7.ebuild
+++ b/www-servers/uwsgi/uwsgi-1.0_rc7.ebuild
@@ -6,6 +6,7 @@ EAPI="4"
 PYTHON_DEPEND="python? 2:2.4:2.7 3:3.1:3.2"
 SUPPORT_PYTHON_ABIS="1"
 USE_RUBY="ruby18 ree18 ruby19"
+RUBY_OPTIONAL="yes"
 
 MY_P="${P/_/-}"
 
@@ -27,7 +28,7 @@ CDEPEND="uuid? ( sys-apps/util-linux )
 	lua? ( dev-lang/lua )
 	pcre? ( dev-libs/libpcre )
 	perl? ( dev-lang/perl )
-	ruby? ( dev-lang/ruby )
+	ruby? ( $(ruby_implementations_depend) )
 	sqlite? ( dev-db/sqlite:3 )
 	xml? ( dev-libs/libxml2 )
 	yaml? ( dev-libs/libyaml )

diff --git a/www-servers/uwsgi/uwsgi-9999.ebuild b/www-servers/uwsgi/uwsgi-9999.ebuild
index 917af91..6926a5c 100644
--- a/www-servers/uwsgi/uwsgi-9999.ebuild
+++ b/www-servers/uwsgi/uwsgi-9999.ebuild
@@ -5,6 +5,8 @@
 EAPI="4"
 PYTHON_DEPEND="python? 2:2.4:2.7 3:3.1:3.2"
 SUPPORT_PYTHON_ABIS="1"
+USE_RUBY="ruby18 ree18 ruby19"
+RUBY_OPTIONAL="yes"
 
 inherit apache-module python multilib mercurial
 
@@ -14,15 +16,17 @@ EHG_REPO_URI="http://projects.unbit.it/hg/uwsgi"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS=""
-IUSE="apache2 +carbon debug json ldap lua +nagios +pcre perl python ruby rrdtool sqlite +xml yaml zeromq"
+KEYWORDS="~amd64 ~x86"
+IUSE="apache2 +caps +carbon debug json ldap lua +nagios +pcre perl python ruby rrdtool sqlite +uuid +xml yaml zeromq"
 
-CDEPEND="json? ( dev-libs/jansson )
+CDEPEND="uuid? ( sys-apps/util-linux )
+	caps? ( sys-libs/libcap )
+	json? ( dev-libs/jansson )
 	ldap? ( net-nds/openldap )
 	lua? ( dev-lang/lua )
 	pcre? ( dev-libs/libpcre )
 	perl? ( dev-lang/perl )
-	ruby? ( dev-lang/ruby )
+	ruby? ( $(ruby_implementations_depend) )
 	sqlite? ( dev-db/sqlite:3 )
 	xml? ( dev-libs/libxml2 )
 	yaml? ( dev-libs/libyaml )
@@ -44,6 +48,10 @@ use_true_false() {
 	fi
 }
 
+src_unpack() {
+	default
+}
+
 pkg_setup() {
 	depend.apache_pkg_setup
 	python_pkg_setup
@@ -114,6 +122,19 @@ paste = true
 web3 = true
 
 EOF
+	use caps || sed -i -e 's|sys/capability.h|DISABLED|' uwsgiconfig.py || die "sed failed"
+	use uuid || sed -i -e 's|uuid/uuid.h|DISABLED|' uwsgiconfig.py || die "sed failed"
+}
+
+each_ruby_compile() {
+	cd "${WORKDIR}/${MY_P}"
+
+	sed -i -e "s|^NAME=.*|NAME='rack_${RUBY##*/}'|" plugins/rack/uwsgiplugin.py || die "sed failed"
+	UWSGICONFIG_RUBYPATH="${RUBY}" python uwsgiconfig.py --plugin plugins/rack gentoo || die "building plugin for ${RUBY} failed"
+
+	if [[ "${RUBY}" == *ruby19 ]] ; then
+		UWSGICONFIG_RUBYPATH="${RUBY}" python uwsgiconfig.py --plugin plugins/ruby19 gentoo || die "building plugin for ${RUBY} failed"
+	fi
 }
 
 src_compile() {
@@ -126,7 +147,7 @@ src_compile() {
 	fi
 
 	if use perl ; then
-		python uwsgiconfig.py --plugin plugins/perl gentoo || die "building plugin for perl failed"
+		python uwsgiconfig.py --plugin plugins/psgi gentoo || die "building plugin for perl failed"
 	fi
 
 	if use python ; then
@@ -136,7 +157,7 @@ src_compile() {
 	fi
 
 	if use ruby ; then
-		echo "TODO"
+		ruby-ng_src_compile
 	fi
 
 	if use apache2 ; then
@@ -187,6 +208,6 @@ pkg_postinst() {
 
 	if use lua || use perl || use ruby || use python; then
 		elog "The lua, perl and ruby modules are built as plugins."
-		elog "Use '--plugins lua', '--plugins psgi', '--plugins rack' or '--plugins python27' to load them."
+		elog "Use '--plugins lua', '--plugins psgi', '--plugins rack_ruby18' or '--plugins python27' to load them."
 	fi
 }



             reply	other threads:[~2011-12-02  7:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02  7:22 Tiziano Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-05-09  6:11 [gentoo-commits] dev/dev-zero:master commit in: www-servers/uwsgi/ Tiziano Müller
2012-05-08 18:51 Tiziano Müller
2012-04-23  7:49 Tiziano Müller
2012-02-20 14:02 Tiziano Müller
2011-11-29 22:55 Tiziano Müller
2011-11-29 18:54 Tiziano Müller
2011-10-12 13:25 Tiziano Müller
2011-08-09 10:02 Tiziano Müller
2011-08-04 13:57 Tiziano Müller
2011-08-02 13:13 Tiziano Müller

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=63a1481c964d7559e76ab58e3de878b38770fbbe.dev-zero@gentoo \
    --to=dev-zero@gentoo.org \
    --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