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: Fri, 13 May 2022 05:39:00
Message-Id: 1652420310.3d9d8af0ac8f6e09c8ffd6ee107a605db671d82c.graaff@gentoo
1 commit: 3d9d8af0ac8f6e09c8ffd6ee107a605db671d82c
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 13 05:38:30 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 05:38:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d9d8af0
7
8 www-apache/passenger: add 6.0.14
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.14.ebuild | 127 +++++++++++++++++++++++++++
14 2 files changed, 128 insertions(+)
15
16 diff --git a/www-apache/passenger/Manifest b/www-apache/passenger/Manifest
17 index 1d8922dad851..28b87fcc9138 100644
18 --- a/www-apache/passenger/Manifest
19 +++ b/www-apache/passenger/Manifest
20 @@ -1,2 +1,3 @@
21 DIST passenger-6.0.11.tar.gz 8183414 BLAKE2B 9767c3f198d7a779dfefed1d1a2ab07e3dda964a61718475470266e3b4448a45d2c5e7416a2e148afa66241f74e91e98ccbec7f2a08f5d4d1e2eff2ac7de5f63 SHA512 977d8adb261c17d5f21115703b9b18c4d3bfc17f998fb880d3a28f68392db2f9e6a2cb7612211f08bc913fd2f417cb2b689fcab2317707e17e8ddea6aeb967d2
22 DIST passenger-6.0.13.tar.gz 8216169 BLAKE2B 592b65ccfd7a043a6fcc1ea8061da3acaafd773caa2b5270e39906ee7f07cf3fb45654c5864eef53687d10c3079003a7ba8d3e8dfba50616b43516e1d457ce11 SHA512 25867f7bb7b7b09def800969884f5c3a2a5cf9dbb20817e02121a471e2eb6fb1e93d8ca3a4b103c5d17d6a61e33bf8edc29f54d496118b88c25147de85629d88
23 +DIST passenger-6.0.14.tar.gz 8216590 BLAKE2B 33fa27e05ae0c5e65e3fec3cd791eee799ebc71f2b2bcfd06c6dde530c1063c87f01a0249b57443f47745b376cc596f58b66f5790b0cb2ed70df8940b6faa92d SHA512 57189e1b78ff9dda38c37d07908cae20db1c856fb4279e54706d0efd2d1d140ff7af8ed9357c4de1360364d3809e376da152f8a18050dcf657850f276d9ce70c
24
25 diff --git a/www-apache/passenger/passenger-6.0.14.ebuild b/www-apache/passenger/passenger-6.0.14.ebuild
26 new file mode 100644
27 index 000000000000..eeae56538f93
28 --- /dev/null
29 +++ b/www-apache/passenger/passenger-6.0.14.ebuild
30 @@ -0,0 +1,127 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +USE_RUBY="ruby26 ruby27 ruby30"
36 +
37 +inherit apache-module flag-o-matic ruby-ng toolchain-funcs
38 +
39 +DESCRIPTION="Passenger makes deployment of Ruby on Rails applications a breeze"
40 +HOMEPAGE="https://www.phusionpassenger.com/"
41 +SRC_URI="https://s3.amazonaws.com/phusion-passenger/releases/${P}.tar.gz"
42 +
43 +# Passenger is licensed MIT, but vendored code licenses should also be taken into account.
44 +LICENSE="Boost-1.0 MIT BSD"
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 +}