1 |
commit: 57439b8b177adcfeb13a6433374db4c52ffc9505 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 28 06:11:16 2015 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 28 06:12:45 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57439b8b |
7 |
|
8 |
www-apache/passenger: version bump |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
www-apache/passenger/Manifest | 1 + |
13 |
.../passenger/files/passenger-5.0.20-gentoo.patch | 30 ++++++ |
14 |
www-apache/passenger/passenger-5.0.20.ebuild | 119 +++++++++++++++++++++ |
15 |
3 files changed, 150 insertions(+) |
16 |
|
17 |
diff --git a/www-apache/passenger/Manifest b/www-apache/passenger/Manifest |
18 |
index bc960b5..282c91c 100644 |
19 |
--- a/www-apache/passenger/Manifest |
20 |
+++ b/www-apache/passenger/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST passenger-4.0.53.tar.gz 4447609 SHA256 0b8d256cd930f93cfe723392aaa12fa3f9d5ddfddc82bbb7ab287673d029e101 SHA512 45919317c42da898783a22095fe75ed26f9142d227a25f5546f16861ce8c3ecfe2d804a845d389a00019df914cafd7625dc4e8fb31bc2f4ede5ecf41ce69c2a7 WHIRLPOOL fd205aefdec95eee82165d5a65e3dcf112544784549aa51d8a52703b51242120583e64837604ba31957e2cc98fb85a164f9ee19c367980869e0ff0159759c492 |
23 |
DIST passenger-4.0.59.tar.gz 4521206 SHA256 8b4756564a5133dc97425883d15d1ba1c9f6566c79e92794dc3e1f5b749238ae SHA512 d29400c71cf9530b41ce8b8d4cf94007e4d77fb4ceff290786506d6b9dfbab790f18423dc5dcd71aef07147ba2610c2982f7ca733a8e491de6a0cb3704c54bfb WHIRLPOOL 4683d19813ecbb284ec3eb9681c6c1a1b84f256f0262e6c2b1941df5872031a30da1396cb22fa1cfbad2f53f8971131ed0418c2ef4c20160a3d67f151d54208a |
24 |
DIST passenger-5.0.18.tar.gz 4927106 SHA256 8a92393f5413bb20686295f62a586e3af3b68e631b679413c990b5f0b58ba767 SHA512 dbe3bcdcdf1fae77b822bd157a61e28471e8139ee7165cccd819aedca7d5a0fc4204be8da9cb628fa2180807bb8c46143c98d7e9d1f84afeb6cc99695a7754af WHIRLPOOL 02686489207001383bdbad7661ce3d6303b94403e7795a16b9d7fae388d412f699342fce911d3e8038830387a76e846c213bb6cc80e9d55992ea4e511e7f6ed7 |
25 |
+DIST passenger-5.0.20.tar.gz 5307200 SHA256 a5b35780beb7ecd39d18375acab3e4fa1a2e104b7a324f41a1f89c99e7b8b04c SHA512 72c79b8433270336cc5a1dac11afa45f9095b8a29dd764e7e640dca1f376b23c422e2a9438ff25747c5d438266d5a3870b66121ed6642033fdc3e274c8d7e32f WHIRLPOOL 7bde79e1e7efceb3dca84d8ebfa7b15d71f8cf041e69c19ab2824ce2bb5d692fe64bda07b7b55dcb6cecd746cf0548b230ef4af41299329d0a6ed07bfb661fd2 |
26 |
|
27 |
diff --git a/www-apache/passenger/files/passenger-5.0.20-gentoo.patch b/www-apache/passenger/files/passenger-5.0.20-gentoo.patch |
28 |
new file mode 100644 |
29 |
index 0000000..a9fe95f |
30 |
--- /dev/null |
31 |
+++ b/www-apache/passenger/files/passenger-5.0.20-gentoo.patch |
32 |
@@ -0,0 +1,30 @@ |
33 |
+--- build/packaging.rb.~1~ 2013-10-27 00:00:00.000000000 +0200 |
34 |
++++ build/packaging.rb 2015-09-28 07:44:04.584236386 +0200 |
35 |
+@@ -575,7 +575,7 @@ |
36 |
+ psg_ruby = ENV['RUBY'] || "#{fs_bindir}/ruby" |
37 |
+ psg_free_ruby = ENV['FREE_RUBY'] || "/usr/bin/env ruby" |
38 |
+ |
39 |
+- fakeroot = "pkg/fakeroot" |
40 |
++ fakeroot = ENV['DISTDIR'] |
41 |
+ fake_rubylibdir = "#{fakeroot}#{psg_rubylibdir}" |
42 |
+ fake_nodelibdir = "#{fakeroot}#{psg_nodelibdir}" |
43 |
+ fake_libdir = "#{fakeroot}#{psg_libdir}" |
44 |
+@@ -593,7 +593,6 @@ |
45 |
+ |
46 |
+ packaging_method = ENV['NATIVE_PACKAGING_METHOD'] || ENV['PACKAGING_METHOD'] || "deb" |
47 |
+ |
48 |
+- sh "rm -rf #{fakeroot}" |
49 |
+ sh "mkdir -p #{fakeroot}" |
50 |
+ |
51 |
+ # Ruby sources |
52 |
+@@ -690,10 +689,6 @@ |
53 |
+ change_shebang("#{fake_sbindir}/#{exe}", shebang) |
54 |
+ end |
55 |
+ |
56 |
+- # Apache 2 module |
57 |
+- sh "mkdir -p #{File.dirname(fake_apache2_module_path)}" |
58 |
+- sh "cp #{APACHE2_TARGET} #{fake_apache2_module_path}" |
59 |
+- |
60 |
+ # Ruby extension sources |
61 |
+ sh "mkdir -p #{fake_ruby_extension_source_dir}" |
62 |
+ sh "cp -R #{PhusionPassenger.ruby_extension_source_dir}/* #{fake_ruby_extension_source_dir}" |
63 |
|
64 |
diff --git a/www-apache/passenger/passenger-5.0.20.ebuild b/www-apache/passenger/passenger-5.0.20.ebuild |
65 |
new file mode 100644 |
66 |
index 0000000..989ba35 |
67 |
--- /dev/null |
68 |
+++ b/www-apache/passenger/passenger-5.0.20.ebuild |
69 |
@@ -0,0 +1,119 @@ |
70 |
+ |
71 |
+# Copyright 1999-2015 Gentoo Foundation |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+# $Id$ |
74 |
+ |
75 |
+EAPI=5 |
76 |
+USE_RUBY="ruby19 ruby20 ruby21 ruby22" |
77 |
+ |
78 |
+inherit apache-module flag-o-matic multilib ruby-ng toolchain-funcs |
79 |
+ |
80 |
+DESCRIPTION="Passenger (a.k.a. mod_rails) makes deployment of Ruby on Rails applications a breeze" |
81 |
+HOMEPAGE="http://modrails.com/" |
82 |
+SRC_URI="http://s3.amazonaws.com/phusion-passenger/releases/${P}.tar.gz" |
83 |
+ |
84 |
+LICENSE="GPL-2" |
85 |
+SLOT="0" |
86 |
+KEYWORDS="~amd64 ~x86" |
87 |
+IUSE="debug" |
88 |
+ |
89 |
+ruby_add_bdepend "dev-ruby/rake" |
90 |
+ |
91 |
+ruby_add_rdepend " |
92 |
+ >=dev-ruby/rack-1.0.0:* |
93 |
+ >=dev-ruby/rake-0.8.1" |
94 |
+ |
95 |
+# libev is bundled but with adapations that do not seem to be accepted |
96 |
+# upstream, so we must use the bundled version :-( |
97 |
+CDEPEND=" |
98 |
+ >=dev-libs/libuv-1.5.0 |
99 |
+ net-misc/curl[ssl] |
100 |
+ www-servers/apache[apache2_modules_unixd(+)]" |
101 |
+ |
102 |
+RDEPEND="${RDEPEND} ${CDEPEND}" |
103 |
+DEPEND="${DEPEND} ${CDEPEND}" |
104 |
+ |
105 |
+APACHE2_MOD_CONF="30_mod_${PN}-5.0.0 30_mod_${PN}" |
106 |
+APACHE2_MOD_DEFINE="PASSENGER" |
107 |
+ |
108 |
+need_apache2 |
109 |
+ |
110 |
+pkg_setup() { |
111 |
+ use debug && append-flags -DPASSENGER_DEBUG |
112 |
+} |
113 |
+ |
114 |
+all_ruby_prepare() { |
115 |
+ epatch "${FILESDIR}"/${PN}-5.0.20-gentoo.patch |
116 |
+ |
117 |
+ # Change these with sed instead of a patch so that we can easily use |
118 |
+ # the toolchain-funcs methods. |
119 |
+ sed -i -e "/^CC/ s/=.*$/= '$(tc-getCC)'/" \ |
120 |
+ -e "/^CXX\s/ s/=.*$/= '$(tc-getCXX)'/" \ |
121 |
+ -e 's/PlatformInfo.debugging_cflags//' build/basics.rb || die |
122 |
+ |
123 |
+ # Avoid fixed debugging CFLAGs. |
124 |
+ sed -e '/debugging_cflags/areturn ""' -i src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb || die |
125 |
+ |
126 |
+ # Use sed here so that we can dynamically set the documentation directory. |
127 |
+ sed -i -e "s:/usr/share/doc/passenger:/usr/share/doc/${P}:" \ |
128 |
+ -e "s:/usr/lib/apache2/modules/mod_passenger.so:${APACHE_MODULESDIR}/mod_passenger.so:" \ |
129 |
+ -e "s:/usr/lib/phusion-passenger/agents:/usr/libexec/phusion-passenger/agents:" \ |
130 |
+ src/ruby_supportlib/phusion_passenger.rb || die |
131 |
+ sed -i -e "s:/usr/lib/phusion-passenger/agents:/usr/libexec/phusion-passenger/agents:" src/cxx_supportlib/ResourceLocator.h || die |
132 |
+ |
133 |
+ # Don't install a tool that won't work in our setup. |
134 |
+ sed -i -e '/passenger-install-apache2-module/d' src/ruby_supportlib/phusion_passenger/packaging.rb || die |
135 |
+ rm -f bin/passenger-install-apache2-module || die "Unable to remove unneeded install script." |
136 |
+ |
137 |
+ # Make sure we use the system-provided version where possible |
138 |
+ rm -rf src/cxx_supportlib/vendor-copy/libuv || die "Unable to remove vendored code." |
139 |
+ |
140 |
+ # Avoid building documentation to avoid a dependency on mizuho. |
141 |
+ #sed -i -e 's/, :doc//' build/packaging.rb || die |
142 |
+ touch doc/*.html || die |
143 |
+ |
144 |
+ # Use the correct arch-specific lib directory |
145 |
+ sed -i -e 's:/usr/lib/:/usr/'$(get_libdir)'/:' build/packaging.rb || die |
146 |
+ |
147 |
+ # Fix hard-coded use of AR |
148 |
+ sed -i -e "s/ar cru/"$(tc-getAR)" cru/" build/cplusplus_support.rb || die |
149 |
+} |
150 |
+ |
151 |
+all_ruby_compile() { |
152 |
+ V=1 EXTRA_LDFLAGS="${LDFLAGS}" \ |
153 |
+ APXS2="${APXS}" \ |
154 |
+ HTTPD="${APACHE_BIN}" \ |
155 |
+ USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ |
156 |
+ ruby -S rake apache2 || die "rake failed" |
157 |
+} |
158 |
+ |
159 |
+each_ruby_compile() { |
160 |
+ append-flags -fno-strict-aliasing |
161 |
+ |
162 |
+ V=1 EXTRA_LDFLAGS="${LDFLAGS}" \ |
163 |
+ APXS2="${APXS}" \ |
164 |
+ HTTPD="${APACHE_BIN}" \ |
165 |
+ USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ |
166 |
+ ${RUBY} -S rake native_support || die "rake failed" |
167 |
+} |
168 |
+ |
169 |
+all_ruby_install() { |
170 |
+ APACHE2_MOD_FILE="${S}/buildout/apache2/mod_${PN}.so" |
171 |
+ apache-module_src_install |
172 |
+ |
173 |
+ # Patch in the correct libdir |
174 |
+ sed -i -e 's:/usr/lib/:/usr/'$(get_libdir)'/:' "${D}${APACHE_MODULES_CONFDIR}/30_mod_${PN}.conf" || die |
175 |
+ |
176 |
+ dodoc CHANGELOG README.md |
177 |
+} |
178 |
+ |
179 |
+each_ruby_install() { |
180 |
+ DISTDIR="${D}" \ |
181 |
+ RUBYLIBDIR="$(ruby_rbconfig_value vendordir)" \ |
182 |
+ RUBYARCHDIR="$(ruby_rbconfig_value archdir)" \ |
183 |
+ APXS2="${APXS}" \ |
184 |
+ HTTPD="${APACHE_BIN}" \ |
185 |
+ EXTRA_LDFLAGS="${LDFLAGS}" \ |
186 |
+ USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ |
187 |
+ ${RUBY} -S rake fakeroot || die "rake failed" |
188 |
+} |