summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moone <csmk+gentoo@chaoslab.org>2017-10-20 04:42:51 +0900
committerPatrice Clement <monsieurp@gentoo.org>2017-10-27 23:02:10 +0200
commitf9d412e232fc0b9402452e771beab2f50da95327 (patch)
treebd5f394a3be1ec1916c88b2eddcdc27e53af15e2 /www-servers/h2o
parentwww-servers/h2o: drop insecure version. (diff)
downloadgentoo-f9d412e232fc0b9402452e771beab2f50da95327.tar.gz
gentoo-f9d412e232fc0b9402452e771beab2f50da95327.tar.bz2
gentoo-f9d412e232fc0b9402452e771beab2f50da95327.zip
www-servers/h2o: update live ebuild to make use of ruby-single eclass.
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'www-servers/h2o')
-rw-r--r--www-servers/h2o/h2o-9999.ebuild18
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