Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/h2o/
Date: Thu, 30 Apr 2020 13:07:44
Message-Id: 1588252024.e458c40a76090011313d131dd7ad35dca540902e.hattya@gentoo
1 commit: e458c40a76090011313d131dd7ad35dca540902e
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 13:07:04 2020 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 13:07:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e458c40a
7
8 www-servers/h2o: drop old
9
10 Bug: https://bugs.gentoo.org/718952
11 Package-Manager: Portage-2.3.89, Repoman-2.3.20
12 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
13
14 www-servers/h2o/Manifest | 1 -
15 www-servers/h2o/h2o-2.2.5.ebuild | 106 ---------------------------------------
16 2 files changed, 107 deletions(-)
17
18 diff --git a/www-servers/h2o/Manifest b/www-servers/h2o/Manifest
19 index b6f7c241492..710248b421a 100644
20 --- a/www-servers/h2o/Manifest
21 +++ b/www-servers/h2o/Manifest
22 @@ -1,2 +1 @@
23 -DIST h2o-2.2.5.tar.gz 16257295 BLAKE2B 3c13796eaf9a0aca29bbff7c35fb36d0b5ef47da91f39f71614a89f2d4fea5b1ebbc8f4e3e50bf37a02a84c0fcd96d5ac0be20c83add274157af966134b2d185 SHA512 24b07140d24fbb7796038aab44f44be5ffabc6f2841954273e2ad9f1a864e5482051dd7abfa6446297a46b6868763114695fa4f123ee3175bdac53b4c1868bc2
24 DIST h2o-2.2.6.tar.gz 16257760 BLAKE2B 8474751ca9832ddae2022710654ca58a93ebf9ca01afe934950209b04357b7548b05c598c49fe92684b2910fd6309d6fc3923a0b01cdeeb4b0dc65b08842255f SHA512 f2f28905c01782a0432c9dfdb2f21054e0a4741ac4c5f26802d4b439d0172840aa215aba5dc7c9af62275dcc24de105674a3819384dc38246e43ce3e8263eb20
25
26 diff --git a/www-servers/h2o/h2o-2.2.5.ebuild b/www-servers/h2o/h2o-2.2.5.ebuild
27 deleted file mode 100644
28 index 090cb8025bb..00000000000
29 --- a/www-servers/h2o/h2o-2.2.5.ebuild
30 +++ /dev/null
31 @@ -1,106 +0,0 @@
32 -# Copyright 1999-2020 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI="6"
36 -CMAKE_MAKEFILE_GENERATOR="emake"
37 -SSL_DEPS_SKIP=1
38 -USE_RUBY="ruby24 ruby25 ruby26"
39 -
40 -inherit cmake-utils ruby-single ssl-cert systemd toolchain-funcs user
41 -
42 -DESCRIPTION="H2O - the optimized HTTP/1, HTTP/2 server"
43 -HOMEPAGE="https://h2o.examp1e.net/"
44 -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 -
46 -LICENSE="MIT"
47 -SLOT="0"
48 -KEYWORDS="amd64 x86"
49 -IUSE="libh2o libressl +mruby"
50 -
51 -RDEPEND="dev-lang/perl
52 - sys-libs/zlib
53 - libh2o? ( dev-libs/libuv )
54 - !libressl? ( dev-libs/openssl:0= )
55 - libressl? ( dev-libs/libressl:0= )"
56 -DEPEND="${RDEPEND}
57 - libh2o? ( virtual/pkgconfig )
58 - mruby? (
59 - ${RUBY_DEPS}
60 - || (
61 - dev-libs/onigmo
62 - dev-libs/oniguruma
63 - )
64 - sys-devel/bison
65 - virtual/pkgconfig
66 - )"
67 -
68 -PATCHES=(
69 - "${FILESDIR}"/${PN}-2.2-libressl-2.7.patch
70 - "${FILESDIR}"/${PN}-2.2-mruby.patch
71 -)
72 -
73 -pkg_setup() {
74 - enewgroup ${PN}
75 - enewuser ${PN} -1 -1 -1 ${PN}
76 -}
77 -
78 -src_prepare() {
79 - cmake-utils_src_prepare
80 -
81 - local ruby="ruby"
82 - if use mruby; then
83 - for ruby in ${RUBY_TARGETS_PREFERENCE}; do
84 - if has_version dev-lang/ruby:${ruby:4:1}.${ruby:5}; then
85 - break
86 - fi
87 - ruby=
88 - done
89 - [[ -z ${ruby} ]] && die "no suitable ruby version found"
90 - fi
91 -
92 - sed -i \
93 - -e "/INSTALL/s:\(/doc/${PN}\) :\1/html :" \
94 - -e "/INSTALL/s:\(/doc\)/${PN}:\1/${PF}:" \
95 - -e "s: ruby: ${ruby}:" \
96 - CMakeLists.txt
97 -
98 - sed -i "s:pkg-config:$(tc-getPKG_CONFIG):g" deps/mruby/lib/mruby/gem.rb
99 - tc-export CC
100 - export LD="$(tc-getCC)"
101 -}
102 -
103 -src_configure() {
104 - local mycmakeargs=(
105 - -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/${PN}
106 - -DWITH_MRUBY=$(usex mruby)
107 - -DWITHOUT_LIBS=$(usex !libh2o)
108 - -DBUILD_SHARED_LIBS=$(usex libh2o)
109 - )
110 - cmake-utils_src_configure
111 -}
112 -
113 -src_install() {
114 - cmake-utils_src_install
115 -
116 - keepdir /var/www/localhost/htdocs
117 -
118 - insinto /etc/${PN}
119 - doins "${FILESDIR}"/${PN}.conf
120 -
121 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
122 - systemd_dounit "${FILESDIR}"/${PN}.service
123 -
124 - insinto /etc/logrotate.d
125 - newins "${FILESDIR}"/${PN}.logrotate ${PN}
126 -
127 - keepdir /var/log/${PN}
128 - fowners ${PN}:${PN} /var/log/${PN}
129 - fperms 0750 /var/log/${PN}
130 -}
131 -
132 -pkg_postinst() {
133 - if [[ ! -f "${EROOT}"etc/ssl/${PN}/server.key ]]; then
134 - install_cert /etc/ssl/${PN}/server
135 - chown ${PN}:${PN} "${EROOT}"etc/ssl/${PN}/server.*
136 - fi
137 -}