diff options
-rw-r--r-- | www-servers/h2o/h2o-9999.ebuild | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/www-servers/h2o/h2o-9999.ebuild b/www-servers/h2o/h2o-9999.ebuild index 761de2c20b03..0db4fc4f8f77 100644 --- a/www-servers/h2o/h2o-9999.ebuild +++ b/www-servers/h2o/h2o-9999.ebuild @@ -3,7 +3,9 @@ EAPI=6 -inherit cmake-utils git-r3 systemd user +USE_RUBY="ruby22 ruby23 ruby24" + +inherit cmake-utils git-r3 ruby-single systemd user DESCRIPTION="An optimized HTTP server with support for HTTP/1.x and HTTP/2" HOMEPAGE="https://h2o.examp1e.net" @@ -20,11 +22,7 @@ RDEPEND=" DEPEND="${RDEPEND} mruby? ( sys-devel/bison - || ( - dev-lang/ruby:2.4 - dev-lang/ruby:2.3 - dev-lang/ruby:2.2 - ) + ${RUBY_DEPS} )" pkg_setup() { @@ -32,14 +30,6 @@ pkg_setup() { enewuser h2o -1 -1 -1 h2o } -src_prepare() { - # Leave optimization level to user CFLAGS - sed -i 's/-O2 -g ${CC_WARNING_FLAGS} //g' ./CMakeLists.txt \ - || die "sed fix failed!" - - cmake-utils_src_prepare -} - src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/h2o |