From 692e33c211e23aff33082ef4cf8a04ef9366e99d Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 13 Jun 2021 23:59:27 +0300 Subject: [PATCH] dev-cpp/pystring: fix tests, make CXXFLAGS work Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alfred Wingate --- dev-cpp/pystring/pystring-1.1.3.ebuild | 14 ++++++++++++-- dev-cpp/pystring/pystring-9999.ebuild | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/dev-cpp/pystring/pystring-1.1.3.ebuild b/dev-cpp/pystring/pystring-1.1.3.ebuild index 291230f..22f0aa0 100644 --- a/dev-cpp/pystring/pystring-1.1.3.ebuild +++ b/dev-cpp/pystring/pystring-1.1.3.ebuild @@ -14,13 +14,23 @@ else KEYWORDS="~amd64" fi -LICENSE="all-rights-reserved" +LICENSE="BSD" SLOT="0" +BDEPEND=" + sys-devel/gcc[cxx] + sys-devel/libtool +" + +src_prepare() { + sed -i "s/\(CXXFLAGS =\) -g -O3 \(.*\)/\1 ${CXXFLAGS} \2/" Makefile || die + default +} + src_compile() { emake LIBDIR="${S}" install mkdir pystring || die - mv pystring.h pystring || die + cp pystring.h pystring || die } src_install() { diff --git a/dev-cpp/pystring/pystring-9999.ebuild b/dev-cpp/pystring/pystring-9999.ebuild index 291230f..22f0aa0 100644 --- a/dev-cpp/pystring/pystring-9999.ebuild +++ b/dev-cpp/pystring/pystring-9999.ebuild @@ -14,13 +14,23 @@ else KEYWORDS="~amd64" fi -LICENSE="all-rights-reserved" +LICENSE="BSD" SLOT="0" +BDEPEND=" + sys-devel/gcc[cxx] + sys-devel/libtool +" + +src_prepare() { + sed -i "s/\(CXXFLAGS =\) -g -O3 \(.*\)/\1 ${CXXFLAGS} \2/" Makefile || die + default +} + src_compile() { emake LIBDIR="${S}" install mkdir pystring || die - mv pystring.h pystring || die + cp pystring.h pystring || die } src_install() {