mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-cpp/dtl: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-cpp/dtl/Manifest
Normal file
1
dev-cpp/dtl/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST dtl-1.19_p20210531.tar.gz 26011 BLAKE2B 1ac4194cf536c072c45c2e2da0f0fd26232a5bf2e7aa57e8323457b5d43222df6a8579a41e54cd941cc69e013d4dac9fd051ad33950ed89692629ef57564a5f6 SHA512 2ac1f3d9871ed39f4183ebf0d9d8a1381ef2dacc3677f525d025eb292fbf4676a5a67abe34dfa1ff12bdb66e0fa71a83b8a99130e2e8048e08d3392327e84a9a
|
||||||
57
dev-cpp/dtl/dtl-1.19_p20210531.ebuild
Normal file
57
dev-cpp/dtl/dtl-1.19_p20210531.ebuild
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
COMMIT="18e674e4a6fdc8c22534a207ff7812ed932a5e61"
|
||||||
|
PYTHON_COMPAT=( python3_{8..9} 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
|
||||||
|
doheader "${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
|
||||||
|
}
|
||||||
11
dev-cpp/dtl/files/dtl-1.19_p20210531-do-not-append-O2.patch
Normal file
11
dev-cpp/dtl/files/dtl-1.19_p20210531-do-not-append-O2.patch
Normal file
@@ -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'])
|
||||||
8
dev-cpp/dtl/metadata.xml
Normal file
8
dev-cpp/dtl/metadata.xml
Normal file
@@ -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>
|
||||||
Reference in New Issue
Block a user