From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 39C4713835B for ; Thu, 7 Jan 2021 03:07:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CE03E0831; Thu, 7 Jan 2021 03:07:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 443FAE0831 for ; Thu, 7 Jan 2021 03:07:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E1537341388 for ; Thu, 7 Jan 2021 03:07:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5EB4F491 for ; Thu, 7 Jan 2021 03:07:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1609988818.704a1ad2cd57dea045c0b20ff2d73e55a97b0595.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/yodl/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/yodl/Manifest app-text/yodl/yodl-4.03.00.ebuild X-VCS-Directories: app-text/yodl/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 704a1ad2cd57dea045c0b20ff2d73e55a97b0595 X-VCS-Branch: master Date: Thu, 7 Jan 2021 03:07:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2d8c19c5-936f-4d2f-b278-1c128f77f1b4 X-Archives-Hash: 84f22a83578ca1fc1451fe58d5b328d7 commit: 704a1ad2cd57dea045c0b20ff2d73e55a97b0595 Author: Sam James gentoo org> AuthorDate: Thu Jan 7 03:06:53 2021 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jan 7 03:06:58 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=704a1ad2 app-text/yodl: bump to 4.03.00 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> app-text/yodl/Manifest | 1 + app-text/yodl/yodl-4.03.00.ebuild | 72 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/app-text/yodl/Manifest b/app-text/yodl/Manifest index d69fcab190e..1acb700e8f6 100644 --- a/app-text/yodl/Manifest +++ b/app-text/yodl/Manifest @@ -1,2 +1,3 @@ DIST yodl-4.02.01.tar.gz 308670 BLAKE2B f94c094f17ec99e66f64a704e41814274f61128ff21b11077d772874dcbc9f15fbc878df8831e7f73d9b6c89a497462c694bc0bdb6cd5637c0db08303e3838d5 SHA512 59e23bb173786b8806f56bf302dee9d8d971d0d840c609e2b24d9783b5866fca2509be844616318f9a4f302117b3a41f620be5cba09181e7ccdcf0c141402be7 DIST yodl-4.02.02.tar.gz 309075 BLAKE2B ce9da287ca59e20319ae8a132553b669ffff926c79e7ffbf7891af3e777c45815cbd784eaf8d706b7f4b8240ceac41c38882c7b5d2b51e2691da249b0f5be43b SHA512 531b5b61f85ed556163b0cf76a30451212849e5e03e11819cc466603db0856737a9d3bc34ba11419befd7925ec1bac33f92b707c38acd2fa8047e3e1223d0a78 +DIST yodl-4.03.00.tar.gz 309212 BLAKE2B 9a89dfda5f4138f466bc2f871724087ff2c0084d06d81c32e1e865744e1c133b1073becac30e817f2f997c351b8f8192e942616174acb644dcab40d5d64c9d36 SHA512 ec5edaf932d94e9272a08867322e8fbfec65f612447fa412a7c19412569a6d811bbe5badd0af692837086a9ee8cdf8bb8f0c10a3e8333ef6096513b263c8d831 diff --git a/app-text/yodl/yodl-4.03.00.ebuild b/app-text/yodl/yodl-4.03.00.ebuild new file mode 100644 index 00000000000..0f7adc8fbc7 --- /dev/null +++ b/app-text/yodl/yodl-4.03.00.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Your Own Document Language: a pre-document language and tools to process it" +HOMEPAGE="https://fbb-git.gitlab.io/yodl/ https://gitlab.com/fbb-git/yodl" +SRC_URI="https://gitlab.com/fbb-git/${PN}/-/archive/${PV}/${P}.tar.gz" +S="${WORKDIR}/${P}/${PN}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +BDEPEND=" + >=dev-util/icmake-8.00.00 + doc? ( + dev-texlive/texlive-latexextra + dev-texlive/texlive-plaingeneric + ) +" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != "binary" ]]; then + if tc-is-gcc && [[ $(gcc-major-version) -lt 8 ]]; then + die "Your compiler doesn't fully support C++17. Use GCC 8 or newer." + elif tc-is-clang && [[ $(clang-major-version) -lt 6 ]]; then + die "Your compiler doesn't fully support C++17. Use Clang 6 or newer." + fi + fi +} + +src_prepare() { + sed -e "/DOC.* =/s/yodl\(-doc\)\?/${PF}/" \ + -e "/COMPILER =/s/gcc/$(tc-getCC)/" \ + -e "/CXX =/s/g++/$(tc-getCXX)/" \ + -i INSTALL.im || die + + sed -e "s/g++/$(tc-getCXX)/" \ + -e "s:#define CLS://\0:" \ + -i verbinsert/icmconf || die + + sed -e "s/ar r /$(tc-getAR) r /" \ + -e "s/ranlib/$(tc-getRANLIB)/" \ + -i icmake/stdcompile || die + + sed -e '/strip/s|"-s"|""|g' \ + -i icmake/program || die + + # required for std::filesystem usage + append-cxxflags -std=c++17 + + default +} + +src_compile() { + local target + for target in programs macros man $(usex doc manual ''); do + ./build ${target} || die "${target} failed" + done +} + +src_install() { + ./build install programs "${ED}" || die + ./build install macros "${ED}" || die + ./build install man "${ED}" || die + ./build install docs "${ED}" || die + use doc && { ./build install manual "${ED}" || die ; } +}