From 6e8d3793323b8f24be801a4aaf31cdd31a8483e9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 15 Mar 2024 12:47:43 +0000 Subject: gentoo auto-resync : 15:03:2024 - 12:47:43 --- www-apps/Manifest.gz | Bin 13456 -> 13451 bytes www-apps/gitea/Manifest | 4 +- www-apps/gitea/gitea-1.21.6.ebuild | 147 ------------------------------------ www-apps/gitea/gitea-1.21.8.ebuild | 147 ++++++++++++++++++++++++++++++++++++ www-apps/jekyll/Manifest | 2 + www-apps/jekyll/jekyll-4.3.3.ebuild | 109 ++++++++++++++++++++++++++ 6 files changed, 260 insertions(+), 149 deletions(-) delete mode 100644 www-apps/gitea/gitea-1.21.6.ebuild create mode 100644 www-apps/gitea/gitea-1.21.8.ebuild create mode 100644 www-apps/jekyll/jekyll-4.3.3.ebuild (limited to 'www-apps') diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz index 19be9233f927..e986f02f94b7 100644 Binary files a/www-apps/Manifest.gz and b/www-apps/Manifest.gz differ diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index 20b87f5ee83c..44aa0fe85334 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -2,9 +2,9 @@ AUX gitea.confd-r1 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998 AUX gitea.initd-r3 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1 AUX gitea.service-r4 730 BLAKE2B 0a1f799bf341f1a067f417aa21c1ce5c3168fe523081ef1711483d469da71699a2c163f1db008f7724329d6b6a819b1cdc76bc16309691522ebfc5dc9dfa7476 SHA512 cdd13299115e632bc474f24af6d4114b36be6489e11dd8c46b22fbd3f122194d4891cd2452f1654ef9256978fa4d0b6c11c08e386138a6cba29ea69945de8797 DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093 SHA512 663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a -DIST gitea-1.21.6.tar.gz 53877177 BLAKE2B 52dd3819cbcbe17190ac8ef9f40df2f517710e3a5308ade0ba513b6e8d2ab517962d91ba1448a5be84dc648dedb875975805a4654ec94c6c65b8ea06345bfc46 SHA512 4a728b272d0849f21974a10de37cbde2de096cde203d305b24aa04a30c6fb70d1848856002df560faadcc9aef4d203f22053c7af5ffceaf65091a1696dc420c9 DIST gitea-1.21.7.tar.gz 53827752 BLAKE2B 8c58504b7438062923bffdf926e0825bba0a9eb5f9fc10fa076a82e1887a09ddf9d8ae014c060b64fe7adc391d768513e6c80aaa0e3ef99cc4a59214c9e15a12 SHA512 f5b097fb992b6c72ca3f0cb12dc5cca84fbefbfc78ef80aeab957820b5df2f01fc87886855567e95875a23e6f0af9a6f5018ba9b38cff79d879ddcec7e2676eb +DIST gitea-1.21.8.tar.gz 53901461 BLAKE2B e20f509037e5bb674696fb9bdc9b3eb58443f0481f5db2936a69775adcd8c1b53ad7103bae6ba4de2e852ef50218b8bd89dae174d19e0879d04f169e890af71b SHA512 e895d67ab0c086fdef6aab6548ed06696054bb0a8103818c14f5f038a6fc6310178473038fa76752341a50196916ce3845b785f25ab66383bdf44ce8eac87461 EBUILD gitea-1.21.5.ebuild 4746 BLAKE2B b14f2f55bf6d344cf9eec51018baac9294d72fc135dd85bc4792fdd96fbccd2bd62f923b7f8f70e2d667a2c6304777beb58ecd5bb0361f1c87136b0e4ad1216c SHA512 087db4bfab0dda1840b5e205121275915d939084ec551236e98b10690860524caaf5226ce9cbce9f460c3223a4e5931ec7184a9b6f99e5625309429b7b2ee9a7 -EBUILD gitea-1.21.6.ebuild 4747 BLAKE2B 8bb5e67a507e3d8b1253cc4321f9d0742ab0e2a4321aa869e1dce2a27bb6acc2cd4d04c3e87c96e0549987497d42ad9601ed7ad5d583294a217f94d5a23c4cac SHA512 4a3194e2ebeb1bb23b21a5a22bdb44427bc9ed1a15a2824ecbf70e00eddbd3838689f00d80c1618df590456cf7c6ddb6d2e51e92d9d285d45ae69fffeb9df826 EBUILD gitea-1.21.7.ebuild 4747 BLAKE2B 8bb5e67a507e3d8b1253cc4321f9d0742ab0e2a4321aa869e1dce2a27bb6acc2cd4d04c3e87c96e0549987497d42ad9601ed7ad5d583294a217f94d5a23c4cac SHA512 4a3194e2ebeb1bb23b21a5a22bdb44427bc9ed1a15a2824ecbf70e00eddbd3838689f00d80c1618df590456cf7c6ddb6d2e51e92d9d285d45ae69fffeb9df826 +EBUILD gitea-1.21.8.ebuild 4747 BLAKE2B 8bb5e67a507e3d8b1253cc4321f9d0742ab0e2a4321aa869e1dce2a27bb6acc2cd4d04c3e87c96e0549987497d42ad9601ed7ad5d583294a217f94d5a23c4cac SHA512 4a3194e2ebeb1bb23b21a5a22bdb44427bc9ed1a15a2824ecbf70e00eddbd3838689f00d80c1618df590456cf7c6ddb6d2e51e92d9d285d45ae69fffeb9df826 MISC metadata.xml 674 BLAKE2B ef13e93b317da43177365b0b0378aec52a1c7cbdc57b69815520d4dc4e1f98c043dc3eee059d06990dcb7c6549ad2db7150786e542486e957ba1ab63e21118fa SHA512 a4eb5d192dff7967c2ff5f94135c60d13ff52a7dffbf42c9d3c50efd3df0833d129580e895caed9148cb2d9df85da17d94d0cbdc43341d05df8917ea238a87eb diff --git a/www-apps/gitea/gitea-1.21.6.ebuild b/www-apps/gitea/gitea-1.21.6.ebuild deleted file mode 100644 index 7a37bd3df1e3..000000000000 --- a/www-apps/gitea/gitea-1.21.6.ebuild +++ /dev/null @@ -1,147 +0,0 @@ -# Copyright 2016-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit fcaps go-module tmpfiles systemd flag-o-matic user-info - -DESCRIPTION="A painless self-hosted Git service" -HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/go-gitea/gitea.git" -else - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86" -fi - -S="${WORKDIR}/${PN}-src-${PV}" - -LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0" -SLOT="0" -IUSE="+acct pam sqlite pie" - -DEPEND=" - acct? ( - acct-group/git - acct-user/git[gitea] ) - pam? ( sys-libs/pam )" -RDEPEND="${DEPEND} - dev-vcs/git" -BDEPEND=">=dev-lang/go-1.21:=" - -DOCS=( - custom/conf/app.example.ini CHANGELOG.md CONTRIBUTING.md README.md -) -FILECAPS=( - -m 711 cap_net_bind_service+ep usr/bin/gitea -) - -RESTRICT="test" - -src_prepare() { - default - - sed -i -e "s#^MODE = console#MODE = file#" custom/conf/app.example.ini || die -} - -src_configure() { - # bug 832756 - PIE build issues - filter-flags -fPIE - filter-ldflags -fPIE -pie -} - -src_compile() { - local gitea_tags - local -a gitea_settings makeenv - - # The space-separated list of the -tags flag is deprecated, please - # always use the comma-separated list in the future. - gitea_tags="bindata" - gitea_tags+="$(usex pam ',pam' '')" - gitea_tags+="$(usex sqlite ',sqlite,sqlite_unlock_notify' '')" - - gitea_settings=( - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" - ) - - makeenv=( - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}" - TAGS="${gitea_tags}" - ) - - if [[ ${PV} != *9999 ]]; then - # Use variable STORED_VERSION_FILE (the "${S}/VERSION" file) to set version, - # and prevent executing git command when it's not a live version. - makeenv+=( GITHUB_REF_NAME="" ) - fi - - if use pie ; then - # Please check the supported platforms when a new keyword request opened, - # refer to file: 'go/src/internal/platform/supported.go'. - # When PIE buildmode is not supported by internal linker, the external - # linker will be used automatically, refer to: - # https://github.com/golang/go/blob/ed817f1c4055a559a94afffecbb91c78e4f39942/src/cmd/link/internal/ld/config.go#L149 - makeenv+=( EXTRA_GOFLAGS="-buildmode=pie" ) - fi - - env "${makeenv[@]}" emake backend -} - -src_install() { - dobin gitea - - einstalldocs - - newconfd "${FILESDIR}/gitea.confd-r1" gitea - newinitd "${FILESDIR}/gitea.initd-r3" gitea - newtmpfiles - gitea.conf <<-EOF - d /run/gitea 0755 git git - EOF - systemd_newunit "${FILESDIR}"/gitea.service-r4 gitea.service - - insinto /etc/gitea - newins custom/conf/app.example.ini app.ini - if use acct; then - fowners root:git /etc/gitea/{,app.ini} - fperms g+w,o-rwx /etc/gitea/{,app.ini} - - diropts -m0750 -o git -g git - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data - keepdir /var/log/gitea - fi -} - -pkg_postinst() { - fcaps_pkg_postinst - - # It is not guaranteed that the git user and group always exist (due to the acct USE Flag), - # but for convenience, the tmpfile uses the git user and group by default. - # To avoid installation errors, a condition needs to be added here: - # if there is no git user or group, the installation of tmpfile will be skipped - # and the user will be notified to handle it by themselves. - if egetent passwd git &>/dev/null && \ - egetent group git &>/dev/null; then - tmpfiles_process gitea.conf - else - eerror "Unable to install the tmpfile for gitea due to the git user or group is missing," - eerror "please install tmpfile manually or rebuild this package with USE flag 'acct'." - eerror "You can simply copy the default tmpfile from '/usr/lib/tmpfiles.d/gitea.conf'" - eerror "to higher priority path '/etc/tmpfiles.d/gitea.conf', and correct it with" - eerror "the right User and Group value (see tmpfiles.d(5) for details), then execute:" - eerror " # systemd-tmpfiles --create /etc/tmpfiles.d/gitea.conf" - eerror "to install it." - fi - - if [[ -n ${REPLACING_VERSIONS} ]] && ver_test "${REPLACING_VERSIONS}" -lt 1.21; then - ewarn "Since 1.21.0:" - ewarn " 1. The built-in SSH server will now only accept SSH user" - ewarn " certificates, not server certificates. This behaviour matches OpenSSH." - ewarn " 2. The options of the subcommand must follow the subcommand now." - ewarn " 3. Remove 'CHARSET' config option for MySQL, always use 'utf8mb4'." - ewarn "For other breaking changes, see ." - fi -} diff --git a/www-apps/gitea/gitea-1.21.8.ebuild b/www-apps/gitea/gitea-1.21.8.ebuild new file mode 100644 index 000000000000..7a37bd3df1e3 --- /dev/null +++ b/www-apps/gitea/gitea-1.21.8.ebuild @@ -0,0 +1,147 @@ +# Copyright 2016-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps go-module tmpfiles systemd flag-o-matic user-info + +DESCRIPTION="A painless self-hosted Git service" +HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/go-gitea/gitea.git" +else + SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86" +fi + +S="${WORKDIR}/${PN}-src-${PV}" + +LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0" +SLOT="0" +IUSE="+acct pam sqlite pie" + +DEPEND=" + acct? ( + acct-group/git + acct-user/git[gitea] ) + pam? ( sys-libs/pam )" +RDEPEND="${DEPEND} + dev-vcs/git" +BDEPEND=">=dev-lang/go-1.21:=" + +DOCS=( + custom/conf/app.example.ini CHANGELOG.md CONTRIBUTING.md README.md +) +FILECAPS=( + -m 711 cap_net_bind_service+ep usr/bin/gitea +) + +RESTRICT="test" + +src_prepare() { + default + + sed -i -e "s#^MODE = console#MODE = file#" custom/conf/app.example.ini || die +} + +src_configure() { + # bug 832756 - PIE build issues + filter-flags -fPIE + filter-ldflags -fPIE -pie +} + +src_compile() { + local gitea_tags + local -a gitea_settings makeenv + + # The space-separated list of the -tags flag is deprecated, please + # always use the comma-separated list in the future. + gitea_tags="bindata" + gitea_tags+="$(usex pam ',pam' '')" + gitea_tags+="$(usex sqlite ',sqlite,sqlite_unlock_notify' '')" + + gitea_settings=( + "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" + "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" + "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" + ) + + makeenv=( + LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}" + TAGS="${gitea_tags}" + ) + + if [[ ${PV} != *9999 ]]; then + # Use variable STORED_VERSION_FILE (the "${S}/VERSION" file) to set version, + # and prevent executing git command when it's not a live version. + makeenv+=( GITHUB_REF_NAME="" ) + fi + + if use pie ; then + # Please check the supported platforms when a new keyword request opened, + # refer to file: 'go/src/internal/platform/supported.go'. + # When PIE buildmode is not supported by internal linker, the external + # linker will be used automatically, refer to: + # https://github.com/golang/go/blob/ed817f1c4055a559a94afffecbb91c78e4f39942/src/cmd/link/internal/ld/config.go#L149 + makeenv+=( EXTRA_GOFLAGS="-buildmode=pie" ) + fi + + env "${makeenv[@]}" emake backend +} + +src_install() { + dobin gitea + + einstalldocs + + newconfd "${FILESDIR}/gitea.confd-r1" gitea + newinitd "${FILESDIR}/gitea.initd-r3" gitea + newtmpfiles - gitea.conf <<-EOF + d /run/gitea 0755 git git + EOF + systemd_newunit "${FILESDIR}"/gitea.service-r4 gitea.service + + insinto /etc/gitea + newins custom/conf/app.example.ini app.ini + if use acct; then + fowners root:git /etc/gitea/{,app.ini} + fperms g+w,o-rwx /etc/gitea/{,app.ini} + + diropts -m0750 -o git -g git + keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data + keepdir /var/log/gitea + fi +} + +pkg_postinst() { + fcaps_pkg_postinst + + # It is not guaranteed that the git user and group always exist (due to the acct USE Flag), + # but for convenience, the tmpfile uses the git user and group by default. + # To avoid installation errors, a condition needs to be added here: + # if there is no git user or group, the installation of tmpfile will be skipped + # and the user will be notified to handle it by themselves. + if egetent passwd git &>/dev/null && \ + egetent group git &>/dev/null; then + tmpfiles_process gitea.conf + else + eerror "Unable to install the tmpfile for gitea due to the git user or group is missing," + eerror "please install tmpfile manually or rebuild this package with USE flag 'acct'." + eerror "You can simply copy the default tmpfile from '/usr/lib/tmpfiles.d/gitea.conf'" + eerror "to higher priority path '/etc/tmpfiles.d/gitea.conf', and correct it with" + eerror "the right User and Group value (see tmpfiles.d(5) for details), then execute:" + eerror " # systemd-tmpfiles --create /etc/tmpfiles.d/gitea.conf" + eerror "to install it." + fi + + if [[ -n ${REPLACING_VERSIONS} ]] && ver_test "${REPLACING_VERSIONS}" -lt 1.21; then + ewarn "Since 1.21.0:" + ewarn " 1. The built-in SSH server will now only accept SSH user" + ewarn " certificates, not server certificates. This behaviour matches OpenSSH." + ewarn " 2. The options of the subcommand must follow the subcommand now." + ewarn " 3. Remove 'CHARSET' config option for MySQL, always use 'utf8mb4'." + ewarn "For other breaking changes, see ." + fi +} diff --git a/www-apps/jekyll/Manifest b/www-apps/jekyll/Manifest index 843a37c1d386..b96a0b848aa6 100644 --- a/www-apps/jekyll/Manifest +++ b/www-apps/jekyll/Manifest @@ -2,5 +2,7 @@ AUX jekyll-3.6.0-test-helper.patch 657 BLAKE2B 8e9d9bb57efa2370976d459dac772f7f4 AUX jekyll-4.3.2-no-safe_yaml.patch 16966 BLAKE2B 4af96af3bc4c60836639ccdb2ffb58331b807eac04711a899a4b72357e989b6fb06767d9fa605d403ead822ef8363a31a076e825383dc40ab03491f0a4d134e9 SHA512 6333d0cb148ba3c9edb56915bc3b48fbe064bab4d9289289491129d8750f22fbf925730fb9ca9cefc0b7a58550e5b1a8e5b5ba5a5487accc7dc64fc16ea13eba AUX jekyll-4.3.2-sass.patch 4212 BLAKE2B 32c9764cf97e0c925eeee64ce10c6e6af8858199f588149dc33010814882b27a0886bb46d53ab9c82ae9639f9dc3cac63711240046723b42d39f0902837d7a90 SHA512 b7444d33cc0e98d1f53c0fd17a33a9a411621122e29793f1efdaf3f41bdcaf188ba8e0308b77d941250bd3183b8306e410f0b1ea959b927be2d214ff9db480b9 DIST jekyll-4.3.2.tar.gz 1447970 BLAKE2B 8f722c363483d937198f5ac1abbca3aa59f754f66106d4355c59da541cce218704ee3976af2842e6b2f58d367eb80caa376612f73c84032ac5a2aa3076f6d007 SHA512 865bffe97683a4765a16b6eb9ec1bbbb5d2567699ad343360e101d3cae81187ea0f218b67d13a1121213fc49269475935fe0322d8b0f052c868536d5aaa0f7ab +DIST jekyll-4.3.3.tar.gz 1448000 BLAKE2B 1b9688ea7ca3991ac65b9be2b1f195c1ad68b840964579b111791b7e4e0491651570e61caed70a6a9fd748a79ecbf8c159cbf7487cc0e9ea35ae7219fb28f9ea SHA512 af3f82d172e187f2d279d8d50b69dedb384ad6d199f5e1feec7eecdfd7f6c78f43c4adc041757e2747800a12ca3ce1c084d462916ad83bb82c0281dd000dc1c2 EBUILD jekyll-4.3.2-r2.ebuild 3341 BLAKE2B efb028425c91ebe791f78b6b9d91f898c943621ef65e823fe106a125ea5f3cb1e7a4dd6c4754c8bc1a4b7b95f5ed3c0070e7a56927f6a0808f6cb3d301834cbd SHA512 84504486177bd47db26bff0b863e5fe112fdab242891e3e28597369f8b57070d74a109050bff6a8ed491b04ec3e30c544f842df85dab1bb7e5f6d082cbd964de +EBUILD jekyll-4.3.3.ebuild 3319 BLAKE2B f22fb2304334e925abe86e816ee85c3c1ab30fa8569dc9f3b32a2d71c94fb3921efb65df77f1773523539ffa28b9cb4d6414e972fd61a88a3d8be1f3c5955fc2 SHA512 4b34caa6d59e7db697fcdc0f43fb8d64456f5428eb12d19490c2014c5c88d3ae040339702738cb0d121412e038c866b0032cc4a776845e4c28d718503e8542f2 MISC metadata.xml 246 BLAKE2B a1eee8b457925c68b280d73349fa5bfff1639a1b7c1763bb38f9c43680a0cedfaf583b776820211cf3992ea83e983c237e00be9340b4d64a72775f0c4014ff54 SHA512 7ccb92985f1a956a36f408671063aac1ef02e2e8284cba45ae636dd23dd085087f452b9a96c3bbbcff5d809e4559fc8ba653b3198eb995baf1f217f20e893303 diff --git a/www-apps/jekyll/jekyll-4.3.3.ebuild b/www-apps/jekyll/jekyll-4.3.3.ebuild new file mode 100644 index 000000000000..22ad4bceeabb --- /dev/null +++ b/www-apps/jekyll/jekyll-4.3.3.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31" + +inherit ruby-fakegem + +RUBY_FAKEGEM_EXTRADOC="README.markdown History.markdown" +RUBY_FAKEGEM_EXTRAINSTALL="features" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +RUBY_FAKEGEM_BINDIR="exe" + +DESCRIPTION="Simple, blog aware, static site generator" +HOMEPAGE="https://jekyllrb.com https://github.com/jekyll/jekyll" +SRC_URI="https://github.com/jekyll/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="test" + +ruby_add_rdepend " + >=dev-ruby/addressable-2.4 + >=dev-ruby/colorator-1.0 + >=dev-ruby/em-websocket-0.5 + dev-ruby/i18n:1 + >=dev-ruby/kramdown-2.3:2 + dev-ruby/kramdown-parser-gfm:1 + dev-ruby/liquid:4 + =dev-ruby/mercenary-0.4* + >=dev-ruby/pathutil-0.9 + || ( dev-ruby/rouge:4 dev-ruby/rouge:2 ) + || ( dev-ruby/terminal-table:3 dev-ruby/terminal-table:2 ) + >=dev-ruby/webrick-1.7:0 + >=www-apps/jekyll-sass-converter-2.0 + >=www-apps/jekyll-watch-2.2.1-r1 +" +ruby_add_bdepend " + test? ( + dev-ruby/kramdown-syntax-coderay + dev-ruby/launchy + dev-ruby/nokogiri + >=dev-ruby/rdiscount-2.0 + >=dev-ruby/redcarpet-3.2.3 + dev-ruby/rspec-mocks + >=dev-ruby/shoulda-3 + dev-ruby/test-unit:2 + www-apps/jekyll-coffeescript + ) +" + +all_ruby_prepare() { + eapply "${FILESDIR}"/jekyll-3.6.0-test-helper.patch + eapply -R "${FILESDIR}/jekyll-4.3.2-sass.patch" + eapply "${FILESDIR}"/jekyll-4.3.2-no-safe_yaml.patch + + # Drop tests requiring bundler + sed -i -e '/bundle_message/d' test/test_new_command.rb || die + rm test/test_plugin_manager.rb || die + + # Drop tests requiring classifier-reborn (ruby27-only package) + rm -f test/test_related_posts.rb || die + + # Replace git command in gemspec + sed -e 's/git ls-files/find -not -type d -print/' \ + -e 's:_relative ": "./:' \ + -i $RUBY_FAKEGEM_GEMSPEC || die + + sed -e '3igem "liquid", "~> 4.0"' -i test/helper.rb || die + + # FIXMEs: + # fails to find fixtures because this requires bundler + rm -f test/test_theme.rb || die + rm -f test/test_theme_{assets_reader,data_reader,drop}.rb || die + sed -i -e '/^ should.*theme/,/^ end$/d' \ + -e '/^ should.*theme/,/^ end$/d' test/test_site.rb || die + sed -i -e '/context "with a theme"/,/^ end/ s:^:#:' test/test_layout_reader.rb || die + sed -i -e '/normalize paths of rendered items/askip "test-theme"' test/test_liquid_renderer.rb || die + # partially requires 'toml' + rm test/test_configuration.rb || die + # pygments tests fail because of line numbering + sed -i -e '/^ context.*pygments/,/^ end$/d' test/test_tags.rb || die + + # Tries to use bundler and install packages. + rm -f test/test_new_command.rb || die + + # Fails due to ordering differences in ruby 3.0 + sed -e '/convert drop to json/askip "hash ordering with ruby 3"' \ + -i test/test_filters.rb || die + + # Avoid a test failing due to TZ differences + sed -e '/contain the proper page data to mimic the post liquid/askip "TZ difference"' \ + -i test/test_excerpt.rb || die + + # Confused by network-sandbox + sed -e "/return true if there's internet/askip \"Confused by network-sandbox\"" \ + -i test/test_utils.rb || die + + # Avoid tests requiring unmaintained and broken httpclient + rm -f test/test_commands_serve.rb || die +} + +src_test() { + local -x JEKYLL_NO_BUNDLER_REQUIRE=true + + ruby-ng_src_test +} -- cgit v1.2.3