--- nginx-1.3.3.ebuild 2012-09-08 16:54:28.120551011 +0800 +++ nginx-1.3.5.ebuild 2012-09-08 17:00:01.901528187 +0800 @@ -111,7 +111,8 @@ http_fancyindex http_lua" -IUSE="aio debug +http +http-cache ipv6 libatomic +pcre pcre-jit selinux ssl vim-syntax" +IUSE="aio debug +http +http-cache ipv6 libatomic +pcre pcre-jit selinux ssl +vim-syntax spdy" for mod in $NGINX_MODULES_STD; do IUSE="${IUSE} +nginx_modules_http_${mod}" @@ -134,6 +135,7 @@ pcre-jit? ( >=dev-libs/libpcre-8.20[jit] ) selinux? ( sec-policy/selinux-nginx ) ssl? ( dev-libs/openssl ) + spdy? ( >=dev-libs/openssl-1.0.1 ) http-cache? ( userland_GNU? ( dev-libs/openssl ) ) nginx_modules_http_geo? ( dev-libs/geoip ) nginx_modules_http_gzip? ( sys-libs/zlib ) @@ -149,7 +151,10 @@ arm? ( dev-libs/libatomic_ops ) libatomic? ( dev-libs/libatomic_ops )" PDEPEND="vim-syntax? ( app-vim/nginx-syntax )" -REQUIRED_USE="pcre-jit? ( pcre )" +REQUIRED_USE=" + pcre-jit? ( pcre ) + spdy? ( ssl ) +" pkg_setup() { if use nginx_modules_http_passenger; then @@ -200,6 +205,9 @@ sed -i 's:.default::' auto/install || die # remove useless files sed -i -e '/koi-/d' -e '/win-/d' auto/install || die + if use spdy; then + epatch "${FILESDIR}/patch.spdy-52.txt" + fi } src_configure() {