summaryrefslogtreecommitdiff
path: root/dev-cpp/dtl
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-12 21:03:09 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-12 21:03:09 +0000
commitd97953e6ff67978da9554e7b4601aedceb21e215 (patch)
tree674053c902db6972b9716c9ac3b1e960ee7a5358 /dev-cpp/dtl
parent1d1fa5bb30df70070bbbbd2b777b839d31f09c41 (diff)
downloadsrcux-d97953e6ff67978da9554e7b4601aedceb21e215.tar.gz
srcux-d97953e6ff67978da9554e7b4601aedceb21e215.tar.xz
srcux-d97953e6ff67978da9554e7b4601aedceb21e215.zip
Adding metadata
Diffstat (limited to 'dev-cpp/dtl')
-rw-r--r--dev-cpp/dtl/Manifest1
-rw-r--r--dev-cpp/dtl/dtl-1.19_p20210531.ebuild58
-rw-r--r--dev-cpp/dtl/files/dtl-1.19_p20210531-do-not-append-O2.patch11
-rw-r--r--dev-cpp/dtl/metadata.xml8
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-cpp/dtl/Manifest b/dev-cpp/dtl/Manifest
new file mode 100644
index 000000000000..1bfa96ce0020
--- /dev/null
+++ b/dev-cpp/dtl/Manifest
@@ -0,0 +1 @@
+DIST dtl-1.19_p20210531.tar.gz 26011 BLAKE2B 1ac4194cf536c072c45c2e2da0f0fd26232a5bf2e7aa57e8323457b5d43222df6a8579a41e54cd941cc69e013d4dac9fd051ad33950ed89692629ef57564a5f6 SHA512 2ac1f3d9871ed39f4183ebf0d9d8a1381ef2dacc3677f525d025eb292fbf4676a5a67abe34dfa1ff12bdb66e0fa71a83b8a99130e2e8048e08d3392327e84a9a
diff --git a/dev-cpp/dtl/dtl-1.19_p20210531.ebuild b/dev-cpp/dtl/dtl-1.19_p20210531.ebuild
new file mode 100644
index 000000000000..4b8158ee4b78
--- /dev/null
+++ b/dev-cpp/dtl/dtl-1.19_p20210531.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+COMMIT="18e674e4a6fdc8c22534a207ff7812ed932a5e61"
+PYTHON_COMPAT=( python3_{7,8,9,10} 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/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ dev-cpp/gtest
+ )
+"
+
+PATCHES=( "${FILESDIR}/${P}-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
+ cd examples || die
+ rm SConstruct *.o *.cpp *.hpp || die
+ exeinto /usr/libexec/dtl/examples
+ doexe *
+ fi
+}
+
+src_test() {
+ cd test || die
+ escons check
+}
diff --git a/dev-cpp/dtl/files/dtl-1.19_p20210531-do-not-append-O2.patch b/dev-cpp/dtl/files/dtl-1.19_p20210531-do-not-append-O2.patch
new file mode 100644
index 000000000000..4b6f99943cbd
--- /dev/null
+++ b/dev-cpp/dtl/files/dtl-1.19_p20210531-do-not-append-O2.patch
@@ -0,0 +1,11 @@
+--- a/examples/SConstruct
++++ b/examples/SConstruct
+@@ -7,7 +7,7 @@
+ if debug == 'y' or debug == 'yes':
+ env.Append(CPPFLAGS = ['-Wall', '-g'])
+ else:
+- env.Append(CPPFLAGS = ['-Wall', '-O2'])
++ env.Append(CPPFLAGS = ['-Wall'])
+
+ if os.sys.platform != "win32":
+ env.Append(CPPDEFINES = ['HAVE_UNISTD_H'])
diff --git a/dev-cpp/dtl/metadata.xml b/dev-cpp/dtl/metadata.xml
new file mode 100644
index 000000000000..4f8e72c5c4d8
--- /dev/null
+++ b/dev-cpp/dtl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+</pkgmetadata>