diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-07-23 22:32:36 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-07-23 22:37:25 +0200 |
commit | 6c4f427ab246a5cf8d2d562a0fb069a5720e02cf (patch) | |
tree | 7b34d688755b8674f50c6fc18cff3f7f62d4878b /www-servers/h2o/h2o-9999.ebuild | |
parent | acct-user/h2o: add user (141) h2o (diff) | |
download | gentoo-6c4f427ab246a5cf8d2d562a0fb069a5720e02cf.tar.gz gentoo-6c4f427ab246a5cf8d2d562a0fb069a5720e02cf.tar.bz2 gentoo-6c4f427ab246a5cf8d2d562a0fb069a5720e02cf.zip |
www-servers/h2o: migrate to GLEP 81
Bug: https://bugs.gentoo.org/781539
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'www-servers/h2o/h2o-9999.ebuild')
-rw-r--r-- | www-servers/h2o/h2o-9999.ebuild | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/www-servers/h2o/h2o-9999.ebuild b/www-servers/h2o/h2o-9999.ebuild index 24da7a201180..d1f780ab5f1b 100644 --- a/www-servers/h2o/h2o-9999.ebuild +++ b/www-servers/h2o/h2o-9999.ebuild @@ -1,28 +1,34 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI=7 + CMAKE_MAKEFILE_GENERATOR="emake" SSL_DEPS_SKIP=1 USE_RUBY="ruby24 ruby25 ruby26" -inherit cmake-utils git-r3 ruby-single ssl-cert systemd toolchain-funcs user +inherit cmake git-r3 ruby-single ssl-cert systemd toolchain-funcs + +EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" DESCRIPTION="H2O - the optimized HTTP/1, HTTP/2 server" HOMEPAGE="https://h2o.examp1e.net/" -EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" LICENSE="MIT" SLOT="0" KEYWORDS="" IUSE="libh2o +mruby" -RDEPEND="dev-lang/perl +RDEPEND=" + acct-group/h2o + acct-user/h2o + dev-lang/perl sys-libs/zlib libh2o? ( dev-libs/libuv ) dev-libs/openssl:0= " -DEPEND="${RDEPEND} +DEPEND=" + ${RDEPEND} libh2o? ( virtual/pkgconfig ) mruby? ( ${RUBY_DEPS} @@ -32,19 +38,14 @@ DEPEND="${RDEPEND} ) sys-devel/bison virtual/pkgconfig - )" -RDEPEND+=" - !sci-libs/libh2o" + ) +" +RDEPEND+="!sci-libs/libh2o" PATCHES=( "${FILESDIR}"/${PN}-2.3-mruby.patch ) -pkg_setup() { - enewgroup ${PN} - enewuser ${PN} -1 -1 -1 ${PN} -} - src_prepare() { - cmake-utils_src_prepare + cmake_src_prepare local ruby="ruby" if use mruby; then @@ -75,11 +76,11 @@ src_configure() { -DWITHOUT_LIBS=$(usex !libh2o) -DBUILD_SHARED_LIBS=$(usex libh2o) ) - cmake-utils_src_configure + cmake_src_configure } src_install() { - cmake-utils_src_install + cmake_src_install keepdir /var/www/localhost/htdocs @@ -98,8 +99,8 @@ src_install() { } pkg_postinst() { - if [[ ! -f "${EROOT}"etc/ssl/${PN}/server.key ]]; then + if [[ ! -f "${EROOT}"/etc/ssl/${PN}/server.key ]]; then install_cert /etc/ssl/${PN}/server - chown ${PN}:${PN} "${EROOT}"etc/ssl/${PN}/server.* + chown ${PN}:${PN} "${EROOT}"/etc/ssl/${PN}/server.* fi } |