You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
57 lines
1.5 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit bash-completion-r1 flag-o-matic
|
||
|
|
||
|
DESCRIPTION="Generate highlighted source code as an (x)html document"
|
||
|
HOMEPAGE="https://www.gnu.org/software/src-highlite/source-highlight.html"
|
||
|
SRC_URI="mirror://gnu/src-highlite/${P}.tar.gz"
|
||
|
LICENSE="GPL-3"
|
||
4 years ago
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
|
||
5 years ago
|
SLOT="0"
|
||
|
IUSE="doc static-libs"
|
||
|
|
||
3 years ago
|
RDEPEND=">=dev-libs/boost-1.62.0:=[threads(+)]
|
||
5 years ago
|
dev-util/ctags"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND=""
|
||
|
|
||
4 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-3.1.9-test-clang-p1.patch
|
||
|
"${FILESDIR}"/${PN}-3.1.9-test-clang-p2.patch
|
||
|
)
|
||
|
|
||
5 years ago
|
src_configure() {
|
||
|
# required as rev-dep of dev-libs/boost-1.62.0
|
||
|
# https://wiki.gentoo.org/wiki/Project:C%2B%2B/Maintaining_ABI
|
||
|
append-cxxflags -std=c++14
|
||
|
|
||
|
econf \
|
||
|
--with-boost="${EPREFIX}/usr" \
|
||
|
--with-boost-regex="boost_regex" \
|
||
|
--without-bash-completion \
|
||
|
$(use_enable static-libs static)
|
||
|
}
|
||
|
|
||
5 years ago
|
src_install() {
|
||
5 years ago
|
use doc && local HTML_DOCS=( doc/*.{html,css,java} )
|
||
|
default
|
||
|
|
||
|
# That's not how we want it
|
||
|
rm -rf "${ED}"/usr/share/{aclocal,doc} || die
|
||
|
|
||
|
# package provides .pc file
|
||
|
find "${D}" -name '*.la' -delete || die
|
||
|
|
||
|
dobashcomp completion/source-highlight
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
export LD_LIBRARY_PATH="${S}/lib/srchilite/.libs/"
|
||
|
# upstream uses the same temporary filenames in numerous places
|
||
|
# see https://bugs.gentoo.org/635100
|
||
|
emake -j1 check
|
||
|
}
|