diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-13 16:38:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-13 16:38:56 +0100 |
commit | ea31ad0ed5501d0bf92267c35beaf06ac016bad2 (patch) | |
tree | 2fdc433d571e3ead010876d43ce2646b7d783680 /www-apache/passenger | |
parent | 88ebe56470c37b02a044e1091cad6b2df0f3be8f (diff) |
gentoo resync : 13.05.2018
Diffstat (limited to 'www-apache/passenger')
-rw-r--r-- | www-apache/passenger/Manifest | 2 | ||||
-rw-r--r-- | www-apache/passenger/passenger-5.3.0.ebuild | 127 |
2 files changed, 129 insertions, 0 deletions
diff --git a/www-apache/passenger/Manifest b/www-apache/passenger/Manifest index 47d46f59199e..787209ccb887 100644 --- a/www-apache/passenger/Manifest +++ b/www-apache/passenger/Manifest @@ -5,8 +5,10 @@ DIST passenger-5.1.12.tar.gz 4245993 BLAKE2B 4f5808bcb373a85fbe2e160d9bd993fdff3 DIST passenger-5.2.1.tar.gz 4978302 BLAKE2B 622f831e0b3e1a950f3dabc69b13c304896506d70341dafac0df4074450cea2b2c33a1c60b39efe8600a3cac32c6782f28599de85e1856a785896ada27f2f9c4 SHA512 8223fe0f7c04de9b079e8748d22679b7253599a5ef070cfd63b829c7ec7c4375528bc186d136ab2602d07a9a36fac4bc53b30c775e433641dfa80ab67f326848 DIST passenger-5.2.2.tar.gz 6955357 BLAKE2B 4bf0f7185bafc5927ff82b3c2f171671266a4c6d0077b24b2efb439524618e67742ce0c67098cfa2457e3d17f4f3bf685736c3599dc10eca52c0cd00b79911a8 SHA512 c7a5a1cb686119846f9da16d6506bc689c64d20bdfa710a1e677374659759a10eb8540baf9c50c77a94a0c8ab748af3e4731bc7ccf6e402fd0a9d2d3ccb183bf DIST passenger-5.2.3.tar.gz 6956101 BLAKE2B c2c5448f330e0bd90b5378e9868c18999263428df0a396595f4793979d3961282743b04eaec78b2cf5a0ebdb6a8183b798c2ae244b8a033edf14f5b8837225ca SHA512 fcd2244a30ce633f83448ff2fe3eea4d2215aa061aaf66de2dcd27f0b440b782d051f0f1ca49d6db673871e31518dc95cc6ffbd48a020f8ffe927d3b5969ef97 +DIST passenger-5.3.0.tar.gz 7033231 BLAKE2B 5cfbd86153e0715b7ac2082ec56dda1e104fd297912dfdd9d8313fd95cb3e52c47360001dfabcc2e88e7cb4f357813fd9e7f51d4ebf94a607183eccbe9b158d1 SHA512 4e3516c21776b9451301f134ffc34ac2dc77f2462329c2655fd3348317fdf0e4f8c6720fd1e676693006b31722c198443219848b04b7a08deaf7ef088052b1eb EBUILD passenger-5.1.12.ebuild 3980 BLAKE2B 53fb3918d8368e51347ec18fa073916e79952ff432e279ab2007523a87bd1012f5833e354ecbc57e6595a4f0fdf0ef5288fe8141fa4e3c67494ef37e57171ef8 SHA512 09185eead6e3b933713f2b1538ae55bae0ed6457bc723f52cad69948c3c7cca3b3091b2fbf4ac71f5d57c3437db03392b67b0a5560e953e3339aebec5cc1cefc EBUILD passenger-5.2.1.ebuild 3982 BLAKE2B dee480b9113b7c5bbe7e739d270033b207eef046ef8b929b68d05d934a800f7595bc036411322c2af605798c28390bfade42e9bdbee22ec0909129c0ddcc0051 SHA512 331ef6f0de2fb54632564b2c161287a0a9164d44c809b26015a2b25221cb6fcc0147577212897ffa7be871e55bb57c2b51aba045a39f41ea4a08cae6ff9eeb99 EBUILD passenger-5.2.2.ebuild 3982 BLAKE2B dee480b9113b7c5bbe7e739d270033b207eef046ef8b929b68d05d934a800f7595bc036411322c2af605798c28390bfade42e9bdbee22ec0909129c0ddcc0051 SHA512 331ef6f0de2fb54632564b2c161287a0a9164d44c809b26015a2b25221cb6fcc0147577212897ffa7be871e55bb57c2b51aba045a39f41ea4a08cae6ff9eeb99 EBUILD passenger-5.2.3.ebuild 3982 BLAKE2B dee480b9113b7c5bbe7e739d270033b207eef046ef8b929b68d05d934a800f7595bc036411322c2af605798c28390bfade42e9bdbee22ec0909129c0ddcc0051 SHA512 331ef6f0de2fb54632564b2c161287a0a9164d44c809b26015a2b25221cb6fcc0147577212897ffa7be871e55bb57c2b51aba045a39f41ea4a08cae6ff9eeb99 +EBUILD passenger-5.3.0.ebuild 3982 BLAKE2B 89e14bf8db6ed5f52a9b7ac08ca58977e1b7d8afd492bbfd67dec1174046c030168cbc2462db0e8eefdb90c1f11f64c311b75dfc5988d2259f09f65536454912 SHA512 2fb7572a1c84e6d28a73ec33da00dfdf484bc8152018d5a713b096631e704b4b32947cb901809adf5ad46ba9a765dd410f1ab251fc0c78ebeb0b4ef3a60f7c05 MISC metadata.xml 330 BLAKE2B 80067f262ce3e04098eaab92ec2420a879014d624fa6c230f57daf871ac33b77fcd786868ec508236c62623f2c81dc86573875a42993604896745524d7220fc7 SHA512 5ea7e5026084dedcd363bb79076763cca7d66bb08411d5e2dc56ade23bfdbd522a8db13db9c0b8f50163f130f28c784b622d9639cb3dd33aa810dda3d2577db8 diff --git a/www-apache/passenger/passenger-5.3.0.ebuild b/www-apache/passenger/passenger-5.3.0.ebuild new file mode 100644 index 000000000000..7a2b4ba69962 --- /dev/null +++ b/www-apache/passenger/passenger-5.3.0.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24 ruby25" + +inherit apache-module flag-o-matic multilib ruby-ng toolchain-funcs + +DESCRIPTION="Passenger makes deployment of Ruby on Rails applications a breeze" +HOMEPAGE="https://www.phusionpassenger.com/" +SRC_URI="https://s3.amazonaws.com/phusion-passenger/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="apache2 debug" + +ruby_add_bdepend "dev-ruby/rake" + +ruby_add_rdepend " + >=dev-ruby/rack-1.0.0:* + >=dev-ruby/rake-0.8.1" + +# libev is bundled but with adapations that do not seem to be accepted +# upstream, so we must use the bundled version :-( +CDEPEND=" + >=dev-libs/libuv-1.8.0 + net-misc/curl[ssl] + apache2? ( www-servers/apache[apache2_modules_unixd(+)] )" + +RDEPEND="${RDEPEND} ${CDEPEND}" +DEPEND="${DEPEND} ${CDEPEND}" + +APACHE2_MOD_CONF="30_mod_${PN}-5.0.0 30_mod_${PN}" +APACHE2_MOD_DEFINE="PASSENGER" + +want_apache2 + +pkg_setup() { + use debug && append-flags -DPASSENGER_DEBUG + depend.apache_pkg_setup +} + +all_ruby_prepare() { + epatch "${FILESDIR}"/${PN}-5.1.11-gentoo.patch + eapply "${FILESDIR}"/${PN}-5.1.1-isnan.patch + + # Change these with sed instead of a patch so that we can easily use + # the toolchain-funcs methods. + sed -i -e "/^CC/ s/=.*$/= '$(tc-getCC)'/" \ + -e "/^CXX\s/ s/=.*$/= '$(tc-getCXX)'/" \ + -e 's/PlatformInfo.debugging_cflags//' build/basics.rb || die + + # Avoid fixed debugging CFLAGs. + sed -e '/debugging_cflags/areturn ""' -i src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb || die + + # Use sed here so that we can dynamically set the documentation directory. + sed -i -e "s:/usr/share/doc/passenger:/usr/share/doc/${P}:" \ + -e "s:/usr/lib/phusion-passenger/agents:/usr/libexec/phusion-passenger/agents:" \ + src/ruby_supportlib/phusion_passenger.rb || die + sed -i -e "s:/usr/lib/phusion-passenger/agents:/usr/libexec/phusion-passenger/agents:" src/cxx_supportlib/ResourceLocator.h || die + + # Don't install a tool that won't work in our setup. + sed -i -e '/passenger-install-apache2-module/d' src/ruby_supportlib/phusion_passenger/packaging.rb || die + rm -f bin/passenger-install-apache2-module || die "Unable to remove unneeded install script." + + # Make sure we use the system-provided version where possible + rm -rf src/cxx_supportlib/vendor-copy/libuv || die "Unable to remove vendored code." + + # Avoid building documentation to avoid a dependency on mizuho. + #sed -i -e 's/, :doc//' build/packaging.rb || die + touch doc/*.html || die + + # Fix hard-coded use of AR + sed -i -e "s/ar cru/"$(tc-getAR)" cru/" build/support/cplusplus.rb || die + + # Make sure apache support is not attempted with -apache2 + if ! use apache2 ; then + sed -i -e '/fakeroot/ s/:apache2, //' build/packaging.rb || die + fi +} + +all_ruby_compile() { + if use apache2 ; then + V=1 EXTRA_LDFLAGS="${LDFLAGS}" \ + APXS2="${APXS}" \ + HTTPD="${APACHE_BIN}" \ + FS_LIBDIR='/usr/'$(get_libdir) \ + USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ + ruby -S rake apache2 || die "rake failed" + fi +} + +each_ruby_compile() { + append-flags -fno-strict-aliasing + + V=1 EXTRA_LDFLAGS="${LDFLAGS}" \ + APXS2="${APXS}" \ + HTTPD="${APACHE_BIN}" \ + FS_LIBDIR='/usr/'$(get_libdir) \ + USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ + ${RUBY} -S rake native_support || die "rake failed" +} + +all_ruby_install() { + if use apache2 ; then + APACHE2_MOD_FILE="${S}/buildout/apache2/mod_${PN}.so" + apache-module_src_install + + # Patch in the correct libdir + sed -i -e 's:/usr/lib/:/usr/'$(get_libdir)'/:' "${D}${APACHE_MODULES_CONFDIR}/30_mod_${PN}.conf" || die + fi + + dodoc CHANGELOG README.md +} + +each_ruby_install() { + DISTDIR="${D}" \ + RUBYLIBDIR="$(ruby_rbconfig_value vendordir)" \ + RUBYARCHDIR="$(ruby_rbconfig_value archdir)" \ + APXS2="${APXS}" \ + HTTPD="${APACHE_BIN}" \ + FS_LIBDIR='/usr/'$(get_libdir) \ + EXTRA_LDFLAGS="${LDFLAGS}" \ + USE_VENDORED_LIBUV="no" LIBUV_LIBS="-luv" \ + ${RUBY} -S rake fakeroot || die "rake failed" +} |