diff options
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/h2o/h2o-2.2.4.ebuild | 19 | ||||
-rw-r--r-- | www-servers/h2o/h2o-9999.ebuild | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/www-servers/h2o/h2o-2.2.4.ebuild b/www-servers/h2o/h2o-2.2.4.ebuild index 579c8e92940e..449ca5e67118 100644 --- a/www-servers/h2o/h2o-2.2.4.ebuild +++ b/www-servers/h2o/h2o-2.2.4.ebuild @@ -33,6 +33,25 @@ pkg_setup() { enewuser ${PN} -1 -1 -1 ${PN} } +src_prepare() { + cmake-utils_src_prepare + + local ruby="ruby" + if use mruby; then + for ruby in ${RUBY_TARGETS_PREFERENCE}; do + if has_version dev-lang/ruby:${ruby:4:1}.${ruby:5}; then + break + fi + ruby= + done + [[ -z ${ruby} ]] && die "no suitable ruby version found" + fi + + sed -i \ + -e "s: ruby: ${ruby}:" \ + CMakeLists.txt +} + src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/${PN} diff --git a/www-servers/h2o/h2o-9999.ebuild b/www-servers/h2o/h2o-9999.ebuild index d6c5d65d8239..0d21e4e8bee1 100644 --- a/www-servers/h2o/h2o-9999.ebuild +++ b/www-servers/h2o/h2o-9999.ebuild @@ -31,6 +31,25 @@ pkg_setup() { enewuser ${PN} -1 -1 -1 ${PN} } +src_prepare() { + cmake-utils_src_prepare + + local ruby="ruby" + if use mruby; then + for ruby in ${RUBY_TARGETS_PREFERENCE}; do + if has_version dev-lang/ruby:${ruby:4:1}.${ruby:5}; then + break + fi + ruby= + done + [[ -z ${ruby} ]] && die "no suitable ruby version found" + fi + + sed -i \ + -e "s: ruby: ${ruby}:" \ + CMakeLists.txt +} + src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/${PN} |