From b319c6e5c6112b81272c39ec2750e764d61802c9 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 26 May 2022 23:47:05 +0200 Subject: [PATCH] dev-cpp/dtl: add 1.20 Signed-off-by: Alessandro Barbieri --- dev-cpp/dtl/Manifest | 1 + dev-cpp/dtl/dtl-1.20.ebuild | 53 +++++++++++++++++++++++++++++++++++++ dev-cpp/dtl/metadata.xml | 8 ++++++ 3 files changed, 62 insertions(+) create mode 100644 dev-cpp/dtl/dtl-1.20.ebuild diff --git a/dev-cpp/dtl/Manifest b/dev-cpp/dtl/Manifest index 1bfa96ce00..8566de94c0 100644 --- a/dev-cpp/dtl/Manifest +++ b/dev-cpp/dtl/Manifest @@ -1 +1,2 @@ DIST dtl-1.19_p20210531.tar.gz 26011 BLAKE2B 1ac4194cf536c072c45c2e2da0f0fd26232a5bf2e7aa57e8323457b5d43222df6a8579a41e54cd941cc69e013d4dac9fd051ad33950ed89692629ef57564a5f6 SHA512 2ac1f3d9871ed39f4183ebf0d9d8a1381ef2dacc3677f525d025eb292fbf4676a5a67abe34dfa1ff12bdb66e0fa71a83b8a99130e2e8048e08d3392327e84a9a +DIST dtl-1.20.tar.gz 26227 BLAKE2B a52f1e8878b0bbd7204d979eaf0ba303722140c5f57259dc8592a50f0f039baa3a90c1d309ac089805736a383e9265cbd133289216fe85aaac677265a29303d2 SHA512 44cdaf190d8a103effbca8df244c652b642590795f7307f5f7fdf64fc34bdbe2fa5ab2e1a08185abf099e35b0d9158306a80a8dc24bba9eccab4c77c7b1eed5e diff --git a/dev-cpp/dtl/dtl-1.20.ebuild b/dev-cpp/dtl/dtl-1.20.ebuild new file mode 100644 index 0000000000..f2b82a83b0 --- /dev/null +++ b/dev-cpp/dtl/dtl-1.20.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..11} pypy3 ) + +inherit python-any-r1 scons-utils toolchain-funcs + +DESCRIPTION="diff template library written by C++" +HOMEPAGE="https://github.com/cubicdaiya/dtl" +SRC_URI="https://github.com/cubicdaiya/dtl/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples test" + +DEPEND="test? ( dev-cpp/gtest )" + +RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/${PN}-1.19_p20210531-do-not-append-O2.patch" ) + +src_compile() { + escons CC="$(tc-getCC)" + if use test; then + pushd test || die + escons CC="$(tc-getCC)" + popd || die + fi + if use examples; then + pushd examples || die + escons CC="$(tc-getCC)" + popd || die + fi +} + +src_install() { + escons prefix="${T}" install + insinto /usr/include/dtl + doins "${T}/dtl/include"/* + if use examples; then + pushd examples || die + rm SConstruct *.o *.cpp *.hpp || die + exeinto /usr/libexec/dtl/examples + doexe * + fi +} + +src_test() { + pushd test || die + escons check +} diff --git a/dev-cpp/dtl/metadata.xml b/dev-cpp/dtl/metadata.xml index 4f8e72c5c4..11bb767804 100644 --- a/dev-cpp/dtl/metadata.xml +++ b/dev-cpp/dtl/metadata.xml @@ -5,4 +5,12 @@ lssndrbarbieri@gmail.com Alessandro Barbieri + + + Tatsuhiko Kubo + cubicdaiya@gmail.com + + https://github.com/cubicdaiya/dtl/issues + cubicdaiya/dtl +