diff options
author | Akinori Hattori <hattya@gentoo.org> | 2018-07-04 22:10:34 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2018-07-04 22:23:46 +0900 |
commit | 5118d7463975feaa6c2962c31655684444123e99 (patch) | |
tree | 46fa321355c85e9776fa4c2303b3be3cb5f693e8 /www-servers | |
parent | www-servers/h2o: tidy (diff) | |
download | gentoo-5118d7463975feaa6c2962c31655684444123e99.tar.gz gentoo-5118d7463975feaa6c2962c31655684444123e99.tar.bz2 gentoo-5118d7463975feaa6c2962c31655684444123e99.zip |
www-servers/h2o: specify ruby version
Package-Manager: Portage-2.3.40, Repoman-2.3.9
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} |