dev-cpp/pystring: fix tests, make CXXFLAGS work

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2021-06-13 23:59:27 +03:00
parent ff6063ff5a
commit 692e33c211
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
2 changed files with 24 additions and 4 deletions

View File

@ -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() {

View File

@ -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() {