source-highlight: fix build with gcc>=11
This commit is contained in:
parent
0c186e0fb7
commit
103ed358dc
1 changed files with 5 additions and 2 deletions
|
@ -10,9 +10,11 @@ short_desc="Convert source code to syntax highlighted document"
|
|||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="http://www.gnu.org/software/src-highlite/"
|
||||
distfiles="${GNU_SITE}/src-highlite/$pkgname-$version.tar.gz"
|
||||
distfiles="${GNU_SITE}/src-highlite/source-highlight-${version}.tar.gz"
|
||||
checksum=3a7fd28378cb5416f8de2c9e77196ec915145d44e30ff4e0ee8beb3fe6211c91
|
||||
|
||||
export CXXFLAGS="-std=c++14"
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends="source-highlight"
|
||||
fi
|
||||
|
@ -24,7 +26,7 @@ post_patch() {
|
|||
|
||||
post_configure() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
sed -e 's,SRCHILITEEXE =.*,SRCHILITEEXE = source-highlight,g' -i doc/Makefile
|
||||
vsed -e 's,SRCHILITEEXE =.*,SRCHILITEEXE = source-highlight,g' -i doc/Makefile
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -34,6 +36,7 @@ libsource-highlight_package() {
|
|||
vmove "usr/lib/*.so.*"
|
||||
}
|
||||
}
|
||||
|
||||
source-highlight-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="libsource-highlight>=${version}_${revision}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue