Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apache/passenger/
Date: Thu, 31 Mar 2022 05:39:42
Message-Id: 1648705165.dbdff6e57e6ee35388e08c903dcc8f15223e5402.graaff@gentoo
1 commit: dbdff6e57e6ee35388e08c903dcc8f15223e5402
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 31 05:10:50 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 31 05:39:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbdff6e5
7
8 www-apache/passenger: add 6.0.13
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 www-apache/passenger/Manifest | 1 +
13 www-apache/passenger/passenger-6.0.13.ebuild | 126 +++++++++++++++++++++++++++
14 2 files changed, 127 insertions(+)
15
16 diff --git a/www-apache/passenger/Manifest b/www-apache/passenger/Manifest
17 index 388bc41e6686..ff782be6ad70 100644
18 --- a/www-apache/passenger/Manifest
19 +++ b/www-apache/passenger/Manifest
20 @@ -1,3 +1,4 @@
21 DIST passenger-6.0.11.tar.gz 8183414 BLAKE2B 9767c3f198d7a779dfefed1d1a2ab07e3dda964a61718475470266e3b4448a45d2c5e7416a2e148afa66241f74e91e98ccbec7f2a08f5d4d1e2eff2ac7de5f63 SHA512 977d8adb261c17d5f21115703b9b18c4d3bfc17f998fb880d3a28f68392db2f9e6a2cb7612211f08bc913fd2f417cb2b689fcab2317707e17e8ddea6aeb967d2
22 DIST passenger-6.0.12.tar.gz 8234023 BLAKE2B fd045160b8ce457ca4e136431b6caaa2e97628b73be77883f6aaae4d5352f7d4ea1827dd1c3cac4c35140bb85789533d53bf8331eadd22abca88b0c07e85e4c2 SHA512 eee627e2ca8ac6f0bdab33e3670dc27933f29b021a232026ae6b30cec6134e8f58a92bf8223001820eb08817f475956a19069177901110ec8d67c1e87004e25b
23 +DIST passenger-6.0.13.tar.gz 8216169 BLAKE2B 592b65ccfd7a043a6fcc1ea8061da3acaafd773caa2b5270e39906ee7f07cf3fb45654c5864eef53687d10c3079003a7ba8d3e8dfba50616b43516e1d457ce11 SHA512 25867f7bb7b7b09def800969884f5c3a2a5cf9dbb20817e02121a471e2eb6fb1e93d8ca3a4b103c5d17d6a61e33bf8edc29f54d496118b88c25147de85629d88
24 DIST passenger-6.0.8.tar.gz 7567855 BLAKE2B ea8577c07a57eaea4e3b2b236808c9e54badb35368e948132af04220026b2676a71d066625a64cd98ce35118ae613bcbca8a0a1f8e0bc2a8d321c1165dec72f5 SHA512 ad35bee4a1c855b8f5401ab44e2a9b0cf3281e7fb1d8e09c8b12c54a465545d43285301c7d0fe16914e3c0fd5407d0d5cef31bb296f850d787903e6e006b368f
25
26 diff --git a/www-apache/passenger/passenger-6.0.13.ebuild b/www-apache/passenger/passenger-6.0.13.ebuild
27 new file mode 100644
28 index 000000000000..aca5b882f5ed
29 --- /dev/null
30 +++ b/www-apache/passenger/passenger-6.0.13.ebuild
31 @@ -0,0 +1,126 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +USE_RUBY="ruby26 ruby27 ruby30"
37 +
38 +inherit apache-module flag-o-matic ruby-ng toolchain-funcs
39 +
40 +DESCRIPTION="Passenger makes deployment of Ruby on Rails applications a breeze"
41 +HOMEPAGE="https://www.phusionpassenger.com/"
42 +SRC_URI="https://s3.amazonaws.com/phusion-passenger/releases/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
47 +IUSE="apache2 debug"
48 +
49 +ruby_add_bdepend "dev-ruby/rake"
50 +
51 +ruby_add_rdepend "
52 + >=dev-ruby/rack-1.0.0:*
53 + >=dev-ruby/rake-0.8.1"
54 +
55 +# libev is bundled but with adapations that do not seem to be accepted
56 +# upstream, so we must use the bundled version :-(
57 +CDEPEND="
58 + >=dev-libs/libuv-1.8.0
59 + net-misc/curl[ssl]
60 + apache2? ( www-servers/apache[apache2_modules_unixd(+)] )"
61 +
62 +RDEPEND="${RDEPEND} ${CDEPEND}"
63 +DEPEND="${DEPEND} ${CDEPEND}"
64 +
65 +APACHE2_MOD_CONF="30_mod_${PN}-5.0.0 30_mod_${PN}"
66 +APACHE2_MOD_DEFINE="PASSENGER"
67 +
68 +want_apache2
69 +
70 +pkg_setup() {
71 + use debug && append-flags -DPASSENGER_DEBUG
72 + depend.apache_pkg_setup
73 +}
74 +
75 +all_ruby_prepare() {
76 + eapply "${FILESDIR}"/${PN}-5.1.11-gentoo.patch
77 +
78 + # Change these with sed instead of a patch so that we can easily use
79 + # the toolchain-funcs methods.
80 + sed -i -e "/^CC/ s/=.*$/= '$(tc-getCC)'/" \
81 + -e "/^CXX\s/ s/=.*$/= '$(tc-getCXX)'/" \
82 + -e 's/PlatformInfo.debugging_cflags//' build/basics.rb || die
83 +
84 + # Avoid fixed debugging CFLAGs.
85 + sed -e '/debugging_cflags/areturn ""' -i src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb || die
86 +
87 + # Use sed here so that we can dynamically set the documentation directory.
88 + sed -i -e "s:/usr/share/doc/passenger:/usr/share/doc/${P}:" \
89 + -e "s:/usr/lib/phusion-passenger/agents:/usr/libexec/phusion-passenger/agents:" \
90 + src/ruby_supportlib/phusion_passenger.rb || die
91 + sed -i -e "s:/usr/lib/phusion-passenger/agents:/usr/libexec/phusion-passenger/agents:" src/cxx_supportlib/ResourceLocator.h || die
92 +
93 + # Don't install a tool that won't work in our setup.
94 + sed -i -e '/passenger-install-apache2-module/d' src/ruby_supportlib/phusion_passenger/packaging.rb || die
95 + rm -f bin/passenger-install-apache2-module || die "Unable to remove unneeded install script."
96 +
97 + # Make sure we use the system-provided version where possible
98 + rm -rf src/cxx_supportlib/vendor-copy/libuv || die "Unable to remove vendored code."
99 +
100 + # Fix hard-coded use of AR
101 + sed -i -e "s/ar cru/"$(tc-getAR)" cru/" build/support/cplusplus.rb || die
102 +
103 + # Make sure apache support is not attempted with -apache2
104 + if ! use apache2 ; then
105 + sed -i -e '/fakeroot/ s/:apache2, //' build/packaging.rb || die
106 + fi
107 +}
108 +
109 +all_ruby_compile() {
110 + if use apache2 ; then
111 + V=1 EXTRA_LDFLAGS="${LDFLAGS}" \
112 + APXS2="${APXS}" \
113 + HTTPD="${APACHE_BIN}" \
114 + FS_LIBDIR='/usr/'$(get_libdir) \
115 + USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \
116 + RANLIB=$(tc-getRANLIB) \
117 + ruby -S rake apache2 || die "rake failed"
118 + fi
119 +}
120 +
121 +each_ruby_compile() {
122 + append-flags -fno-strict-aliasing
123 +
124 + V=1 EXTRA_LDFLAGS="${LDFLAGS}" \
125 + APXS2="${APXS}" \
126 + HTTPD="${APACHE_BIN}" \
127 + FS_LIBDIR='/usr/'$(get_libdir) \
128 + USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \
129 + RANLIB=$(tc-getRANLIB) \
130 + ${RUBY} -S rake native_support || die "rake failed"
131 +}
132 +
133 +all_ruby_install() {
134 + if use apache2 ; then
135 + APACHE2_MOD_FILE="${S}/buildout/apache2/mod_${PN}.so"
136 + apache-module_src_install
137 +
138 + # Patch in the correct libdir
139 + sed -i -e 's:/usr/lib/:/usr/'$(get_libdir)'/:' "${D}${APACHE_MODULES_CONFDIR}/30_mod_${PN}.conf" || die
140 + fi
141 +
142 + dodoc CHANGELOG README.md doc/*.md
143 +}
144 +
145 +each_ruby_install() {
146 + DISTDIR="${D}" \
147 + RUBYLIBDIR="$(ruby_rbconfig_value vendordir)" \
148 + RUBYARCHDIR="$(ruby_rbconfig_value archdir)" \
149 + APXS2="${APXS}" \
150 + HTTPD="${APACHE_BIN}" \
151 + FS_DOCDIR="/usr/share/doc/${P}" \
152 + FS_LIBDIR='/usr/'$(get_libdir) \
153 + EXTRA_LDFLAGS="${LDFLAGS}" \
154 + USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \
155 + RANLIB=$(tc-getRANLIB) \
156 + ${RUBY} -S rake fakeroot || die "rake failed"
157 +}