net-p2p/automatic: wrt 740860

Closes: https://bugs.gentoo.org/740860
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Closes: https://github.com/gentoo/gentoo/pull/14385
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Vladimir Pavljuchenkov (SpiderX)
2021-01-15 10:37:08 +02:00
committed by Joonas Niilola
parent 1e105008d3
commit 9b6bfb6d8f

View File

@@ -12,13 +12,13 @@ SRC_URI="https://github.com/1100101/Automatic/archive/v${PV}.tar.gz -> ${P}.tar.
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="acct-user/automatic
dev-libs/libxml2:2
dev-libs/libpcre:3
net-misc/curl"
DEPEND="${RDEPEND}
app-admin/logrotate"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${P^}"
@@ -34,13 +34,14 @@ src_prepare() {
mv configure.{in,ac} || die "rename failed"
# Remove CFLAGS and CXXFLAGS defined by upstream
sed -i \
-e 's/CFLAGS="-Wdeclaration-after-statement -O3 -funroll-loops"/CFLAGS+=""/' \
sed -i -e 's/CFLAGS="-Wdeclaration-after-statement -O3 -funroll-loops"/CFLAGS+=""/' \
-e 's/CXXFLAGS="-O3 -funroll-loops"/CXXFLAGS+=""/' \
configure.ac || die "sed for CXXFLAGS and CFLAGS failed"
# tests fail with network-sandbox
rm src/tests/http_test.c || die "rm failed"
sed -i -e '/check_PROGRAMS /s/http_test //' \
-e '/check_PROGRAMS /s/prowl_test //' src/tests/Makefile.am \
|| die "sed failed for Makefile.am"
eautoreconf
}