1 |
commit: d3c99ebebd0467b7f97465ffdcbec74ee3c8cd6b |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 16 15:28:11 2017 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 16 15:28:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3c99ebe |
7 |
|
8 |
www-apache/passenger: add 5.1.11 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
www-apache/passenger/Manifest | 1 + |
13 |
.../passenger/files/passenger-5.1.11-gentoo.patch | 30 +++++ |
14 |
www-apache/passenger/passenger-5.1.11.ebuild | 122 +++++++++++++++++++++ |
15 |
3 files changed, 153 insertions(+) |
16 |
|
17 |
diff --git a/www-apache/passenger/Manifest b/www-apache/passenger/Manifest |
18 |
index a617b93e41a..43d2eb2e672 100644 |
19 |
--- a/www-apache/passenger/Manifest |
20 |
+++ b/www-apache/passenger/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
+DIST passenger-5.1.11.tar.gz 4243340 SHA256 26fc56b2f6d27ed58b948d9601a17a4f61e98fd16349bcb46f3ecebcac3177dd SHA512 7dce496916533f2fcd5cb5931d79308da8adda300a8b8603ce90b92645e69a1283d147976b5aa3408f86ccb71f9e5849bfb68e58a806a8a58529cadda557bccb WHIRLPOOL 071e3a0d1c23f1ac58f0ff93e48357f51aa538e9a76ae4fb115a3cb9ddb0a3eeb5dd6b2a8430bb76acc7cd4158be1d0fe4d640a2402d42a06a632fa87d84fa85 |
23 |
DIST passenger-5.1.2.tar.gz 5646103 SHA256 7fb03a54650ef5e508895c9e45bc2d8151f6c4811ea6797e81f017fedddfdbab SHA512 88a77c749857a8538ea268f793d2708fa29b8891d2c3197577155f81cb66aa04919c25e713d4f00692051ad385eebaa94729cd30baa68edcf3d17c23bae0acdd WHIRLPOOL 8f115162e2a7c43af20cef1d689290c8a523cce10f617500eeb50ab6a226c203a404fc7ce53fd0e21e63276aa359c5d64b685318be36f79ce165ff598bac8766 |
24 |
DIST passenger-5.1.6.tar.gz 5215694 SHA256 e897cc5f0ec6446bfdc226404dca4bd29f7418ae92010c389661b9f024a3cf24 SHA512 71d301d2501863951157f55df30ac89f6f9d98e79b554a5ca05ca9a306041ecd8cdc92056220cf6dc9ad02972a102bfc990e3b06f887d27496a8ecbd58e109fa WHIRLPOOL fe6872d0c11803fd0d8875002f37425edc54327709daaa56518ace0ef9f5046836592298ca80ce4929a29e6c0a0adcb237b57a19cd0d73ac096992e742e2a8b5 |
25 |
DIST passenger-5.1.8.tar.gz 5234529 SHA256 fef10e4a34c3faa48306c21c0789ee4d4d56fc0e30205cc470a91b486b7a4a7d SHA512 5baf287e1f2a751409bba99671de2c41656033dc29132b2d964457405284105343fde4c2233c921d7e35794a47eedbf33e3840119a908741b1ed9e6fdc99ec2c WHIRLPOOL 6513b71aadddc9ec5ff4b4c617256a62f1c977b7d0f098982808851afc7703bd4ceed843cf309d07b239dbae97ed4beacaa2130a5dd325b17714df59f3b1f9ee |
26 |
|
27 |
diff --git a/www-apache/passenger/files/passenger-5.1.11-gentoo.patch b/www-apache/passenger/files/passenger-5.1.11-gentoo.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..5a2565c0315 |
30 |
--- /dev/null |
31 |
+++ b/www-apache/passenger/files/passenger-5.1.11-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_DIR}/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.1.11.ebuild b/www-apache/passenger/passenger-5.1.11.ebuild |
65 |
new file mode 100644 |
66 |
index 00000000000..2349a2b3e8a |
67 |
--- /dev/null |
68 |
+++ b/www-apache/passenger/passenger-5.1.11.ebuild |
69 |
@@ -0,0 +1,122 @@ |
70 |
+# Copyright 1999-2017 Gentoo Foundation |
71 |
+# Distributed under the terms of the GNU General Public License v2 |
72 |
+ |
73 |
+EAPI=6 |
74 |
+USE_RUBY="ruby22 ruby23 ruby24" |
75 |
+ |
76 |
+inherit apache-module flag-o-matic multilib ruby-ng toolchain-funcs |
77 |
+ |
78 |
+DESCRIPTION="Passenger makes deployment of Ruby on Rails applications a breeze" |
79 |
+HOMEPAGE="https://www.phusionpassenger.com/" |
80 |
+SRC_URI="https://s3.amazonaws.com/phusion-passenger/releases/${P}.tar.gz" |
81 |
+ |
82 |
+LICENSE="GPL-2" |
83 |
+SLOT="0" |
84 |
+KEYWORDS="~amd64 ~x86" |
85 |
+IUSE="apache2 debug" |
86 |
+ |
87 |
+ruby_add_bdepend "dev-ruby/rake" |
88 |
+ |
89 |
+ruby_add_rdepend " |
90 |
+ >=dev-ruby/rack-1.0.0:* |
91 |
+ >=dev-ruby/rake-0.8.1" |
92 |
+ |
93 |
+# libev is bundled but with adapations that do not seem to be accepted |
94 |
+# upstream, so we must use the bundled version :-( |
95 |
+CDEPEND=" |
96 |
+ >=dev-libs/libuv-1.8.0 |
97 |
+ net-misc/curl[ssl] |
98 |
+ apache2? ( www-servers/apache[apache2_modules_unixd(+)] )" |
99 |
+ |
100 |
+RDEPEND="${RDEPEND} ${CDEPEND}" |
101 |
+DEPEND="${DEPEND} ${CDEPEND}" |
102 |
+ |
103 |
+APACHE2_MOD_CONF="30_mod_${PN}-5.0.0 30_mod_${PN}" |
104 |
+APACHE2_MOD_DEFINE="PASSENGER" |
105 |
+ |
106 |
+want_apache2 |
107 |
+ |
108 |
+pkg_setup() { |
109 |
+ use debug && append-flags -DPASSENGER_DEBUG |
110 |
+ depend.apache_pkg_setup |
111 |
+} |
112 |
+ |
113 |
+all_ruby_prepare() { |
114 |
+ epatch "${FILESDIR}"/${PN}-5.1.11-gentoo.patch |
115 |
+ epatch "${FILESDIR}"/${PN}-5.1.1-isnan.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/phusion-passenger/agents:/usr/libexec/phusion-passenger/agents:" \ |
129 |
+ src/ruby_supportlib/phusion_passenger.rb || die |
130 |
+ sed -i -e "s:/usr/lib/phusion-passenger/agents:/usr/libexec/phusion-passenger/agents:" src/cxx_supportlib/ResourceLocator.h || die |
131 |
+ |
132 |
+ # Don't install a tool that won't work in our setup. |
133 |
+ sed -i -e '/passenger-install-apache2-module/d' src/ruby_supportlib/phusion_passenger/packaging.rb || die |
134 |
+ rm -f bin/passenger-install-apache2-module || die "Unable to remove unneeded install script." |
135 |
+ |
136 |
+ # Make sure we use the system-provided version where possible |
137 |
+ rm -rf src/cxx_supportlib/vendor-copy/libuv || die "Unable to remove vendored code." |
138 |
+ |
139 |
+ # Avoid building documentation to avoid a dependency on mizuho. |
140 |
+ #sed -i -e 's/, :doc//' build/packaging.rb || die |
141 |
+ touch doc/*.html || die |
142 |
+ |
143 |
+ # Fix hard-coded use of AR |
144 |
+ sed -i -e "s/ar cru/"$(tc-getAR)" cru/" build/support/cplusplus.rb || die |
145 |
+} |
146 |
+ |
147 |
+all_ruby_compile() { |
148 |
+ if use apache2 ; then |
149 |
+ V=1 EXTRA_LDFLAGS="${LDFLAGS}" \ |
150 |
+ APXS2="${APXS}" \ |
151 |
+ HTTPD="${APACHE_BIN}" \ |
152 |
+ FS_LIBDIR='/usr/'$(get_libdir) \ |
153 |
+ USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ |
154 |
+ ruby -S rake apache2 || die "rake failed" |
155 |
+ fi |
156 |
+} |
157 |
+ |
158 |
+each_ruby_compile() { |
159 |
+ append-flags -fno-strict-aliasing |
160 |
+ |
161 |
+ V=1 EXTRA_LDFLAGS="${LDFLAGS}" \ |
162 |
+ APXS2="${APXS}" \ |
163 |
+ HTTPD="${APACHE_BIN}" \ |
164 |
+ FS_LIBDIR='/usr/'$(get_libdir) \ |
165 |
+ USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ |
166 |
+ ${RUBY} -S rake native_support || die "rake failed" |
167 |
+} |
168 |
+ |
169 |
+all_ruby_install() { |
170 |
+ if use apache2 ; then |
171 |
+ APACHE2_MOD_FILE="${S}/buildout/apache2/mod_${PN}.so" |
172 |
+ apache-module_src_install |
173 |
+ |
174 |
+ # Patch in the correct libdir |
175 |
+ sed -i -e 's:/usr/lib/:/usr/'$(get_libdir)'/:' "${D}${APACHE_MODULES_CONFDIR}/30_mod_${PN}.conf" || die |
176 |
+ fi |
177 |
+ |
178 |
+ dodoc CHANGELOG README.md |
179 |
+} |
180 |
+ |
181 |
+each_ruby_install() { |
182 |
+ DISTDIR="${D}" \ |
183 |
+ RUBYLIBDIR="$(ruby_rbconfig_value vendordir)" \ |
184 |
+ RUBYARCHDIR="$(ruby_rbconfig_value archdir)" \ |
185 |
+ APXS2="${APXS}" \ |
186 |
+ HTTPD="${APACHE_BIN}" \ |
187 |
+ FS_LIBDIR='/usr/'$(get_libdir) \ |
188 |
+ EXTRA_LDFLAGS="${LDFLAGS}" \ |
189 |
+ USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ |
190 |
+ ${RUBY} -S rake fakeroot || die "rake failed" |
191 |
+} |