From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../source-highlight/source-highlight-3.1.8.ebuild | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 dev-util/source-highlight/source-highlight-3.1.8.ebuild (limited to 'dev-util/source-highlight/source-highlight-3.1.8.ebuild') diff --git a/dev-util/source-highlight/source-highlight-3.1.8.ebuild b/dev-util/source-highlight/source-highlight-3.1.8.ebuild new file mode 100644 index 000000000000..26e96bfbcc65 --- /dev/null +++ b/dev-util/source-highlight/source-highlight-3.1.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris" +SLOT="0" +IUSE="doc static-libs" + +RDEPEND=">=dev-libs/boost-1.62.0:=[threads] + dev-util/ctags" +DEPEND="${RDEPEND}" + +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-regex="boost_regex" \ + --without-bash-completion \ + $(use_enable static-libs static) +} + +src_install () { + 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/" + default +} -- cgit v1.2.3